(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-cadastro-cad-turno-operador-cad-turno-operador-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/cad-turno-operador/cad-turno-operador-form/cad-turno-operador-form.component.html":
/*!********************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/cad-turno-operador/cad-turno-operador-form/cad-turno-operador-form.component.html ***!
  \********************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<app-menu-command-bar [botoesComando]=\"constantes.listaForm\" [formAction]=\"actionForm\"\n  [itemData]=\"data.cadTurnoOperadorId\" [sisFormularioId]=\"constantes.sisFormularioId\">\n</app-menu-command-bar>\n\n<div class=\"section-comand-bar\">\n  <app-form-legenda></app-form-legenda>\n  <div class=\"card-body widget-body\">\n    <form class=\"form\" #f=\"ngForm\" (ngSubmit)=\"onSubmit(f)\">\n      <app-validacoes></app-validacoes>\n      <div class=\"row\">\n        <div class=\"col-lg-6 col-md-6 col-sm-12\">\n          <div class=\"form-group form-group-sm\">\n            <label for=\"descricao\" [class.required]=\"!funcoesService.isDetail(actionForm)\">\n              {{'labels.descricao' | translate}}\n            </label>\n            <input id=\"descricao\" name=\"descricao\" class=\"form-control form-control-sm\" type=\"text\"\n              [(ngModel)]=\"data.descricao\" [required]=\"!funcoesService.isDetail(actionForm)\"\n              [disabled]=\"funcoesService.isDetail(actionForm)\" maxlength=\"100\">\n          </div>\n        </div>\n      </div>\n      <div class=\"row\">\n        <div class=\"col-lg-1 col-md-1 col-sm-6\">\n          <div class=\"custom-control custom-checkbox\">\n            <input id=\"flagSegunda\" name=\"flagSegunda\" class=\"custom-control-input checkbox-success\" type=\"checkbox\"\n              [ngModel]=\"data.flagSegunda === 'S'\" (ngModelChange)=\"data.flagSegunda = $event ? 'S' : 'N'\"\n              [disabled]=\"funcoesService.isDetail(actionForm)\">\n            <label class=\"custom-control-label\" for=\"flagSegunda\">\n              {{'labels.seg' | translate}}\n            </label>\n          </div>\n        </div>\n        <div class=\"col-lg-1 col-md-1 col-sm-6\">\n          <div class=\"custom-control custom-checkbox\">\n            <input id=\"flagTerca\" name=\"flagTerca\" class=\"custom-control-input checkbox-success\" type=\"checkbox\"\n              [ngModel]=\"data.flagTerca === 'S'\" (ngModelChange)=\"data.flagTerca = $event ? 'S' : 'N'\"\n              [disabled]=\"funcoesService.isDetail(actionForm)\">\n            <label class=\"custom-control-label\" for=\"flagTerca\">\n              {{'labels.ter' | translate}}\n            </label>\n          </div>\n        </div>\n        <div class=\"col-lg-1 col-md-1 col-sm-6\">\n          <div class=\"custom-control custom-checkbox\">\n            <input id=\"flagQuarta\" name=\"flagQuarta\" class=\"custom-control-input checkbox-success\" type=\"checkbox\"\n              [ngModel]=\"data.flagQuarta === 'S'\" (ngModelChange)=\"data.flagQuarta = $event ? 'S' : 'N'\"\n              [disabled]=\"funcoesService.isDetail(actionForm)\">\n            <label class=\"custom-control-label\" for=\"flagQuarta\">\n              {{'labels.qua' | translate}}\n            </label>\n          </div>\n        </div>\n        <div class=\"col-lg-1 col-md-1 col-sm-6\">\n          <div class=\"custom-control custom-checkbox\">\n            <input id=\"flagQuinta\" name=\"flagQuinta\" class=\"custom-control-input checkbox-success\" type=\"checkbox\"\n              [ngModel]=\"data.flagQuinta === 'S'\" (ngModelChange)=\"data.flagQuinta = $event ? 'S' : 'N'\"\n              [disabled]=\"funcoesService.isDetail(actionForm)\">\n            <label class=\"custom-control-label\" for=\"flagQuinta\">\n              {{'labels.qui' | translate}}\n            </label>\n          </div>\n        </div>\n        <div class=\"col-lg-1 col-md-1 col-sm-6\">\n          <div class=\"custom-control custom-checkbox\">\n            <input id=\"flagSexta\" name=\"flagSexta\" class=\"custom-control-input checkbox-success\" type=\"checkbox\"\n              [ngModel]=\"data.flagSexta === 'S'\" (ngModelChange)=\"data.flagSexta = $event ? 'S' : 'N'\"\n              [disabled]=\"funcoesService.isDetail(actionForm)\">\n            <label class=\"custom-control-label\" for=\"flagSexta\">\n              {{'labels.sex' | translate}}\n            </label>\n          </div>\n        </div>\n      </div>\n      <div class=\"row\">\n        <div class=\"col-lg-1 col-md-1 col-sm-6\">\n          <div class=\"custom-control custom-checkbox\">\n            <input id=\"flagSabado\" name=\"flagSabado\" class=\"custom-control-input checkbox-success\" type=\"checkbox\"\n              [ngModel]=\"data.flagSabado === 'S'\" (ngModelChange)=\"data.flagSabado = $event ? 'S' : 'N'\"\n              [disabled]=\"funcoesService.isDetail(actionForm)\">\n            <label class=\"custom-control-label\" for=\"flagSabado\">\n              {{'labels.sab' | translate}}\n            </label>\n          </div>\n        </div>\n        <div class=\"col-lg-1 col-md-1 col-sm-6\">\n          <div class=\"custom-control custom-checkbox\">\n            <input id=\"flagDomingo\" name=\"flagDomingo\" class=\"custom-control-input checkbox-success\" type=\"checkbox\"\n              [ngModel]=\"data.flagDomingo === 'S'\" (ngModelChange)=\"data.flagDomingo = $event ? 'S' : 'N'\"\n              [disabled]=\"funcoesService.isDetail(actionForm)\">\n            <label class=\"custom-control-label\" for=\"flagDomingo\">\n              {{'labels.dom' | translate}}\n            </label>\n          </div>\n        </div>\n        <div class=\"col-lg-1 col-md-1 col-sm-6\">\n          <div class=\"custom-control custom-checkbox\">\n            <input id=\"flagFeriado\" name=\"flagFeriado\" class=\"custom-control-input checkbox-success\" type=\"checkbox\"\n              [ngModel]=\"data.flagFeriado === 'S'\" (ngModelChange)=\"data.flagFeriado = $event ? 'S' : 'N'\"\n              [disabled]=\"funcoesService.isDetail(actionForm)\">\n            <label class=\"custom-control-label\" for=\"flagFeriado\">\n              {{'labels.feriado' | translate}}\n            </label>\n          </div>\n        </div>\n      </div>\n\n      <div class=\"row mt-3\">\n        <div class=\"col-lg-2 col-md-2 col-sm-12\">\n          <div class=\"form-group form-group-sm\">\n            <label for=\"horario\" [class.required]=\"!funcoesService.isDetail(actionForm)\">{{\"labels.horario\" | translate\n              }}</label>\n            <input id=\"horario\" name=\"horario\" class=\"form-control form-control-sm\" type=\"text\"\n              [dropSpecialCharacters]=\"false\" mask=\"00:00\" [(ngModel)]=\"data.horarioIni\" (blur)=\"validarHorarioInicio()\"\n              [required]=\"!funcoesService.isDetail(actionForm)\" [disabled]=\"funcoesService.isDetail(actionForm)\">\n          </div>\n        </div>\n        <div class=\"col-lg-2 col-md-2 col-sm-12\">\n          <div class=\"form-group form-group-sm\">\n            <label for=\"ate\" [class.required]=\"!funcoesService.isDetail(actionForm)\">{{\"labels.ate\" |\n              translate}}</label>\n            <input id=\"ate\" name=\"ate\" class=\"form-control form-control-sm\" type=\"text\" [dropSpecialCharacters]=\"false\"\n              mask=\"00:00\" [(ngModel)]=\"data.horarioFim\" (blur)=\"validarHorarioFim()\"\n              [required]=\"!funcoesService.isDetail(actionForm)\" [disabled]=\"funcoesService.isDetail(actionForm)\">\n          </div>\n        </div>\n      </div>\n\n      <div class=\"row\">\n        <div class=\"col-lg-4 col-md-4 col-sm-12\">\n          <div class=\"form-group form-group-sm\">\n            <label for=\"localizacao\" [class.required]=\"!funcoesService.isDetail(actionForm)\">\n              {{\"labels.localizacao\" | translate }}\n            </label>\n            <app-combo-padrao id=\"localizacao\" name=\"localizacao\" chave=\"Registro\" descricao=\"Descricao\" ativos=\"true\"\n              tabela=\"CadLocalizacaoPlataforma\" [(ngModel)]=\"data.cadLocalizacaoPlataformaId\"\n              [required]=\"!funcoesService.isDetail(actionForm)\" [disabled]=\"funcoesService.isDetail(actionForm)\">\n            </app-combo-padrao>\n          </div>\n        </div>\n      </div>\n\n      <div class=\"row\">\n        <div class=\"col-lg-3 col-md-3 col-sm-12\">\n          <div class=\"form-group form-group-sm\">\n            <label for=\"nrOperadores\" [class.required]=\"!funcoesService.isDetail(actionForm)\">\n              {{'labels.nrOperadores' | translate}}\n            </label>\n            <input id=\"nrOperadores\" name=\"nrOperadores\" class=\"form-control form-control-sm\" type=\"number\" min=\"0\"\n              [(ngModel)]=\"data.operadores\" [required]=\"!funcoesService.isDetail(actionForm)\"\n              [disabled]=\"funcoesService.isDetail(actionForm)\">\n          </div>\n        </div>\n      </div>\n      <div class=\"clearfix\">&nbsp;</div>\n      <div class=\"row\">\n        <div class=\"col-12\">\n          <div class=\"form-group\">\n            <button class=\"btn btn-success mr-2\" type=\"submit\" [disabled]=\"funcoesService.isDetail(actionForm)\">\n              {{ \"buttons.salvar\" | translate }}\n            </button>\n            <button class=\"btn btn-success\" (click)=\"saveAndCreate(f)\" type=\"button\"\n              [disabled]=\"funcoesService.isDetail(actionForm)\">\n              {{ \"buttons.salvarNovo\" | translate }}\n            </button>\n          </div>\n        </div>\n      </div>\n    </form>\n  </div>\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/cad-turno-operador/cad-turno-operador-index/cad-turno-operador-index.component.html":
/*!**********************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/cad-turno-operador/cad-turno-operador-index/cad-turno-operador-index.component.html ***!
  \**********************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<app-menu-command-bar [botoesComando]=\"constantes.listaIndex\"\r\n                      [formAction]=\"actionForm\"\r\n                      [itemData]=\"data.cadTurnoOperadorId\"\r\n                      [sisFormularioId]=\"constantes.sisFormularioId\">\r\n</app-menu-command-bar>\r\n\r\n<div class=\"section-comand-bar\">\r\n    <div class=\"table-responsive\" style=\"overflow: auto;\">\r\n        <table id=\"dtTurnos\" class=\"table table-striped table-bordered table-hover nowrap table-sm\">\r\n            <thead>\r\n                <tr>\r\n                    <th>{{ 'labels.turno' | translate}}</th>\r\n                    <th>{{ 'labels.localizacao' | translate}}</th>\r\n                    <th>{{ 'labels.semana' | translate}}</th>\r\n                    <th>{{ 'labels.horario' | translate}}</th>\r\n                    <th class=\"text-right\">{{ 'labels.nrOperadores' | translate}}</th>\r\n                </tr>\r\n            </thead>\r\n            <tbody>\r\n                <tr *ngFor=\"let a of dados; index as i\"\r\n                    [class.info]=\"data.cadTurnoOperadorId === a.cadTurnoOperadorId\"\r\n                    (click)=\"_click(a)\">\r\n                    <td>{{ a.descricao }}</td>\r\n                    <td>{{ a.descrLocalizacaoPlataforma }}</td>\r\n                    <td>\r\n                        <span *ngIf=\"a.flagSegunda === 'S'\">{{ 'labels.seg' | translate}}</span>\r\n                        <span *ngIf=\"a.flagTerca === 'S'\"><span *ngIf=\"a.flagSegunda === 'S'\">-</span>{{ 'labels.ter' | translate}}</span>\r\n                        <span *ngIf=\"a.flagQuarta === 'S'\"><span *ngIf=\"a.flagSegunda === 'S' || a.flagTerca === 'S'\">-</span>{{ 'labels.qua' | translate}}</span>\r\n                        <span *ngIf=\"a.flagQuinta === 'S'\"><span *ngIf=\"a.flagSegunda === 'S' || a.flagTerca === 'S' || a.flagQuarta === 'S'\">-</span>{{ 'labels.qui' | translate}}</span>\r\n                        <span *ngIf=\"a.flagSexta === 'S'\"><span *ngIf=\"a.flagSegunda === 'S' || a.flagTerca === 'S' || a.flagQuarta === 'S' || a.flagQuinta === 'S'\">-</span>{{ 'labels.sex' | translate}}</span>\r\n                        <span *ngIf=\"a.flagSabado === 'S'\"><span *ngIf=\"a.flagSegunda === 'S' || a.flagTerca === 'S' || a.flagQuarta === 'S' || a.flagQuinta === 'S' || a.flagSexta === 'S'\">-</span>{{ 'labels.sab' | translate}}</span>\r\n                        <span *ngIf=\"a.flagDomingo === 'S'\"><span *ngIf=\"a.flagSegunda === 'S' || a.flagTerca === 'S' || a.flagQuarta === 'S' || a.flagQuinta === 'S' || a.flagSexta === 'S' || a.flagSabado === 'S'\">-</span>{{ 'labels.dom' | translate}}</span>\r\n                        <span *ngIf=\"a.flagFeriado === 'S'\"><span *ngIf=\"a.flagSegunda === 'S' || a.flagTerca === 'S' || a.flagQuarta === 'S' || a.flagQuinta === 'S' || a.flagSexta === 'S' || a.flagSabado === 'S' || a.flagDomingo === 'S'\">-</span>{{ 'labels.feriado' | translate}}</span>\r\n                    </td>\r\n                    <td>{{ a.horarioIni }} {{ 'labels.ate' | translate}} {{ a.horarioFim}}</td>\r\n                    <td class=\"text-right\">{{ a.operadores }}</td>\r\n                </tr>\r\n                <tr *ngIf=\"!hasDados\">\r\n                    <th colspan=\"9\" 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\r\n<app-propriedades></app-propriedades>\r\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\r\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\r\n");

/***/ }),

