(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-especificos-cap-portaria-reentrega-cracha-reentrega-cracha-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cap/portaria/reentrega-cracha/reentrega-cracha-filter/reentrega-cracha-filter.component.html":
/*!**********************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cap/portaria/reentrega-cracha/reentrega-cracha-filter/reentrega-cracha-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=\"reentrega-cracha-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.reentregaCracha' | translate }}</h6>\n            </div>\n            <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\" autocomplete=\"off\">\n                <app-validacoes></app-validacoes>\n                <div class=\"modal-body\">\n                    <div class=\"row\">\n                        <div class=\"col-lg-6 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"patioId\">{{ 'labels.patio' | translate}}</label>\n                                <app-combo-patio id=\"patioId\" name=\"patioId\" tipoTransp=\"T\"\n                                    [(ngModel)]=\"service.filtro.patioId\">\n                                </app-combo-patio>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-6\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"periodoDe\" class=\"required\">\n                                    {{\"labels.periodoDe\" | translate }}\n                                </label>\n                                <app-data id=\"periodoDe\" name=\"periodoDe\" required=\"true\"\n                                    [(ngModel)]=\"service.filtro.dataI\" (executa)=\"validaDatas()\">\n                                </app-data>\n                            </div>\n                        </div>\n                        <div class=\"col-lg-6\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"ate\" class=\"required\">\n                                    {{\"labels.ate\" | translate}}\n                                </label>\n                                <app-data id=\"ate\" name=\"ate\" required=\"true\" [(ngModel)]=\"service.filtro.dataF\"\n                                    (executa)=\"validaDatas()\">\n                                </app-data>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-12 col-md-12 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <app-pesquisa-destinatario id=\"cliente\" name=\"cliente\" tipoDestinatario=\"C\"\n                                    modalTitle=\"pesquisaDeCliente\" label=\"cliente\"\n                                    [(ngModel)]=\"service.filtro.destinatarioIdCliente\" showInscricao=\"false\"\n                                    showCgcCpf=\"false\" [inSelected]=\"service.filtro.cliente\"\n                                    (outModel)=\"trataCliente($event)\">\n                                </app-pesquisa-destinatario>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-12 col-md-12 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <app-pesquisa-material id=\"materialId\" name=\"materialId\" label=\"produto\"\n                                    modalTitle=\"pesquisaDeProduto\" [(ngModel)]=\"service.filtro.materialId\"\n                                    [inSelected]=\"service.filtro.material\" (outModel)=\"trataMaterial($event)\">\n                                </app-pesquisa-material>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-12 col-md-12 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <app-pesquisa-destinatario id=\"destinatarioTransportadoraId\"\n                                    name=\"destinatarioTransportadoraId\" label=\"transportadora\"\n                                    modalTitle=\"pesquisaDeTransportadora\"\n                                    [(ngModel)]=\"service.filtro.destinatarioIdTransportadora\" tipoDestinatario=\"T\"\n                                    showCgcCpf=\"false\" showInscricao=\"false\" (outModel)=\"outTransportadora($event)\">\n                                </app-pesquisa-destinatario>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <app-pesquisa-motorista id=\"motoristaId\" name=\"motoristaId\" label=\"motorista\"\n                                    modalTitle=\"pesquisaMotorista\" [(ngModel)]=\"service.filtro.motoristaId\"\n                                    [showCpf]=\"true\" showCursos=\"false\" showDocumentos=\"false\">\n                                </app-pesquisa-motorista>\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=\"cadastroPlacaId\">{{ 'labels.placa' | translate}}</label>\n                                <input id=\"cadastroPlacaId\" name=\"cadastroPlacaId\" maxlength=\"18\"\n                                    [(ngModel)]=\"service.filtro.cadastroPlacaId\" class=\"form-control form-control-sm\">\n                            </div>\n                        </div>\n                        <div class=\"col-lg-4\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"entradaVeiculoId\">{{ 'labels.registro' | translate}}</label>\n                                <input id=\"entradaVeiculoId\" name=\"entradaVeiculoId\" maxlength=\"11\" mask=\"999999999\"\n                                    [(ngModel)]=\"service.filtro.entradaVeiculoId\" class=\"form-control form-control-sm\">\n                            </div>\n                        </div>\n                        <div class=\"col-lg-4\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"checkListId\">{{ 'labels.checklist' | translate}}</label>\n                                <input id=\"checkListId\" name=\"checkListId\" maxlength=\"11\" mask=\"999999999\"\n                                    [(ngModel)]=\"service.filtro.checkListId\" class=\"form-control form-control-sm\">\n                            </div>\n                        </div>\n                    </div>\n                </div>\n                <div class=\"modal-footer\">\n                    <button class=\"btn btn-success mr-1\" type=\"submit\">{{\n                        'buttons.pesquisar' | translate }}\n                    </button>\n                    <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">Sair</button>\n                </div>\n            </form>\n        </div>\n    </div>\n</div>");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<app-menu-command-bar [botoesComando]=\"constantes.listaIndex\"\r\n                      [formAction]=\"actionForm\"\r\n                      [itemData]=\"data.regControle\"\r\n                      [sisFormularioId]=\"constantes.sisFormularioId\">\r\n</app-menu-command-bar>\r\n\r\n<div class=\"section-comand-bar\">\r\n    <table id=\"dtReentregaCracha\" class=\"table table-striped table-bordered table-hover nowrap table-sm\"></table>\r\n</div>\r\n\r\n<app-propriedades></app-propriedades>\r\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\r\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\r\n<app-reentrega-cracha-filter (filtrar)=\"executarFiltro()\">\r\n</app-reentrega-cracha-filter>\r\n<app-motiva-motorista (ok)=\"outMotivaMotorista($event)\"></app-motiva-motorista>\r\n<app-reentrega-cracha-tag (_refresh)=\"_refresh($event)\"></app-reentrega-cracha-tag>\r\n");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cap/portaria/reentrega-cracha/reentrega-cracha-tag/reentrega-cracha-tag.component.html":
/*!****************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cap/portaria/reentrega-cracha/reentrega-cracha-tag/reentrega-cracha-tag.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=\"reentrega-cracha-tag-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\r\n    <div class=\"modal-dialog modal-sm\">\r\n        <div class=\"modal-content\">\r\n            <div class=\"modal-header\">\r\n                <h6 class=\"modal-title\">{{ 'titles.substituirTAG' | translate }}</h6>\r\n            </div>\r\n            <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\">\r\n                <app-validacoes></app-validacoes>\r\n                <div class=\"modal-body\">\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-6 col-md-12 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"cartaoAtual\">\r\n                                    {{'labels.cartaoAtual' | translate}}</label>\r\n                                <input type=\"text\" id=\"cartaoAtual\" name=\"cartaoAtual\"\r\n                                    class=\"form-control form-control-sm\" [(ngModel)]=\"data.cartaoAtual\" maxlength=\"15\"\r\n                                    disabled>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"col-lg-6 col-md-12 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"cartaoNovo\" class=\"required\">\r\n                                    {{'labels.cartaoNovo' | translate}}</label>\r\n                                <input type=\"text\" id=\"cartaoNovo\" name=\"cartaoNovo\"\r\n                                    class=\"form-control form-control-sm\" [(ngModel)]=\"data.cartaoNovo\" maxlength=\"15\"\r\n                                    required>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n                <div class=\"modal-footer\">\r\n                    <button class=\"btn btn-success mr-1\" type=\"submit\">{{ 'buttons.ok' | translate }}\r\n                    </button>\r\n                    <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">cancelar</button>\r\n                </div>\r\n            </form>\r\n        </div>\r\n    </div>\r\n</div>");

/***/ }),

