(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-especificos-pontafelix-movimentos-transferencia-deposito-transferencia-deposito-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferecia-deposito-conclusao-print-modal/transferecia-deposito-conclusao-print-modal.component.html":
/*!*****************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferecia-deposito-conclusao-print-modal/transferecia-deposito-conclusao-print-modal.component.html ***!
  \*****************************************************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"modal fade\"id=\"modalPrint\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\r\n  <div class=\"modal-dialog modal-sm\">\r\n    <div class=\"modal-content\">\r\n      <form class=\"form\" #frmPrint=\"ngForm\" (ngSubmit)=\"onSubmit(frmPrint)\">\r\n        <div class=\"modal-header\">\r\n          <h4 class=\"modal-title\">{{ 'titles.imprimir' | translate }}</h4>\r\n          <button type=\"button\" class=\"close\" aria-label=\"Close\" data-dismiss=\"modal\">\r\n            <span aria-hidden=\"true\">&times;</span>\r\n          </button>\r\n        </div>\r\n        <div class=\"modal-body\">\r\n          <div class=\"row\">\r\n            <div class=\"col-md-12\">\r\n              <div class=\"form-group form-group-sm\">\r\n                <label for=\"tipoImpressao\">{{'labels.tipoImpressao' | translate}}</label>\r\n                <select id=\"tipoImpressao\"\r\n                        name=\"tipoImpressao\"\r\n                        class=\"form-control form-control-sm\"\r\n                        [(ngModel)]=\"tipoSelecionado\">\r\n                    <option value=\"\">{{ 'labels.selecione' | translate}}</option>\r\n                    <option *ngFor=\"let tipo of tiposImpressao\" [value]=\"tipo.value\">{{ tipo.label | translate}}</option>\r\n                </select>\r\n              </div>\r\n            </div>\r\n          </div>\r\n        </div>\r\n        <div class=\"modal-footer\">\r\n          <button type=\"submit\" class=\"btn btn-small btn-success\" [disabled]=\"tipoSelecionado == ''\">{{ 'buttons.ok' | translate }}</button>\r\n          <button type=\"button\" class=\"btn btn-small btn-default\" data-dismiss=\"modal\">{{ 'buttons.cancelar' | translate }}</button>\r\n        </div>\r\n      </form>\r\n    </div>\r\n  </div>\r\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferecia-deposito-conclusao-prog/transferecia-deposito-conclusao-prog.component.html":
/*!***************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferecia-deposito-conclusao-prog/transferecia-deposito-conclusao-prog.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=\"transferecia-deposito-conclusao-prog\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\n    <div class=\"modal-dialog modal-lg\">\n        <div class=\"modal-content\">\n            <div class=\"modal-header\">\n                <h6 class=\"modal-title\">{{ 'titles.transferenciaDeposito' | translate }}</h6>\n            </div>\n            <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\">\n                <div class=\"modal-body\">\n                    <app-validacoes [formErrorId]=\"'formDadosConcl'\"></app-validacoes>\n                    <div class=\"row\">\n                        <div class=\"col-lg-6\">\n                            <label for=\"depOrigem\">{{ 'labels.depositoOrigem' | translate }}</label>\n                            <input id=\"depOrigem\" name=\"depOrigem\" value=\"{{service?.data?.depOrigem}}\"\n                                class=\"form-control form-control-sm\" type=\"text\" disabled>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-6\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"depDestino\">{{ 'labels.depositoDestino' | translate }}</label>\n                                <input id=\"depDestino\" name=\"depDestino\" value=\"{{service?.data?.depDestino}}\"\n                                    class=\"form-control form-control-sm\" type=\"text\" disabled>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <app-input-description [label]=\"'produto'\" [valueID]=\"service?.data?.materialId\"\n                                    [valueDescription]=\"service.data?.material?.descrMater\">\n                                </app-input-description>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-4\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"totTransferido\">{{ 'labels.totTransferido' | translate }}</label>\n                                <input id=\"totTransferido\" name=\"totTransferido\"\n                                    value=\"{{this.service?.data?.qtdTransferido | formatCurrency:0}}\"\n                                    class=\"form-control form-control-sm\" type=\"text\" disabled>\n                            </div>\n                        </div>\n                        <div class=\"col-lg-4\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"distribuido\">{{ 'labels.distribuido' | translate }}</label>\n                                <input id=\"distribuido\" name=\"distribuido\" value=\"{{vlDistribuido | formatCurrency:0}}\"\n                                    class=\"form-control form-control-sm\" type=\"text\" disabled>\n                            </div>\n                        </div>\n                        <div class=\"col-lg-4\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"vlDiferenca\">{{ 'labels.diferenca' | translate }}</label>\n                                <input id=\"vlDiferenca\" name=\"vlDiferenca\" value=\"{{vlDiferenca | formatCurrency:0}}\"\n                                    class=\"form-control form-control-sm\" type=\"text\" disabled>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"modal-footer\">\n                        <button class=\"btn btn-success mr-1\" type=\"submit\">{{ 'buttons.salvar' | translate }}</button>\n                        <button class=\"btn btn-danger mr-2\" (click)=\"desfazer()\" type=\"button\" [disabled]=\"false\">{{\n                            'buttons.desfazer' | translate }}\n                        </button>\n                    </div>\n\n                    <div class=\"table-responsive mt-1\" style=\"overflow: auto; max-height: 300px;\">\n                        <table id=\"transferenciaDeposito\"\n                            class=\"table table-striped table-bordered table-hover nowrap table-sm\">\n                            <thead>\n                                <tr>\n                                    <th class=\"text-center\">{{ 'labels.sel' | translate}}</th>\n                                    <th>{{ 'labels.cliente' | translate }}</th>\n                                    <th>{{ 'labels.lote' | translate }}</th>\n                                    <th>{{ 'labels.saldo' | translate }}</th>\n                                    <th>{{ 'labels.kilo' | translate }}</th>\n                                    <th>{{ 'labels.liberado' | translate }}</th>\n                                </tr>\n                            </thead>\n                            <tbody>\n                                <tr *ngFor=\"let t of data?.dados; index as i\" (dblclick)=\"_dbClick(t, i)\">\n                                    <td class=\"text-center\">\n                                        <label class=\"chk\">\n                                            <input type=\"checkbox\" id=\"transferir\" name=\"transferir\" value=\"checked\"\n                                                (ngModelChange)=\"t.transferir = $event ? 'S' : 'N'\"\n                                                [ngModel]=\"t.transferir ==='S'\"\n                                                style=\"margin-left:auto; margin-right:auto;\" disabled>\n                                            <span [ngClass]=\"{'red':t.transferir == 'S' ? true : false}\"></span>\n                                        </label>\n                                    </td>\n                                    <td>{{ t.cliente }}</td>\n                                    <td>{{ t.lote }}</td>\n                                    <td class=\"px-100-r\">{{ t.qtdDistribuido | formatCurrency: 0}}</td>\n                                    <td class=\"px-100-r\">{{ t.kilos | formatCurrency: 0}}</td>\n                                    <td>{{ t.liberado }}</td>\n                                </tr>\n                                <tr *ngIf=\"!hasDados\">\n                                    <th colspan=\"6\" style=\"text-align: center\">\n                                        {{ \"messages.nenhumRegistroEncontrado\" | translate }}\n                                    </th>\n                                </tr>\n                            </tbody>\n                        </table>\n                    </div>\n                </div>\n            </form>\n        </div>\n    </div>\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferencia-deposito-autorizacao/transferencia-deposito-autorizacao.component.html":
/*!***********************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferencia-deposito-autorizacao/transferencia-deposito-autorizacao.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=\"alteracao-dados-motorista-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\n    <div class=\"uni-modal-dialog-md-40\">\n        <div class=\"modal-content\">\n            <div class=\"modal-header\">\n                <h6 class=\"modal-title\">{{ 'titles.alteracaoDeDados' | translate }}</h6>\n            </div>\n            <form class=\"form\" #formMot=\"ngForm\">\n                <app-validacoes class=\"us-validacoes\" formErrorId=\"formErrorIdAut\"></app-validacoes>\n                <div class=\"modal-body\">\n                    <ng-container *ngIf=\"!!dataAux\">\n                        <div class=\"row\">\n                            <div class=\"col-lg-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <app-pesquisa-motorista id=\"motorista\" name=\"motorista\" label=\"motorista\"\n                                        modalTitle=\"pesquisaMotorista\" [inputMotorista]=\"dataAux?.inpMotorista\"\n                                        required=\"true\" (outMotorista)=\"trataMotorista($event)\"\n                                        [(ngModel)]=\"dataAux.motorista\" [showCpf]=\"true\" showCursos=\"false\"\n                                        showDocumentos=\"false\">\n                                    </app-pesquisa-motorista>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-3\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"placa\" class=\"required\">{{ \"labels.placa\" | translate }}</label>\n                                    <input id=\"placa\" [(ngModel)]=\"dataAux.placaCavalo\" name=\"placa\"\n                                        class=\"form-control form-control-sm\" type=\"text\" required=\"true\" uppercase />\n                                </div>\n                            </div>\n                        </div>\n                    </ng-container>\n                </div>\n                <div class=\"modal-footer\">\n                    <button (click)=\"onSubmit(formMot)\" class=\"btn btn-success mr-1\" type=\"button\">{{\n                        'buttons.salvar' | translate }}\n                    </button>\n                    <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">{{\n                        'buttons.cancelar' | translate }}</button>\n                </div>\n            </form>\n        </div>\n    </div>\n</div>\n\n<div class=\"form-group form-group-sm\">\n    <table id=\"tbTransferenciaDepositoAut\" class=\"table table-striped table-bordered table-hover nowrap table-sm\">\n    </table>\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferencia-deposito-dados/transferencia-deposito-dados.component.html":
/*!***********************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferencia-deposito-dados/transferencia-deposito-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>\n    <div class=\"row\">\n        <div class=\"col-lg-12\">\n            <app-pesquisa-saldo-lote-deposito id=\"depositoOrigem\" name=\"depositoOrigem\" [modalTitle]=\"'depositoOrigem'\"\n                [field]=\"'tanqueId'\" [label]=\"'depositoOrigem'\"\n                [options]=\"saldoDepositoDestinoOptions\" [(ngModel)]=\"transferenciaDepositoService.data.depOrigem\"\n                required=\"true\">\n            </app-pesquisa-saldo-lote-deposito>\n        </div>\n    </div>\n    <div class=\"row\">\n        <div class=\"col-lg-12\">\n            <div class=\"form-group form-group-sm\">\n                <app-pesquisa-saldo-lote-deposito id=\"depositoDestino\" name=\"depositoDestino\"\n                    [label]=\"'depositoDestino'\" [modalTitle]=\"'depositoDestino'\"\n                    [field]=\"'tanqueId'\" [options]=\"saldoDepositoDestinoOptions\" \n                    [(ngModel)]=\"transferenciaDepositoService.data.depDestino\"\n                    required=\"true\">\n                </app-pesquisa-saldo-lote-deposito>\n            </div>\n        </div>\n    </div>\n    <div class=\"row\">\n        <div class=\"col-lg-12\">\n            <div class=\"form-group form-group-sm\">\n                <app-pesquisa-material id=\"material\" name=\"material\" label=\"produto\" required=\"true\"\n                    modalTitle=\"pesquisaDeProduto\" [(ngModel)]=\"transferenciaDepositoService.data.materialId\"\n                    (outModel)=\"trataMaterial($event)\" [inSelected]=\"transferenciaDepositoService.data.material\">\n                </app-pesquisa-material>\n            </div>\n        </div>\n    </div>\n    <div class=\"row\">\n        <div class=\"col-lg-12\">\n            <div class=\"form-group form-group-sm\">\n                <label for=\"data\">{{ 'labels.totTransferido' | translate }}</label>\n                <input id=\"data\" name=\"data\"  [(ngModel)]=\"transferenciaDepositoService.data.qtdTransferido\"\n                currencyMask [options]=\"funcoesService.optionCurrency(0)\" class=\"form-control form-control-sm\" type=\"text\" disabled>\n            </div>\n        </div>\n    </div>\n</div>\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferencia-deposito-detalhes/transferencia-deposito-detalhes.component.html":
/*!*****************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferencia-deposito-detalhes/transferencia-deposito-detalhes.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=\"row\">\n    <div class=\"col-lg-2 col-md-4 col-sm-12\">\n        <div class=\"form-group form-group-sm\">\n            <label for=\"autorizacao\">{{ \"labels.autorizacao\" | translate }}</label>\n            <input disabled id=\"autorizacao\" value=\"{{service?.dataAut?.autorizacao}}\" \n                name=\"autorizacao\" class=\"form-control form-control-sm\"\n                type=\"text\" />\n        </div>\n    </div>\n</div>\n<div class=\"row\">\n    <div class=\"col-lg-2 col-md-4 col-sm-12\">\n        <div class=\"form-group form-group-sm\">\n            <label for=\"data\">{{ 'labels.data' | translate }}</label>\n            <input disabled value=\"{{service?.dataAut?.dtAutorizacao | date:'dd/MM/yyyy'}}\" id=\"data\" name=\"data\"\n                class=\"form-control form-control-sm\" type=\"text\">\n        </div>\n    </div>\n</div>\n<div class=\"row\">\n    <div class=\"col-lg-1\">\n        <div class=\"form-group form-group-sm\">\n            <label for=\"motorista\">{{ \"labels.motorista\" | translate }}</label>\n            <input disabled id=\"motorista\" name=\"motorista\" class=\"form-control form-control-sm\" type=\"text\"\n                value=\"{{service?.dataAut?.motorista}}\" />\n        </div>\n    </div>\n    <div class=\"col-lg-2\">\n        <div class=\"form-group form-group-sm\">\n            <label></label>\n            <input disabled id=\"motorista1\" name=\"motorista1\" class=\"form-control form-control-sm\" type=\"text\" \n            value=\"{{service?.dataAut?.cgcCpf}}\" />\n        </div>\n    </div>\n</div>\n<div class=\"row\">\n    <div class=\"col-lg-4\">\n        <div class=\"form-group form-group-sm\">\n            <label for=\"nome\">{{ \"labels.nome\" | translate }}</label>\n            <input disabled value=\"{{service?.dataAut?.nome}}\" id=\"nome\" name=\"nome\"\n                class=\"form-control form-control-sm\" type=\"text\" uppercase />\n        </div>\n    </div>\n    <div class=\"col-lg-2\">\n        <div class=\"form-group form-group-sm\">\n            <label for=\"rg\">{{ \"labels.rg\" | translate }}</label>\n            <input disabled value=\"{{service?.dataAut?.rg}}\" id=\"rg\" name=\"rg\" class=\"form-control form-control-sm\"\n                type=\"text\" uppercase />\n        </div>\n    </div>\n</div>\n<div class=\"row\">\n    <div class=\"col-lg-2\">\n        <div class=\"form-group form-group-sm\">\n            <label for=\"placa0\">{{ \"labels.placa\" | translate }}</label>\n            <input disabled value=\"{{service?.dataAut?.placaCavalo}}\" id=\"placa0\" name=\"placa0\"\n                class=\"form-control form-control-sm\" type=\"text\" uppercase />\n        </div>\n    </div>\n    <div class=\"col-lg-2\">\n        <div class=\"form-group form-group-sm\">\n            <br />\n            <input disabled value=\"{{service?.dataAut?.placaCarreta1}}\" id=\"placa1\" name=\"placa1\"\n                class=\"form-control form-control-sm\" type=\"text\" uppercase />\n        </div>\n    </div>\n    <div class=\"col-lg-2\">\n        <div class=\"form-group form-group-sm\">\n            <br />\n            <input disabled id=\"placa2\" value=\"{{service?.dataAut?.placaCarreta2}}\" name=\"placa2\"\n                class=\"form-control form-control-sm\" type=\"text\" uppercase />\n        </div>\n    </div>\n</div>\n<div class=\"row\">\n    <div class=\"col-lg-2\">\n        <div class=\"form-group form-group-sm\">\n            <label for=\"pesoTaraFob\">{{ \"labels.pesoTaraFob\" | translate }}</label>\n            <input disabled value=\"{{service?.dataAut?.pesoTara | formatCurrency: 0}}\" id=\"pesoTaraFob\"\n                name=\"pesoTaraFob\" class=\"form-control form-control-sm\" type=\"text\" />\n        </div>\n    </div>\n</div>\n<div class=\"row\">\n    <div class=\"col-lg-2\">\n        <div class=\"form-group form-group-sm\">\n            <label for=\"pesoBruFob\">{{ \"labels.pesoBruFob\" | translate }}</label>\n            <input disabled value=\"{{service?.dataAut?.pesoBruto | formatCurrency: 0}}\" id=\"pesoBruFob\"\n                name=\"pesoBruFob\" class=\"form-control form-control-sm\" type=\"text\" />\n        </div>\n    </div>\n</div>\n<div class=\"row\">\n    <div class=\"col-lg-2\">\n        <div class=\"form-group form-group-sm\">\n            <label for=\"pesoLiqFob\">{{ \"labels.pesoLiqFob\" | translate }}</label>\n            <input disabled value=\"{{service?.dataAut?.pesoLiq | formatCurrency: 0}}\" id=\"pesoLiqFob\" name=\"pesoLiqFob\"\n                class=\"form-control form-control-sm\" type=\"text\" />\n        </div>\n    </div>\n</div>\n<div class=\"row\">\n    <div>\n        <div class=\"col-6 mt-2\">\n            <button (click)=\"abrirModelRegPrimeiroPesagem()\" type=\"button\" class=\"btn btn-success fa fa-check\"\n                [disabled]=\"!btn1PesEnabled\">\n                {{ 'buttons.registrar1Pesagem' | translate }}\n            </button>\n        </div>\n    </div>\n    <div>\n        <div class=\"col-6 mt-2\">\n            <button (click)=\"abrirModelRegSegundaPesagem()\" type=\"button\" class=\"btn btn-success fa fa-repeat\"\n                [disabled]=\"!btn2PesEnabled\">\n                {{ 'buttons.registrar2Pesagem' | translate }}\n            </button>\n        </div>\n    </div>\n    <div>\n        <div class=\"col-6 mt-2\">\n            <button (click)=\"autorizacaoCancela1Pes()\" type=\"button\" class=\"btn btn-danger fa fa-times\"\n                [disabled]=\"!btnCan1PesEnabled\">\n                {{ 'buttons.cancelar1Pesagem' | translate }}\n            </button>\n        </div>\n    </div>\n    <div class=\"col-6 mt-2\">\n        <button (click)=\"autorizacaoCancela2Pes()\" type=\"button\" class=\"btn btn-danger fa fa-ban\"\n            [disabled]=\"!btnCan2PesEnabled\">\n            {{ 'buttons.cancelar2Pesagem' | translate }}\n        </button>\n    </div>\n</div>\n\n<div class=\"modal\" id=\"registro-primeira-pesagem-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\n    <div class=\"modal-dialog modal-sm\">\n        <div class=\"modal-content\">\n            <div class=\"modal-header\">\n                <h6 class=\"modal-title\">{{ 'titles.regPrimeiraPesagem' | translate }}</h6>\n            </div>\n            <form class=\"form\" #form=\"ngForm\">\n                <app-validacoes></app-validacoes>\n                <div class=\"modal-body\">\n                    <ng-container *ngIf=\"!!service.dataAut\">\n                        <div class=\"row\">\n                            <div class=\"col-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"pesoTara\">{{'labels.pesoTara'| translate}}</label>\n                                    <input type=\"text\" id=\"pesoTara\" name=\"pesoTara\"\n                                        class=\"form-control form-control-sm\" currencyMask\n                                        [options]=\"funcoesService.optionCurrency(0)\"\n                                        [(ngModel)]=\"service.dataAut.pesoTara\">\n                                </div>\n                            </div>\n                        </div>\n                    </ng-container>\n                </div>\n                <div class=\"modal-footer\">\n                    <button (click)=\"autorizacaoRegistra1Pes()\" class=\"btn btn-success mr-1\" type=\"submit\">{{\n                        'buttons.salvar' | translate }}\n                    </button>\n                    <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">Sair</button>\n                </div>\n            </form>\n        </div>\n    </div>\n</div>\n\n<div class=\"modal\" id=\"registro-segunda-pesagem-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\n    <div class=\"modal-dialog modal-sm\">\n        <div class=\"modal-content\">\n            <div class=\"modal-header\">\n                <h6 class=\"modal-title\">{{ 'titles.regSegundaPesagem' | translate }}</h6>\n            </div>\n            <form class=\"form\" #form=\"ngForm\">\n                <app-validacoes></app-validacoes>\n                <div class=\"modal-body\">\n                    <ng-container *ngIf=\"!!service.dataAut\">\n                        <div class=\"row\">\n                            <div class=\"col-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"pesoTara\">{{'labels.pesoTara'| translate}}</label>\n                                    <input type=\"text\" id=\"pesoTara\" name=\"pesoTara\"\n                                        class=\"form-control form-control-sm\" currencyMask\n                                        [options]=\"funcoesService.optionCurrency(0)\"\n                                        [(ngModel)]=\"service.dataAut.pesoTara\" required=\"true\">\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"pesoBruto\">{{'labels.pesoBruto'| translate}}</label>\n                                    <input type=\"text\" id=\"pesoBruto\" name=\"pesoBruto\"\n                                        class=\"form-control form-control-sm\" currencyMask\n                                        [options]=\"funcoesService.optionCurrency(0)\"\n                                        [(ngModel)]=\"service.dataAut.pesoBruto\" required=\"true\">\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"pesoLiq\">{{'labels.pesoLiquido'| translate}}</label>\n                                    <input type=\"text\" id=\"pesoLiq\" name=\"pesoLiq\" class=\"form-control form-control-sm\"\n                                        [(ngModel)]=\"service.dataAut.pesoLiq\" disabled>\n                                </div>\n                            </div>\n                        </div>\n                    </ng-container>\n                </div>\n                <div class=\"modal-footer\">\n                    <button (click)=\"autorizacaoRegistra2Pes()\" class=\"btn btn-success mr-1\" type=\"submit\">{{\n                        'buttons.salvar' | translate }}\n                    </button>\n                    <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">Sair</button>\n                </div>\n            </form>\n        </div>\n    </div>\n</div>\n<app-transferencia-deposito-autorizacao></app-transferencia-deposito-autorizacao>");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"modal\" id=\"transferencia-deposito-filter-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\n    <div class=\"uni-modal-dialog-md-40\">\n        <div class=\"modal-content\">\n            <div class=\"modal-header\">\n                <h6 class=\"modal-title\">{{ 'titles.transferenciaDeposito' | translate }}</h6>\n            </div>\n            <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\">\n                <app-validacoes></app-validacoes>\n                <div class=\"modal-body\">\n                    <div class=\"row\">\n                        <div class=\"col-lg-6\">\n                            <app-pesquisa-saldo-lote-deposito id=\"depositoOrigemF\" name=\"depositoOrigemF\" [modalTitle]=\"'depositoOrigem'\"\n                                [field]=\"'tanqueId'\" [label]=\"'depositoOrigem'\"\n                                [options]=\"saldoDepositoOrigemOptions\" [(ngModel)]=\"service.filtro.depOrigem\">\n                            </app-pesquisa-saldo-lote-deposito>\n                        </div>\n                        <div class=\"col-lg-6\">\n                            <div class=\"form-group form-group-sm\">\n                                <app-pesquisa-saldo-lote-deposito id=\"depositoDestinoF\" name=\"depositoDestinoF\"\n                                    [label]=\"'depositoDestino'\" [modalTitle]=\"'depositoDestino'\"\n                                    [field]=\"'tanqueId'\" [options]=\"saldoDepositoDestinoOptions\" \n                                    [(ngModel)]=\"service.filtro.depDestino\">\n                                </app-pesquisa-saldo-lote-deposito>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <app-pesquisa-material id=\"material\" name=\"material\" label=\"produto\"\n                                    modalTitle=\"pesquisaDeProduto\"  [(ngModel)]=\"service.filtro.materialId\"\n                                    (outModel)=\"trataMaterial($event)\">\n                                </app-pesquisa-material>\n                            </div>\n                        </div>\n                    </div>\n                     <div class=\"row\">\n                        <div class=\"col-lg-6 col-md-8 col-sm-12\">\n                            <label for=\"selectedItems\">\n                                {{ 'labels.situacao' | translate }}\n                            </label>\n                            <angular2-multiselect id=\"selectedItems\" name=\"selectedItems\" [data]=\"dropdownList\"\n                                [(ngModel)]=\"selectedItems\" [settings]=\"dropdownSettings\"\n                                (onSelect)=\"onItemSelect($event)\" (onDeSelect)=\"onItemDeSelect($event)\"\n                                (onSelectAll)=\"onSelectAll($event)\" (onDeSelectAll)=\"onDeSelectAll($event)\">\n                            </angular2-multiselect>\n                        </div>\n                    </div>\n                </div>\n                <div class=\"modal-footer\">\n                    <button class=\"btn btn-success mr-1\" type=\"submit\">{{ 'buttons.pesquisar' | translate }}\n                    </button>\n                    <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">Sair</button>\n                </div>\n            </form>\n        </div>\n    </div>\n</div>");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<app-menu-command-bar [botoesComando]=\"service.constantes?.listaForm\" [formAction]=\"actionForm\"\n    [sisFormularioId]=\"service.constantes?.sisFormularioId\" [itemData]=\"service?.data?.cliFelProgTransfDepositoId\">\n</app-menu-command-bar>\n\n<div class=\"section-comand-bar\">\n    <app-form-legenda></app-form-legenda>\n    <div class=\"card-body widget-body\">\n        <app-validacoes></app-validacoes>\n        <div class=\"clearfix\">\n            <ul class=\"nav nav-tabs\">\n                <li class=\"nav-item\">\n                    <a class=\"nav-link active show\" data-toggle=\"tab\" href=\"#dados\"\n                        (click)=\"onDadosTabClick()\">{{\"labels.dados\" |\n                        translate\n                        }}</a>\n                </li>\n                <li class=\"nav-item\">\n                    <a class=\"nav-link\" data-toggle=\"tab\" href=\"#motorista\" (click)=\"onMotoristaTabClick()\">{{\n                        \"labels.motorista\" | translate\n                        }}</a>\n                </li>\n                <li class=\"nav-item\">\n                    <a class=\"nav-link\" (click)=\"compAutorizacao.load(); onAutorizacaoTabClick()\" data-toggle=\"tab\"\n                        href=\"#autorizacao\">{{\n                        \"labels.autorizacao\" | translate\n                        }}</a>\n                </li>\n                <li class=\"nav-item\">\n                    <a class=\"nav-link\" data-toggle=\"tab\" href=\"#detalhes\"\n                        (click)=\"onLoadDetalhe(); onDetalhesTabClick()\">{{\n                        \"labels.detalhes\" | translate\n                        }}</a>\n                </li>\n            </ul>\n        </div>\n        <div class=\"tab-content top\">\n            <!-- ABA DADOS -->\n            <div class=\"tab-pane active show\" id=\"dados\">\n                <form class=\"form\" #f=\"ngForm\" (ngSubmit)=\"onSubmit(f)\">\n                    <div class=\"form-group form-group-sm\">\n                        <div class=\"row\">\n                            <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                                <app-pesquisa-saldo-lote-deposito id=\"depositoOrigem\" name=\"depositoOrigem\"\n                                    [modalTitle]=\"'depositoOrigem'\" [field]=\"'tanqueId'\" [label]=\"'depositoOrigem'\"\n                                    [options]=\"saldoDepositoOrigemOptions\" [(ngModel)]=\"service.data.depOrigem\"\n                                    required=\"true\"\n                                    [disabled]=\"funcoesService.isDetail(actionForm) || isEditingMotorista\">\n                                </app-pesquisa-saldo-lote-deposito>\n                            </div>\n                            <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <app-pesquisa-saldo-lote-deposito id=\"depositoDestino\" name=\"depositoDestino\"\n                                        [label]=\"'depositoDestino'\" [modalTitle]=\"'depositoDestino'\"\n                                        [field]=\"'tanqueId'\" [options]=\"saldoDepositoDestinoOptions\"\n                                        [(ngModel)]=\"service.data.depDestino\" required=\"true\"\n                                        [disabled]=\"funcoesService.isDetail(actionForm) || isEditingMotorista\">\n                                    </app-pesquisa-saldo-lote-deposito>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-6 col-sm-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <app-pesquisa-material id=\"material\" name=\"material\" label=\"produto\" required=\"true\"\n                                        modalTitle=\"pesquisaDeProduto\" [(ngModel)]=\"service.data.materialId\"\n                                        (outModel)=\"trataMaterial($event)\" [inSelected]=\"service.data.material\"\n                                        [disabled]=\"funcoesService.isDetail(actionForm)|| isEditingMotorista\">\n                                    </app-pesquisa-material>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"qtdTransferido\">{{ 'labels.totTransferido' | translate }}</label>\n                                    <input id=\"qtdTransferido\" name=\"qtdTransferido\"\n                                        [(ngModel)]=\"service.data.qtdTransferido\" currencyMask\n                                        [options]=\"funcoesService.optionCurrency(0)\"\n                                        class=\"form-control form-control-sm\" type=\"text\" disabled>\n                                </div>\n                            </div>\n                        </div>\n                    </div>\n                </form>\n            </div>\n            <div class=\"tab-pane\" id=\"motorista\">\n                <app-transferencia-deposito-motorista></app-transferencia-deposito-motorista>\n            </div>\n            <div class=\"tab-pane\" id=\"autorizacao\">\n                <app-transferencia-deposito-autorizacao></app-transferencia-deposito-autorizacao>\n            </div>\n            <div class=\"tab-pane\" id=\"detalhes\">\n                <app-transferencia-deposito-detalhes></app-transferencia-deposito-detalhes>\n            </div>\n            <ng-container *ngIf=\"service.showSave\">\n                <div class=\"row mt-1\">\n                    <div class=\"col-6\">\n                        <button (click)=\"onSubmit(f)\" type=\"button\" class=\"btn btn-success\"\n                            [disabled]=\"funcoesService.isDetail(actionForm)\">\n                            {{ 'buttons.salvar' | translate }}\n                        </button>\n                    </div>\n                </div>\n            </ng-container>\n        </div>\n    </div>\n</div>\n\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\n<app-transferecia-deposito-conclusao-print-modal\n    (outConfirma)=\"onPrint($event)\"></app-transferecia-deposito-conclusao-print-modal>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferencia-deposito-index/transferencia-deposito-index.component.html":
/*!***********************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferencia-deposito-index/transferencia-deposito-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]=\"service.constantes?.listaIndex\" [formAction]=\"actionForm\"\n    [sisFormularioId]=\"service.constantes?.sisFormularioId\" [itemData]=\"data?.cliFelProgTransfDepositoId\">\n</app-menu-command-bar>\n\n<div class=\"section-comand-bar\">\n    <table id=\"dtTransferenciaDeposito\" class=\"table table-striped table-bordered table-hover nowrap table-sm\">\n    </table>\n</div>\n\n<app-propriedades></app-propriedades>\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\n<app-transferencia-deposito-filter (filtrar)=\"getByDados()\"></app-transferencia-deposito-filter>\n<app-transferecia-deposito-conclusao-prog (blur)=\"refresh()\"></app-transferecia-deposito-conclusao-prog>");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<ng-container *ngIf=\"!showAdd else formMot\">\n    <div class=\"row\">\n        <div class=\"col-md-12 col-lg-12\">\n            <button title=\"{{ 'buttons.novo' | translate }}\" class=\"btn btn-sm uni-btn\" (click)=\"create()\"\n                [disabled]=\"service.isDetail\">\n                <i class=\"icon icon-plus\"></i>\n            </button>\n            <button title=\"{{ 'buttons.visualizar' | translate }}\" (click)=\"detail()\" class=\"btn btn-sm uni-btn\"\n                [disabled]=\"funcoesService.showButtons.detail(actionForm,  data?.motoristaId)\">\n                <i class=\"icon icon-eye\"></i>\n            </button>\n            <button title=\"{{ 'buttons.editar' | translate }}\" class=\"btn btn-sm uni-btn\" (click)=\"edit()\"\n                [disabled]=\"service.isDetail || funcoesService.showButtons.detail(actionForm,  data?.motoristaId)\">\n                <i class=\"icon icon-pencil\"></i>\n            </button>\n            <button title=\"{{ 'buttons.excluir' | translate }}\" class=\"btn btn-sm uni-btn\" (click)=\"remove()\"\n                [disabled]=\"service.isDetail || funcoesService.showButtons.detail(actionForm,  data?.motoristaId)\">\n                <i class=\"icon icon-trash\"></i>\n            </button>\n        </div>\n    </div>\n\n    <div class=\"row\">\n        <div class=\"col-md-12 col-lg-12 table-responsive\">\n            <table class=\"table table-striped table-hover\">\n                <thead>\n                    <tr>\n                        <th>{{ 'labels.cpf' | translate }}</th>\n                        <th>{{ 'labels.motorista' | translate }}</th>\n                        <th>{{ 'labels.placa' | translate }}</th>\n                        <th>{{ 'labels.situacao' | translate }}</th>\n                    </tr>\n                </thead>\n                <tbody>\n                    <tr *ngFor=\"let c of service.data?.motoristas | removeExcluidos\" class=\"clickable\"\n                        [ngClass]=\"{ 'info' : c?.motoristaId === data?.motoristaId }\" (click)=\"selected(c)\">\n                        <td style=\"width: 15%;\">{{c.motorista.cgcCpf}}</td>\n                        <td>{{c.motorista.nome}}</td>\n                        <td style=\"width: 10%;\">{{c.placa}}</td>\n                        <td style=\"width: 15%;\">{{c.situacao}}</td>\n                    </tr>\n                    <tr *ngIf=\"!hasDados\">\n                        <th colspan=\"4\">\n                            {{'messages.nenhumRegistroEncontrado' | translate }}\n                        </th>\n                    </tr>\n                </tbody>\n            </table>\n        </div>\n    </div>\n</ng-container>\n\n<ng-template #formMot>\n    <div class=\"row\">\n        <div class=\"col-md-12 col-lg-12\">\n            <button title=\"{{ 'buttons.editar' | translate }}\" class=\"btn btn-sm uni-btn\" (click)=\"edit()\"\n                [disabled]=\"service.isDetail || funcoesService.showButtons.edit(actionForm,  dataAux?.motoristaId)\">\n                <i class=\"icon icon-pencil\"></i>\n            </button>\n            <button title=\"{{ 'buttons.voltar' | translate }}\" (click)=\"back()\" type=\"button\"\n                class=\"btn btn-sm uni-btn\">\n                <i class=\"icon icon-arrow-left\"></i>\n            </button>\n        </div>\n    </div>\n\n    <form class=\"form\" #f=\"ngForm\" (ngSubmit)=\"onSubmit(f)\">\n        <div class=\"row\">\n            <div class=\"col-lg-9 col-sm-12\">\n                <div class=\"form-group form-group-sm\">\n                    <app-pesquisa-motorista [disabled]=\"isDetail\" id=\"motoristaId\" name=\"motoristaId\" label=\"motorista\"\n                        modalTitle=\"pesquisaMotorista\" [inputMotorista]=\"data.motorista\" required=\"true\"\n                        (outMotorista)=\"trataMotorista($event)\" [(ngModel)]=\"data.motoristaId\" [showCpf]=\"true\"\n                        showCursos=\"false\" showDocumentos=\"false\">\n                    </app-pesquisa-motorista>\n                </div>\n            </div>\n        </div>\n        <div class=\"row\">\n            <div class=\"col-lg-3 col-md-4 col-sm-12\">\n                <div class=\"form-group form-group-sm\">\n                    <label for=\"rg\">{{ \"labels.rg\" | translate }}</label>\n                    <input disabled value=\"{{data?.motorista?.rg}}\" id=\"rg\" name=\"rg\"\n                        class=\"form-control form-control-sm\" type=\"text\" uppercase />\n                </div>\n            </div>\n            <div class=\"col-lg-3 col-md-4 col-sm-12\">\n                <div class=\"form-group form-group-sm\">\n                    <label for=\"cnh\">{{ \"labels.cnh\" | translate }}</label>\n                    <input disabled id=\"cnh\" value=\"{{data?.motorista?.cnh}}\" name=\"cnh\"\n                        class=\"form-control form-control-sm\" type=\"text\" uppercase />\n                </div>\n            </div>\n            <div class=\"col-lg-3 col-md-4 col-sm-12\">\n                <div class=\"form-group form-group-sm\">\n                    <label for=\"validade\">{{ \"labels.validade\" | translate }}</label>\n                    <input id=\"validade\" disabled name=\"validade\" class=\"form-control form-control-sm\"\n                        value=\"{{data?.motorista?.cnhValidade | date:'dd/MM/yyyy'}}\">\n                </div>\n            </div>\n        </div>\n        <div class=\"row\">\n            <div class=\"col-lg-3\">\n                <div class=\"form-group form-group-sm\">\n                    <label for=\"placa\">{{ \"labels.placa\" | translate }}</label>\n                    <input [disabled]=\"isDetail\" id=\"placa\" [(ngModel)]=\"data.placa\" name=\"placa\"\n                        class=\"form-control form-control-sm\" type=\"text\" required=\"true\" uppercase />\n                </div>\n            </div>\n        </div>\n        <ng-container *ngIf=\"!service.showSave\">\n            <div class=\"row mt-1\">\n                <div class=\"col-md-12 col-lg-12\">\n                    <button class=\"btn btn-success\" type=\"submit\" [disabled]=\"isDetail\">\n                        {{ 'buttons.salvar' | translate }}\n                    </button>\n                </div>\n            </div>\n        </ng-container>\n    </form>\n</ng-template>");

/***/ }),