/***/ "./src/app/pages/cadastro/cad-turno-operador/cad-turno-operador-form/cad-turno-operador-form.component.ts":
/*!****************************************************************************************************************!*\
  !*** ./src/app/pages/cadastro/cad-turno-operador/cad-turno-operador-form/cad-turno-operador-form.component.ts ***!
  \****************************************************************************************************************/
/*! exports provided: CadTurnoOperadorFormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CadTurnoOperadorFormComponent", function() { return CadTurnoOperadorFormComponent; });
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! moment */ "./node_modules/moment/moment.js");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__ = __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_6__ = __webpack_require__(/*! ./../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../destinatario/destinatario.service */ "./src/app/pages/cadastro/destinatario/destinatario.service.ts");
/* harmony import */ var _material_material_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../material/material.service */ "./src/app/pages/cadastro/material/material.service.ts");
/* harmony import */ var _cad_turno_operador_constants__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../cad-turno-operador.constants */ "./src/app/pages/cadastro/cad-turno-operador/cad-turno-operador.constants.ts");
/* harmony import */ var _cad_turno_operador_model__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../cad-turno-operador.model */ "./src/app/pages/cadastro/cad-turno-operador/cad-turno-operador.model.ts");
/* harmony import */ var _cad_turno_operador_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../cad-turno-operador.service */ "./src/app/pages/cadastro/cad-turno-operador/cad-turno-operador.service.ts");
/* harmony import */ var _unidade_unidade_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../unidade/unidade.service */ "./src/app/pages/cadastro/unidade/unidade.service.ts");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.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 CadTurnoOperadorFormComponent = /** @class */ (function (_super) {
    __extends(CadTurnoOperadorFormComponent, _super);
    function CadTurnoOperadorFormComponent(router, messageService, activatedRoute, service, funcoesService, permissoesUtils, destinatarioService, materialService, unidadeService) {
        var _this = _super.call(this, new _cad_turno_operador_constants__WEBPACK_IMPORTED_MODULE_10__["CadTurnoOperadorConstants"](), funcoesService) || this;
        _this.router = router;
        _this.messageService = messageService;
        _this.activatedRoute = activatedRoute;
        _this.service = service;
        _this.funcoesService = funcoesService;
        _this.permissoesUtils = permissoesUtils;
        _this.destinatarioService = destinatarioService;
        _this.materialService = materialService;
        _this.unidadeService = unidadeService;
        _this.data = new _cad_turno_operador_model__WEBPACK_IMPORTED_MODULE_11__["CadTurnoOperador"]();
        _this.listaUnidades = [];
        _this.mensagens = [];
        _this.constantes = new _cad_turno_operador_constants__WEBPACK_IMPORTED_MODULE_10__["CadTurnoOperadorConstants"]();
        _this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_14__["Mascaras"]();
        _this.target = _this.funcoesService.getTargetLocation();
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    CadTurnoOperadorFormComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, this.permissoesUtils.getLibRotina(this.actionForm), function () {
            var id = _this.activatedRoute.snapshot.paramMap.get("id");
            _this.data = new _cad_turno_operador_model__WEBPACK_IMPORTED_MODULE_11__["CadTurnoOperador"]();
            if (id) {
                _this.service.getById(id).subscribe(function (resp) {
                    _this.data = resp;
                    _this.hourInitial = _this.data.horarioIni;
                    _this.hourFinal = _this.data.horarioFim;
                });
            }
        }, function () {
            _this.permissoesUtils.back();
        });
    };
    CadTurnoOperadorFormComponent.prototype._validarIntervaloHorario = function () {
        var horaIni = moment__WEBPACK_IMPORTED_MODULE_0__(this.data.horarioIni, "HH:mm");
        var horaFim = moment__WEBPACK_IMPORTED_MODULE_0__(this.data.horarioFim, "HH:mm");
        if (!moment__WEBPACK_IMPORTED_MODULE_0__(horaFim).isAfter(horaIni)) {
            this.messageService.error("titles.turnos", "messages.horarioInicialNaoPodeSerMaiorFinal");
            return false;
        }
        else {
            return true;
        }
    };
    CadTurnoOperadorFormComponent.prototype.validarHorarioInicio = function () {
        if (this.funcoesService.isNotUndefinedOrNull(this.data.horarioIni)) {
            var beginHour = this.data.horarioIni;
            if ((+beginHour.split(':')[0] < 0) ||
                (+beginHour.split(':')[0] > 23) ||
                (+beginHour.split(':')[1] < 0) ||
                (+beginHour.split(':')[1] > 59)) {
                this.messageService.error("titles.turnos", "messages.horarioInvalido");
                this.data.horarioIni = this.hourInitial;
                return;
            }
        }
    };
    CadTurnoOperadorFormComponent.prototype.validarHorarioFim = function () {
        if (this.funcoesService.isNotUndefinedOrNull(this.data.horarioFim)) {
            var endHour = this.data.horarioFim;
            if ((+endHour.split(':')[0] < 0) ||
                (+endHour.split(':')[0] > 23) ||
                (+endHour.split(':')[1] < 0) ||
                (+endHour.split(':')[1] > 59)) {
                this.messageService.error("titles.turnos", "messages.horarioAteInvalido");
                this.data.horarioFim = this.hourFinal;
                return;
            }
            if (this.funcoesService.isNotUndefinedOrNull(this.data.horarioIni)) {
                this._validarIntervaloHorario();
            }
        }
    };
    CadTurnoOperadorFormComponent.prototype.onSubmit = function (form, create) {
        var _this = this;
        if (create === void 0) { create = false; }
        if (form.invalid) {
            _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_6__["EventEmitterService"].get("formError").emit(form);
            return;
        }
        if (this._validarIntervaloHorario()) {
            this.data.logRotina = "Manutenção de CadTurnoOperador";
            this.service
                .save(this.data, this.funcoesService.isEdit(this.actionForm))
                .subscribe(function (result) {
                _this.mensagens = _this.messageService.validationResult(result.validationResult);
                if (!result.validationResult.isValid) {
                    _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_6__["EventEmitterService"].get("backError").emit(_this.mensagens);
                }
                else {
                    _this.messageService.saveSuccess("titles.turnos");
                    if (create) {
                        _this.data = new _cad_turno_operador_model__WEBPACK_IMPORTED_MODULE_11__["CadTurnoOperador"]();
                        _this.router.navigate([_this.target + "/cadastro/cadTurnoOperador/create"]);
                    }
                    else {
                        _this.back();
                    }
                }
            });
        }
    };
    CadTurnoOperadorFormComponent.prototype.saveAndCreate = function (form) {
        this.onSubmit(form, true);
    };
    CadTurnoOperadorFormComponent.prototype.edit = function () {
        if (!!this.data.cadTurnoOperadorId) {
            this.router.navigate([this.target + "/cadastro/cadTurnoOperador/edit/" + this.data.cadTurnoOperadorId]);
        }
    };
    CadTurnoOperadorFormComponent.prototype.back = function () {
        this.router.navigate([this.target + "/cadastro/cadTurnoOperador"]);
    };
    CadTurnoOperadorFormComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["ActivatedRoute"] },
        { type: _cad_turno_operador_service__WEBPACK_IMPORTED_MODULE_12__["CadTurnoOperadorService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"] },
        { type: _destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_8__["DestinatarioService"] },
        { type: _material_material_service__WEBPACK_IMPORTED_MODULE_9__["MaterialService"] },
        { type: _unidade_unidade_service__WEBPACK_IMPORTED_MODULE_13__["UnidadeService"] }
    ]; };
    CadTurnoOperadorFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
            selector: "app-cad-turno-operador-form",
            template: __importDefault(__webpack_require__(/*! raw-loader!./cad-turno-operador-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/cad-turno-operador/cad-turno-operador-form/cad-turno-operador-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_2__["ActivatedRoute"],
            _cad_turno_operador_service__WEBPACK_IMPORTED_MODULE_12__["CadTurnoOperadorService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"],
            _destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_8__["DestinatarioService"],
            _material_material_service__WEBPACK_IMPORTED_MODULE_9__["MaterialService"],
            _unidade_unidade_service__WEBPACK_IMPORTED_MODULE_13__["UnidadeService"]])
    ], CadTurnoOperadorFormComponent);
    return CadTurnoOperadorFormComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_3__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/cadastro/cad-turno-operador/cad-turno-operador-index/cad-turno-operador-index.component.ts":
/*!******************************************************************************************************************!*\
  !*** ./src/app/pages/cadastro/cad-turno-operador/cad-turno-operador-index/cad-turno-operador-index.component.ts ***!
  \******************************************************************************************************************/
/*! exports provided: CadTurnoOperadorIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CadTurnoOperadorIndexComponent", function() { return CadTurnoOperadorIndexComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var _cad_turno_operador_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../cad-turno-operador.constants */ "./src/app/pages/cadastro/cad-turno-operador/cad-turno-operador.constants.ts");
/* harmony import */ var _cad_turno_operador_model__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../cad-turno-operador.model */ "./src/app/pages/cadastro/cad-turno-operador/cad-turno-operador.model.ts");
/* harmony import */ var _cad_turno_operador_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../cad-turno-operador.service */ "./src/app/pages/cadastro/cad-turno-operador/cad-turno-operador.service.ts");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./../../../../shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.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 CadTurnoOperadorIndexComponent = /** @class */ (function (_super) {
    __extends(CadTurnoOperadorIndexComponent, _super);
    function CadTurnoOperadorIndexComponent(router, service, datatablesService, messageService, funcoesService, permissoesUtils, loginService) {
        var _this = _super.call(this, new _cad_turno_operador_constants__WEBPACK_IMPORTED_MODULE_3__["CadTurnoOperadorConstants"](), funcoesService) || this;
        _this.router = router;
        _this.service = service;
        _this.datatablesService = datatablesService;
        _this.messageService = messageService;
        _this.funcoesService = funcoesService;
        _this.permissoesUtils = permissoesUtils;
        _this.loginService = loginService;
        _this.data = new _cad_turno_operador_model__WEBPACK_IMPORTED_MODULE_4__["CadTurnoOperador"]();
        _this.hasDados = false;
        _this.constantes = new _cad_turno_operador_constants__WEBPACK_IMPORTED_MODULE_3__["CadTurnoOperadorConstants"]();
        _this.target = _this.funcoesService.getTargetLocation();
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    CadTurnoOperadorIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils
            .verificaRotina(this.constantes.sisFormularioId, 4, function () {
            if (!_this.loginService.isTokenExpired()) {
                _this.refresh();
            }
        }, function () { return _this.permissoesUtils.back(); }, true);
    };
    CadTurnoOperadorIndexComponent.prototype.create = function () {
        this.router.navigate([this.target + "/cadastro/cadTurnoOperador/create"]);
    };
    CadTurnoOperadorIndexComponent.prototype.edit = function () {
        if (!!this.data.cadTurnoOperadorId) {
            this.router.navigate([this.target + "/cadastro/cadTurnoOperador/edit/" + this.data.cadTurnoOperadorId]);
        }
    };
    CadTurnoOperadorIndexComponent.prototype.detail = function () {
        if (!!this.data.cadTurnoOperadorId) {
            this.router.navigate([this.target + "/cadastro/cadTurnoOperador/detail/" + this.data.cadTurnoOperadorId + "/"]);
        }
    };
    CadTurnoOperadorIndexComponent.prototype.remove = function () {
        var _this = this;
        if (!!this.data.cadTurnoOperadorId) {
            this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
                _this.messageService.removeConfirm(function () {
                    _this.service.remove(_this.data).subscribe(function () {
                        _this.datatablesService.remove("dtTurnos");
                        _this.data = new _cad_turno_operador_model__WEBPACK_IMPORTED_MODULE_4__["CadTurnoOperador"]();
                    });
                });
            });
        }
    };
    CadTurnoOperadorIndexComponent.prototype.refresh = function () {
        var _this = this;
        this.service.get().subscribe(function (resp) {
            _this.dados = resp;
            _this.hasDados = resp && resp.length > 0;
        });
    };
    CadTurnoOperadorIndexComponent.prototype._click = function (a) {
        this.data = a;
    };
    CadTurnoOperadorIndexComponent.prototype.print = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 5, function () {
            _super.prototype.print.call(_this);
        });
    };
    CadTurnoOperadorIndexComponent.prototype.properties = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 6, function () {
            _super.prototype.properties.call(_this, _this.data);
        });
    };
    CadTurnoOperadorIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 7, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    CadTurnoOperadorIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _cad_turno_operador_service__WEBPACK_IMPORTED_MODULE_5__["CadTurnoOperadorService"] },
        { type: _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_7__["DatatablesService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_10__["MessageService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_8__["FuncoesService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__["PermissoesUtilsService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__["LoginService"] }
    ]; };
    CadTurnoOperadorIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-cad-turno-operador-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./cad-turno-operador-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/cad-turno-operador/cad-turno-operador-index/cad-turno-operador-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _cad_turno_operador_service__WEBPACK_IMPORTED_MODULE_5__["CadTurnoOperadorService"],
            _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_7__["DatatablesService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_10__["MessageService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_8__["FuncoesService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__["PermissoesUtilsService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__["LoginService"]])
    ], CadTurnoOperadorIndexComponent);
    return CadTurnoOperadorIndexComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_6__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/cadastro/cad-turno-operador/cad-turno-operador.constants.ts":