/***/ "./src/app/pages/especificos/cap/portaria/reentrega-cracha/reentrega-cracha-filter/reentrega-cracha-filter.component.ts":
/*!******************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cap/portaria/reentrega-cracha/reentrega-cracha-filter/reentrega-cracha-filter.component.ts ***!
  \******************************************************************************************************************************/
/*! exports provided: ReentregaCrachaFilterComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReentregaCrachaFilterComponent", function() { return ReentregaCrachaFilterComponent; });
/* harmony import */ var _cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../../../../../cadastro/material/material.service */ "./src/app/pages/cadastro/material/material.service.ts");
/* harmony import */ var _cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./../../../../../cadastro/destinatario/destinatario.service */ "./src/app/pages/cadastro/destinatario/destinatario.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./../../../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_5__ = __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_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/funcoes/date-time-utils/date-time-utils.static.service */ "./src/app/shared/services/funcoes/date-time-utils/date-time-utils.static.service.ts");
/* harmony import */ var app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/pages/cadastro/destinatario/destinatario.model */ "./src/app/pages/cadastro/destinatario/destinatario.model.ts");
/* harmony import */ var app_pages_cadastro_material_material_model__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/pages/cadastro/material/material.model */ "./src/app/pages/cadastro/material/material.model.ts");
/* harmony import */ var _reentrega_cracha_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../reentrega-cracha.constants */ "./src/app/pages/especificos/cap/portaria/reentrega-cracha/reentrega-cracha.constants.ts");
/* harmony import */ var _reentrega_cracha_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../reentrega-cracha.service */ "./src/app/pages/especificos/cap/portaria/reentrega-cracha/reentrega-cracha.service.ts");
/* harmony import */ var _reentrega_cracha_model__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../reentrega-cracha.model */ "./src/app/pages/especificos/cap/portaria/reentrega-cracha/reentrega-cracha.model.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};












