(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-especificos-cargill-cadastros-ocorrencia-rt-duet-ocorrencia-rt-duet-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cargill/cadastros/ocorrencia-rt-duet/ocorrencia-rt-duet-filter/ocorrencia-rt-duet-filter.component.html":
/*!*********************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cargill/cadastros/ocorrencia-rt-duet/ocorrencia-rt-duet-filter/ocorrencia-rt-duet-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=\"ocorrencia-rt-duet-filter-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\r\n    <div class=\"modal-dialog\">\r\n        <div class=\"modal-content\">\r\n            <div class=\"modal-header\">\r\n                <h6 class=\"modal-title\">{{ 'titles.ocorrenciaRTDuet' | translate }}</h6>\r\n            </div>\r\n            <form class=\"form\" #f=\"ngForm\" (ngSubmit)=\"onSubmit(f)\">\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-6 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"periodoDe\" class=\"required\">{{\"labels.periodoDe\" | translate\r\n                                    }}</label>\r\n                                <app-data-h-m-s id=\"periodoDe\" name=\"periodoDe\" [(ngModel)]=\"service.filtro.dataI\"\r\n                                    autofocus required=\"true\">\r\n                                </app-data-h-m-s>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"col-lg-6 col-md-6 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"ate\" class=\"required\">{{\"labels.ate\" | translate}}</label>\r\n                                <app-data-h-m-s id=\"ate\" name=\"ate\" [(ngModel)]=\"service.filtro.dataF\" required=\"true\">\r\n                                </app-data-h-m-s>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"equipamento\">{{\"labels.equipamento\" | translate}}</label>\r\n                                <select name=\"equipamento\" id=\"equipamento\" class=\"form-control form-control-sm\"\r\n                                    [(ngModel)]=\"service.filtro.equipamento\">\r\n                                    <option value=\"\">{{'labels.selecione'|translate}}</option>\r\n                                    <option *ngFor=\"let item of equipamentosDuet\" [value]=\"item.equipamento\">\r\n                                        {{item.equipamento}}</option>\r\n                                </select>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n                <div class=\"modal-footer\">\r\n                    <button class=\"btn btn-success mr-1\" type=\"submit\">{{ 'buttons.pesquisar' | translate }}</button>\r\n                    <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">{{ 'buttons.sair' | translate\r\n                        }}</button>\r\n                </div>\r\n            </form>\r\n        </div>\r\n    </div>\r\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cargill/cadastros/ocorrencia-rt-duet/ocorrencia-rt-duet-index/ocorrencia-rt-duet-index.component.html":
/*!*******************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cargill/cadastros/ocorrencia-rt-duet/ocorrencia-rt-duet-index/ocorrencia-rt-duet-index.component.html ***!
  \*******************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<app-menu-command-bar [botoesComando]=\"constantes.listaIndex\" [formAction]=\"actionForm\"\r\n    [sisFormularioId]=\"constantes.sisFormularioId\"></app-menu-command-bar>\r\n\r\n<div class=\"section-comand-bar\">\r\n    <div class=\"row\">\r\n        <div class=\"col-6\">\r\n            <div class=\"row\">\r\n                <div class=\"col-12\">\r\n                    <div class=\"form-group form-group-sm\">\r\n                        <label class=\"required\" for=\"navio\">{{'labels.navio' | translate}}</label>\r\n                        <select id=\"navio\" name=\"navio\" class=\"form-control form-control-sm\" [(ngModel)]=\"stoLaudoId\"\r\n                            data-title=\"{{ 'labels.navio' | translate }}\" required (change)=\"trataNavio()\">\r\n                            <option value=\"\">{{ \"labels.selecione\" | translate }}</option>\r\n                            <option *ngFor=\"let t of navios\" value=\"{{ t.stoLaudoId }}\">\r\n                                {{ t.navio }}\r\n                            </option>\r\n                        </select>\r\n                    </div>\r\n                </div>\r\n                <div class=\"col-12\">\r\n                    <div class=\"form-group form-group-sm\">\r\n                        <label class=\"required\" for=\"produto\">{{'labels.produto' | translate}}</label>\r\n                        <select id=\"produto\" name=\"produto\" class=\"form-control form-control-sm\"\r\n                            [disabled]=\"!habilitaItems\" [(ngModel)]=\"stoLaudoItemId\"\r\n                            data-title=\"{{ 'labels.produto' | translate }}\" required>\r\n                            <option value=\"\">{{ \"labels.selecione\" | translate }}</option>\r\n                            <option *ngFor=\"let t of produtos\" value=\"{{ t.stoLaudoItem }}\">\r\n                                {{ t.produto }}\r\n                            </option>\r\n                        </select>\r\n                    </div>\r\n                </div>\r\n                <div class=\"col-12\">\r\n                    <div class=\"form-group form-group-sm\">\r\n                        <label for=\"regEquipto\">{{\r\n                            \"labels.equipamento\" | translate\r\n                            }}</label>\r\n                        <select class=\"form-control form-control-sm\" id=\"regEquipto\" name=\"regEquipto\" required=\"true\"\r\n                            [(ngModel)]=\"equipamentoId\">\r\n                            <option value=\"\">{{ 'labels.selecione' | translate }}</option>\r\n                            <option *ngFor=\"let item of equipamentos\" value=\"{{ item.equipamentoId }}\">{{\r\n                                item.descrEquipto }}\r\n                            </option>\r\n                        </select>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n        </div>\r\n        <div class=\"col-6\">\r\n            <div class=\"row mt-4\">\r\n                <div class=\"col-12\">\r\n                    <button class=\"btn btn-success mr-2\" (click)=\"gravar()\" type=\"button\" [disabled]=\"!selectedIsValid\">\r\n                        {{ 'buttons.importar' | translate }}\r\n                    </button>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </div>\r\n\r\n    <app-table>\r\n        <div class=\"row\">\r\n            <div class=\"col-12\">\r\n                <div class=\"table-responsive\">\r\n                    <table id=\"dtConsulta\" class=\"table table-striped table-bordered table-hover nowrap table-sm\">\r\n                        <thead>\r\n                            <tr>\r\n                                <th>\r\n                                    <span class=\"colTodos\" *ngIf=\"hasDados\">\r\n                                        <input type=\"checkbox\" name=\"todosNf\" id=\"todosNf\" [ngModel]=\"btnTodos\"\r\n                                            (ngModelChange)=\"selectAll($event)\" [disabled]=\"!hasDados\"\r\n                                            title=\"{{ 'buttons.selecionarTodos' | translate }}\">\r\n                                    </span>\r\n                                </th>\r\n                                <th>{{ 'labels.ocorrencia' | translate}}</th>\r\n                                <th>{{ 'labels.equipamento' | translate}}</th>\r\n                                <th>{{ 'labels.inicio' | translate}}</th>\r\n                                <th>{{ 'labels.fim' | translate}}</th>\r\n                                <th>{{ 'labels.observacao' | translate}}</th>\r\n                                <th>{{ 'labels.razao' | translate}}</th>\r\n                            </tr>\r\n                        </thead>\r\n                        <tbody>\r\n                            <tr *ngFor=\"let t of dados; index as i\" (dblclick)=\"onDbClick(t, i)\">\r\n                                <td>\r\n                                    <label class=\"chk\">\r\n                                        <input type=\"checkbox\" [id]=\"'seleciona_' + i\" [name]=\"'seleciona_' + i\"\r\n                                            value=\"checked\"\r\n                                            (ngModelChange)=\"t.selecionado = $event ? 'S' : 'N'\"\r\n                                            [ngModel]=\"t.flagGera ==='S'\" disabled>\r\n                                        <span [ngClass]=\"{'red':t.flag}\">\r\n                                        </span>\r\n                                    </label>\r\n                                </td>\r\n                                <td style=\"white-space: nowrap;\">{{ t?.ocorrencia }}</td>\r\n                                <td style=\"white-space: nowrap;\">{{ t?.equipamento }}</td>\r\n                                <td style=\"white-space: nowrap;\">{{ t.dtInicio | date: 'dd/MM/yyyy HH:mm:ss' }}</td>\r\n                                <td style=\"white-space: nowrap;\">{{ t.dtFinal | date: 'dd/MM/yyyy HH:mm:ss' }}</td>\r\n                                <td style=\"white-space: nowrap;\">{{ t?.observacao }}</td>\r\n                                <td style=\"white-space: nowrap;\">{{ t?.razao }}</td>\r\n                            </tr>\r\n                            <tr *ngIf=\"!hasDados\">\r\n                                <th colspan=\"7\" style=\"text-align: center\">\r\n                                    {{ \"messages.nenhumRegistroEncontrado\" | translate }}\r\n                                </th>\r\n                            </tr>\r\n                        </tbody>\r\n                    </table>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </app-table>\r\n</div>\r\n\r\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\r\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\r\n<app-ocorrencia-rt-duet-filter (filtrar)=\"executaFiltro()\"></app-ocorrencia-rt-duet-filter>");

/***/ }),