/***/ "./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferecia-deposito-conclusao-print-modal/transferecia-deposito-conclusao-print-modal.component.ts":
/*!*************************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferecia-deposito-conclusao-print-modal/transferecia-deposito-conclusao-print-modal.component.ts ***!
  \*************************************************************************************************************************************************************************************/
/*! exports provided: TransfereciaDepositoConclusaoPrintModalComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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



var TransfereciaDepositoConclusaoPrintModalComponent = /** @class */ (function () {
    function TransfereciaDepositoConclusaoPrintModalComponent() {
        this.outConfirma = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
    }
    TransfereciaDepositoConclusaoPrintModalComponent.prototype.open = function () {
        this.tipoSelecionado = "";
        this.initListaTiposImpressao();
        app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_2__["ModalUtilsStaticService"].openModal("modalPrint");
    };
    TransfereciaDepositoConclusaoPrintModalComponent.prototype.initListaTiposImpressao = function () {
        this.tiposImpressao = [
            { value: "autorizacaoDeOperacao", label: "labels.autorizacaoOp" },
            { value: "impressaoDeTicket", label: "labels.impressaoTicke" }
        ];
    };
    TransfereciaDepositoConclusaoPrintModalComponent.prototype.onSubmit = function (form) {
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_1__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid)
            return;
        app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_2__["ModalUtilsStaticService"].closeModal("modalPrint");
        this.outConfirma.emit(this.tipoSelecionado);
    };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], TransfereciaDepositoConclusaoPrintModalComponent.prototype, "outConfirma", void 0);
    TransfereciaDepositoConclusaoPrintModalComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-transferecia-deposito-conclusao-print-modal",
            template: __importDefault(__webpack_require__(/*! raw-loader!./transferecia-deposito-conclusao-print-modal.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferecia-deposito-conclusao-print-modal/transferecia-deposito-conclusao-print-modal.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        })
    ], TransfereciaDepositoConclusaoPrintModalComponent);
    return TransfereciaDepositoConclusaoPrintModalComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferecia-deposito-conclusao-prog/transferecia-deposito-conclusao-prog.component.scss":
/*!*************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferecia-deposito-conclusao-prog/transferecia-deposito-conclusao-prog.component.scss ***!
  \*************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = (".chk input {\n  display: none;\n}\n\n.chk span {\n  width: 12px;\n  height: 12px;\n  display: block;\n  background-color: #fff;\n  border: 1px solid #DDD;\n  border-radius: 100%;\n}\n\nspan.red {\n  background-color: #c03;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvcGFnZXMvZXNwZWNpZmljb3MvcG9udGFmZWxpeC9tb3ZpbWVudG9zL3RyYW5zZmVyZW5jaWEtZGVwb3NpdG8vdHJhbnNmZXJlY2lhLWRlcG9zaXRvLWNvbmNsdXNhby1wcm9nL0M6XFxDb3Jwb3JhdGVcXENvcnBvcmF0ZVdlYkRlc2VudlxcX3VuaXNvbHV0aW9uL3NyY1xcYXBwXFxwYWdlc1xcZXNwZWNpZmljb3NcXHBvbnRhZmVsaXhcXG1vdmltZW50b3NcXHRyYW5zZmVyZW5jaWEtZGVwb3NpdG9cXHRyYW5zZmVyZWNpYS1kZXBvc2l0by1jb25jbHVzYW8tcHJvZ1xcdHJhbnNmZXJlY2lhLWRlcG9zaXRvLWNvbmNsdXNhby1wcm9nLmNvbXBvbmVudC5zY3NzIiwic3JjL2FwcC9wYWdlcy9lc3BlY2lmaWNvcy9wb250YWZlbGl4L21vdmltZW50b3MvdHJhbnNmZXJlbmNpYS1kZXBvc2l0by90cmFuc2ZlcmVjaWEtZGVwb3NpdG8tY29uY2x1c2FvLXByb2cvdHJhbnNmZXJlY2lhLWRlcG9zaXRvLWNvbmNsdXNhby1wcm9nLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0ksYUFBQTtBQ0NKOztBREVBO0VBQ0ksV0FBQTtFQUNBLFlBQUE7RUFDQSxjQUFBO0VBQ0Esc0JBQUE7RUFDQSxzQkFBQTtFQUNBLG1CQUFBO0FDQ0o7O0FERUE7RUFDSSxzQkFBQTtBQ0NKIiwiZmlsZSI6InNyYy9hcHAvcGFnZXMvZXNwZWNpZmljb3MvcG9udGFmZWxpeC9tb3ZpbWVudG9zL3RyYW5zZmVyZW5jaWEtZGVwb3NpdG8vdHJhbnNmZXJlY2lhLWRlcG9zaXRvLWNvbmNsdXNhby1wcm9nL3RyYW5zZmVyZWNpYS1kZXBvc2l0by1jb25jbHVzYW8tcHJvZy5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5jaGsgaW5wdXQge1xyXG4gICAgZGlzcGxheTogbm9uZTtcclxufVxyXG5cclxuLmNoayBzcGFuIHtcclxuICAgIHdpZHRoOiAxMnB4O1xyXG4gICAgaGVpZ2h0OiAxMnB4O1xyXG4gICAgZGlzcGxheTogYmxvY2s7XHJcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjZmZmO1xyXG4gICAgYm9yZGVyOiAxcHggc29saWQgI0RERDtcclxuICAgIGJvcmRlci1yYWRpdXM6IDEwMCU7XHJcbiAgfVxyXG5cclxuc3Bhbi5yZWQge1xyXG4gICAgYmFja2dyb3VuZC1jb2xvcjogI2MwMztcclxufVxyXG5cclxuXHJcbiIsIi5jaGsgaW5wdXQge1xuICBkaXNwbGF5OiBub25lO1xufVxuXG4uY2hrIHNwYW4ge1xuICB3aWR0aDogMTJweDtcbiAgaGVpZ2h0OiAxMnB4O1xuICBkaXNwbGF5OiBibG9jaztcbiAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZjtcbiAgYm9yZGVyOiAxcHggc29saWQgI0RERDtcbiAgYm9yZGVyLXJhZGl1czogMTAwJTtcbn1cblxuc3Bhbi5yZWQge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjYzAzO1xufSJdfQ== */");

/***/ }),