var ReentregaCrachaFilterComponent = /** @class */ (function () {
    function ReentregaCrachaFilterComponent(service, message, destinatarioService, materialService) {
        this.service = service;
        this.message = message;
        this.destinatarioService = destinatarioService;
        this.materialService = materialService;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_3__["EventEmitter"]();
        this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_4__["Mascaras"]();
        this.constantes = new _reentrega_cracha_constants__WEBPACK_IMPORTED_MODULE_9__["ReentregaCrachaConstants"]();
    }
    ReentregaCrachaFilterComponent.prototype.ngOnInit = function () {
        if (!this.service.filtro) {
            this.service.filtro = new _reentrega_cracha_model__WEBPACK_IMPORTED_MODULE_11__["ReentregaCrachaFilter"]();
        }
    };
    ReentregaCrachaFilterComponent.prototype.onSubmit = function (form) {
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_5__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        if (app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_6__["DateTimeUtilsStaticService"].menorA(this.service.filtro.dataF, this.service.filtro.dataI, ['H', 'M'])) {
            this.message.warning("titles.reentregaCracha", "messages.dataInicioNaoPodeSerMaiorDataFim");
            return;
        }
        this.filtrar.emit();
        jQuery("#reentrega-cracha-filter-dialog").modal("hide");
    };
    ReentregaCrachaFilterComponent.prototype.validaDatas = function () {
        if (app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_6__["DateTimeUtilsStaticService"].menorA(this.service.filtro.dataF, this.service.filtro.dataI, ['H', 'M'])) {
            this.message.warning("titles.reentregaCracha", "messages.dataInicioNaoPodeSerMaiorDataFim");
        }
    };
    ReentregaCrachaFilterComponent.prototype.trataCliente = function (cliente) {
        this.service.filtro.cliente = !!cliente ? cliente : new app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_7__["Destinatario"]();
    };
    ReentregaCrachaFilterComponent.prototype.trataMaterial = function (material) {
        this.service.filtro.material = !!material ? material : new app_pages_cadastro_material_material_model__WEBPACK_IMPORTED_MODULE_8__["Material"]();
    };
    ReentregaCrachaFilterComponent.prototype.outTransportadora = function (transportadora) {
        this.service.filtro.transportadora = !!transportadora ? transportadora : new app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_7__["Destinatario"]();
    };
    ReentregaCrachaFilterComponent.ctorParameters = function () { return [
        { type: _reentrega_cracha_service__WEBPACK_IMPORTED_MODULE_10__["ReentregaCrachaService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"] },
        { type: _cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_1__["DestinatarioService"] },
        { type: _cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_0__["MaterialService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_3__["Output"])(),
        __metadata("design:type", Object)
    ], ReentregaCrachaFilterComponent.prototype, "filtrar", void 0);
    ReentregaCrachaFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_3__["Component"])({
            selector: "app-reentrega-cracha-filter",
            template: __importDefault(__webpack_require__(/*! raw-loader!./reentrega-cracha-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cap/portaria/reentrega-cracha/reentrega-cracha-filter/reentrega-cracha-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_reentrega_cracha_service__WEBPACK_IMPORTED_MODULE_10__["ReentregaCrachaService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"],
            _cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_1__["DestinatarioService"],
            _cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_0__["MaterialService"]])
    ], ReentregaCrachaFilterComponent);
    return ReentregaCrachaFilterComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cap/portaria/reentrega-cracha/reentrega-cracha-index/reentrega-cracha-index.component.ts":
/*!****************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cap/portaria/reentrega-cracha/reentrega-cracha-index/reentrega-cracha-index.component.ts ***!
  \****************************************************************************************************************************/
/*! exports provided: ReentregaCrachaIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReentregaCrachaIndexComponent", function() { return ReentregaCrachaIndexComponent; });
/* 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_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_2__ = __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_3__ = __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_4__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _reentrega_cracha_model__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../reentrega-cracha.model */ "./src/app/pages/especificos/cap/portaria/reentrega-cracha/reentrega-cracha.model.ts");
/* harmony import */ var _reentrega_cracha_constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../reentrega-cracha.constants */ "./src/app/pages/especificos/cap/portaria/reentrega-cracha/reentrega-cracha.constants.ts");
/* harmony import */ var _reentrega_cracha_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../reentrega-cracha.service */ "./src/app/pages/especificos/cap/portaria/reentrega-cracha/reentrega-cracha.service.ts");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_11__ = __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_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! app/shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var app_pages_veiculo_check_list_check_list_facade__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! app/pages/veiculo/check-list/check-list.facade */ "./src/app/pages/veiculo/check-list/check-list.facade.ts");
/* harmony import */ var _reentrega_cracha_tag_reentrega_cracha_tag_component__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../reentrega-cracha-tag/reentrega-cracha-tag.component */ "./src/app/pages/especificos/cap/portaria/reentrega-cracha/reentrega-cracha-tag/reentrega-cracha-tag.component.ts");
/* harmony import */ var app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! app/shared/services/funcoes/string-utils/string-utils.static.service */ "./src/app/shared/services/funcoes/string-utils/string-utils.static.service.ts");
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 ReentregaCrachaIndexComponent = /** @class */ (function (_super) {
    __extends(ReentregaCrachaIndexComponent, _super);
    function ReentregaCrachaIndexComponent(router, service, datatablesService, messageService, funcoesService, permissoesUtils, loginService, configuracao, checkListFacade) {
        var _this = _super.call(this, new _reentrega_cracha_constants__WEBPACK_IMPORTED_MODULE_8__["ReentregaCrachaConstants"](), funcoesService) || this;
        _this.router = router;
        _this.service = service;
        _this.datatablesService = datatablesService;
        _this.messageService = messageService;
        _this.funcoesService = funcoesService;
        _this.permissoesUtils = permissoesUtils;
        _this.loginService = loginService;
        _this.configuracao = configuracao;
        _this.checkListFacade = checkListFacade;
        _this.data = new _reentrega_cracha_model__WEBPACK_IMPORTED_MODULE_7__["ReentregaCrachaDto"]();
        _this.constantes = new _reentrega_cracha_constants__WEBPACK_IMPORTED_MODULE_8__["ReentregaCrachaConstants"]();
        _this.target = _this.funcoesService.getTargetLocation();
        _this.pageRoute = "/especificos/cotriguacu/movimentos/reentregaCracha";
        _this.loadConfig = function () {
            _this.service.configs.intCta = _this.configuracao.boolean("BAL", "IntCta");
            _this.service.configs.intOctCrachaAces = _this.configuracao.boolean("BAL", "IntOctCrachaAces");
        };
        _this.gravarCrachaDeAcesso = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 4, 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:
                            if (!this.itemSelecionado())
                                return [2 /*return*/];
                            return [4 /*yield*/, this.service.podeGravarCrachaDeAcesso({ regControle: this.data.regControle }).toPromise()];
                        case 1:
                            validationResult = _a.sent();
                            if (!validationResult.isValid) {
                                mensagens = this.messageService.validationResult(validationResult);
                                mensagens.forEach(function (m) { return _this.messageService.warning("titles.reentregaCracha", m); });
                                return [2 /*return*/];
                            }
                            else {
                                if (!this.service.configs.intCta) {
                                    this.messageService.warning("titles.reentregaCracha", "messages.integracaoComControleDeAcessoDesativada");
                                    return [2 /*return*/];
                                }
                                else {
                                    if (this.service.configs.intOctCrachaAces) {
                                        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_13__["EventEmitterService"].get('emiMotivaMotorista').emit({ entradaVeiculoId: this.data.regControle });
                                    }
                                    else {
                                        this.messageService.warning("titles.reentregaCracha", "messages.integracaoCControleAcessoDesativadaFavorVerificar");
                                    }
                                }
                            }
                            return [2 /*return*/];
                    }
                });
            }); });
        };
        _this.substituirTAG = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 5, 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:
                            if (!this.itemSelecionado())
                                return [2 /*return*/];
                            return [4 /*yield*/, this.service.podeSubstituirTAG({ regControle: this.data.regControle }).toPromise()];
                        case 1:
                            validationResult = _a.sent();
                            if (!validationResult.isValid) {
                                mensagens = this.messageService.validationResult(validationResult);
                                mensagens.forEach(function (m) { return _this.messageService.warning("titles.reentregaCracha", m); });
                                return [2 /*return*/];
                            }
                            else {
                                app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_13__["EventEmitterService"].get("formError").emit(null);
                                this.childReentregaCrachaTagComponent.objectSelect(this.data);
                                jQuery("#reentrega-cracha-tag-dialog").modal("show");
                            }
                            return [2 /*return*/];
                    }
                });
            }); });
        };
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    ReentregaCrachaIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.configuracao.getConfig(this.constantes.listaParam, this.loadConfig);
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
            if (!_this.loginService.isTokenExpired()) {
                _this.filtrar();
            }
        }, function () {
            _this.permissoesUtils.back();
        }, true);
        _super.prototype.addFuncoes.call(this, [
            { action: 'gravarCrachaDeAcesso', func: function () { return _this.gravarCrachaDeAcesso; } },
            { action: 'substituirTAG', func: function () { return _this.substituirTAG; } },
        ]);
    };
    ReentregaCrachaIndexComponent.prototype.filtrar = function () {
        jQuery("#reentrega-cracha-filter-dialog").modal("show");
    };
    ReentregaCrachaIndexComponent.prototype.executarFiltro = function () {
        this.refresh();
    };
    ReentregaCrachaIndexComponent.prototype.refresh = function () {
        var _this = this;
        this.service.getByFiltro(this.service.filtro).subscribe(function (resp) {
            var columns = [
                _this.datatablesService.getDataString("regControle", "ccd"),
                _this.datatablesService.getDataString("tipoMov", "tipo"),
                _this.datatablesService.getDataDateTime("dtChegada", "chegada", "DD/MM/YYYY HH:mm:ss", "15%"),
                _this.datatablesService.getDataString("codCheckList", "checkList"),
                _this.datatablesService.getDataString("nomeMotorista", "motorista"),
                _this.datatablesService.getDataString("placaCavalo", "placaCavalo"),
                _this.datatablesService.getDataString("numCracha", "cracha"),
                _this.datatablesService.getDataString("numTag", "numTag"),
                _this.datatablesService.getDataString("descrSitVeiculo", "situacao"),
                _this.datatablesService.getDataString("cliente", "cliente"),
                _this.datatablesService.getDataString("nomeTransp", "transportadora"),
            ];
            _this.datatablesService.datatable("dtReentregaCracha", columns, resp, function (aData) {
                _this.data = aData;
            });
        });
    };
    ReentregaCrachaIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    ReentregaCrachaIndexComponent.prototype.print = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
            _this.constantes.paramRelatorio = {
                filialId: _this.loginService.getLogin().filialId,
                dataI: _this.service.filtro.dataI,
                dataF: _this.service.filtro.dataF,
                destinatarioIdCliente: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["NumberUtilsStaticService"].toNumber(_this.service.filtro.destinatarioIdCliente),
                destinatarioIdTransportadora: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["NumberUtilsStaticService"].toNumber(_this.service.filtro.destinatarioIdTransportadora),
                motoristaId: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["NumberUtilsStaticService"].toNumber(_this.service.filtro.motoristaId),
                checkListId: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["NumberUtilsStaticService"].toNumber(_this.service.filtro.checkListId),
                entradaVeiculoId: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["NumberUtilsStaticService"].toNumber(_this.service.filtro.entradaVeiculoId),
                patioId: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["NumberUtilsStaticService"].toNumber(_this.service.filtro.patioId),
                materialId: app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_16__["StringUtilsStaticService"].toString(_this.service.filtro.materialId),
                cadastroPlacaId: app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_16__["StringUtilsStaticService"].toString(_this.service.filtro.cadastroPlacaId)
            };
            _super.prototype.print.call(_this, null, true);
        });
    };
    ReentregaCrachaIndexComponent.prototype.itemSelecionado = function () {
        if (app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["NumberUtilsStaticService"].isNotPositive(this.data.regControle)) {
            this.messageService.warning("titles.reentregaCracha", "messages.selecioneUmRegistro");
            return false;
        }
        return true;
    };
    ReentregaCrachaIndexComponent.prototype.outMotivaMotorista = function (ok) {
        var _this = this;
        if (ok)
            this.checkListFacade.confirmaAprovacao(this.data.codCheckList, function () { return _this.refresh(); });
    };
    ReentregaCrachaIndexComponent.prototype._refresh = function (event) {
        if (event) {
            this.refresh();
        }
    };
    ReentregaCrachaIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _reentrega_cracha_service__WEBPACK_IMPORTED_MODULE_9__["ReentregaCrachaService"] },
        { type: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_2__["DatatablesService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_5__["PermissoesUtilsService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_10__["LoginService"] },
        { type: app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_12__["ConfiguracaoFacade"] },
        { type: app_pages_veiculo_check_list_check_list_facade__WEBPACK_IMPORTED_MODULE_14__["CheckListFacade"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(_reentrega_cracha_tag_reentrega_cracha_tag_component__WEBPACK_IMPORTED_MODULE_15__["ReentregaCrachaTagComponent"], { static: false }),
        __metadata("design:type", _reentrega_cracha_tag_reentrega_cracha_tag_component__WEBPACK_IMPORTED_MODULE_15__["ReentregaCrachaTagComponent"])
    ], ReentregaCrachaIndexComponent.prototype, "childReentregaCrachaTagComponent", void 0);
    ReentregaCrachaIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-reentrega-cracha-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./reentrega-cracha-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cap/portaria/reentrega-cracha/reentrega-cracha-index/reentrega-cracha-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _reentrega_cracha_service__WEBPACK_IMPORTED_MODULE_9__["ReentregaCrachaService"],
            app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_2__["DatatablesService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_5__["PermissoesUtilsService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_10__["LoginService"],
            app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_12__["ConfiguracaoFacade"],
            app_pages_veiculo_check_list_check_list_facade__WEBPACK_IMPORTED_MODULE_14__["CheckListFacade"]])
    ], ReentregaCrachaIndexComponent);
    return ReentregaCrachaIndexComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_6__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/cap/portaria/reentrega-cracha/reentrega-cracha-tag/reentrega-cracha-tag.component.ts":
