(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["default~app-pages-especificos-cargill-consultas-check-list-check-list-module~app-pages-especificos-c~1bf3fec7"],{

/***/ "./src/app/pages/especificos/cargill/consultas/entrada-veiculo/entrada-veiculo.model.ts":
/*!**********************************************************************************************!*\
  !*** ./src/app/pages/especificos/cargill/consultas/entrada-veiculo/entrada-veiculo.model.ts ***!
  \**********************************************************************************************/
/*! exports provided: EntradaVeiculo, EntradaVeiculoDto, PesquisaEntradaVeiculo, EntradaVeiculoFilter, PesquisaEntradaVeiculoFilter, TipoModal, TipoImpressao, EntradaVeiculoItem, EntradaVeiculoValidacaoPendente */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EntradaVeiculo", function() { return EntradaVeiculo; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EntradaVeiculoDto", function() { return EntradaVeiculoDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PesquisaEntradaVeiculo", function() { return PesquisaEntradaVeiculo; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EntradaVeiculoFilter", function() { return EntradaVeiculoFilter; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PesquisaEntradaVeiculoFilter", function() { return PesquisaEntradaVeiculoFilter; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TipoModal", function() { return TipoModal; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TipoImpressao", function() { return TipoImpressao; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EntradaVeiculoItem", function() { return EntradaVeiculoItem; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EntradaVeiculoValidacaoPendente", function() { return EntradaVeiculoValidacaoPendente; });
/* harmony import */ var app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/pages/cadastro/destinatario/destinatario.model */ "./src/app/pages/cadastro/destinatario/destinatario.model.ts");
/* harmony import */ var app_pages_cadastro_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");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! moment */ "./node_modules/moment/moment.js");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_3__);
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 EntradaVeiculo = /** @class */ (function (_super) {
    __extends(EntradaVeiculo, _super);
    function EntradaVeiculo() {
        var _this = _super.call(this) || this;
        _this.lastre = "";
        _this.serieNotaIdCte = "";
        _this.dtChegada = new Date();
        _this.entradaVeiculoId = 0;
        _this.patioId = "";
        _this.tipoTransp = "R";
        _this.tipoVeiculoId = "";
        _this.localOperacaoId = "";
        _this.localTransferenciaId = "";
        _this.tipoOperacaoVeiculoId = 1;
        _this.tipoFrete = -1;
        _this.estadoIdCavalo = "";
        _this.checklistId = 0;
        _this.sistema = "CTV";
        _this.grValidade = "N";
        _this.cliente = new app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_0__["Destinatario"]();
        _this.emitente = new app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_0__["Destinatario"]();
        _this.transportadora = new app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_0__["Destinatario"]();
        _this.inspetora = new app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_0__["Destinatario"]();
        _this.motorista = new app_pages_cadastro_motorista_motorista_model__WEBPACK_IMPORTED_MODULE_1__["Motorista"]();
        _this.flagIntegracao = "";
        _this.tipoMov = "D";
        _this.flagTransferencia = "N";
        return _this;
    }
    return EntradaVeiculo;
}(app_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_2__["BaseModel"]));

var EntradaVeiculoDto = /** @class */ (function (_super) {
    __extends(EntradaVeiculoDto, _super);
    function EntradaVeiculoDto() {
        var _this = _super.call(this) || this;
        _this.lastre = "";
        _this.serieNotaIdCte = "";
        _this.entradaVeiculoId = 0;
        return _this;
    }
    return EntradaVeiculoDto;
}(app_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_2__["BaseModel"]));

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

var EntradaVeiculoFilter = /** @class */ (function () {
    function EntradaVeiculoFilter() {
        this.dataI = moment__WEBPACK_IMPORTED_MODULE_3__()
            .add(-1, "days")
            .toDate();
        this.dataF = new Date();
        this.localOperacaoId = "";
        this.patioId = "";
        this.tipoOperacaoVeiculoId = "";
        this.destinatarioClienteId = "";
        this.materialId = "";
        this.destinatarioTransportadoraId = "";
        this.motoristaId = "";
        this.nomeMotorista = "";
        this.entradaVeiculoId = "";
        this.cadastroPlacaId = "";
        this.checkListId = "";
        this.situacaoVeiculoId = "";
        this.tipoTransp = "";
        this.filialId = "";
        this.sistema = "CTV";
        this.ordem = "Cliente, DtChegada";
        this.loteId = "";
    }
    return EntradaVeiculoFilter;
}());

var PesquisaEntradaVeiculoFilter = /** @class */ (function () {
    function PesquisaEntradaVeiculoFilter() {
        this.dataIni = new Date();
        this.dataFim = new Date();
        this.order = "DtChegada";
    }
    return PesquisaEntradaVeiculoFilter;
}());

var TipoModal = /** @class */ (function () {
    function TipoModal() {
        this.get = [
            { id: "T", descricao: "Todos" },
            { id: "R", descricao: "Rodoviário" },
            { id: "F", descricao: "Ferroviário" }
        ];
    }
    return TipoModal;
}());

var TipoImpressao = /** @class */ (function () {
    function TipoImpressao() {
        this.get = [
            // { id: "1", descricao: "Impressão CheckIn", depItem: true },
            { id: "2", descricao: "Impressão de Entrada de Veículo", depItem: false }
        ];
    }
    return TipoImpressao;
}());

/* -------------------- class do Item -------------------- */
var EntradaVeiculoItem = /** @class */ (function (_super) {
    __extends(EntradaVeiculoItem, _super);
    function EntradaVeiculoItem() {
        var _this = _super.call(this) || this;
        _this.fantasiaSituacaoVeiculo = "";
        _this.flagPesoExato = "N";
        _this.notaCli = 0;
        _this.situacaoVeiculoId = 1;
        return _this;
    }
    return EntradaVeiculoItem;
}(app_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_2__["BaseModel"]));

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



/***/ }),

/***/ "./src/app/pages/especificos/cargill/consultas/entrada-veiculo/entrada-veiculo.service.ts":
/*!************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cargill/consultas/entrada-veiculo/entrada-veiculo.service.ts ***!
  \************************************************************************************************/
/*! exports provided: EntradaVeiculoService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EntradaVeiculoService", function() { return EntradaVeiculoService; });
/* 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 rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
/* harmony import */ var _entrada_veiculo_model__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./entrada-veiculo.model */ "./src/app/pages/especificos/cargill/consultas/entrada-veiculo/entrada-veiculo.model.ts");
/* harmony import */ var app_pages_cadastro_motorista_motorista_model__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/pages/cadastro/motorista/motorista.model */ "./src/app/pages/cadastro/motorista/motorista.model.ts");
/* harmony import */ var environments_environment__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var app_app_error_handler__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/app.error-handler */ "./src/app/app.error-handler.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");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var app_shared_services_base_specifics_base_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/shared/services/base/specifics.base.service */ "./src/app/shared/services/base/specifics.base.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 EntradaVeiculoService = /** @class */ (function (_super) {
    __extends(EntradaVeiculoService, _super);
    function EntradaVeiculoService(http) {
        var _this = _super.call(this, http, "cargill/entradaVeiculo") || this;
        _this.data = new _entrada_veiculo_model__WEBPACK_IMPORTED_MODULE_3__["EntradaVeiculo"]();
        _this.filtro = new _entrada_veiculo_model__WEBPACK_IMPORTED_MODULE_3__["EntradaVeiculoFilter"]();
        _this.digitalizacao = new app_pages_cadastro_motorista_motorista_model__WEBPACK_IMPORTED_MODULE_4__["Digitalizacoes"]();
        _this.disabled = true;
        _this.configs = {
            permTipoOperEv: false,
            codMotFerro: undefined,
            codTranspFerro: undefined,
            solicitaPlanejEv: false,
            solicitaAutodesc: false,
            solicitaNumCartao: false,
            utilCartaoOutroVeic: false,
            mostraPregate: false,
            altDtChegada: false,
            diasRetroChegada: 0,
            dtTriagem: false,
            numCCD: false,
            tipoFretePadrao: undefined,
            obrInspDesc: false,
            obrigaMoppMot: false,
            obrigaCursoMot: false,
            obrigaCadPlaca: false,
            obrCadPlacaFerrov: false,
            solicitaPesoTara: false,
            obrigaLastre: false,
            obrNotVenPortal: false,
            obrConhecimentoE: false,
            obrNormasSeg: false,
            obrRequisicaoEV: false,
            altPesoEstimado: undefined,
            ordCarregamento: undefined,
            obrOrdCarregamento: undefined,
            dupEntrTerceiros: undefined,
            exibeReqDesc: undefined,
            obrigaMotivoExclui: false,
            webModCheckIn: undefined,
            digitalizaDocMot: undefined,
            numCrachaEV: undefined,
            solicitaLote: undefined,
            obrClienteVenda: undefined,
            localOperPadrao: undefined,
            obrTernoCarga: undefined,
            obrTernoDesc: undefined,
            maskPlaca: undefined,
            maskTrem: undefined,
            compartRequis: undefined,
            flagNovaAde: undefined,
            cWebModCheckIn: undefined,
            cWebModPev: undefined,
            obrigaTelMotorista: false,
            valParticipante: false,
            solicQtdeUnid: undefined,
            obrVeiculoAgendado: false,
            intGuardian: false,
            intOsAtiva: false
        };
        return _this;
    }
    Object.defineProperty(EntradaVeiculoService.prototype, "isFerroviario", {
        get: function () {
            return this.operacao === app_config_enumerables__WEBPACK_IMPORTED_MODULE_8__["TipoOperacaoEnum"].vagao || this.data.tipoTransp === "F";
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(EntradaVeiculoService.prototype, "isCarga", {
        get: function () {
            return this.operacao === app_config_enumerables__WEBPACK_IMPORTED_MODULE_8__["TipoOperacaoEnum"].carga || this.data.tipoMov === 'C';
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(EntradaVeiculoService.prototype, "isDescarga", {
        get: function () {
            return this.operacao === app_config_enumerables__WEBPACK_IMPORTED_MODULE_8__["TipoOperacaoEnum"].descarga || this.data.tipoMov === 'D';
        },
        enumerable: true,
        configurable: true
    });
    EntradaVeiculoService.prototype.getByFiltro = function (data) {
        var filter = app_shared_services_funcoes_object_utils_object_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["ObjectUtilsStaticService"].clone(data);
        if (!filter.tipoOperacaoVeiculoId)
            filter.tipoOperacaoVeiculoId = -1;
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/cargill/entradaVeiculo/getByFiltro", filter)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_6__["ErrorHandler"].handleError));
    };
    EntradaVeiculoService.prototype.getEntradaVeiculoValidacaoPendente = function (entradaVeiculoId) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/cargill/entradaVeiculo/getEntradaVeiculoValidacaoPendente", { entradaVeiculoId: entradaVeiculoId })
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_6__["ErrorHandler"].handleError));
    };
    EntradaVeiculoService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"] }
    ]; };
    EntradaVeiculoService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"]])
    ], EntradaVeiculoService);
    return EntradaVeiculoService;
}(app_shared_services_base_specifics_base_service__WEBPACK_IMPORTED_MODULE_9__["SpecificsBaseService"]));



/***/ })

}]);
//# sourceMappingURL=default~app-pages-especificos-cargill-consultas-check-list-check-list-module~app-pages-especificos-c~1bf3fec7.js.map