/***/ "./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferecia-deposito-conclusao-prog/transferecia-deposito-conclusao-prog.component.ts":
/*!***********************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferecia-deposito-conclusao-prog/transferecia-deposito-conclusao-prog.component.ts ***!
  \***********************************************************************************************************************************************************************/
/*! exports provided: transfereciaDepositoConclusaoProgComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "transfereciaDepositoConclusaoProgComponent", function() { return transfereciaDepositoConclusaoProgComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_pages_cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/pages/cadastro/material/material.service */ "./src/app/pages/cadastro/material/material.service.ts");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_7__ = __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_email_email_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/shared/services/funcoes/email/email.service */ "./src/app/shared/services/funcoes/email/email.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_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! app/shared/services/funcoes/modal-utils/modal-utils.static.service */ "./src/app/shared/services/funcoes/modal-utils/modal-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js");
/* harmony import */ var _transferencia_deposito_constants__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../transferencia-deposito.constants */ "./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferencia-deposito.constants.ts");
/* harmony import */ var _transferencia_deposito_service__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../transferencia-deposito.service */ "./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferencia-deposito.service.ts");
/* harmony import */ var app_shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! app/shared/services/funcoes/boolean-utils/boolean-utils.static.service */ "./src/app/shared/services/funcoes/boolean-utils/boolean-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! app/shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-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 transfereciaDepositoConclusaoProgComponent = /** @class */ (function (_super) {
    __extends(transfereciaDepositoConclusaoProgComponent, _super);
    function transfereciaDepositoConclusaoProgComponent(router, activatedRoute, datatablesService, messageService, emailService, funcoesService, permissoesUtils, loginService, service, materialSevice) {
        var _this = _super.call(this, new _transferencia_deposito_constants__WEBPACK_IMPORTED_MODULE_14__["TransferenciaDepositoConstants"](), funcoesService) || this;
        _this.router = router;
        _this.activatedRoute = activatedRoute;
        _this.datatablesService = datatablesService;
        _this.messageService = messageService;
        _this.emailService = emailService;
        _this.funcoesService = funcoesService;
        _this.permissoesUtils = permissoesUtils;
        _this.loginService = loginService;
        _this.service = service;
        _this.materialSevice = materialSevice;
        _this.blur = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        _this.vlDiferenca = 0;
        _this.vlDistribuido = 0;
        return _this;
    }
    transfereciaDepositoConclusaoProgComponent.prototype.ngOnInit = function () { };
    transfereciaDepositoConclusaoProgComponent.prototype.open = function (data) {
        var _this = this;
        this.vlDiferenca = 0;
        this.vlDistribuido = 0;
        this.cliFelProgTransfDepositoId = data.cliFelProgTransfDepositoId;
        Object(rxjs__WEBPACK_IMPORTED_MODULE_13__["forkJoin"])([
            this.service.getById(data.cliFelProgTransfDepositoId),
            this.materialSevice.getById(data.materialId),
            this.service.conclusaoDados(data.cliFelProgTransfDepositoId),
        ]).subscribe(function (resp) {
            _this.service.data = resp[0];
            _this.service.data.material;
            _this.data = resp[2];
            if (!_this.data.validationResult.isValid) {
                var mensagens = _this.messageService.validationResult(_this.data.validationResult);
                mensagens.forEach(function (m) { return _this.messageService.warning(_this.service.title, m); });
                return;
            }
            _this.vlDiferenca = _this.service.data.qtdTransferido;
            app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_6__["EventEmitterService"].get("formDadosConcl").emit(null);
            app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["ModalUtilsStaticService"].openModal("transferecia-deposito-conclusao-prog");
        });
    };
    transfereciaDepositoConclusaoProgComponent.prototype.onSubmit = function (form) {
        var _this = this;
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_6__["EventEmitterService"].get("formDadosConcl").emit(form);
        if (form.invalid) {
            return;
        }
        var dadosSelecionados = this.data.dados.filter(function (d) { return app_shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_16__["BooleanUtilsStaticService"].toBoolean(d.transferir); });
        if (dadosSelecionados.length === 0) {
            this.messageService.warning(this.service.title, "messages.nenhumRegistroFoiSelecionado");
            return;
        }
        if (app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_17__["NumberUtilsStaticService"].isPositive(this.vlDiferenca)) {
            this.messageService.warning(this.service.title, "messages.existDiferecaTrans");
            return;
        }
        this.service.conclusaoGrava(dadosSelecionados).subscribe(function (result) {
            if (!result.isValid) {
                var mensagens = _this.messageService.validationResult(result);
                app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_6__["EventEmitterService"].get("backError").emit(mensagens);
            }
            else {
                _this.messageService.saveSuccess(_this.service.title);
                _this.back();
            }
        });
    };
    transfereciaDepositoConclusaoProgComponent.prototype._dbClick = function (item, index) {
        this.item = item;
        if (!app_shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_16__["BooleanUtilsStaticService"].toBoolean(this.item.transferir) && app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_17__["NumberUtilsStaticService"].toNumber(this.vlDiferenca) <= 0) {
            this.messageService.warning(this.service.title, 'messages.totalTransferidoJaDistribuido');
            return;
        }
        item.transferir = item.transferir === 'S' ? 'N' : 'S';
        if (!app_shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_16__["BooleanUtilsStaticService"].toBoolean(this.item.transferir)) {
            this.item.kilos = 0;
        }
        else {
            if ((app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_17__["NumberUtilsStaticService"].toNumber(item.qtdDistribuido) + app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_17__["NumberUtilsStaticService"].toNumber(this.vlDistribuido)) <= app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_17__["NumberUtilsStaticService"].toNumber(this.service.data.qtdTransferido)) {
                this.item.kilos = item.qtdDistribuido;
            }
            else {
                this.item.kilos = (this.service.data.qtdTransferido - this.vlDistribuido);
            }
        }
        this.data.dados[index] = this.item;
        this.vlDistribuido = this.data.dados.reduce(function (a, b) { return a + (app_shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_16__["BooleanUtilsStaticService"].toBoolean(b.transferir) ? b.kilos : 0); }, 0);
        this.vlDiferenca = (this.service.data.qtdTransferido - this.vlDistribuido);
    };
    transfereciaDepositoConclusaoProgComponent.prototype.back = function () {
        app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["ModalUtilsStaticService"].closeModal("transferecia-deposito-conclusao-prog");
        this.blur.emit(true);
    };
    Object.defineProperty(transfereciaDepositoConclusaoProgComponent.prototype, "hasDados", {
        get: function () {
            if (!this.data)
                return false;
            return this.data.validationResult.isValid && app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["ArrayUtilsStaticService"].any(this.data.dados);
        },
        enumerable: true,
        configurable: true
    });
    transfereciaDepositoConclusaoProgComponent.prototype.desfazer = function () {
        var _this = this;
        this.messageService.confirm(this.service.title, "messages.desejaCancelarConclusaoTransf", null, function () {
            _this.cancelaConclusao();
        });
    };
    transfereciaDepositoConclusaoProgComponent.prototype.cancelaConclusao = function () {
        return __awaiter(this, void 0, void 0, function () {
            var validationResult, mensagens;
            var _this = this;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0: return [4 /*yield*/, this.service.cancelaConclusao({ cliFelProgTransfDepositoId: this.cliFelProgTransfDepositoId }).toPromise()];
                    case 1:
                        validationResult = _a.sent();
                        if (!validationResult.isValid) {
                            mensagens = this.messageService.validationResult(validationResult);
                            mensagens.forEach(function (m) { return _this.messageService.warning("titles.emissaoNFSe", m); });
                            return [2 /*return*/];
                        }
                        else {
                            this.back();
                        }
                        return [2 /*return*/];
                }
            });
        });
    };
    transfereciaDepositoConclusaoProgComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] },
        { type: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_5__["DatatablesService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_12__["MessageService"] },
        { type: app_shared_services_funcoes_email_email_service__WEBPACK_IMPORTED_MODULE_8__["EmailService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_9__["FuncoesService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_11__["PermissoesUtilsService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_3__["LoginService"] },
        { type: _transferencia_deposito_service__WEBPACK_IMPORTED_MODULE_15__["TransferenciaDepositoService"] },
        { type: app_pages_cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_2__["MaterialService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], transfereciaDepositoConclusaoProgComponent.prototype, "blur", void 0);
    transfereciaDepositoConclusaoProgComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-transferecia-deposito-conclusao-prog",
            template: __importDefault(__webpack_require__(/*! raw-loader!./transferecia-deposito-conclusao-prog.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferecia-deposito-conclusao-prog/transferecia-deposito-conclusao-prog.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./transferecia-deposito-conclusao-prog.component.scss */ "./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferecia-deposito-conclusao-prog/transferecia-deposito-conclusao-prog.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"],
            app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_5__["DatatablesService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_12__["MessageService"],
            app_shared_services_funcoes_email_email_service__WEBPACK_IMPORTED_MODULE_8__["EmailService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_9__["FuncoesService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_11__["PermissoesUtilsService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_3__["LoginService"],
            _transferencia_deposito_service__WEBPACK_IMPORTED_MODULE_15__["TransferenciaDepositoService"],
            app_pages_cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_2__["MaterialService"]])
    ], transfereciaDepositoConclusaoProgComponent);
    return transfereciaDepositoConclusaoProgComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_4__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferencia-deposito-autorizacao/transferencia-deposito-autorizacao.component.ts":
/*!*******************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferencia-deposito-autorizacao/transferencia-deposito-autorizacao.component.ts ***!
  \*******************************************************************************************************************************************************************/
/*! exports provided: TransferenciaDepositoAutorizacaoComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransferenciaDepositoAutorizacaoComponent", function() { return TransferenciaDepositoAutorizacaoComponent; });
/* 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_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _transferencia_deposito_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../transferencia-deposito.service */ "./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferencia-deposito.service.ts");
/* harmony import */ var app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/funcoes/modal-utils/modal-utils.static.service */ "./src/app/shared/services/funcoes/modal-utils/modal-utils.static.service.ts");
/* harmony import */ var app_pages_cadastro_motorista_motorista_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/pages/cadastro/motorista/motorista.service */ "./src/app/pages/cadastro/motorista/motorista.service.ts");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var app_shared_services_funcoes_object_utils_object_utils_static_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/services/funcoes/object-utils/object-utils.static.service */ "./src/app/shared/services/funcoes/object-utils/object-utils.static.service.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};








var TransferenciaDepositoAutorizacaoComponent = /** @class */ (function () {
    function TransferenciaDepositoAutorizacaoComponent(service, messageService, datatablesService, motoristaService) {
        this.service = service;
        this.messageService = messageService;
        this.datatablesService = datatablesService;
        this.motoristaService = motoristaService;
    }
    TransferenciaDepositoAutorizacaoComponent.prototype.load = function () {
        var _this = this;
        var columns = [
            this.datatablesService.getDataString("autorizacao", "autorizacao", "10%"),
            this.datatablesService.getDataDateTime("dtAutorizacao", "dtAutorizacao", "DD/MM/YYYY", "10%"),
            this.datatablesService.getDataString("nome", "motorista"),
            this.datatablesService.getDataString("placaCavalo", "placaCavalo", "10%"),
            this.datatablesService.getDataDouble("pesoTara", "pesoTara", 0, false, "10%"),
            this.datatablesService.getDataDouble("pesoBruto", "pesoBruto", 0, false, "10%"),
            this.datatablesService.getDataDouble("pesoLiq", "pesoLiq", 0, false, "10%")
        ];
        this.datatablesService.toDataTable({ tableId: "tbTransferenciaDepositoAut", columns: columns, data: this.service.data.autorizacaos }, function (aData) {
            _this.service.dataAut = app_shared_services_funcoes_object_utils_object_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["ObjectUtilsStaticService"].clone(aData);
        });
    };
    TransferenciaDepositoAutorizacaoComponent.prototype.open = function () {
        var _this = this;
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_6__["EventEmitterService"].get("formErrorIdAut").emit(null);
        this.dataAux = app_shared_services_funcoes_object_utils_object_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["ObjectUtilsStaticService"].clone(this.service.dataAut);
        if (!this.dataAux || !this.dataAux.autorizacao) {
            this.messageService.warning(this.service.title, "messages.selecioneAutorizacao");
            return;
        }
        this.motoristaService.getMotoristaId(this.dataAux.motorista).subscribe(function (resp) {
            _this.dataAux.inpMotorista = resp;
            app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_4__["ModalUtilsStaticService"].openModal("alteracao-dados-motorista-dialog");
        });
    };
    TransferenciaDepositoAutorizacaoComponent.prototype.back = function () {
        app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_4__["ModalUtilsStaticService"].closeModal("alteracao-dados-motorista-dialog");
    };
    TransferenciaDepositoAutorizacaoComponent.prototype.onSubmit = function (form) {
        var _this = this;
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_6__["EventEmitterService"].get("formErrorIdAut").emit(form);
        if (form.invalid) {
            return;
        }
        this.service.motoristaGrava(this.dataAux).subscribe(function (result) {
            if (!result.isValid) {
                var mensagens = _this.messageService.validationResult(result);
                mensagens.forEach(function (m) { return _this.messageService.warning(_this.service.title, m); });
                return;
            }
            var idx = _this.service.data.autorizacaos.findIndex(function (c) { return c.autorizacao === _this.dataAux.autorizacao; });
            _this.service.data.autorizacaos[idx].motorista = _this.dataAux.motorista;
            _this.service.data.autorizacaos[idx].placaCavalo = _this.dataAux.placaCavalo;
            _this.service.data.autorizacaos[idx].nome = _this.dataAux.inpMotorista.nome;
            _this.load();
            _this.messageService.saveSuccess(_this.service.title);
            _this.back();
        });
    };
    TransferenciaDepositoAutorizacaoComponent.prototype.trataMotorista = function (motorista) {
        this.dataAux.inpMotorista = motorista;
    };
    TransferenciaDepositoAutorizacaoComponent.ctorParameters = function () { return [
        { type: _transferencia_deposito_service__WEBPACK_IMPORTED_MODULE_3__["TransferenciaDepositoService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"] },
        { type: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_1__["DatatablesService"] },
        { type: app_pages_cadastro_motorista_motorista_service__WEBPACK_IMPORTED_MODULE_5__["MotoristaService"] }
    ]; };
    TransferenciaDepositoAutorizacaoComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-transferencia-deposito-autorizacao",
            template: __importDefault(__webpack_require__(/*! raw-loader!./transferencia-deposito-autorizacao.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferencia-deposito-autorizacao/transferencia-deposito-autorizacao.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_transferencia_deposito_service__WEBPACK_IMPORTED_MODULE_3__["TransferenciaDepositoService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"],
            app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_1__["DatatablesService"],
            app_pages_cadastro_motorista_motorista_service__WEBPACK_IMPORTED_MODULE_5__["MotoristaService"]])
    ], TransferenciaDepositoAutorizacaoComponent);
    return TransferenciaDepositoAutorizacaoComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferencia-deposito-dados/transferencia-deposito-dados.component.ts":
/*!*******************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferencia-deposito-dados/transferencia-deposito-dados.component.ts ***!
  \*******************************************************************************************************************************************************/
/*! exports provided: TransferenciaDepositoDadosComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransferenciaDepositoDadosComponent", function() { return TransferenciaDepositoDadosComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _transferencia_deposito_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../transferencia-deposito.constants */ "./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferencia-deposito.constants.ts");
/* harmony import */ var _transferencia_deposito_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../transferencia-deposito.service */ "./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferencia-deposito.service.ts");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__ = __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_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
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 TransferenciaDepositoDadosComponent = /** @class */ (function (_super) {
    __extends(TransferenciaDepositoDadosComponent, _super);
    function TransferenciaDepositoDadosComponent(router, activatedRoute, messageService, funcoesService, permissoesUtils, loginService, transferenciaDepositoService) {
        var _this = _super.call(this, new _transferencia_deposito_constants__WEBPACK_IMPORTED_MODULE_4__["TransferenciaDepositoConstants"](), funcoesService) || this;
        _this.router = router;
        _this.activatedRoute = activatedRoute;
        _this.messageService = messageService;
        _this.funcoesService = funcoesService;
        _this.permissoesUtils = permissoesUtils;
        _this.loginService = loginService;
        _this.transferenciaDepositoService = transferenciaDepositoService;
        _this.constantes = new _transferencia_deposito_constants__WEBPACK_IMPORTED_MODULE_4__["TransferenciaDepositoConstants"]();
        _this.target = _this.funcoesService.getTargetLocation();
        _this.showAdd = false;
        _this.pageRoute = "/especificos/pontafelix/movimentos/transferenciaDeposito";
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    TransferenciaDepositoDadosComponent.prototype.onSubmit = function (form, create) {
        if (create === void 0) { create = false; }
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_9__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        if (this.validacaoDeposito()) {
            this.messageService.warning("titles.transferenciaDeposito", 'messages.igualDepOriDepdest');
            return;
        }
    };
    TransferenciaDepositoDadosComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 7, function () {
            if (!_this.loginService.isTokenExpired()) {
                if (_this.funcoesService.abrirFiltro) {
                    _this.filtrar();
                }
                else {
                    _this.refresh();
                }
            }
        }, function () {
            _this.permissoesUtils.back();
        }, true);
    };
    Object.defineProperty(TransferenciaDepositoDadosComponent.prototype, "saldoDepositoDestinoOptions", {
        get: function () {
            return {
                modo: 7,
                tipoSaldo: 7,
                dataMovimento: new Date(),
                tipoAgrupa: 'D',
                geraArquivo: 'N',
                planejTanque: false
            };
        },
        enumerable: true,
        configurable: true
    });
    TransferenciaDepositoDadosComponent.prototype.validacaoDeposito = function () {
        var depOrigem = this.transferenciaDepositoService.filtro.depOrigem;
        var depDestino = this.transferenciaDepositoService.filtro.depDestino;
        if (depOrigem !== '' && depDestino !== '' && depOrigem === depDestino) {
            return true;
        }
        return false;
    };
    TransferenciaDepositoDadosComponent.prototype.trataMaterial = function (material) {
        this.transferenciaDepositoService.data.material = material;
    };
    TransferenciaDepositoDadosComponent.prototype.back = function () {
        this.router.navigate(["" + this.target + this.pageRoute]);
    };
    TransferenciaDepositoDadosComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 7, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    TransferenciaDepositoDadosComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_6__["LoginService"] },
        { type: _transferencia_deposito_service__WEBPACK_IMPORTED_MODULE_5__["TransferenciaDepositoService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Object)
    ], TransferenciaDepositoDadosComponent.prototype, "disabled", void 0);
    TransferenciaDepositoDadosComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-transferencia-deposito-dados",
            template: __importDefault(__webpack_require__(/*! raw-loader!./transferencia-deposito-dados.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferencia-deposito-dados/transferencia-deposito-dados.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_6__["LoginService"],
            _transferencia_deposito_service__WEBPACK_IMPORTED_MODULE_5__["TransferenciaDepositoService"]])
    ], TransferenciaDepositoDadosComponent);
    return TransferenciaDepositoDadosComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_8__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferencia-deposito-detalhes/transferencia-deposito-detalhes.component.ts":
/*!*************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferencia-deposito-detalhes/transferencia-deposito-detalhes.component.ts ***!
  \*************************************************************************************************************************************************************/
/*! exports provided: TransferenciaDepositoDetalhesComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransferenciaDepositoDetalhesComponent", function() { return TransferenciaDepositoDetalhesComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/funcoes/modal-utils/modal-utils.static.service */ "./src/app/shared/services/funcoes/modal-utils/modal-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _transferencia_deposito_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../transferencia-deposito.service */ "./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferencia-deposito.service.ts");
/* harmony import */ var _transferencia_deposito_autorizacao_transferencia_deposito_autorizacao_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../transferencia-deposito-autorizacao/transferencia-deposito-autorizacao.component */ "./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferencia-deposito-autorizacao/transferencia-deposito-autorizacao.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 __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 TransferenciaDepositoDetalhesComponent = /** @class */ (function () {
    function TransferenciaDepositoDetalhesComponent(router, activatedRoute, funcoesService, permissoesUtils, loginService, messageService, service) {
        this.router = router;
        this.activatedRoute = activatedRoute;
        this.funcoesService = funcoesService;
        this.permissoesUtils = permissoesUtils;
        this.loginService = loginService;
        this.messageService = messageService;
        this.service = service;
        this.target = this.funcoesService.getTargetLocation();
        this.pageRoute = "/especificos/pontafelix/movimentos/transferenciaDeposito";
    }
    TransferenciaDepositoDetalhesComponent.prototype.autorizacaoRegistra1Pes = function () {
        var _this = this;
        if (app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_5__["NumberUtilsStaticService"].toNumber(this.service.dataAut.pesoTara) === 0) {
            this.messageService.warning(this.service.title, "messages.naoPermitidoCampoVazio");
            return;
        }
        this.service.autorizacaoRegistra1Pes(this.service.dataAut).subscribe(function (result) {
            if (!result.isValid) {
                var mensagens = _this.messageService.validationResult(result);
                mensagens.forEach(function (m) { return _this.messageService.warning(_this.service.title, m); });
                return;
            }
            _this.messageService.saveSuccess(_this.service.title, 'messages.primeiraPesagemRegistradaComSucesso');
            app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_4__["ModalUtilsStaticService"].closeModal("registro-primeira-pesagem-dialog");
            _this.autorizacaoDadosAtualizados();
        });
    };
    TransferenciaDepositoDetalhesComponent.prototype.autorizacaoRegistra2Pes = function () {
        var _this = this;
        if (app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_5__["NumberUtilsStaticService"].toNumber(this.service.dataAut.pesoBruto) === 0 || app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_5__["NumberUtilsStaticService"].toNumber(this.service.dataAut.pesoTara) === 0) {
            this.messageService.warning(this.service.title, 'messages.campoTaraObrigatorio');
            return;
        }
        if (app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_5__["NumberUtilsStaticService"].toNumber(this.service.dataAut.pesoBruto) < app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_5__["NumberUtilsStaticService"].toNumber(this.service.dataAut.pesoTara)) {
            this.messageService.warning(this.service.title, 'messages.brutoMaiorTara');
            return;
        }
        if (app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_5__["NumberUtilsStaticService"].toNumber(this.service.dataAut.pesoTara) === 0) {
            this.messageService.warning(this.service.title, 'messages.inforCampoPesoTara');
            return;
        }
        var pesLiq = app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_5__["NumberUtilsStaticService"].toNumber(this.service.dataAut.pesoBruto) - app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_5__["NumberUtilsStaticService"].toNumber(this.service.dataAut.pesoTara);
        this.service.dataAut.pesoLiq = pesLiq;
        this.service.autorizacaoRegistra2Pes(this.service.dataAut).subscribe(function (result) {
            if (!result.isValid) {
                var mensagens = _this.messageService.validationResult(result);
                mensagens.forEach(function (m) { return _this.messageService.warning(_this.service.title, m); });
                return;
            }
            _this.messageService.saveSuccess(_this.service.title, 'messages.segundaPesagemRegistradaComSucesso');
            app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_4__["ModalUtilsStaticService"].closeModal("registro-segunda-pesagem-dialog");
            _this.autorizacaoDadosAtualizados();
        });
    };
    TransferenciaDepositoDetalhesComponent.prototype.autorizacaoCancela1Pes = function () {
        var _this = this;
        this.messageService.confirm(this.service.title, "messages.realmenteDesejaCancelar1Pesagem", null, function () {
            _this.service.autorizacaoCancela1Pes(_this.service.dataAut).subscribe(function (result) {
                if (!result.isValid) {
                    var mensagens = _this.messageService.validationResult(result);
                    mensagens.forEach(function (m) { return _this.messageService.warning(_this.service.title, m); });
                    return;
                }
                _this.messageService.saveSuccess(_this.service.title, 'messages.primeiraPesagemCanceladaSucesso');
                _this.autorizacaoDadosAtualizados();
            });
        });
    };
    TransferenciaDepositoDetalhesComponent.prototype.autorizacaoCancela2Pes = function () {
        var _this = this;
        this.messageService.confirm(this.service.title, "messages.realmenteDesejaCancelar2Pesagem", null, function () {
            _this.service.autorizacaoCancela2Pes(_this.service.dataAut).subscribe(function (result) {
                if (!result.isValid) {
                    var mensagens = _this.messageService.validationResult(result);
                    mensagens.forEach(function (m) { return _this.messageService.warning(_this.service.title, m); });
                    return;
                }
                _this.messageService.saveSuccess(_this.service.title, 'messages.segundaPesagemCanceladaSucesso');
                _this.autorizacaoDadosAtualizados();
            });
        });
    };
    TransferenciaDepositoDetalhesComponent.prototype.abrirModelRegPrimeiroPesagem = function () {
        app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_4__["ModalUtilsStaticService"].openModal("registro-primeira-pesagem-dialog");
    };
    TransferenciaDepositoDetalhesComponent.prototype.abrirModelRegSegundaPesagem = function () {
        app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_4__["ModalUtilsStaticService"].openModal("registro-segunda-pesagem-dialog");
    };
    TransferenciaDepositoDetalhesComponent.prototype.back = function () {
        this.funcoesService.desabilitarFiltro();
        this.router.navigate(["" + this.target + this.pageRoute]);
    };
    TransferenciaDepositoDetalhesComponent.prototype.autorizacaoDadosAtualizados = function () {
        var _this = this;
        this.service.autorizacaoDados(this.service.dataAut.cliFelProgTransfDepositoId).subscribe(function (result) {
            _this.service.data.autorizacaos = result;
            _this.autorizacaoComponent.load();
            var abaDetalheAtualizado = result.find(function (x) { return x.autorizacao === _this.service.dataAut.autorizacao; });
            _this.service.dataAut = abaDetalheAtualizado;
        });
    };
    Object.defineProperty(TransferenciaDepositoDetalhesComponent.prototype, "btn1PesEnabled", {
        get: function () {
            if (!this.service.dataAut)
                return true;
            if (!this.service.dataAut.autorizacao)
                return true;
            return (app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_5__["NumberUtilsStaticService"].toNumber(this.service.dataAut.pesoTara) === 0 &&
                app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_5__["NumberUtilsStaticService"].toNumber(this.service.dataAut.pesoLiq) === 0 &&
                this.service.data.sitReg !== "C");
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(TransferenciaDepositoDetalhesComponent.prototype, "btn2PesEnabled", {
        get: function () {
            if (!this.service.dataAut)
                return true;
            if (!this.service.dataAut.autorizacao)
                return true;
            return (app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_5__["NumberUtilsStaticService"].toNumber(this.service.dataAut.pesoTara) > 0 &&
                app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_5__["NumberUtilsStaticService"].toNumber(this.service.dataAut.pesoLiq) === 0 &&
                this.service.data.sitReg !== "C");
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(TransferenciaDepositoDetalhesComponent.prototype, "btnCan1PesEnabled", {
        get: function () {
            if (!this.service.dataAut)
                return true;
            if (!this.service.dataAut.autorizacao)
                return true;
            return (app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_5__["NumberUtilsStaticService"].toNumber(this.service.dataAut.pesoTara) > 0 &&
                app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_5__["NumberUtilsStaticService"].toNumber(this.service.dataAut.pesoLiq) === 0 &&
                this.service.data.sitReg !== "C");
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(TransferenciaDepositoDetalhesComponent.prototype, "btnCan2PesEnabled", {
        get: function () {
            if (!this.service.dataAut)
                return true;
            if (!this.service.dataAut.autorizacao)
                return true;
            return (app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_5__["NumberUtilsStaticService"].toNumber(this.service.dataAut.pesoLiq) > 0 &&
                this.service.data.sitReg !== "C");
        },
        enumerable: true,
        configurable: true
    });
    TransferenciaDepositoDetalhesComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__["LoginService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"] },
        { type: _transferencia_deposito_service__WEBPACK_IMPORTED_MODULE_8__["TransferenciaDepositoService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(_transferencia_deposito_autorizacao_transferencia_deposito_autorizacao_component__WEBPACK_IMPORTED_MODULE_9__["TransferenciaDepositoAutorizacaoComponent"], { static: false }),
        __metadata("design:type", _transferencia_deposito_autorizacao_transferencia_deposito_autorizacao_component__WEBPACK_IMPORTED_MODULE_9__["TransferenciaDepositoAutorizacaoComponent"])
    ], TransferenciaDepositoDetalhesComponent.prototype, "autorizacaoComponent", void 0);
    TransferenciaDepositoDetalhesComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-transferencia-deposito-detalhes",
            template: __importDefault(__webpack_require__(/*! raw-loader!./transferencia-deposito-detalhes.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferencia-deposito-detalhes/transferencia-deposito-detalhes.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__["LoginService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"],
            _transferencia_deposito_service__WEBPACK_IMPORTED_MODULE_8__["TransferenciaDepositoService"]])
    ], TransferenciaDepositoDetalhesComponent);
    return TransferenciaDepositoDetalhesComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferencia-deposito-filter/transferencia-deposito-filter.component.ts":
/*!*********************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferencia-deposito-filter/transferencia-deposito-filter.component.ts ***!
  \*********************************************************************************************************************************************************/
/*! exports provided: TransferenciaDepositoFilterComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransferenciaDepositoFilterComponent", function() { return TransferenciaDepositoFilterComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/funcoes/modal-utils/modal-utils.static.service */ "./src/app/shared/services/funcoes/modal-utils/modal-utils.static.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _transferencia_deposito_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../transferencia-deposito.service */ "./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferencia-deposito.service.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};





var TransferenciaDepositoFilterComponent = /** @class */ (function () {
    function TransferenciaDepositoFilterComponent(messageService, service, cdRef) {
        this.messageService = messageService;
        this.service = service;
        this.cdRef = cdRef;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.dropdownList = [];
        this.selectedItems = [];
        this.dropdownSettings = {
            singleSelection: false,
            text: "Selecione",
            selectAllText: 'Seleciona Todos',
            unSelectAllText: 'Desmarcar Todos',
            searchPlaceholderText: "Pesquisar",
            classes: "form-control-sm",
            enableSearchFilter: true,
            badgeShowLimit: 2,
            noDataLabel: "Nenhum dado disponível",
            filterUnSelectAllText: 'Desmarcar Todos',
            filterSelectAllText: 'Seleciona Todos',
            maxHeight: 150,
            disabled: false
        };
    }
    TransferenciaDepositoFilterComponent.prototype.ngOnInit = function () {
        this.onLoadTreeViewItems();
    };
    TransferenciaDepositoFilterComponent.prototype.onSubmit = function (form) {
        if (this.validacaoDeposito) {
            this.messageService.warning(this.service.title, 'messages.depositoOrigemNaoPodeSerIgualDepositoDestino');
            return;
        }
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_1__["EventEmitterService"].get("formError").emit(form);
        app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_2__["ModalUtilsStaticService"].closeModal("transferencia-deposito-filter-dialog");
        this.filtrar.emit();
    };
    TransferenciaDepositoFilterComponent.prototype.trataMaterial = function (material) {
        this.service.filtro.material = material;
    };
    Object.defineProperty(TransferenciaDepositoFilterComponent.prototype, "saldoDepositoOrigemOptions", {
        get: function () {
            return {
                modo: 7,
                tipoSaldo: 7,
                dataMovimento: new Date(),
                tipoAgrupa: 'D',
                geraArquivo: 'N',
                planejTanque: false,
                tanqueId: this.service.filtro.depOrigem
            };
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(TransferenciaDepositoFilterComponent.prototype, "saldoDepositoDestinoOptions", {
        get: function () {
            return {
                modo: 7,
                tipoSaldo: 7,
                dataMovimento: new Date(),
                tipoAgrupa: 'D',
                geraArquivo: 'N',
                planejTanque: false,
                tanqueId: this.service.filtro.depDestino
            };
        },
        enumerable: true,
        configurable: true
    });
    TransferenciaDepositoFilterComponent.prototype.onLoadTreeViewItems = function () {
        this.dropdownList = [];
        this.dropdownList = [
            { "id": "A", "itemName": "Aberto" },
            { "id": "P", "itemName": "Em Processamento" },
            { "id": "C", "itemName": "Concluído" }
        ];
        var situacaoArray = this.service.filtro.situacao.split(',');
        this.selectedItems = this.dropdownList.filter(function (item) { return situacaoArray.includes(item.id); });
    };
    TransferenciaDepositoFilterComponent.prototype.onItemSelect = function (selectedItems) {
        this.trataCombo();
    };
    TransferenciaDepositoFilterComponent.prototype.onItemDeSelect = function (selectedItems) {
        this.trataCombo();
    };
    TransferenciaDepositoFilterComponent.prototype.onSelectAll = function (selectedItems) {
        this.selectedItems = selectedItems;
        this.trataCombo();
    };
    TransferenciaDepositoFilterComponent.prototype.onDeSelectAll = function (selectedItems) {
        this.trataCombo(true);
    };
    TransferenciaDepositoFilterComponent.prototype.trataCombo = function (reset) {
        var _this = this;
        if (reset === void 0) { reset = false; }
        this.service.filtro.situacao = '';
        if (!reset) {
            this.selectedItems.forEach(function (e) {
                if (_this.service.filtro.situacao === '') {
                    _this.service.filtro.situacao = e.id + "";
                }
                else {
                    _this.service.filtro.situacao = _this.service.filtro.situacao + ',' + e.id;
                }
            });
        }
    };
    TransferenciaDepositoFilterComponent.prototype.ngAfterViewChecked = function () {
        this.cdRef.detectChanges();
    };
    Object.defineProperty(TransferenciaDepositoFilterComponent.prototype, "validacaoDeposito", {
        get: function () {
            var depOrigem = this.service.filtro.depOrigem;
            var depDestino = this.service.filtro.depDestino;
            if (depOrigem !== '' && depDestino !== '' && depOrigem === depDestino) {
                return true;
            }
            return false;
        },
        enumerable: true,
        configurable: true
    });
    TransferenciaDepositoFilterComponent.ctorParameters = function () { return [
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: _transferencia_deposito_service__WEBPACK_IMPORTED_MODULE_4__["TransferenciaDepositoService"] },
        { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], TransferenciaDepositoFilterComponent.prototype, "filtrar", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Object)
    ], TransferenciaDepositoFilterComponent.prototype, "disabled", void 0);
    TransferenciaDepositoFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-transferencia-deposito-filter",
            template: __importDefault(__webpack_require__(/*! raw-loader!./transferencia-deposito-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferencia-deposito-filter/transferencia-deposito-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"],
            _transferencia_deposito_service__WEBPACK_IMPORTED_MODULE_4__["TransferenciaDepositoService"],
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"]])
    ], TransferenciaDepositoFilterComponent);
    return TransferenciaDepositoFilterComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferencia-deposito-form/transferencia-deposito-form.component.ts":
/*!*****************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferencia-deposito-form/transferencia-deposito-form.component.ts ***!
  \*****************************************************************************************************************************************************/
/*! exports provided: TransferenciaDepositoFormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransferenciaDepositoFormComponent", function() { return TransferenciaDepositoFormComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_pages_cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/pages/cadastro/material/material.service */ "./src/app/pages/cadastro/material/material.service.ts");
/* harmony import */ var app_pages_cadastro_motorista_motorista_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/pages/cadastro/motorista/motorista.service */ "./src/app/pages/cadastro/motorista/motorista.service.ts");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var app_shared_components_report_report_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/components/report/report.service */ "./src/app/shared/components/report/report.service.ts");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var app_shared_services_funcoes_excel_excel_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/shared/services/funcoes/excel/excel.service */ "./src/app/shared/services/funcoes/excel/excel.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_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! app/shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _transferecia_deposito_conclusao_print_modal_transferecia_deposito_conclusao_print_modal_component__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../transferecia-deposito-conclusao-print-modal/transferecia-deposito-conclusao-print-modal.component */ "./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferecia-deposito-conclusao-print-modal/transferecia-deposito-conclusao-print-modal.component.ts");
/* harmony import */ var _transferencia_deposito_autorizacao_transferencia_deposito_autorizacao_component__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../transferencia-deposito-autorizacao/transferencia-deposito-autorizacao.component */ "./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferencia-deposito-autorizacao/transferencia-deposito-autorizacao.component.ts");
/* harmony import */ var _transferencia_deposito_constants__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../transferencia-deposito.constants */ "./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferencia-deposito.constants.ts");
/* harmony import */ var _transferencia_deposito_model__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../transferencia-deposito.model */ "./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferencia-deposito.model.ts");
/* harmony import */ var _transferencia_deposito_service__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../transferencia-deposito.service */ "./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferencia-deposito.service.ts");
/* harmony import */ var app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! app/shared/services/funcoes/array-utils/array-utils.static.service */ "./src/app/shared/services/funcoes/array-utils/array-utils.static.service.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};



















var TransferenciaDepositoFormComponent = /** @class */ (function (_super) {
    __extends(TransferenciaDepositoFormComponent, _super);
    function TransferenciaDepositoFormComponent(router, activatedRoute, messageService, funcoesService, permissoesUtils, loginService, service, materialService, reportService, excelService, motoristaService) {
        var _this = _super.call(this, new _transferencia_deposito_constants__WEBPACK_IMPORTED_MODULE_15__["TransferenciaDepositoConstants"](), funcoesService) || this;
        _this.router = router;
        _this.activatedRoute = activatedRoute;
        _this.messageService = messageService;
        _this.funcoesService = funcoesService;
        _this.permissoesUtils = permissoesUtils;
        _this.loginService = loginService;
        _this.service = service;
        _this.materialService = materialService;
        _this.reportService = reportService;
        _this.excelService = excelService;
        _this.motoristaService = motoristaService;
        _this.isEditingMotorista = false;
        _this.pageRoute = "/especificos/pontafelix/movimentos/transferenciaDeposito";
        _this.target = _this.funcoesService.getTargetLocation();
        _this.exportExcel = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 9, function () {
                _this.reportService.exportEspecificos(_this.constantes.sisFormularioId, {
                    regPrograma: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["NumberUtilsStaticService"].toNumber(_this.service.data.cliFelProgTransfDepositoId)
                }).subscribe(function (resp) {
                    var headerDictionary = {};
                    var options = {
                        headerJsonKeys: true,
                        headerDictionary: headerDictionary
                    };
                    resp.forEach(function (r) {
                        delete r.rg;
                        delete r.placa;
                        delete r.regItem;
                        delete r.retItem;
                    });
                    _this.excelService.exportAsExcelFile(resp, _this.messageService.getTranslates("titles", "transferenciaDeposito"), options);
                });
            });
        };
        _this.edit = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 2, function () {
                if (_this.isEditingMotorista) {
                    if (["P", "C"].includes(_this.service.data.sitReg)) {
                        _this.messageService.warning(_this.service.title, 'messages.naoEPossivelEditarProgramacaoEmProcessamentoOuConcluido');
                        return;
                    }
                }
                else {
                    if (["P", "C"].includes(_this.service.data.sitReg)) {
                        _this.messageService.warning(_this.service.title, 'messages.naoEPossivelEditarProgramacaoEmProcessamentoOuConcluido');
                        return;
                    }
                    if (_this.service.data.qtdTransferido > 0) {
                        _this.messageService.warning(_this.service.title, 'messages.naoEPossivelEditarProgramacaoComQtdeTransferida');
                        return;
                    }
                }
                if (!!(_this.service.data.cliFelProgTransfDepositoId)) {
                    _this.router.navigate(["" + _this.target + _this.pageRoute + "/edit/" + _this.service.data.cliFelProgTransfDepositoId], { queryParams: { aba: _this.isEditingMotorista ? 'motorista' : 'dados' } });
                }
            });
        };
        _this.editarMotorista = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 10, function () {
                _this.compAutorizacao.open();
            });
        };
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    TransferenciaDepositoFormComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.service.constantes = new _transferencia_deposito_constants__WEBPACK_IMPORTED_MODULE_15__["TransferenciaDepositoConstants"]();
        this.service.isDetail = this.funcoesService.isDetail(this.actionForm);
        this.activatedRoute.queryParams.subscribe(function (params) {
            _this.isEditingMotorista = params['aba'] === 'motorista';
        });
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, this.permissoesUtils.getLibRotina(this.actionForm), function () {
            var id = _this.activatedRoute.snapshot.paramMap.get("id");
            if (id) {
                _this.preView(id);
            }
            else {
                _this.service.data = new _transferencia_deposito_model__WEBPACK_IMPORTED_MODULE_16__["TransferenciaDeposito"]();
            }
        }, function () { return _this.permissoesUtils.back(); });
        _super.prototype.addFuncoes.call(this, [
            { action: 'exportExcel', func: function () { return _this.exportExcel; } },
            { action: 'editarMotorista', func: function () { return _this.editarMotorista; } }
        ]);
    };
    TransferenciaDepositoFormComponent.prototype.preView = function (id) {
        var _this = this;
        this.service.getById(id).subscribe(function (resp) {
            if (app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_18__["ArrayUtilsStaticService"].any(resp.motoristas)) {
                resp.motoristas.map(function (m, idx) {
                    m.sequencia = (idx + 1);
                    return m;
                });
            }
            else
                resp.motoristas = [];
            if (app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_18__["ArrayUtilsStaticService"].any(resp.motoristas)) {
                resp.autorizacaos.map(function (m, idx) {
                    m.sequencia = (idx + 1);
                    return m;
                });
            }
            else
                resp.autorizacaos = [];
            _this.service.data = resp;
            if (_this.funcoesService.isEdit(_this.actionForm)) {
                if (_this.isEditingMotorista) {
                    if (["P", "C"].includes(_this.service.data.sitReg)) {
                        _this.messageService.warning(_this.service.title, 'messages.naoEPossivelEditarProgramacaoEmProcessamentoOuConcluido');
                        _this.back();
                        return;
                    }
                }
                else {
                    if (["P", "C"].includes(_this.service.data.sitReg)) {
                        _this.messageService.warning(_this.service.title, 'messages.naoEPossivelEditarProgramacaoEmProcessamentoOuConcluido');
                        _this.back();
                        return;
                    }
                    if (_this.service.data.qtdTransferido > 0) {
                        _this.messageService.warning(_this.service.title, 'messages.naoEPossivelEditarProgramacaoComQtdeTransferida');
                        _this.back();
                        return;
                    }
                }
            }
            _this.tratadados();
        });
    };
    TransferenciaDepositoFormComponent.prototype.tratadados = function () {
        var _this = this;
        this.materialService.getById(this.service.data.materialId).subscribe(function (data) {
            _this.service.data.material = data;
        });
    };
    TransferenciaDepositoFormComponent.prototype.onSubmit = function (form) {
        var _this = this;
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_7__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        this.service.data.logRotina = "Transf entre Depósitos";
        var motoristas = this.service.data.motoristas.filter(function (x) { return x.sitReg !== 'E'; });
        this.service.data.motoristas = motoristas;
        this.service.gravarDados(this.service.data).subscribe(function (result) {
            if (!result.validationResult.isValid) {
                var mensagens = _this.messageService.validationResult(result);
                mensagens.forEach(function (m) { return _this.messageService.warning(_this.service.title, m); });
                return;
            }
            _this.messageService.saveSuccess(_this.service.title);
            _this.back();
        });
        this.service.dataAut.autorizacao = null;
    };
    TransferenciaDepositoFormComponent.prototype.print = function () {
        var _this = this;
        if (!this.service.dataAut.autorizacao) {
            this.messageService.warning(this.service.title, "messages.selecioneAutorizacao");
            return;
        }
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 5, function () {
            _this.modalPrint.open();
        });
    };
    TransferenciaDepositoFormComponent.prototype.onPrint = function (tipoImpressao) {
        switch (tipoImpressao) {
            case "autorizacaoDeOperacao":
                this.printAutorizacaoDeOperacao();
                break;
            case "impressaoDeTicket":
                this.printImpressaoTicket();
                break;
            default:
                break;
        }
    };
    TransferenciaDepositoFormComponent.prototype.printAutorizacaoDeOperacao = function () {
        this.funcoesService.reportInvoc.invocaRelatorioEspecificos("PON0031", this.constantes.reportTitulo, {
            autorizacao: this.service.dataAut.autorizacao
        });
    };
    TransferenciaDepositoFormComponent.prototype.printImpressaoTicket = function () {
        this.funcoesService.reportInvoc.invocaRelatorioEspecificos("PON0032", this.constantes.reportTitulo, {
            autorizacao: this.service.dataAut.autorizacao
        });
    };
    TransferenciaDepositoFormComponent.prototype.trataMaterial = function (material) {
        this.service.data.material = material;
    };
    TransferenciaDepositoFormComponent.prototype.back = function () {
        this.funcoesService.desabilitarFiltro();
        this.router.navigate(["" + this.target + this.pageRoute]);
    };
    TransferenciaDepositoFormComponent.prototype.onLoadDetalhe = function () {
        if (!this.service.dataAut || !this.service.dataAut.autorizacao) {
            this.messageService.warning(this.service.title, "messages.selecioneAutorizacao");
            return;
        }
    };
    Object.defineProperty(TransferenciaDepositoFormComponent.prototype, "saldoDepositoOrigemOptions", {
        get: function () {
            return {
                modo: 7,
                tipoSaldo: 7,
                dataMovimento: new Date(),
                tipoAgrupa: 'D',
                geraArquivo: 'N',
                planejTanque: false,
                tanqueId: this.service.data.depOrigem
            };
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(TransferenciaDepositoFormComponent.prototype, "saldoDepositoDestinoOptions", {
        get: function () {
            return {
                modo: 7,
                tipoSaldo: 7,
                dataMovimento: new Date(),
                tipoAgrupa: 'D',
                geraArquivo: 'N',
                planejTanque: false,
                tanqueId: this.service.data.depDestino
            };
        },
        enumerable: true,
        configurable: true
    });
    TransferenciaDepositoFormComponent.prototype.onMotoristaTabClick = function () {
        this.isEditingMotorista = true;
    };
    TransferenciaDepositoFormComponent.prototype.onDadosTabClick = function () {
        this.isEditingMotorista = false;
    };
    TransferenciaDepositoFormComponent.prototype.onAutorizacaoTabClick = function () {
        this.isEditingMotorista = false;
    };
    TransferenciaDepositoFormComponent.prototype.onDetalhesTabClick = function () {
        this.isEditingMotorista = false;
    };
    TransferenciaDepositoFormComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_12__["MessageService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_9__["FuncoesService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_11__["PermissoesUtilsService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_4__["LoginService"] },
        { type: _transferencia_deposito_service__WEBPACK_IMPORTED_MODULE_17__["TransferenciaDepositoService"] },
        { type: app_pages_cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_2__["MaterialService"] },
        { type: app_shared_components_report_report_service__WEBPACK_IMPORTED_MODULE_6__["ReportService"] },
        { type: app_shared_services_funcoes_excel_excel_service__WEBPACK_IMPORTED_MODULE_8__["ExcelService"] },
        { type: app_pages_cadastro_motorista_motorista_service__WEBPACK_IMPORTED_MODULE_3__["MotoristaService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(_transferencia_deposito_autorizacao_transferencia_deposito_autorizacao_component__WEBPACK_IMPORTED_MODULE_14__["TransferenciaDepositoAutorizacaoComponent"], { static: false }),
        __metadata("design:type", _transferencia_deposito_autorizacao_transferencia_deposito_autorizacao_component__WEBPACK_IMPORTED_MODULE_14__["TransferenciaDepositoAutorizacaoComponent"])
    ], TransferenciaDepositoFormComponent.prototype, "compAutorizacao", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(_transferecia_deposito_conclusao_print_modal_transferecia_deposito_conclusao_print_modal_component__WEBPACK_IMPORTED_MODULE_13__["TransfereciaDepositoConclusaoPrintModalComponent"], { static: false }),
        __metadata("design:type", _transferecia_deposito_conclusao_print_modal_transferecia_deposito_conclusao_print_modal_component__WEBPACK_IMPORTED_MODULE_13__["TransfereciaDepositoConclusaoPrintModalComponent"])
    ], TransferenciaDepositoFormComponent.prototype, "modalPrint", void 0);
    TransferenciaDepositoFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-transferencia-deposito-form",
            template: __importDefault(__webpack_require__(/*! raw-loader!./transferencia-deposito-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferencia-deposito-form/transferencia-deposito-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_12__["MessageService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_9__["FuncoesService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_11__["PermissoesUtilsService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_4__["LoginService"],
            _transferencia_deposito_service__WEBPACK_IMPORTED_MODULE_17__["TransferenciaDepositoService"],
            app_pages_cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_2__["MaterialService"],
            app_shared_components_report_report_service__WEBPACK_IMPORTED_MODULE_6__["ReportService"],
            app_shared_services_funcoes_excel_excel_service__WEBPACK_IMPORTED_MODULE_8__["ExcelService"],
            app_pages_cadastro_motorista_motorista_service__WEBPACK_IMPORTED_MODULE_3__["MotoristaService"]])
    ], TransferenciaDepositoFormComponent);
    return TransferenciaDepositoFormComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferencia-deposito-index/transferencia-deposito-index.component.ts":
/*!*******************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferencia-deposito-index/transferencia-deposito-index.component.ts ***!
  \*******************************************************************************************************************************************************/
/*! exports provided: TransferenciaDepositoIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransferenciaDepositoIndexComponent", function() { return TransferenciaDepositoIndexComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_4__ = __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_5__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/funcoes/modal-utils/modal-utils.static.service */ "./src/app/shared/services/funcoes/modal-utils/modal-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _transferecia_deposito_conclusao_prog_transferecia_deposito_conclusao_prog_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../transferecia-deposito-conclusao-prog/transferecia-deposito-conclusao-prog.component */ "./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferecia-deposito-conclusao-prog/transferecia-deposito-conclusao-prog.component.ts");
/* harmony import */ var _transferencia_deposito_constants__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../transferencia-deposito.constants */ "./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferencia-deposito.constants.ts");
/* harmony import */ var _transferencia_deposito_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../transferencia-deposito.service */ "./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferencia-deposito.service.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};












var TransferenciaDepositoIndexComponent = /** @class */ (function (_super) {
    __extends(TransferenciaDepositoIndexComponent, _super);
    function TransferenciaDepositoIndexComponent(router, activatedRoute, messageService, funcoesService, permissoesUtils, loginService, service, datatablesService) {
        var _this = _super.call(this, new _transferencia_deposito_constants__WEBPACK_IMPORTED_MODULE_10__["TransferenciaDepositoConstants"](), funcoesService) || this;
        _this.router = router;
        _this.activatedRoute = activatedRoute;
        _this.messageService = messageService;
        _this.funcoesService = funcoesService;
        _this.permissoesUtils = permissoesUtils;
        _this.loginService = loginService;
        _this.service = service;
        _this.datatablesService = datatablesService;
        _this.constantes = new _transferencia_deposito_constants__WEBPACK_IMPORTED_MODULE_10__["TransferenciaDepositoConstants"]();
        _this.pageRoute = "/especificos/pontafelix/movimentos/transferenciaDeposito";
        _this.target = _this.funcoesService.getTargetLocation();
        _this.refresh = function () {
            _this.getByDados();
        };
        _this.edit = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 2, function () {
                if (["P", "C"].includes(_this.data.sitReg)) {
                    _this.messageService.warning(_this.service.title, 'messages.naoEPossivelEditarProgramacaoEmProcessamentoOuConcluido');
                    return;
                }
                if (_this.data.qtdTransferido > 0) {
                    _this.messageService.warning(_this.service.title, 'messages.naoEPossivelEditarProgramacaoComQtdeTransferida');
                    return;
                }
                if (!!(_this.data.cliFelProgTransfDepositoId)) {
                    _this.router.navigate(["" + _this.target + _this.pageRoute + "/edit/" + _this.data.cliFelProgTransfDepositoId]);
                }
            });
        };
        _this.remove = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 3, function () {
                _this.messageService.removeConfirm(function () {
                    if (["P", "C"].includes(_this.data.sitReg)) {
                        _this.messageService.warning(_this.service.title, 'messages.naoEPossivelEditarProgramacaoEmProcessamentoOuConcluido');
                        return;
                    }
                    if (_this.data.qtdTransferido > 0) {
                        _this.messageService.warning(_this.service.title, 'messages.naoEPossivelEditarProgramacaoComQtdeTransferida');
                        return;
                    }
                    _this.service.excluirDados(_this.data.cliFelProgTransfDepositoId).subscribe(function (result) {
                        if (!result.isValid) {
                            var mensagens = _this.messageService.validationResult(result);
                            mensagens.forEach(function (m) { return _this.messageService.warning(_this.service.title, m); });
                            return;
                        }
                        _this.datatablesService.remove("dtTransferenciaDeposito");
                    });
                });
            });
        };
        _this.concluir = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 8, function () {
                if (["P", "C"].includes(_this.data.sitReg)) {
                    _this.messageService.warning(_this.service.title, 'messages.programacaoConcluidaOuEmProcessoDeConclusao');
                    return;
                }
                _this.childtransfereciaDepositoConclusaoProgComponent.open(_this.data);
            });
        };
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    TransferenciaDepositoIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.service.constantes = new _transferencia_deposito_constants__WEBPACK_IMPORTED_MODULE_10__["TransferenciaDepositoConstants"]();
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
            if (!_this.loginService.isTokenExpired()) {
                if (_this.funcoesService.abrirFiltro) {
                    _this.filtrar();
                }
                else {
                    _this.refresh();
                }
            }
        }, function () { return _this.permissoesUtils.back(); }, true);
        _super.prototype.addFuncoes.call(this, [
            { action: 'concluir', func: function () { return _this.concluir; } }
        ]);
    };
    TransferenciaDepositoIndexComponent.prototype.getByDados = function () {
        var _this = this;
        this.service.getByFiltro().subscribe(function (data) {
            var columns = [
                _this.datatablesService.getDataString("cliFelProgTransfDepositoId", "codigo", "10%"),
                _this.datatablesService.getDataString("depOrigem", "depositoOrigem"),
                _this.datatablesService.getDataString("depDestino", "depositoDestino", "10%"),
                _this.datatablesService.getDataString("produto", "produto"),
                _this.datatablesService.getDataDouble("qtdTransferido", "Total Transferido", 0),
                _this.datatablesService.getDataString("situacao", "situacao", "10%")
            ];
            _this.datatablesService.toDataTable({ tableId: "dtTransferenciaDeposito", columns: columns, data: data }, function (aData) {
                _this.data = aData;
            });
        });
    };
    TransferenciaDepositoIndexComponent.prototype.filtrar = function () {
        app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_6__["ModalUtilsStaticService"].openModal("transferencia-deposito-filter-dialog");
    };
    TransferenciaDepositoIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 7, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    TransferenciaDepositoIndexComponent.prototype.create = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
            _this.router.navigate(["" + _this.target + _this.pageRoute + "/create"]);
        });
    };
    TransferenciaDepositoIndexComponent.prototype.detail = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
            _this.router.navigate(["" + _this.target + _this.pageRoute + "/detail/" + _this.data.cliFelProgTransfDepositoId]);
        });
    };
    TransferenciaDepositoIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__["MessageService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__["LoginService"] },
        { type: _transferencia_deposito_service__WEBPACK_IMPORTED_MODULE_11__["TransferenciaDepositoService"] },
        { type: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_4__["DatatablesService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(_transferecia_deposito_conclusao_prog_transferecia_deposito_conclusao_prog_component__WEBPACK_IMPORTED_MODULE_9__["transfereciaDepositoConclusaoProgComponent"], { static: false }),
        __metadata("design:type", _transferecia_deposito_conclusao_prog_transferecia_deposito_conclusao_prog_component__WEBPACK_IMPORTED_MODULE_9__["transfereciaDepositoConclusaoProgComponent"])
    ], TransferenciaDepositoIndexComponent.prototype, "childtransfereciaDepositoConclusaoProgComponent", void 0);
    TransferenciaDepositoIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-consulta-acuracidade-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./transferencia-deposito-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferencia-deposito-index/transferencia-deposito-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__["MessageService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__["LoginService"],
            _transferencia_deposito_service__WEBPACK_IMPORTED_MODULE_11__["TransferenciaDepositoService"],
            app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_4__["DatatablesService"]])
    ], TransferenciaDepositoIndexComponent);
    return TransferenciaDepositoIndexComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_3__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferencia-deposito-motorista/transferencia-deposito-motorista.component.ts":