/*!***********************************************************************************!*\
  !*** ./src/app/pages/cadastro/cad-turno-operador/cad-turno-operador.constants.ts ***!
  \***********************************************************************************/
/*! exports provided: CadTurnoOperadorConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CadTurnoOperadorConstants", function() { return CadTurnoOperadorConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var CadTurnoOperadorConstants = /** @class */ (function () {
    function CadTurnoOperadorConstants() {
        this.sisFormularioId = 345022;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.inclusao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.alteracao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 3, acao: "labels.exclusao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 4, acao: "labels.consulta" },
            { sisFormularioId: this.sisFormularioId, libRotina: 5, acao: "labels.impressao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 6, acao: "labels.propriedades" },
            { sisFormularioId: this.sisFormularioId, libRotina: 7, acao: "labels.permissoes" }
        ];
        this.sisSistemaId = "CAD";
        this.nomeForm = "titles.turnos";
        this.reportId = "CAD0270";
        this.reportTitulo = { "titulo": "Turnos", "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-close", 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: '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: 'Editar', action: 'edit', icon: "icon-pencil", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Voltar', action: 'back', icon: "icon-arrow-left", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' }
        ];
    }
    return CadTurnoOperadorConstants;
}());



/***/ }),

/***/ "./src/app/pages/cadastro/cad-turno-operador/cad-turno-operador.model.ts":
/*!*******************************************************************************!*\
  !*** ./src/app/pages/cadastro/cad-turno-operador/cad-turno-operador.model.ts ***!
  \*******************************************************************************/