/*!************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cap/portaria/reentrega-cracha/reentrega-cracha-tag/reentrega-cracha-tag.component.ts ***!
  \************************************************************************************************************************/
/*! exports provided: ReentregaCrachaTagComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReentregaCrachaTagComponent", function() { return ReentregaCrachaTagComponent; });
/* harmony import */ var _shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../../../../../../shared/services/funcoes/string-utils/string-utils.static.service */ "./src/app/shared/services/funcoes/string-utils/string-utils.static.service.ts");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _reentrega_cracha_model__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../reentrega-cracha.model */ "./src/app/pages/especificos/cap/portaria/reentrega-cracha/reentrega-cracha.model.ts");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.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_message_message_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _reentrega_cracha_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../reentrega-cracha.service */ "./src/app/pages/especificos/cap/portaria/reentrega-cracha/reentrega-cracha.service.ts");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
    return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
    function verb(n) { return function (v) { return step([n, v]); }; }
    function step(op) {
        if (f) throw new TypeError("Generator is already executing.");
        while (_) try {
            if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
            if (y = 0, t) op = [op[0] & 2, t.value];
            switch (op[0]) {
                case 0: case 1: t = op; break;
                case 4: _.label++; return { value: op[1], done: false };
                case 5: _.label++; y = op[1]; op = [0]; continue;
                case 7: op = _.ops.pop(); _.trys.pop(); continue;
                default:
                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                    if (t[2]) _.ops.pop();
                    _.trys.pop(); continue;
            }
            op = body.call(thisArg, _);
        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
    }
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};