/*!***************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferencia-deposito-motorista/transferencia-deposito-motorista.component.ts ***!
  \***************************************************************************************************************************************************************/
/*! exports provided: TransferenciaDepositoMotoristaComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransferenciaDepositoMotoristaComponent", function() { return TransferenciaDepositoMotoristaComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_3__ = __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_funcoes_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _transferencia_deposito_model__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../transferencia-deposito.model */ "./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferencia-deposito.model.ts");
/* harmony import */ var _transferencia_deposito_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../transferencia-deposito.service */ "./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferencia-deposito.service.ts");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! app/shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-utils.static.service.ts");
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 TransferenciaDepositoMotoristaComponent = /** @class */ (function () {
    function TransferenciaDepositoMotoristaComponent(messageService, funcoesService, permissoesUtils, loginService, service) {
        this.messageService = messageService;
        this.funcoesService = funcoesService;
        this.permissoesUtils = permissoesUtils;
        this.loginService = loginService;
        this.service = service;
        this.data = new _transferencia_deposito_model__WEBPACK_IMPORTED_MODULE_7__["TransferenciaDepositoMotoristaDto"]();
        this.dataAux = new _transferencia_deposito_model__WEBPACK_IMPORTED_MODULE_7__["TransferenciaDepositoMotoristaDto"]();
        this.showAdd = false;
        this.actionForm = app_config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].index;
    }
    TransferenciaDepositoMotoristaComponent.prototype.selected = function (item) {
        this.data = Object.assign({}, item);
    };
    TransferenciaDepositoMotoristaComponent.prototype.create = function () {
        this.showAdd = true;
        this.service.showSave = false;
        this.actionForm = app_config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].create;
        this.data = new _transferencia_deposito_model__WEBPACK_IMPORTED_MODULE_7__["TransferenciaDepositoMotoristaDto"]();
    };
    TransferenciaDepositoMotoristaComponent.prototype.edit = function () {
        this.showAdd = true;
        this.service.showSave = false;
        this.actionForm = app_config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].edit;
    };
    TransferenciaDepositoMotoristaComponent.prototype.detail = function () {
        this.showAdd = true;
        this.service.showSave = false;
        this.actionForm = app_config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].detail;
    };
    TransferenciaDepositoMotoristaComponent.prototype.back = function () {
        this.showAdd = false;
        this.service.showSave = true;
        this.actionForm = app_config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].index;
    };
    TransferenciaDepositoMotoristaComponent.prototype.trataMotorista = function (motorista) {
        this.data.motorista = motorista;
    };
    TransferenciaDepositoMotoristaComponent.prototype.remove = function () {
        var _this = this;
        if (["P", "C"].includes(this.service.data.sitReg)) {
            this.messageService.warning(this.service.title, 'messages.naoEPossivelEditarProgramacaoEmProcessamentoOuConcluido');
            return;
        }
        if (this.service.data.qtdTransferido > 0) {
            this.messageService.warning(this.service.title, 'messages.naoEPossivelEditarProgramacaoComQtdeTransferida');
            return;
        }
        if (this.data.sitReg === "C") {
            this.messageService.warning(this.service.title, 'messages.naoEPossivelExcluirMotoristaConcluido');
            return;
        }
        this.messageService.removeConfirm(function () {
            if (app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["NumberUtilsStaticService"].toNumber(_this.data.regItem) === 0) {
                _this.data.sitReg = "E";
                var idx = _this.service.data.motoristas.findIndex(function (c) { return c.sequencia == _this.data.sequencia; });
                _this.service.data.motoristas[idx] = _this.data;
                _this.messageService.removeSuccess();
            }
            else {
                _this.service.excluirDadosMotorista(_this.data.cliFelProgTransfDepositoId, _this.data.regItem).subscribe(function (result) {
                    if (!result.isValid) {
                        var mensagens = _this.messageService.validationResult(result);
                        mensagens.forEach(function (m) { return _this.messageService.warning(_this.service.title, m); });
                        return;
                    }
                    _this.data.sitReg = "C";
                    _this.data.situacao = "Concluído";
                    var idx = _this.service.data.motoristas.findIndex(function (c) { return c.sequencia == _this.data.sequencia; });
                    _this.service.data.motoristas[idx] = _this.data;
                    _this.messageService.removeSuccess();
                });
            }
        });
    };
    TransferenciaDepositoMotoristaComponent.prototype.onSubmit = function (form) {
        return __awaiter(this, void 0, void 0, function () {
            var validaPesagemInicial, idx;
            var _this = this;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_9__["EventEmitterService"].get("formError").emit(form);
                        if (form.invalid) {
                            return [2 /*return*/];
                        }
                        return [4 /*yield*/, this.service.validaPesagemInicial(this.data.placa).toPromise()];
                    case 1:
                        validaPesagemInicial = _a.sent();
                        if (!validaPesagemInicial) {
                            this.messageService.warning(this.service.title, "messages.necessarioFazerPesagemInicialDaPlacaAntesInserirProgramacao", { placa: this.data.placa });
                            return [2 /*return*/];
                        }
                        if (this.data.sequencia && this.data.sequencia > 0) {
                            idx = this.service.data.motoristas.findIndex(function (c) { return c.sequencia == _this.data.sequencia; });
                            this.service.data.motoristas[idx] = this.data;
                        }
                        else {
                            this.data.sequencia = this.service.data.motoristas.length + 1;
                            this.service.data.motoristas.push(this.data);
                        }
                        this.data = new _transferencia_deposito_model__WEBPACK_IMPORTED_MODULE_7__["TransferenciaDepositoMotoristaDto"]();
                        this.back();
                        return [2 /*return*/];
                }
            });
        });
    };
    Object.defineProperty(TransferenciaDepositoMotoristaComponent.prototype, "hasDados", {
        get: function () {
            if (!this.service.data)
                return false;
            return app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_3__["ArrayUtilsStaticService"].any(this.service.data.motoristas);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(TransferenciaDepositoMotoristaComponent.prototype, "isDetail", {
        get: function () {
            if (this.service.isDetail)
                return true;
            return this.funcoesService.isDetail(this.actionForm);
        },
        enumerable: true,
        configurable: true
    });
    TransferenciaDepositoMotoristaComponent.ctorParameters = function () { return [
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__["MessageService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_5__["PermissoesUtilsService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__["LoginService"] },
        { type: _transferencia_deposito_service__WEBPACK_IMPORTED_MODULE_8__["TransferenciaDepositoService"] }
    ]; };
    TransferenciaDepositoMotoristaComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-transferencia-deposito-motorista",
            template: __importDefault(__webpack_require__(/*! raw-loader!./transferencia-deposito-motorista.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferencia-deposito-motorista/transferencia-deposito-motorista.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__["MessageService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_5__["PermissoesUtilsService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__["LoginService"],
            _transferencia_deposito_service__WEBPACK_IMPORTED_MODULE_8__["TransferenciaDepositoService"]])
    ], TransferenciaDepositoMotoristaComponent);
    return TransferenciaDepositoMotoristaComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferencia-deposito.constants.ts":
/*!********************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferencia-deposito.constants.ts ***!
  \********************************************************************************************************************/
/*! exports provided: TransferenciaDepositoConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransferenciaDepositoConstants", function() { return TransferenciaDepositoConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var TransferenciaDepositoConstants = /** @class */ (function () {
    function TransferenciaDepositoConstants() {
        this.sisFormularioId = 140151;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.inclusao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.alteracao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 3, acao: "labels.exclusao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 4, acao: "labels.consulta" },
            { sisFormularioId: this.sisFormularioId, libRotina: 5, acao: "labels.impressao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 6, acao: "labels.propriedades" },
            { sisFormularioId: this.sisFormularioId, libRotina: 7, acao: "labels.permissoes" },
            { sisFormularioId: this.sisFormularioId, libRotina: 8, acao: "labels.concluir" },
            { sisFormularioId: this.sisFormularioId, libRotina: 9, acao: "labels.export" },
            { sisFormularioId: this.sisFormularioId, libRotina: 10, acao: "labels.editarMotorista" }
        ];
        this.nomeForm = "titles.transferenciaDeposito";
        this.reportTitulo = { "titulo": "Transferencia Deposito", "subTitulo": "" };
        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' },
            { title: 'Imprimir', action: 'print', icon: "icon-printer", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'exportExcel', action: 'exportExcel', icon: "fa fa-file-excel-o", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'editarMotorista', action: 'editarMotorista', icon: "fa fa-id-card-o", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
        ];
        this.listaIndex = [
            { title: 'Novo', action: 'create', icon: "icon-plus", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Editar', action: 'edit', icon: "icon-pencil", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Visualizar', action: 'detail', icon: "icon-eye", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Excluir', action: 'remove', icon: "icon-close", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Atualizar', action: 'refresh', icon: "icon-reload", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Pesquisar', action: 'filtrar', icon: "icon-search", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Concluir', action: 'concluir', icon: "icon-check", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
        ];
    }
    return TransferenciaDepositoConstants;
}());



/***/ }),

/***/ "./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferencia-deposito.model.ts":
/*!****************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferencia-deposito.model.ts ***!
  \****************************************************************************************************************/
/*! exports provided: TransferenciaDepositoFiltroVo, TransferenciaDepositoDto, TransferenciaDeposito, TransferenciaDepositoGravaVo, TransferenciaDepositoMotoristaVo, TransferenciaDepositoConclusaoDto, TransferenciaDepositoConclusaoDadosDto, TransferenciaDepositoMotoristaDto, TransferenciaDepositoAutorizacaoDto */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransferenciaDepositoFiltroVo", function() { return TransferenciaDepositoFiltroVo; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransferenciaDepositoDto", function() { return TransferenciaDepositoDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransferenciaDeposito", function() { return TransferenciaDeposito; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransferenciaDepositoGravaVo", function() { return TransferenciaDepositoGravaVo; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransferenciaDepositoMotoristaVo", function() { return TransferenciaDepositoMotoristaVo; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransferenciaDepositoConclusaoDto", function() { return TransferenciaDepositoConclusaoDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransferenciaDepositoConclusaoDadosDto", function() { return TransferenciaDepositoConclusaoDadosDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransferenciaDepositoMotoristaDto", function() { return TransferenciaDepositoMotoristaDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransferenciaDepositoAutorizacaoDto", function() { return TransferenciaDepositoAutorizacaoDto; });
/* harmony import */ var app_pages_cadastro_material_material_model__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/pages/cadastro/material/material.model */ "./src/app/pages/cadastro/material/material.model.ts");
/* harmony import */ var app_pages_cadastro_motorista_motorista_model__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/pages/cadastro/motorista/motorista.model */ "./src/app/pages/cadastro/motorista/motorista.model.ts");
/* harmony import */ var app_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/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 TransferenciaDepositoFiltroVo = /** @class */ (function () {
    function TransferenciaDepositoFiltroVo() {
        this.depOrigem = "";
        this.depDestino = "";
        this.materialId = "";
        this.situacao = "A";
    }
    return TransferenciaDepositoFiltroVo;
}());

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

var TransferenciaDeposito = /** @class */ (function (_super) {
    __extends(TransferenciaDeposito, _super);
    function TransferenciaDeposito() {
        var _this = _super.call(this) || this;
        _this.motoristas = [];
        _this.material = new app_pages_cadastro_material_material_model__WEBPACK_IMPORTED_MODULE_0__["Material"];
        return _this;
    }
    return TransferenciaDeposito;
}(app_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_2__["BaseModel"]));

var TransferenciaDepositoGravaVo = /** @class */ (function () {
    function TransferenciaDepositoGravaVo() {
        this.regPrograma = 0;
        this.depOrigem = "";
        this.depDestino = "";
        this.mateiral = "";
        this.motoristaId = 0;
        this.regItem = 0;
        this.placa = "";
        this.sitReg = "";
    }
    return TransferenciaDepositoGravaVo;
}());

var TransferenciaDepositoMotoristaVo = /** @class */ (function () {
    function TransferenciaDepositoMotoristaVo() {
        this.regPrograma = 0;
        this.autorizacaoId = 0;
        this.codMotorista = 0;
        this.placa = "";
    }
    return TransferenciaDepositoMotoristaVo;
}());

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

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

var TransferenciaDepositoMotoristaDto = /** @class */ (function () {
    function TransferenciaDepositoMotoristaDto() {
        this.motorista = new app_pages_cadastro_motorista_motorista_model__WEBPACK_IMPORTED_MODULE_1__["Motorista"]();
    }
    return TransferenciaDepositoMotoristaDto;
}());

var TransferenciaDepositoAutorizacaoDto = /** @class */ (function () {
    function TransferenciaDepositoAutorizacaoDto() {
        this.inpMotorista = new app_pages_cadastro_motorista_motorista_model__WEBPACK_IMPORTED_MODULE_1__["Motorista"]();
    }
    return TransferenciaDepositoAutorizacaoDto;
}());



/***/ }),

/***/ "./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferencia-deposito.module.ts":
/*!*****************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferencia-deposito.module.ts ***!
  \*****************************************************************************************************************/
/*! exports provided: TransferenciaDepositoModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransferenciaDepositoModule", function() { return TransferenciaDepositoModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var _transferecia_deposito_conclusao_print_modal_transferecia_deposito_conclusao_print_modal_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./transferecia-deposito-conclusao-print-modal/transferecia-deposito-conclusao-print-modal.component */ "./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferecia-deposito-conclusao-print-modal/transferecia-deposito-conclusao-print-modal.component.ts");
/* harmony import */ var _transferecia_deposito_conclusao_prog_transferecia_deposito_conclusao_prog_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./transferecia-deposito-conclusao-prog/transferecia-deposito-conclusao-prog.component */ "./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferecia-deposito-conclusao-prog/transferecia-deposito-conclusao-prog.component.ts");
/* harmony import */ var _transferencia_deposito_autorizacao_transferencia_deposito_autorizacao_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./transferencia-deposito-autorizacao/transferencia-deposito-autorizacao.component */ "./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferencia-deposito-autorizacao/transferencia-deposito-autorizacao.component.ts");
/* harmony import */ var _transferencia_deposito_detalhes_transferencia_deposito_detalhes_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./transferencia-deposito-detalhes/transferencia-deposito-detalhes.component */ "./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferencia-deposito-detalhes/transferencia-deposito-detalhes.component.ts");
/* harmony import */ var _transferencia_deposito_filter_transferencia_deposito_filter_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./transferencia-deposito-filter/transferencia-deposito-filter.component */ "./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferencia-deposito-filter/transferencia-deposito-filter.component.ts");
/* harmony import */ var _transferencia_deposito_form_transferencia_deposito_form_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./transferencia-deposito-form/transferencia-deposito-form.component */ "./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferencia-deposito-form/transferencia-deposito-form.component.ts");
/* harmony import */ var _transferencia_deposito_index_transferencia_deposito_index_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./transferencia-deposito-index/transferencia-deposito-index.component */ "./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferencia-deposito-index/transferencia-deposito-index.component.ts");
/* harmony import */ var _transferencia_deposito_motorista_transferencia_deposito_motorista_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./transferencia-deposito-motorista/transferencia-deposito-motorista.component */ "./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferencia-deposito-motorista/transferencia-deposito-motorista.component.ts");
/* harmony import */ var _transferencia_deposito_routing_module__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./transferencia-deposito.routing.module */ "./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferencia-deposito.routing.module.ts");
/* harmony import */ var _transferencia_deposito_dados_transferencia_deposito_dados_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./transferencia-deposito-dados/transferencia-deposito-dados.component */ "./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferencia-deposito-dados/transferencia-deposito-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 TransferenciaDepositoModule = /** @class */ (function () {
    function TransferenciaDepositoModule() {
    }
    TransferenciaDepositoModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [app_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"], _transferencia_deposito_routing_module__WEBPACK_IMPORTED_MODULE_10__["TransferenciaDepositoRoutingModule"]],
            declarations: [_transferencia_deposito_index_transferencia_deposito_index_component__WEBPACK_IMPORTED_MODULE_8__["TransferenciaDepositoIndexComponent"],
                _transferencia_deposito_filter_transferencia_deposito_filter_component__WEBPACK_IMPORTED_MODULE_6__["TransferenciaDepositoFilterComponent"],
                _transferencia_deposito_form_transferencia_deposito_form_component__WEBPACK_IMPORTED_MODULE_7__["TransferenciaDepositoFormComponent"],
                _transferencia_deposito_autorizacao_transferencia_deposito_autorizacao_component__WEBPACK_IMPORTED_MODULE_4__["TransferenciaDepositoAutorizacaoComponent"],
                _transferencia_deposito_detalhes_transferencia_deposito_detalhes_component__WEBPACK_IMPORTED_MODULE_5__["TransferenciaDepositoDetalhesComponent"],
                _transferencia_deposito_motorista_transferencia_deposito_motorista_component__WEBPACK_IMPORTED_MODULE_9__["TransferenciaDepositoMotoristaComponent"],
                _transferecia_deposito_conclusao_prog_transferecia_deposito_conclusao_prog_component__WEBPACK_IMPORTED_MODULE_3__["transfereciaDepositoConclusaoProgComponent"],
                _transferecia_deposito_conclusao_print_modal_transferecia_deposito_conclusao_print_modal_component__WEBPACK_IMPORTED_MODULE_2__["TransfereciaDepositoConclusaoPrintModalComponent"],
                _transferencia_deposito_dados_transferencia_deposito_dados_component__WEBPACK_IMPORTED_MODULE_11__["TransferenciaDepositoDadosComponent"]],
            exports: [],
            providers: []
        })
    ], TransferenciaDepositoModule);
    return TransferenciaDepositoModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferencia-deposito.routing.module.ts":