/*! exports provided: CadTurnoOperador */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CadTurnoOperador", function() { return CadTurnoOperador; });
/* harmony import */ var _shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../shared/services/base/base.model */ "./src/app/shared/services/base/base.model.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};

var CadTurnoOperador = /** @class */ (function (_super) {
    __extends(CadTurnoOperador, _super);
    function CadTurnoOperador() {
        var _this = _super.call(this) || this;
        _this.flagSegunda = "N";
        _this.flagTerca = "N";
        _this.flagQuarta = "N";
        _this.flagQuinta = "N";
        _this.flagSexta = "N";
        _this.flagSabado = "N";
        _this.flagDomingo = "N";
        _this.flagFeriado = "N";
        return _this;
    }
    return CadTurnoOperador;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));



/***/ }),

/***/ "./src/app/pages/cadastro/cad-turno-operador/cad-turno-operador.module.ts":
/*!********************************************************************************!*\
  !*** ./src/app/pages/cadastro/cad-turno-operador/cad-turno-operador.module.ts ***!
  \********************************************************************************/
/*! exports provided: CadTurnoOperadorModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CadTurnoOperadorModule", function() { return CadTurnoOperadorModule; });
/* 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 _cad_turno_operador_form_cad_turno_operador_form_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./cad-turno-operador-form/cad-turno-operador-form.component */ "./src/app/pages/cadastro/cad-turno-operador/cad-turno-operador-form/cad-turno-operador-form.component.ts");
/* harmony import */ var _cad_turno_operador_index_cad_turno_operador_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./cad-turno-operador-index/cad-turno-operador-index.component */ "./src/app/pages/cadastro/cad-turno-operador/cad-turno-operador-index/cad-turno-operador-index.component.ts");
/* harmony import */ var _cad_turno_operador_routing_module__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./cad-turno-operador.routing.module */ "./src/app/pages/cadastro/cad-turno-operador/cad-turno-operador.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 CadTurnoOperadorModule = /** @class */ (function () {
    function CadTurnoOperadorModule() {
    }
    CadTurnoOperadorModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            declarations: [
                _cad_turno_operador_index_cad_turno_operador_index_component__WEBPACK_IMPORTED_MODULE_3__["CadTurnoOperadorIndexComponent"],
                _cad_turno_operador_form_cad_turno_operador_form_component__WEBPACK_IMPORTED_MODULE_2__["CadTurnoOperadorFormComponent"]
            ],
            imports: [
                _shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"],
                _cad_turno_operador_routing_module__WEBPACK_IMPORTED_MODULE_4__["CadTurnoOperadorRoutingModule"]
            ]
        })
    ], CadTurnoOperadorModule);
    return CadTurnoOperadorModule;
}());