var ReentregaCrachaTagComponent = /** @class */ (function () {
    function ReentregaCrachaTagComponent(funcoesService, messageService, service, loginService, permissoesUtils) {
        this.funcoesService = funcoesService;
        this.messageService = messageService;
        this.service = service;
        this.loginService = loginService;
        this.permissoesUtils = permissoesUtils;
        this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_3__["Mascaras"]();
        this.mensagens = [];
        this._refresh = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
    }
    ReentregaCrachaTagComponent.prototype.ngOnInit = function () {
        this.data = new _reentrega_cracha_model__WEBPACK_IMPORTED_MODULE_2__["ReentregaCrachaDto"]();
    };
    ReentregaCrachaTagComponent.prototype.onSubmit = function (form) {
        return __awaiter(this, void 0, void 0, function () {
            var validationResult, mensagens;
            var _this = this;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_8__["EventEmitterService"].get("formError").emit(null);
                        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_8__["EventEmitterService"].get("formError").emit(form);
                        if (form.invalid) {
                            this.funcoesService.backToTop();
                            return [2 /*return*/];
                        }
                        if (!this.preSave())
                            return [2 /*return*/];
                        return [4 /*yield*/, this.service.podeGravarTAG({ regControle: this.data.regControle, cartaoAtual: this.data.cartaoAtual, cartaoNovo: this.data.cartaoNovo }).toPromise()];
                    case 1:
                        validationResult = _a.sent();
                        if (!validationResult.isValid) {
                            mensagens = this.messageService.validationResult(validationResult);
                            mensagens.forEach(function (m) { return _this.messageService.warning("titles.reentregaCracha", m); });
                            return [2 /*return*/];
                        }
                        else {
                            this.executeGravaTAG();
                        }
                        return [2 /*return*/];
                }
            });
        });
    };
    ReentregaCrachaTagComponent.prototype.executeGravaTAG = 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.gravaTAG({ regControle: this.data.regControle, cartaoNovo: this.data.cartaoNovo }).toPromise()];
                    case 1:
                        validationResult = _a.sent();
                        if (!validationResult.isValid) {
                            mensagens = this.messageService.validationResult(validationResult);
                            mensagens.forEach(function (m) { return _this.messageService.warning("titles.reentregaCracha", m); });
                            return [2 /*return*/];
                        }
                        else {
                            jQuery("#reentrega-cracha-tag-dialog").modal("hide");
                            this._refresh.emit(true);
                            /* Após a execução seria chamada a automação, nesse momento não será descrito */
                        }
                        return [2 /*return*/];
                }
            });
        });
    };
    ReentregaCrachaTagComponent.prototype.objectSelect = function (current) {
        this.data = current;
        this.data.cartaoAtual = current.numTag;
        this.data.cartaoNovo = "";
    };
    ReentregaCrachaTagComponent.prototype.preSave = function () {
        if (_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["StringUtilsStaticService"].isEmpty(this.data.cartaoNovo)) {
            this.messageService.warning("titles.reentregaCracha", "messages.informeNumeroTag");
            return false;
        }
        if (this.data.cartaoNovo === this.data.cartaoAtual) {
            this.messageService.warning("titles.reentregaCracha", "messages.novoCartaoDeveSerDiferenteDoAtual");
            return false;
        }
        return true;
    };
    ReentregaCrachaTagComponent.ctorParameters = function () { return [
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__["MessageService"] },
        { type: _reentrega_cracha_service__WEBPACK_IMPORTED_MODULE_6__["ReentregaCrachaService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_7__["LoginService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__["PermissoesUtilsService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"])(),
        __metadata("design:type", Object)
    ], ReentregaCrachaTagComponent.prototype, "_refresh", void 0);
    ReentregaCrachaTagComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
            selector: "app-reentrega-cracha-tag",
            template: __importDefault(__webpack_require__(/*! raw-loader!./reentrega-cracha-tag.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cap/portaria/reentrega-cracha/reentrega-cracha-tag/reentrega-cracha-tag.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__["MessageService"],
            _reentrega_cracha_service__WEBPACK_IMPORTED_MODULE_6__["ReentregaCrachaService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_7__["LoginService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__["PermissoesUtilsService"]])
    ], ReentregaCrachaTagComponent);
    return ReentregaCrachaTagComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cap/portaria/reentrega-cracha/reentrega-cracha.constants.ts":
/*!***********************************************************************************************!*\
  !*** ./src/app/pages/especificos/cap/portaria/reentrega-cracha/reentrega-cracha.constants.ts ***!
  \***********************************************************************************************/
/*! exports provided: ReentregaCrachaConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReentregaCrachaConstants", function() { return ReentregaCrachaConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var ReentregaCrachaConstants = /** @class */ (function () {
    function ReentregaCrachaConstants() {
        this.sisFormularioId = 375462;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.consulta" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.permissoes" },
            { sisFormularioId: this.sisFormularioId, libRotina: 3, acao: "labels.impressao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 4, acao: "labels.gravarCrachaDeAcesso" },
            { sisFormularioId: this.sisFormularioId, libRotina: 5, acao: "labels.substituirTAG" },
        ];
        this.nomeForm = "titles.reentregaCracha";
        this.reportId = "CAP0006";
        this.reportTitulo = { "titulo": "Reentrega de Crachá/TAG Veículo", "subTitulo": "" };
        this.listaIndex = [
            { title: 'Atualizar', action: 'refresh', icon: "icon-reload", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Pesquisar', action: 'filtrar', icon: "icon-search", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Imprimir', action: 'print', icon: "icon-printer", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'GravarCrachaDeAcesso', action: 'gravarCrachaDeAcesso', icon: "fa fa-id-badge", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'SubstituirTAG', action: 'substituirTAG', icon: "fa fa-tag", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
        ];
        this.listaParam = [
            {
                sistema: "BAL", parametros: [
                    "IntCta",
                    "IntOctCrachaAces",
                ]
            }
        ];
    }
    return ReentregaCrachaConstants;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cap/portaria/reentrega-cracha/reentrega-cracha.model.ts":
/*!*******************************************************************************************!*\
  !*** ./src/app/pages/especificos/cap/portaria/reentrega-cracha/reentrega-cracha.model.ts ***!
  \*******************************************************************************************/
/*! exports provided: ReentregaCrachaFilter, ReentregaCrachaDto */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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

var ReentregaCrachaFilter = /** @class */ (function () {
    function ReentregaCrachaFilter() {
        this.dataI = app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["DateTimeUtilsStaticService"].addDays(new Date(), -1);
        this.dataF = new Date();
        this.destinatarioIdCliente = "";
        this.destinatarioIdTransportadora = "";
        this.motoristaId = 0;
        this.checkListId = 0;
        this.entradaVeiculoId = 0;
        this.patioId = "";
        this.materialId = "";
        this.cadastroPlacaId = "";
    }
    return ReentregaCrachaFilter;
}());

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



/***/ }),

/***/ "./src/app/pages/especificos/cap/portaria/reentrega-cracha/reentrega-cracha.module.ts":
/*!********************************************************************************************!*\
  !*** ./src/app/pages/especificos/cap/portaria/reentrega-cracha/reentrega-cracha.module.ts ***!
  \********************************************************************************************/
/*! exports provided: ReentregaCrachaModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReentregaCrachaModule", function() { return ReentregaCrachaModule; });
/* 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 _reentrega_cracha_routing_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./reentrega-cracha.routing.module */ "./src/app/pages/especificos/cap/portaria/reentrega-cracha/reentrega-cracha.routing.module.ts");
/* harmony import */ var _reentrega_cracha_filter_reentrega_cracha_filter_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./reentrega-cracha-filter/reentrega-cracha-filter.component */ "./src/app/pages/especificos/cap/portaria/reentrega-cracha/reentrega-cracha-filter/reentrega-cracha-filter.component.ts");
/* harmony import */ var _reentrega_cracha_index_reentrega_cracha_index_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./reentrega-cracha-index/reentrega-cracha-index.component */ "./src/app/pages/especificos/cap/portaria/reentrega-cracha/reentrega-cracha-index/reentrega-cracha-index.component.ts");
/* harmony import */ var _reentrega_cracha_tag_reentrega_cracha_tag_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./reentrega-cracha-tag/reentrega-cracha-tag.component */ "./src/app/pages/especificos/cap/portaria/reentrega-cracha/reentrega-cracha-tag/reentrega-cracha-tag.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 ReentregaCrachaModule = /** @class */ (function () {
    function ReentregaCrachaModule() {
    }
    ReentregaCrachaModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [app_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"], _reentrega_cracha_routing_module__WEBPACK_IMPORTED_MODULE_2__["ReentregaCrachaRoutingModule"]],
            declarations: [
                _reentrega_cracha_index_reentrega_cracha_index_component__WEBPACK_IMPORTED_MODULE_4__["ReentregaCrachaIndexComponent"],
                _reentrega_cracha_filter_reentrega_cracha_filter_component__WEBPACK_IMPORTED_MODULE_3__["ReentregaCrachaFilterComponent"],
                _reentrega_cracha_tag_reentrega_cracha_tag_component__WEBPACK_IMPORTED_MODULE_5__["ReentregaCrachaTagComponent"]
            ]
        })
    ], ReentregaCrachaModule);
    return ReentregaCrachaModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cap/portaria/reentrega-cracha/reentrega-cracha.routing.module.ts":