/*!*************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferencia-deposito.routing.module.ts ***!
  \*************************************************************************************************************************/
/*! exports provided: TransferenciaDepositoRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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





var MRoutes = [
    {
        path: "",
        component: _transferencia_deposito_index_transferencia_deposito_index_component__WEBPACK_IMPORTED_MODULE_3__["TransferenciaDepositoIndexComponent"],
        data: { breadcrumb: "transferenciaDeposito", formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index } }
    },
    {
        path: "create",
        component: _transferencia_deposito_form_transferencia_deposito_form_component__WEBPACK_IMPORTED_MODULE_4__["TransferenciaDepositoFormComponent"],
        data: {
            breadcrumb: "transferenciaDeposito",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].create }
        }
    },
    {
        path: 'edit/:id',
        component: _transferencia_deposito_form_transferencia_deposito_form_component__WEBPACK_IMPORTED_MODULE_4__["TransferenciaDepositoFormComponent"],
        data: {
            breadcrumb: 'transferenciaDeposito',
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].edit }
        }
    },
    {
        path: "detail/:id",
        component: _transferencia_deposito_form_transferencia_deposito_form_component__WEBPACK_IMPORTED_MODULE_4__["TransferenciaDepositoFormComponent"],
        data: {
            breadcrumb: "transferenciaDeposito",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].detail }
        }
    }
];
var TransferenciaDepositoRoutingModule = /** @class */ (function () {
    function TransferenciaDepositoRoutingModule() {
    }
    TransferenciaDepositoRoutingModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"].forChild(MRoutes)],
            exports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"]]
        })
    ], TransferenciaDepositoRoutingModule);
    return TransferenciaDepositoRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferencia-deposito.service.ts":