/***/ "./src/app/pages/especificos/cargill/cadastros/ocorrencia-rt-duet/ocorrencia-rt-duet-filter/ocorrencia-rt-duet-filter.component.ts":
/*!*****************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cargill/cadastros/ocorrencia-rt-duet/ocorrencia-rt-duet-filter/ocorrencia-rt-duet-filter.component.ts ***!
  \*****************************************************************************************************************************************/
/*! exports provided: OcorrenciaRTDuetFilterComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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





var OcorrenciaRTDuetFilterComponent = /** @class */ (function () {
    function OcorrenciaRTDuetFilterComponent(permissoesUtils, service) {
        this.permissoesUtils = permissoesUtils;
        this.service = service;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.equipamentosDuet = [];
    }
    OcorrenciaRTDuetFilterComponent.prototype.ngOnInit = function () {
        var _this = this;
        if (!this.service.filtro) {
            this.service.filtro = new _ocorrencia_rt_duet_model__WEBPACK_IMPORTED_MODULE_3__["OcorrenciaRTDuetFiltroVo"]();
        }
        this.service.getEquipamentoDuet().subscribe(function (resp) { return _this.equipamentosDuet = resp; });
    };
    OcorrenciaRTDuetFilterComponent.prototype.onSubmit = function (form) {
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        this.filtrar.emit();
        jQuery('#ocorrencia-rt-duet-filter-dialog').modal('hide');
    };
    OcorrenciaRTDuetFilterComponent.ctorParameters = function () { return [
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_1__["PermissoesUtilsService"] },
        { type: _ocorrencia_rt_duet_service__WEBPACK_IMPORTED_MODULE_4__["OcorrenciaRTDuetService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], OcorrenciaRTDuetFilterComponent.prototype, "filtrar", void 0);
    OcorrenciaRTDuetFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-ocorrencia-rt-duet-filter',
            template: __importDefault(__webpack_require__(/*! raw-loader!./ocorrencia-rt-duet-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cargill/cadastros/ocorrencia-rt-duet/ocorrencia-rt-duet-filter/ocorrencia-rt-duet-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_1__["PermissoesUtilsService"],
            _ocorrencia_rt_duet_service__WEBPACK_IMPORTED_MODULE_4__["OcorrenciaRTDuetService"]])
    ], OcorrenciaRTDuetFilterComponent);
    return OcorrenciaRTDuetFilterComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cargill/cadastros/ocorrencia-rt-duet/ocorrencia-rt-duet-index/ocorrencia-rt-duet-index.component.scss":
/*!*****************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cargill/cadastros/ocorrencia-rt-duet/ocorrencia-rt-duet-index/ocorrencia-rt-duet-index.component.scss ***!
  \*****************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = (".chk input {\n  display: none;\n}\n\n.chk span {\n  width: 12px;\n  height: 12px;\n  display: block;\n  background-color: #fff;\n  border: 1px solid #DDD;\n  border-radius: 100%;\n}\n\nspan.red {\n  background-color: #c03;\n}\n\nspan.green {\n  background-color: #378D3B;\n}\n\nspan.blue {\n  background-color: #0000CC;\n}\n\nspan.ligthgree {\n  background-color: #37b400;\n}\n\ntable .col-right {\n  text-align: right;\n  white-space: nowrap;\n}\n\n.colTodos {\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  margin-top: -16px;\n}\n\n.colTodos input[type=checkbox] {\n  cursor: pointer;\n}\n\n.tableFixHead thead th {\n  position: -webkit-sticky;\n  position: sticky;\n  top: 0;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvcGFnZXMvZXNwZWNpZmljb3MvY2FyZ2lsbC9jYWRhc3Ryb3Mvb2NvcnJlbmNpYS1ydC1kdWV0L29jb3JyZW5jaWEtcnQtZHVldC1pbmRleC9DOlxcQ29ycG9yYXRlXFxDb3Jwb3JhdGVXZWJEZXNlbnZcXF91bmlzb2x1dGlvbi9zcmNcXGFwcFxccGFnZXNcXGVzcGVjaWZpY29zXFxjYXJnaWxsXFxjYWRhc3Ryb3NcXG9jb3JyZW5jaWEtcnQtZHVldFxcb2NvcnJlbmNpYS1ydC1kdWV0LWluZGV4XFxvY29ycmVuY2lhLXJ0LWR1ZXQtaW5kZXguY29tcG9uZW50LnNjc3MiLCJzcmMvYXBwL3BhZ2VzL2VzcGVjaWZpY29zL2NhcmdpbGwvY2FkYXN0cm9zL29jb3JyZW5jaWEtcnQtZHVldC9vY29ycmVuY2lhLXJ0LWR1ZXQtaW5kZXgvb2NvcnJlbmNpYS1ydC1kdWV0LWluZGV4LmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0ksYUFBQTtBQ0NKOztBREVBO0VBQ0ksV0FBQTtFQUNBLFlBQUE7RUFDQSxjQUFBO0VBQ0Esc0JBQUE7RUFDQSxzQkFBQTtFQUNBLG1CQUFBO0FDQ0o7O0FERUE7RUFDSSxzQkFBQTtBQ0NKOztBREVBO0VBQ0kseUJBQUE7QUNDSjs7QURFQTtFQUNJLHlCQUFBO0FDQ0o7O0FERUE7RUFDSSx5QkFBQTtBQ0NKOztBREdJO0VBQ0ksaUJBQUE7RUFDQSxtQkFBQTtBQ0FSOztBRElBO0VBQ0ksYUFBQTtFQUNBLHVCQUFBO0VBQ0EsbUJBQUE7RUFDQSxpQkFBQTtBQ0RKOztBREdJO0VBQ0ksZUFBQTtBQ0RSOztBREtBO0VBQ0ksd0JBQUE7RUFBQSxnQkFBQTtFQUNBLE1BQUE7QUNGSiIsImZpbGUiOiJzcmMvYXBwL3BhZ2VzL2VzcGVjaWZpY29zL2NhcmdpbGwvY2FkYXN0cm9zL29jb3JyZW5jaWEtcnQtZHVldC9vY29ycmVuY2lhLXJ0LWR1ZXQtaW5kZXgvb2NvcnJlbmNpYS1ydC1kdWV0LWluZGV4LmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLmNoayBpbnB1dCB7XHJcbiAgICBkaXNwbGF5OiBub25lO1xyXG59XHJcblxyXG4uY2hrIHNwYW4ge1xyXG4gICAgd2lkdGg6IDEycHg7XHJcbiAgICBoZWlnaHQ6IDEycHg7XHJcbiAgICBkaXNwbGF5OiBibG9jaztcclxuICAgIGJhY2tncm91bmQtY29sb3I6ICNmZmY7XHJcbiAgICBib3JkZXI6IDFweCBzb2xpZCAjREREO1xyXG4gICAgYm9yZGVyLXJhZGl1czogMTAwJTtcclxufVxyXG5cclxuc3Bhbi5yZWQge1xyXG4gICAgYmFja2dyb3VuZC1jb2xvcjogI2MwMztcclxufVxyXG5cclxuc3Bhbi5ncmVlbiB7XHJcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjMzc4RDNCO1xyXG59XHJcblxyXG5zcGFuLmJsdWUge1xyXG4gICAgYmFja2dyb3VuZC1jb2xvcjogIzAwMDBDQztcclxufVxyXG5cclxuc3Bhbi5saWd0aGdyZWUge1xyXG4gICAgYmFja2dyb3VuZC1jb2xvcjogIzM3YjQwMDtcclxufVxyXG5cclxudGFibGUge1xyXG4gICAgLmNvbC1yaWdodCB7XHJcbiAgICAgICAgdGV4dC1hbGlnbjogcmlnaHQ7XHJcbiAgICAgICAgd2hpdGUtc3BhY2U6IG5vd3JhcDtcclxuICAgIH1cclxufVxyXG5cclxuLmNvbFRvZG9zIHtcclxuICAgIGRpc3BsYXk6IGZsZXg7XHJcbiAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcclxuICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7XHJcbiAgICBtYXJnaW4tdG9wOiAtMTZweDtcclxuXHJcbiAgICBpbnB1dFt0eXBlPWNoZWNrYm94XSB7XHJcbiAgICAgICAgY3Vyc29yOiBwb2ludGVyO1xyXG4gICAgfVxyXG59XHJcblxyXG4udGFibGVGaXhIZWFkIHRoZWFkIHRoIHtcclxuICAgIHBvc2l0aW9uOiBzdGlja3k7XHJcbiAgICB0b3A6IDA7XHJcbn0iLCIuY2hrIGlucHV0IHtcbiAgZGlzcGxheTogbm9uZTtcbn1cblxuLmNoayBzcGFuIHtcbiAgd2lkdGg6IDEycHg7XG4gIGhlaWdodDogMTJweDtcbiAgZGlzcGxheTogYmxvY2s7XG4gIGJhY2tncm91bmQtY29sb3I6ICNmZmY7XG4gIGJvcmRlcjogMXB4IHNvbGlkICNEREQ7XG4gIGJvcmRlci1yYWRpdXM6IDEwMCU7XG59XG5cbnNwYW4ucmVkIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2MwMztcbn1cblxuc3Bhbi5ncmVlbiB7XG4gIGJhY2tncm91bmQtY29sb3I6ICMzNzhEM0I7XG59XG5cbnNwYW4uYmx1ZSB7XG4gIGJhY2tncm91bmQtY29sb3I6ICMwMDAwQ0M7XG59XG5cbnNwYW4ubGlndGhncmVlIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogIzM3YjQwMDtcbn1cblxudGFibGUgLmNvbC1yaWdodCB7XG4gIHRleHQtYWxpZ246IHJpZ2h0O1xuICB3aGl0ZS1zcGFjZTogbm93cmFwO1xufVxuXG4uY29sVG9kb3Mge1xuICBkaXNwbGF5OiBmbGV4O1xuICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgbWFyZ2luLXRvcDogLTE2cHg7XG59XG4uY29sVG9kb3MgaW5wdXRbdHlwZT1jaGVja2JveF0ge1xuICBjdXJzb3I6IHBvaW50ZXI7XG59XG5cbi50YWJsZUZpeEhlYWQgdGhlYWQgdGgge1xuICBwb3NpdGlvbjogc3RpY2t5O1xuICB0b3A6IDA7XG59Il19 */");

/***/ }),

/***/ "./src/app/pages/especificos/cargill/cadastros/ocorrencia-rt-duet/ocorrencia-rt-duet-index/ocorrencia-rt-duet-index.component.ts":
/*!***************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cargill/cadastros/ocorrencia-rt-duet/ocorrencia-rt-duet-index/ocorrencia-rt-duet-index.component.ts ***!
  \***************************************************************************************************************************************/
/*! exports provided: OcorrenciaRTDuetIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OcorrenciaRTDuetIndexComponent", function() { return OcorrenciaRTDuetIndexComponent; });
/* 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 app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var app_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 _ocorrencia_rt_duet_model__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../ocorrencia-rt-duet.model */ "./src/app/pages/especificos/cargill/cadastros/ocorrencia-rt-duet/ocorrencia-rt-duet.model.ts");
/* harmony import */ var _ocorrencia_rt_duet_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../ocorrencia-rt-duet.constants */ "./src/app/pages/especificos/cargill/cadastros/ocorrencia-rt-duet/ocorrencia-rt-duet.constants.ts");
/* harmony import */ var _ocorrencia_rt_duet_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../ocorrencia-rt-duet.service */ "./src/app/pages/especificos/cargill/cadastros/ocorrencia-rt-duet/ocorrencia-rt-duet.service.ts");
/* harmony import */ var app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! app/shared/services/funcoes/array-utils/array-utils.static.service */ "./src/app/shared/services/funcoes/array-utils/array-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! app/shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! app/shared/services/funcoes/string-utils/string-utils.static.service */ "./src/app/shared/services/funcoes/string-utils/string-utils.static.service.ts");
/* harmony import */ var app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! app/shared/components/commons/table/table.component */ "./src/app/shared/components/commons/table/table.component.ts");
/* harmony import */ var app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_15__ = __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 __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 OcorrenciaRTDuetIndexComponent = /** @class */ (function (_super) {
    __extends(OcorrenciaRTDuetIndexComponent, _super);
    function OcorrenciaRTDuetIndexComponent(router, datatablesService, funcoesService, messageService, permissoesUtils, service, loginService) {
        var _this = _super.call(this, new _ocorrencia_rt_duet_constants__WEBPACK_IMPORTED_MODULE_9__["OcorrenciaRTDuetConstants"](), funcoesService) || this;
        _this.router = router;
        _this.datatablesService = datatablesService;
        _this.funcoesService = funcoesService;
        _this.messageService = messageService;
        _this.permissoesUtils = permissoesUtils;
        _this.service = service;
        _this.loginService = loginService;
        _this.data = new _ocorrencia_rt_duet_model__WEBPACK_IMPORTED_MODULE_8__["OcorrenciaRTDuetDto"]();
        _this.constantes = new _ocorrencia_rt_duet_constants__WEBPACK_IMPORTED_MODULE_9__["OcorrenciaRTDuetConstants"]();
        _this.dataAux = new _ocorrencia_rt_duet_model__WEBPACK_IMPORTED_MODULE_8__["OcorrenciaRTDuetFiltroVo"]();
        _this.mensagens = [];
        _this.filtro = new _ocorrencia_rt_duet_model__WEBPACK_IMPORTED_MODULE_8__["OcorrenciaRTDuetFiltroVo"]();
        _this.selecteds = [];
        _this.btnTodos = false;
        _this.title = "titles.ocorrenciaRTDuet";
        _this.target = _this.funcoesService.getTargetLocation();
        _this.refresh = function () {
            _this.service.getByFiltro(_this.service.filtro).subscribe(function (data) {
                _this.service.dados = data;
            });
        };
        _this.permissoes = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 2, function () {
                _super.prototype.permissoes.call(_this, _this.constantes);
            });
        };
        return _this;
    }
    OcorrenciaRTDuetIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        var base = this;
        this.stoLaudoId = "";
        this.stoLaudoItemId = "";
        this.equipamentoId = "";
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () { return __awaiter(_this, void 0, void 0, function () {
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        base.geraDados = false;
                        return [4 /*yield*/, base.refresh()];
                    case 1:
                        _a.sent();
                        return [4 /*yield*/, this.carregaCombos()];
                    case 2:
                        _a.sent();
                        if (!base.service.dados || base.service.dados.length === 0) {
                            if (!base.loginService.isTokenExpired()) {
                                jQuery("#ocorrencia-rt-duet-filter-dialog").modal("show");
                            }
                        }
                        return [2 /*return*/];
                }
            });
        }); }, function () { return _this.permissoesUtils.back(); }, true);
    };
    OcorrenciaRTDuetIndexComponent.prototype.filtrar = function () {
        jQuery("#ocorrencia-rt-duet-filter-dialog").modal("show");
    };
    OcorrenciaRTDuetIndexComponent.prototype.executaFiltro = function () {
        this.refresh();
    };
    OcorrenciaRTDuetIndexComponent.prototype.selectAll = function (checked) {
        this.btnTodos = checked;
        this.service.dados.forEach(function (obj) {
            obj.flag = checked;
            obj.selecionado = checked ? 'S' : 'N';
        });
    };
    OcorrenciaRTDuetIndexComponent.prototype.onDbClick = function (item, index) {
        this.currentIndex = index;
        item.selecionado = item.selecionado === "S" ? "N" : "S";
        item.flag = item.selecionado === "S";
        this.data = this.service.dados[index] = item;
    };
    OcorrenciaRTDuetIndexComponent.prototype.gravar = function () {
        var _this = this;
        var stitle = this.messageService.translate(this.title);
        var m = this.messageService.translate("messages.confirmaOperacaoByParam", { param: stitle });
        this.messageService.confirm(this.title, m, null, function () {
            if (!_this.preSave())
                return;
            _this.service.importa(_this.selecteds).subscribe(function (validationResult) {
                if (!validationResult.isValid) {
                    var mensagens = _this.messageService.validationResult(validationResult);
                    mensagens.forEach(function (m) { return _this.messageService.warning(_this.title, m); });
                }
                else {
                    _this.messageService.saveSuccess(_this.title), "messages.importacaoRealizadaComSucesso";
                }
                _this.btnTodos = false;
                _this.refresh();
            });
        });
    };
    OcorrenciaRTDuetIndexComponent.prototype.preSave = function () {
        var _this = this;
        if (!(app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["NumberUtilsStaticService"].toNumber(this.stoLaudoId) > 0)) {
            this.messageService.warning(this.title, "messages.selecioneUmCliente");
            return false;
        }
        if (!(app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["NumberUtilsStaticService"].toNumber(this.stoLaudoItemId) > 0)) {
            this.messageService.warning(this.title, "messages.selecioneUmProduto");
            return false;
        }
        if (this.service.dados.findIndex(function (c) { return c.flag; }) < 0) {
            this.messageService.warning(this.title, "messages.naoExistemRegistrosSelecionados");
            return false;
        }
        this.selecteds = this.service.dados.filter(function (c) { return c.flag; });
        if (app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["ArrayUtilsStaticService"].any(this.selecteds)) {
            this.selecteds.forEach(function (obj) {
                obj.stoLaudoId = _this.stoLaudoId;
                obj.stoLaudoItemId = _this.stoLaudoItemId;
                obj.equipamentoId = _this.equipamentoId;
            });
        }
        return true;
    };
    OcorrenciaRTDuetIndexComponent.prototype.carregaCombos = function () {
        return __awaiter(this, void 0, void 0, function () {
            var resp;
            var _this = this;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        if (!!this.navios) return [3 /*break*/, 2];
                        return [4 /*yield*/, this.service.getStoLaudoNavio().toPromise()];
                    case 1:
                        resp = _a.sent();
                        if (!!resp) {
                            this.navios = resp;
                        }
                        _a.label = 2;
                    case 2:
                        this.service.getEquipamento().subscribe(function (resp) {
                            _this.equipamentos = resp;
                        });
                        return [2 /*return*/];
                }
            });
        });
    };
    Object.defineProperty(OcorrenciaRTDuetIndexComponent.prototype, "selectedIsValid", {
        get: function () {
            if (!app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["ArrayUtilsStaticService"].any(this.service.dados))
                return false;
            return !!this.stoLaudoItemId && !!this.stoLaudoId && app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["ArrayUtilsStaticService"].any(this.service.dados.filter(function (c) { return c.flag; }));
        },
        enumerable: true,
        configurable: true
    });
    OcorrenciaRTDuetIndexComponent.prototype.trataNavio = function () {
        var _this = this;
        this.produtos = [];
        if (app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["NumberUtilsStaticService"].isPositive(this.stoLaudoId)) {
            var navio = this.navios.find(function (p) { return p.stoLaudoId === +_this.stoLaudoId; });
            if (navio) {
                if (app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["ArrayUtilsStaticService"].any(navio.items)) {
                    this.produtos = navio.items;
                    if (navio.items.length === 1) {
                        this.stoLaudoItemId = navio.items[0].stoLaudoItem;
                    }
                }
            }
        }
    };
    Object.defineProperty(OcorrenciaRTDuetIndexComponent.prototype, "habilitaItems", {
        get: function () {
            if (!app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["ArrayUtilsStaticService"].any(this.produtos))
                return false;
            if (this.produtos.length === 1)
                return false;
            return true;
        },
        enumerable: true,
        configurable: true
    });
    OcorrenciaRTDuetIndexComponent.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,
                equipamento: app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["StringUtilsStaticService"].toString(_this.service.filtro.equipamento)
            };
            _super.prototype.print.call(_this, null, true);
        });
    };
    Object.defineProperty(OcorrenciaRTDuetIndexComponent.prototype, "dados", {
        get: function () {
            if (!this.table)
                return [];
            if (!this.hasDados || !this.table.filtro) {
                return this.table.getPage(this.service.dados);
            }
            return this.table.getPage(this.dadosFilter);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(OcorrenciaRTDuetIndexComponent.prototype, "dadosFilter", {
        get: function () {
            var _this = this;
            return this.service.dados.filter(function (v) {
                return app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["StringUtilsStaticService"].exist(v.cliCglStgOcorrenciaId, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["StringUtilsStaticService"].exist(v.equipamento, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["StringUtilsStaticService"].exist(v.observacao, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["StringUtilsStaticService"].exist(app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_15__["DateTimeUtilsStaticService"].convertDateToDateStr(v.dtInicio), _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["StringUtilsStaticService"].exist(app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_15__["DateTimeUtilsStaticService"].convertDateToDateStr(v.dtFinal), _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["StringUtilsStaticService"].exist(v.ocorrencia.toString(), _this.table.filtro);
            });
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(OcorrenciaRTDuetIndexComponent.prototype, "hasDados", {
        get: function () {
            return app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["ArrayUtilsStaticService"].any(this.service.dados);
        },
        enumerable: true,
        configurable: true
    });
    OcorrenciaRTDuetIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_2__["DatatablesService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"] },
        { type: _ocorrencia_rt_duet_service__WEBPACK_IMPORTED_MODULE_10__["OcorrenciaRTDuetService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_7__["LoginService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_14__["TableComponent"], { static: false }),
        __metadata("design:type", app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_14__["TableComponent"])
    ], OcorrenciaRTDuetIndexComponent.prototype, "table", void 0);
    OcorrenciaRTDuetIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-ocorrencia-rt-duet-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./ocorrencia-rt-duet-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cargill/cadastros/ocorrencia-rt-duet/ocorrencia-rt-duet-index/ocorrencia-rt-duet-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./ocorrencia-rt-duet-index.component.scss */ "./src/app/pages/especificos/cargill/cadastros/ocorrencia-rt-duet/ocorrencia-rt-duet-index/ocorrencia-rt-duet-index.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_2__["DatatablesService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"],
            _ocorrencia_rt_duet_service__WEBPACK_IMPORTED_MODULE_10__["OcorrenciaRTDuetService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_7__["LoginService"]])
    ], OcorrenciaRTDuetIndexComponent);
    return OcorrenciaRTDuetIndexComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/cargill/cadastros/ocorrencia-rt-duet/ocorrencia-rt-duet.constants.ts":
/*!********************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cargill/cadastros/ocorrencia-rt-duet/ocorrencia-rt-duet.constants.ts ***!
  \********************************************************************************************************/
/*! exports provided: OcorrenciaRTDuetConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OcorrenciaRTDuetConstants", function() { return OcorrenciaRTDuetConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var OcorrenciaRTDuetConstants = /** @class */ (function () {
    function OcorrenciaRTDuetConstants() {
        this.sisFormularioId = 65685;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: 'labels.consulta' },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: 'labels.impressao' },
            { sisFormularioId: this.sisFormularioId, libRotina: 3, acao: 'labels.permissoes' }
        ];
        this.nomeForm = 'titles.ocorrenciaRTDuet';
        this.reportId = 'CAR0015';
        this.reportTitulo = { "titulo": "Ocorrências / RT Duet", "subTitulo": "" };
        this.listaIndex = [
            { title: 'Atualizar', action: 'refresh', icon: 'icon-reload', exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Imprimir', action: 'print', icon: "icon-printer", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Pesquisar', action: 'filtrar', icon: 'icon-search', exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' }
        ];
    }
    return OcorrenciaRTDuetConstants;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cargill/cadastros/ocorrencia-rt-duet/ocorrencia-rt-duet.model.ts":
/*!****************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cargill/cadastros/ocorrencia-rt-duet/ocorrencia-rt-duet.model.ts ***!
  \****************************************************************************************************/
/*! exports provided: OcorrenciaRTDuetFiltroVo, OcorrenciaRTDuetDto, OcorrenciaRTDuetNavioDto, OcorrenciaRTDuetProdutoDto, OcorrenciaRTDuetEquipamentoDto */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OcorrenciaRTDuetFiltroVo", function() { return OcorrenciaRTDuetFiltroVo; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OcorrenciaRTDuetDto", function() { return OcorrenciaRTDuetDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OcorrenciaRTDuetNavioDto", function() { return OcorrenciaRTDuetNavioDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OcorrenciaRTDuetProdutoDto", function() { return OcorrenciaRTDuetProdutoDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OcorrenciaRTDuetEquipamentoDto", function() { return OcorrenciaRTDuetEquipamentoDto; });
/* 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 OcorrenciaRTDuetFiltroVo = /** @class */ (function () {
    function OcorrenciaRTDuetFiltroVo() {
        this.dataI = app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["DateTimeUtilsStaticService"].getStartDay();
        this.dataF = app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["DateTimeUtilsStaticService"].getFinalDay();
        this.equipamento = "";
    }
    return OcorrenciaRTDuetFiltroVo;
}());

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

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

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

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



/***/ }),

/***/ "./src/app/pages/especificos/cargill/cadastros/ocorrencia-rt-duet/ocorrencia-rt-duet.module.ts":
/*!*****************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cargill/cadastros/ocorrencia-rt-duet/ocorrencia-rt-duet.module.ts ***!
  \*****************************************************************************************************/
/*! exports provided: OcorrenciaRTDuetModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OcorrenciaRTDuetModule", function() { return OcorrenciaRTDuetModule; });
/* 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 _ocorrencia_rt_duet_index_ocorrencia_rt_duet_index_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ocorrencia-rt-duet-index/ocorrencia-rt-duet-index.component */ "./src/app/pages/especificos/cargill/cadastros/ocorrencia-rt-duet/ocorrencia-rt-duet-index/ocorrencia-rt-duet-index.component.ts");
/* harmony import */ var _ocorrencia_rt_duet_filter_ocorrencia_rt_duet_filter_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ocorrencia-rt-duet-filter/ocorrencia-rt-duet-filter.component */ "./src/app/pages/especificos/cargill/cadastros/ocorrencia-rt-duet/ocorrencia-rt-duet-filter/ocorrencia-rt-duet-filter.component.ts");
/* harmony import */ var _ocorrencia_rt_duet_rounting_module__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ocorrencia-rt-duet.rounting.module */ "./src/app/pages/especificos/cargill/cadastros/ocorrencia-rt-duet/ocorrencia-rt-duet.rounting.module.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};





var OcorrenciaRTDuetModule = /** @class */ (function () {
    function OcorrenciaRTDuetModule() {
    }
    OcorrenciaRTDuetModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            declarations: [
                _ocorrencia_rt_duet_index_ocorrencia_rt_duet_index_component__WEBPACK_IMPORTED_MODULE_2__["OcorrenciaRTDuetIndexComponent"],
                _ocorrencia_rt_duet_filter_ocorrencia_rt_duet_filter_component__WEBPACK_IMPORTED_MODULE_3__["OcorrenciaRTDuetFilterComponent"]
            ],
            imports: [
                app_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"],
                _ocorrencia_rt_duet_rounting_module__WEBPACK_IMPORTED_MODULE_4__["OcorrenciaRTDuetRoutingModule"]
            ],
            exports: [
                _ocorrencia_rt_duet_filter_ocorrencia_rt_duet_filter_component__WEBPACK_IMPORTED_MODULE_3__["OcorrenciaRTDuetFilterComponent"]
            ]
        })
    ], OcorrenciaRTDuetModule);
    return OcorrenciaRTDuetModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cargill/cadastros/ocorrencia-rt-duet/ocorrencia-rt-duet.rounting.module.ts":
/*!**************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cargill/cadastros/ocorrencia-rt-duet/ocorrencia-rt-duet.rounting.module.ts ***!
  \**************************************************************************************************************/
/*! exports provided: OcorrenciaRTDuetRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OcorrenciaRTDuetRoutingModule", function() { return OcorrenciaRTDuetRoutingModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _ocorrencia_rt_duet_index_ocorrencia_rt_duet_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ocorrencia-rt-duet-index/ocorrencia-rt-duet-index.component */ "./src/app/pages/especificos/cargill/cadastros/ocorrencia-rt-duet/ocorrencia-rt-duet-index/ocorrencia-rt-duet-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: _ocorrencia_rt_duet_index_ocorrencia_rt_duet_index_component__WEBPACK_IMPORTED_MODULE_3__["OcorrenciaRTDuetIndexComponent"],
        data: {
            breadcrumb: 'ocorrenciaRTDuet',
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index }
        }
    }
];
var OcorrenciaRTDuetRoutingModule = /** @class */ (function () {
    function OcorrenciaRTDuetRoutingModule() {
    }
    OcorrenciaRTDuetRoutingModule = __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"]],
        })
    ], OcorrenciaRTDuetRoutingModule);
    return OcorrenciaRTDuetRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cargill/cadastros/ocorrencia-rt-duet/ocorrencia-rt-duet.service.ts":