/*!****************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cap/portaria/reentrega-cracha/reentrega-cracha.routing.module.ts ***!
  \****************************************************************************************************/
/*! exports provided: ReentregaCrachaRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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



var MRoutes = [
    {
        path: "",
        component: _reentrega_cracha_index_reentrega_cracha_index_component__WEBPACK_IMPORTED_MODULE_2__["ReentregaCrachaIndexComponent"],
        data: { breadcrumb: "reentregaCracha" }
    }
];
var ReentregaCrachaRoutingModule = /** @class */ (function () {
    function ReentregaCrachaRoutingModule() {
    }
    ReentregaCrachaRoutingModule = __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"]]
        })
    ], ReentregaCrachaRoutingModule);
    return ReentregaCrachaRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cap/portaria/reentrega-cracha/reentrega-cracha.service.ts":
/*!*********************************************************************************************!*\
  !*** ./src/app/pages/especificos/cap/portaria/reentrega-cracha/reentrega-cracha.service.ts ***!
  \*********************************************************************************************/
/*! exports provided: ReentregaCrachaService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReentregaCrachaService", function() { return ReentregaCrachaService; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
/* harmony import */ var environments_environment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/app.error-handler */ "./src/app/app.error-handler.ts");
/* harmony import */ var _reentrega_cracha_model__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./reentrega-cracha.model */ "./src/app/pages/especificos/cap/portaria/reentrega-cracha/reentrega-cracha.model.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};