/*!******************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/pontafelix/movimentos/transferencia-deposito/transferencia-deposito.service.ts ***!
  \******************************************************************************************************************/
/*! exports provided: TransferenciaDepositoService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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









var TransferenciaDepositoService = /** @class */ (function (_super) {
    __extends(TransferenciaDepositoService, _super);
    function TransferenciaDepositoService(http, message) {
        var _this = _super.call(this, http, "pontafelix/transferenciaDeposito") || this;
        _this.http = http;
        _this.message = message;
        _this.title = "titles.transferenciaDeposito";
        _this.data = new _transferencia_deposito_model__WEBPACK_IMPORTED_MODULE_7__["TransferenciaDeposito"]();
        _this.filtro = new _transferencia_deposito_model__WEBPACK_IMPORTED_MODULE_7__["TransferenciaDepositoFiltroVo"]();
        _this.constantes = new _transferencia_deposito_constants__WEBPACK_IMPORTED_MODULE_8__["TransferenciaDepositoConstants"]();
        _this.showSave = true;
        return _this;
    }
    TransferenciaDepositoService.prototype.getByFiltro = function () {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/pontafelix/transferenciaDeposito/getByFiltro", this.filtro)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_6__["ErrorHandler"].handleError));
    };
    TransferenciaDepositoService.prototype.excluirDados = function (cliFelProgTransfDepositoId) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/pontafelix/transferenciaDeposito/remove", { cliFelProgTransfDepositoId: cliFelProgTransfDepositoId })
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_6__["ErrorHandler"].handleError));
    };
    TransferenciaDepositoService.prototype.conclusaoDados = function (cliFelProgTransfDepositoId) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/pontafelix/transferenciaDeposito/conclusao/dados/" + cliFelProgTransfDepositoId, null)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_6__["ErrorHandler"].handleError));
    };
    TransferenciaDepositoService.prototype.conclusaoGrava = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/pontafelix/transferenciaDeposito/conclusao/grava", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_6__["ErrorHandler"].handleError));
    };
    TransferenciaDepositoService.prototype.gravarDados = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/pontafelix/transferenciaDeposito", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_6__["ErrorHandler"].handleError));
    };
    TransferenciaDepositoService.prototype.excluirDadosMotorista = function (cliFelProgTransfDepositoId, regItem) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/pontafelix/transferenciaDeposito/mototista/excluir", { cliFelProgTransfDepositoId: cliFelProgTransfDepositoId, regItem: regItem })
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_6__["ErrorHandler"].handleError));
    };
    TransferenciaDepositoService.prototype.motoristaGrava = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/pontafelix/transferenciaDeposito/autorizacao/gravar", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_6__["ErrorHandler"].handleError));
    };
    TransferenciaDepositoService.prototype.autorizacaoRegistra1Pes = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/pontafelix/transferenciaDeposito/autorizacao/autorizacaoRegistra1Pes", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_6__["ErrorHandler"].handleError));
    };
    TransferenciaDepositoService.prototype.autorizacaoRegistra2Pes = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/pontafelix/transferenciaDeposito/autorizacao/autorizacaoRegistra2Pes", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_6__["ErrorHandler"].handleError));
    };
    TransferenciaDepositoService.prototype.autorizacaoCancela1Pes = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/pontafelix/transferenciaDeposito/autorizacao/autorizacaoCancela1Pes", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_6__["ErrorHandler"].handleError));
    };
    TransferenciaDepositoService.prototype.autorizacaoCancela2Pes = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/pontafelix/transferenciaDeposito/autorizacao/autorizacaoCancela2Pes", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_6__["ErrorHandler"].handleError));
    };
    TransferenciaDepositoService.prototype.autorizacaoDados = function (cliFelProgTransfDepositoId) {
        return this.http
            .get(_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/pontafelix/transferenciaDeposito/autorizacao/dados/" + cliFelProgTransfDepositoId)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_6__["ErrorHandler"].handleError));
    };
    TransferenciaDepositoService.prototype.validaPesagemInicial = function (placa) {
        return this.http
            .get(_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/pontafelix/transferenciaDeposito/motorista/validaPesagemInicial/" + placa)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_6__["ErrorHandler"].handleError));
    };
    TransferenciaDepositoService.prototype.cancelaConclusao = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/pontafelix/transferenciaDeposito/conclusao/cancelaConclusao", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_6__["ErrorHandler"].handleError));
    };
    TransferenciaDepositoService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] }
    ]; };
    TransferenciaDepositoService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
            providedIn: 'root'
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"]])
    ], TransferenciaDepositoService);
    return TransferenciaDepositoService;
}(app_shared_services_base_specifics_base_service__WEBPACK_IMPORTED_MODULE_2__["SpecificsBaseService"]));