/***/ }),

/***/ "./src/app/pages/cadastro/cad-turno-operador/cad-turno-operador.routing.module.ts":
/*!****************************************************************************************!*\
  !*** ./src/app/pages/cadastro/cad-turno-operador/cad-turno-operador.routing.module.ts ***!
  \****************************************************************************************/
/*! exports provided: CadTurnoOperadorRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CadTurnoOperadorRoutingModule", function() { return CadTurnoOperadorRoutingModule; });
/* 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 _cad_turno_operador_form_cad_turno_operador_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./cad-turno-operador-form/cad-turno-operador-form.component */ "./src/app/pages/cadastro/cad-turno-operador/cad-turno-operador-form/cad-turno-operador-form.component.ts");
/* harmony import */ var _cad_turno_operador_index_cad_turno_operador_index_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./cad-turno-operador-index/cad-turno-operador-index.component */ "./src/app/pages/cadastro/cad-turno-operador/cad-turno-operador-index/cad-turno-operador-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 CadTurnoOperadorRoutes = [
    {
        path: "",
        component: _cad_turno_operador_index_cad_turno_operador_index_component__WEBPACK_IMPORTED_MODULE_4__["CadTurnoOperadorIndexComponent"],
        data: {
            breadcrumb: "turnos",
            formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index }
        }
    },
    {
        path: "create",
        component: _cad_turno_operador_form_cad_turno_operador_form_component__WEBPACK_IMPORTED_MODULE_3__["CadTurnoOperadorFormComponent"],
        data: {
            breadcrumb: "turnos",
            formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].create }
        }
    },
    {
        path: "edit/:id",
        component: _cad_turno_operador_form_cad_turno_operador_form_component__WEBPACK_IMPORTED_MODULE_3__["CadTurnoOperadorFormComponent"],
        data: {
            breadcrumb: "turnos",
            formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].edit }
        }
    },
    {
        path: "detail/:id",
        component: _cad_turno_operador_form_cad_turno_operador_form_component__WEBPACK_IMPORTED_MODULE_3__["CadTurnoOperadorFormComponent"],
        data: {
            breadcrumb: "turnos",
            formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].detail }
        }
    }
];
var CadTurnoOperadorRoutingModule = /** @class */ (function () {
    function CadTurnoOperadorRoutingModule() {
    }
    CadTurnoOperadorRoutingModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"].forChild(CadTurnoOperadorRoutes)],
            exports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"]]
        })
    ], CadTurnoOperadorRoutingModule);
    return CadTurnoOperadorRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/cadastro/cad-turno-operador/cad-turno-operador.service.ts":