var ReentregaCrachaService = /** @class */ (function () {
    function ReentregaCrachaService(http) {
        this.http = http;
        this.filtro = new _reentrega_cracha_model__WEBPACK_IMPORTED_MODULE_5__["ReentregaCrachaFilter"]();
        this.configs = {
            intCta: false,
            intOctCrachaAces: false,
            desmotAoMotivar: false,
        };
    }
    ReentregaCrachaService.prototype.getByFiltro = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].specifics_service_url + "/api/v1/cap/portaria/reentregaCracha/filter", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    ReentregaCrachaService.prototype.podeGravarCrachaDeAcesso = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].specifics_service_url + "/api/v1/cap/portaria/reentregaCracha/podeGravarCrachaDeAcesso", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    ReentregaCrachaService.prototype.podeSubstituirTAG = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].specifics_service_url + "/api/v1/cap/portaria/reentregaCracha/podeSubstituirTAG", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    ReentregaCrachaService.prototype.podeGravarTAG = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].specifics_service_url + "/api/v1/cap/portaria/reentregaCracha/podeGravarTAG", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    ReentregaCrachaService.prototype.gravaTAG = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].specifics_service_url + "/api/v1/cap/portaria/reentregaCracha/gravaTAG", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    ReentregaCrachaService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"] }
    ]; };
    ReentregaCrachaService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"]])
    ], ReentregaCrachaService);
    return ReentregaCrachaService;
}());



/***/ })

}]);
//# sourceMappingURL=app-pages-especificos-cap-portaria-reentrega-cracha-reentrega-cracha-module.js.map