(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-balanca-carga-operacional-impressao-carga-operacional-impressao-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/balanca/carga-operacional-impressao/carga-operacional-impressao-form/carga-operacional-impressao-form.component.html":
/*!**********************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/balanca/carga-operacional-impressao/carga-operacional-impressao-form/carga-operacional-impressao-form.component.html ***!
  \**********************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<app-menu-command-bar [sisFormularioId]=\"constantes.sisFormularioId\"\n                      [botoesComando]=\"constantes.listaForm\">\n</app-menu-command-bar>\n\n<div class=\"row\">\n    <div class=\"col-lg-12\">\n        <div class=\"section-comand-bar\">\n            <div class=\"\">\n                <app-form-legenda></app-form-legenda>\n                <div class=\"card-body widget-body\">\n                    <form class=\"form\" #cargaOperacionalImpressao=\"ngForm\" (ngSubmit)=\"onSubmit(cargaOperacionalImpressao)\">\n                        <app-validacoes></app-validacoes>\n                        <div class=\"row\">\n                            <div class=\"col-lg-2\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"autorizacao\"\n                                           class=\"required\">{{'labels.autorizacao' | translate}}</label>\n                                    <input id=\"autorizacao\" name=\"autorizacao\"\n                                           [(ngModel)]=\"data.autorizacao\"\n                                           class=\"form-control form-control-sm\" type=\"text\"\n                                           required>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row mt-2\">\n                            <div class=\"col-lg-3\">\n                                <div class=\"form-group form-group-sm\">\n                                    <div class=\"form-check\">\n                                        <input type=\"radio\" id=\"cargaOperacional\" name=\"cargaOperacional\" class=\"form-check-input\" value=\"1\"\n                                               [(ngModel)]=\"data.tipoDeCarga\">\n                                        <label for=\"cargaOperacional\">{{'labels.cargaOperacional' | translate}}</label>\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"col-lg-3\">\n                                <div class=\"form-group form-group-sm\">\n                                    <div class=\"form-check\">\n                                        <input type=\"radio\" id=\"descargaOperacional\" name=\"descargaOperacional\" class=\"form-check-input\" value=\"2\"\n                                               [(ngModel)]=\"data.tipoDeCarga\">\n                                        <label for=\"descargaOperacional\">{{'labels.descargaOperacional' | translate}}</label>\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"col-lg-3\">\n                                <div class=\"form-group form-group-sm\">\n                                        <div class=\"form-check\">\n                                            <input type=\"radio\" id=\"descargaDireta\" name=\"descargaDireta\" class=\"form-check-input\" value=\"3\"\n                                                   [(ngModel)]=\"data.tipoDeCarga\">\n                                            <label for=\"descargaDireta\">{{'labels.descargaDireta' | translate}}</label>\n                                        </div>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"clearfix\">&nbsp;</div>\n                        <div class=\"form-group\">\n                            <button class=\"btn btn-success mr-4\" type=\"submit\">\n                                {{ 'buttons.imprimir' | translate }}\n                            </button>\n                        </div>\n                    </form>\n                </div>\n            </div>\n        </div>\n    </div>\n</div>\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\n");

/***/ }),

/***/ "./src/app/pages/balanca/carga-operacional-impressao/carga-operacional-impressao-form/carga-operacional-impressao-form.component.ts":
/*!******************************************************************************************************************************************!*\
  !*** ./src/app/pages/balanca/carga-operacional-impressao/carga-operacional-impressao-form/carga-operacional-impressao-form.component.ts ***!
  \******************************************************************************************************************************************/
/*! exports provided: CargaOperacionalImpressaoFormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CargaOperacionalImpressaoFormComponent", function() { return CargaOperacionalImpressaoFormComponent; });
/* 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 _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _carga_operacional_impressao_model__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../carga-operacional-impressao.model */ "./src/app/pages/balanca/carga-operacional-impressao/carga-operacional-impressao.model.ts");
/* harmony import */ var _carga_operacional_impressao_constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../carga-operacional-impressao.constants */ "./src/app/pages/balanca/carga-operacional-impressao/carga-operacional-impressao.constants.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
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 CargaOperacionalImpressaoFormComponent = /** @class */ (function (_super) {
    __extends(CargaOperacionalImpressaoFormComponent, _super);
    function CargaOperacionalImpressaoFormComponent(router, permissoesUtils, funcoesService) {
        var _this = _super.call(this, new _carga_operacional_impressao_constants__WEBPACK_IMPORTED_MODULE_6__["CargaOperacionalImpressaoConstants"](), funcoesService) || this;
        _this.router = router;
        _this.permissoesUtils = permissoesUtils;
        _this.funcoesService = funcoesService;
        _this.data = new _carga_operacional_impressao_model__WEBPACK_IMPORTED_MODULE_5__["CargaOperacionalImpressao"]();
        _this.mensagens = [];
        _this.constantes = new _carga_operacional_impressao_constants__WEBPACK_IMPORTED_MODULE_6__["CargaOperacionalImpressaoConstants"]();
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    CargaOperacionalImpressaoFormComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
        }, function () { return _this.permissoesUtils.back(); }, true);
    };
    CargaOperacionalImpressaoFormComponent.prototype.onSubmit = function (form) {
        if (form.invalid) {
            _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_3__["EventEmitterService"].get("formError").emit(form);
            return;
        }
        this.printParams();
        this.print();
    };
    CargaOperacionalImpressaoFormComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    CargaOperacionalImpressaoFormComponent.prototype.onCancelar = function () {
        this.data = new _carga_operacional_impressao_model__WEBPACK_IMPORTED_MODULE_5__["CargaOperacionalImpressao"]();
    };
    CargaOperacionalImpressaoFormComponent.prototype.printParams = function () {
        switch (this.data.tipoDeCarga) {
            case '1':
                this.constantes.reportTitulo.titulo = "Autorização de Carga Operacional";
                break;
            case '2':
                this.constantes.reportTitulo.titulo = "Autorização de Descarga Operacional";
                break;
            case '3':
                this.constantes.reportTitulo.titulo = "Autorização de Descarga Direta";
                break;
            default:
                break;
        }
        this.constantes.paramRelatorio = {
            autorizacao: this.funcoesService.getValue(this.data.autorizacao, "I"),
            tipoDeCarga: this.funcoesService.getValue(this.data.tipoDeCarga, "I")
        };
    };
    CargaOperacionalImpressaoFormComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__["FuncoesService"] }
    ]; };
    CargaOperacionalImpressaoFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-carga-operacional-impressao-form",
            template: __importDefault(__webpack_require__(/*! raw-loader!./carga-operacional-impressao-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/balanca/carga-operacional-impressao/carga-operacional-impressao-form/carga-operacional-impressao-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__["FuncoesService"]])
    ], CargaOperacionalImpressaoFormComponent);
    return CargaOperacionalImpressaoFormComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_4__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/balanca/carga-operacional-impressao/carga-operacional-impressao.constants.ts":
/*!****************************************************************************************************!*\
  !*** ./src/app/pages/balanca/carga-operacional-impressao/carga-operacional-impressao.constants.ts ***!
  \****************************************************************************************************/
/*! exports provided: CargaOperacionalImpressaoConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CargaOperacionalImpressaoConstants", function() { return CargaOperacionalImpressaoConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var CargaOperacionalImpressaoConstants = /** @class */ (function () {
    function CargaOperacionalImpressaoConstants() {
        this.sisFormularioId = 230109;
        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.imprimeRequisicao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 4, acao: "labels.imprimeTicket" }
        ];
        this.sisSistemaId = "REL";
        this.nomeForm = "titles.cargaOperacionalImpressao";
        this.reportId = "REL0179";
        this.reportTitulo = { "titulo": "Autorização de Carga Operacional", "subTitulo": "" };
        this.listaIndex = [
            { title: 'Novo', action: 'create', icon: "icon-plus", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Visualizar', action: 'detail', icon: "icon-eye", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Editar', action: 'edit', icon: "icon-pencil", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Excluir', action: 'remove', icon: "icon-trash", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Atualizar', action: 'refresh', icon: "icon-reload", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Imprimir', action: 'print', icon: "icon-printer", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Pesquisar', action: 'filtrar', icon: "icon-search", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Propriedade', action: 'properties', icon: "icon-menu", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
        ];
        this.listaForm = [
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' }
        ];
    }
    return CargaOperacionalImpressaoConstants;
}());



/***/ }),