/***/ }),

/***/ "./src/app/shared/services/funcoes/email/email.service.ts":
/*!****************************************************************!*\
  !*** ./src/app/shared/services/funcoes/email/email.service.ts ***!
  \****************************************************************/
/*! exports provided: EmailService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EmailService", function() { return EmailService; });
/* harmony import */ var _base_base_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../base/base.service */ "./src/app/shared/services/base/base.service.ts");
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../environments/environment */ "./src/environments/environment.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 EmailService = /** @class */ (function (_super) {
    __extends(EmailService, _super);
    function EmailService(http) {
        var _this = _super.call(this, http, "controlle/enviarEmail") || this;
        _this.http = http;
        return _this;
    }
    EmailService.prototype.enviarEmail = function (data) {
        return this.http.post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/controlle/enviarEmail/", data);
    };
    EmailService.prototype.IsValidEmailAddress = function (email) {
        var exclude = email.search("/[^@.-w]|^[_@.-]|[._-]{2}|[@.]{2}|(@)[^@]*1/");
        var check = email.search("/@[w-]+./");
        var checkend = email.search("/.[a-zA-Z]{2,3}$/");
        if ((exclude !== -1)
            || (check === -1)
            || (checkend === -1)) {
            return false;
        }
        else {
            return true;
        }
    };
    EmailService.prototype.IsValidEmailAddressed = function (emails) {
        var regex = /^((?!\.)[\w-_.]*[^.])(@\w+)(\.\w+(\.\w+)?[^.\W])$/gm;
        var emailList = emails.split(";");
        var isAllValid = true;
        emailList.forEach(function (e) {
            if (!regex.test(e) && isAllValid) {
                isAllValid = false;
            }
        });
        return isAllValid;
    };
    EmailService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"] }
    ]; };
    EmailService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Injectable"])({
            providedIn: 'root'
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"]])
    ], EmailService);
    return EmailService;
}(_base_base_service__WEBPACK_IMPORTED_MODULE_0__["BaseService"]));



/***/ })

}]);
//# sourceMappingURL=app-pages-especificos-pontafelix-movimentos-transferencia-deposito-transferencia-deposito-module.js.map