/*!*********************************************************************************!*\
  !*** ./src/app/pages/cadastro/cad-turno-operador/cad-turno-operador.service.ts ***!
  \*********************************************************************************/
/*! exports provided: CadTurnoOperadorService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CadTurnoOperadorService", function() { return CadTurnoOperadorService; });
/* 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 _shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../shared/services/base/base.service */ "./src/app/shared/services/base/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 CadTurnoOperadorService = /** @class */ (function (_super) {
    __extends(CadTurnoOperadorService, _super);
    function CadTurnoOperadorService(http) {
        var _this = _super.call(this, http, "cadastros/cadTurnoOperador") || this;
        _this.http = http;
        return _this;
    }
    CadTurnoOperadorService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"] }
    ]; };
    CadTurnoOperadorService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"]])
    ], CadTurnoOperadorService);
    return CadTurnoOperadorService;
}(_shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_2__["BaseService"]));



/***/ }),

/***/ "./src/app/pages/cadastro/unidade/unidade.service.ts":
/*!***********************************************************!*\
  !*** ./src/app/pages/cadastro/unidade/unidade.service.ts ***!
  \***********************************************************/
/*! exports provided: UnidadeService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UnidadeService", function() { return UnidadeService; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
/* harmony import */ var _shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../shared/services/base/base.service */ "./src/app/shared/services/base/base.service.ts");
/* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
/* harmony import */ var _app_error_handler__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../app.error-handler */ "./src/app/app.error-handler.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 UnidadeService = /** @class */ (function (_super) {
    __extends(UnidadeService, _super);
    function UnidadeService(http) {
        return _super.call(this, http, "cadastros/unidade") || this;
    }
    UnidadeService.prototype.getOpcoesValidas = function (unidades) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/cadastros/unidade/getOpcoesValidas", { "unidades": unidades })
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    UnidadeService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"] }
    ]; };
    UnidadeService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
            providedIn: 'root'
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"]])
    ], UnidadeService);
    return UnidadeService;
}(_shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_2__["BaseService"]));



/***/ })

}]);
//# sourceMappingURL=app-pages-cadastro-cad-turno-operador-cad-turno-operador-module.js.map