/***/ "./src/app/pages/balanca/carga-operacional-impressao/carga-operacional-impressao.model.ts":
/*!************************************************************************************************!*\
  !*** ./src/app/pages/balanca/carga-operacional-impressao/carga-operacional-impressao.model.ts ***!
  \************************************************************************************************/
/*! exports provided: CargaOperacionalImpressao */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CargaOperacionalImpressao", function() { return CargaOperacionalImpressao; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var CargaOperacionalImpressao = /** @class */ (function () {
    function CargaOperacionalImpressao() {
        this.tipoDeCarga = "1";
    }
    return CargaOperacionalImpressao;
}());



/***/ }),

/***/ "./src/app/pages/balanca/carga-operacional-impressao/carga-operacional-impressao.module.ts":
/*!*************************************************************************************************!*\
  !*** ./src/app/pages/balanca/carga-operacional-impressao/carga-operacional-impressao.module.ts ***!
  \*************************************************************************************************/
/*! exports provided: CargaOperacionalImpressaoModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CargaOperacionalImpressaoModule", function() { return CargaOperacionalImpressaoModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _shared_shared_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var _carga_operacional_impressao_form_carga_operacional_impressao_form_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./carga-operacional-impressao-form/carga-operacional-impressao-form.component */ "./src/app/pages/balanca/carga-operacional-impressao/carga-operacional-impressao-form/carga-operacional-impressao-form.component.ts");
/* harmony import */ var _carga_operacional_impressao_routing_module__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./carga-operacional-impressao.routing.module */ "./src/app/pages/balanca/carga-operacional-impressao/carga-operacional-impressao.routing.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 CargaOperacionalImpressaoModule = /** @class */ (function () {
    function CargaOperacionalImpressaoModule() {
    }
    CargaOperacionalImpressaoModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"], _carga_operacional_impressao_routing_module__WEBPACK_IMPORTED_MODULE_3__["CargaOperacionalImpressaoRoutingModule"]],
            declarations: [_carga_operacional_impressao_form_carga_operacional_impressao_form_component__WEBPACK_IMPORTED_MODULE_2__["CargaOperacionalImpressaoFormComponent"]]
        })
    ], CargaOperacionalImpressaoModule);
    return CargaOperacionalImpressaoModule;
}());



/***/ }),

/***/ "./src/app/pages/balanca/carga-operacional-impressao/carga-operacional-impressao.routing.module.ts":
/*!*********************************************************************************************************!*\
  !*** ./src/app/pages/balanca/carga-operacional-impressao/carga-operacional-impressao.routing.module.ts ***!
  \*********************************************************************************************************/
/*! exports provided: CargaOperacionalImpressaoRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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




var MRoutes = [
    {
        path: "",
        component: _carga_operacional_impressao_form_carga_operacional_impressao_form_component__WEBPACK_IMPORTED_MODULE_3__["CargaOperacionalImpressaoFormComponent"],
        data: { breadcrumb: "cargaOperacionalImpressao", formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index } }
    },
];
var CargaOperacionalImpressaoRoutingModule = /** @class */ (function () {
    function CargaOperacionalImpressaoRoutingModule() {
    }
    CargaOperacionalImpressaoRoutingModule = __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"]],
        })
    ], CargaOperacionalImpressaoRoutingModule);
    return CargaOperacionalImpressaoRoutingModule;
}());



/***/ })

}]);
//# sourceMappingURL=app-pages-balanca-carga-operacional-impressao-carga-operacional-impressao-module.js.map