/*!******************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cargill/cadastros/ocorrencia-rt-duet/ocorrencia-rt-duet.service.ts ***!
  \******************************************************************************************************/
/*! exports provided: OcorrenciaRTDuetService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OcorrenciaRTDuetService", function() { return OcorrenciaRTDuetService; });
/* 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 environments_environment__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
/* harmony import */ var app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/app.error-handler */ "./src/app/app.error-handler.ts");
/* harmony import */ var app_shared_services_base_specifics_base_service__WEBPACK_IMPORTED_MODULE_5__ = __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 OcorrenciaRTDuetService = /** @class */ (function (_super) {
    __extends(OcorrenciaRTDuetService, _super);
    function OcorrenciaRTDuetService(http) {
        var _this = _super.call(this, http, "cargill/ocorrenciaRTDuet") || this;
        _this.http = http;
        return _this;
    }
    OcorrenciaRTDuetService.prototype.getByFiltro = function (data) {
        return this.http.
            post(environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].specifics_service_url + "/api/v1/cargill/ocorrenciaRTDuet/getByFiltro", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    OcorrenciaRTDuetService.prototype.getStoLaudoNavio = function () {
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].specifics_service_url + "/api/v1/cargill/ocorrenciaRTDuet/getStoLaudoNavio")
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    OcorrenciaRTDuetService.prototype.getEquipamento = function () {
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].specifics_service_url + "/api/v1/cargill/ocorrenciaRTDuet/getEquipamento")
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    OcorrenciaRTDuetService.prototype.getEquipamentoDuet = function () {
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].specifics_service_url + "/api/v1/cargill/ocorrenciaRTDuet/getEquipamentoDuet")
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    OcorrenciaRTDuetService.prototype.importa = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].specifics_service_url + "/api/v1/cargill/ocorrenciaRTDuet/importa", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    OcorrenciaRTDuetService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"] }
    ]; };
    OcorrenciaRTDuetService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
            providedIn: 'root'
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"]])
    ], OcorrenciaRTDuetService);
    return OcorrenciaRTDuetService;
}(app_shared_services_base_specifics_base_service__WEBPACK_IMPORTED_MODULE_5__["SpecificsBaseService"]));



/***/ })

}]);
//# sourceMappingURL=app-pages-especificos-cargill-cadastros-ocorrencia-rt-duet-ocorrencia-rt-duet-module.js.map