(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["event-list-event-list-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/gabinete-digital/event-list/event-list.page.html":
/*!**************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/gabinete-digital/event-list/event-list.page.html ***!
  \**************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<ion-header>\n  <ion-toolbar>\n    <ion-buttons slot=\"start\">\n      <ion-back-button defaultHref=\"/gabinete-digital\"></ion-back-button>\n    </ion-buttons>\n    <ion-title>Eventos para Aprovação</ion-title>\n  </ion-toolbar>\n  <ion-toolbar>\n    <ion-segment [(ngModel)]=\"segment\">\n      <ion-segment-button value=\"MDGPR\">\n        Meu calendário\n      </ion-segment-button>\n      <ion-segment-button value=\"PR\">\n        Presidente da República\n      </ion-segment-button>\n    </ion-segment>\n  </ion-toolbar>\n</ion-header>\n\n<ion-content>\n  <div [ngSwitch]=\"segment\">\n    <ion-list *ngSwitchCase=\"'MDGPR'\">\n      <div *ngIf=\"eventsMDGPRList\">\n      <ion-list>\n        <ion-item-sliding>\n          <ion-item class=\"Rectangle\" lines=\"none\" \n            *ngFor=\"let event of eventsMDGPRList\"\n            [routerLink]=\"['/home/gabinete-digital/expediente/events/', event.EventId, 'gabinete-digital/expediente/' + serialnumber]\">\n            <div class=\"rectangle-content\">\n              <div class=\"approve-event-time\">\n                <p>08:30</p>\n                <p>12:30</p>\n              </div>\n              <div class=\"approve-event-detail\">\n                <p>Luanda | Palácio Presidencial</p>\n                <h3>Reunião de Conselho de Ministros</h3>\n              </div>\n            </div>\n          </ion-item>\n        </ion-item-sliding>\n      </ion-list>\n    </div>\n\n    </ion-list>\n    <ion-list *ngSwitchCase=\"'PR'\">\n      <ion-item-sliding *ngIf=\"eventsPRList\">\n        <ion-item class=\"Rectangle\" lines=\"none\" \n            *ngFor=\"let event of eventsPRList\" (click)=\"openApproveModal()\">\n            <div class=\"rectangle-content\">\n              <div class=\"approve-event-time\">\n                <p>08:30</p>\n                <p>12:30</p>\n              </div>\n              <div class=\"approve-event-detail\">\n                <p>Luanda | Palácio Presidencial</p>\n                <h3>Reunião de Conselho de Ministros</h3>\n              </div>\n            </div>\n          </ion-item>\n      </ion-item-sliding>\n    </ion-list>\n  </div>\n\n</ion-content>\n");

/***/ }),

/***/ "./src/app/pages/gabinete-digital/event-list/event-list-routing.module.ts":
/*!********************************************************************************!*\
  !*** ./src/app/pages/gabinete-digital/event-list/event-list-routing.module.ts ***!
  \********************************************************************************/
/*! exports provided: EventListPageRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EventListPageRoutingModule", function() { return EventListPageRoutingModule; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js");
/* harmony import */ var _event_list_page__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./event-list.page */ "./src/app/pages/gabinete-digital/event-list/event-list.page.ts");




const routes = [
    {
        path: '',
        component: _event_list_page__WEBPACK_IMPORTED_MODULE_3__["EventListPage"]
    }
];
let EventListPageRoutingModule = class EventListPageRoutingModule {
};
EventListPageRoutingModule = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
        imports: [_angular_router__WEBPACK_IMPORTED_MODULE_2__["RouterModule"].forChild(routes)],
        exports: [_angular_router__WEBPACK_IMPORTED_MODULE_2__["RouterModule"]],
    })
], EventListPageRoutingModule);



/***/ }),

/***/ "./src/app/pages/gabinete-digital/event-list/event-list.module.ts":
/*!************************************************************************!*\
  !*** ./src/app/pages/gabinete-digital/event-list/event-list.module.ts ***!
  \************************************************************************/
/*! exports provided: EventListPageModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EventListPageModule", function() { return EventListPageModule; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
/* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @ionic/angular */ "./node_modules/@ionic/angular/__ivy_ngcc__/fesm2015/ionic-angular.js");
/* harmony import */ var _event_list_routing_module__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./event-list-routing.module */ "./src/app/pages/gabinete-digital/event-list/event-list-routing.module.ts");
/* harmony import */ var _event_list_page__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./event-list.page */ "./src/app/pages/gabinete-digital/event-list/event-list.page.ts");







let EventListPageModule = class EventListPageModule {
};
EventListPageModule = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
        imports: [
            _angular_common__WEBPACK_IMPORTED_MODULE_2__["CommonModule"],
            _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormsModule"],
            _ionic_angular__WEBPACK_IMPORTED_MODULE_4__["IonicModule"],
            _event_list_routing_module__WEBPACK_IMPORTED_MODULE_5__["EventListPageRoutingModule"]
        ],
        declarations: [_event_list_page__WEBPACK_IMPORTED_MODULE_6__["EventListPage"]]
    })
], EventListPageModule);



/***/ }),

/***/ "./src/app/pages/gabinete-digital/event-list/event-list.page.scss":
/*!************************************************************************!*\
  !*** ./src/app/pages/gabinete-digital/event-list/event-list.page.scss ***!
  \************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = (".Rectangle {\n  width: 360px;\n  border-radius: 15px;\n  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.07);\n  border: solid 1px #e9e9e9;\n  background-color: var(--white);\n  margin: 0 auto;\n  padding: 10px;\n  margin-bottom: 10px;\n  overflow: auto;\n}\n\n.rectangle-content {\n  width: 340px;\n  border-radius: 5px;\n  border-right: 5px solid yellowgreen;\n  overflow: auto;\n}\n\n.approve-event-time {\n  float: left;\n}\n\n.approve-event-time p {\n  width: 33px;\n  font-family: Roboto;\n  font-size: 13px;\n  font-weight: normal;\n  font-stretch: normal;\n  font-style: normal;\n  line-height: normal;\n  letter-spacing: normal;\n  color: var(--Antartic-grey);\n  margin: 0;\n  padding: 0;\n}\n\n.approve-event-detail {\n  float: left;\n  margin-left: 10px;\n}\n\n.approve-event-detail p {\n  width: 250px;\n  font-family: Roboto;\n  font-size: 13px;\n  font-weight: normal;\n  font-stretch: normal;\n  font-style: normal;\n  line-height: normal;\n  letter-spacing: normal;\n  color: var(--black);\n  margin: 0;\n  padding: 0;\n}\n\n.approve-event-detail h3 {\n  width: 250px;\n  font-family: Roboto;\n  font-size: 15px;\n  font-weight: bold;\n  font-stretch: normal;\n  font-style: normal;\n  line-height: normal;\n  letter-spacing: normal;\n  color: #0d89d1;\n  margin: 0;\n  padding: 0;\n}\n/*# sourceMappingURL=data:application/json;base64,[encoded data, 4896 characters] */");

/***/ }),

/***/ "./src/app/pages/gabinete-digital/event-list/event-list.page.ts":
/*!**********************************************************************!*\
  !*** ./src/app/pages/gabinete-digital/event-list/event-list.page.ts ***!
  \**********************************************************************/
/*! exports provided: EventListPage */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EventListPage", function() { return EventListPage; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
/* harmony import */ var src_app_services_processes_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/services/processes.service */ "./src/app/services/processes.service.ts");
/* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ionic/angular */ "./node_modules/@ionic/angular/__ivy_ngcc__/fesm2015/ionic-angular.js");
/* harmony import */ var _agenda_approve_event_modal_approve_event_modal_page__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../agenda/approve-event-modal/approve-event-modal.page */ "./src/app/pages/agenda/approve-event-modal/approve-event-modal.page.ts");





let EventListPage = class EventListPage {
    constructor(processes, modalController) {
        this.processes = processes;
        this.modalController = modalController;
    }
    ngOnInit() {
        this.LoadToApproveEvents();
        this.segment = "MDGPR";
        this.eventBody = {
            BodyType: 'string',
            Text: 'string',
        };
        this.eventPerson = {
            EmailAddress: 'tiago.kayaya@hotmail.com',
            Name: 'Tiago',
            IsRequired: false,
        };
        this.eventsPRList = [
            {
                EventId: '1',
                Subject: 'Reunião do Conselho de Ministros',
                Body: this.eventBody,
                Location: 'Luanda',
                CalendarId: 'string',
                CalendarName: 'Oficial',
                StartDate: new Date,
                EndDate: new Date,
                EventType: 'Reunião',
                Attendees: null,
                IsMeeting: true,
                IsRecurring: false,
                AppointmentState: 2,
                TimeZone: '',
                Organizer: '',
                Categories: null,
                HasAttachments: false,
            },
            {
                EventId: '1',
                Subject: 'Viagem',
                Body: this.eventBody,
                Location: 'Luanda',
                CalendarId: 'string',
                CalendarName: 'Pessoal',
                StartDate: new Date,
                EndDate: new Date,
                EventType: 'Reunião',
                Attendees: null,
                IsMeeting: true,
                IsRecurring: false,
                AppointmentState: 2,
                TimeZone: '',
                Organizer: '',
                Categories: null,
                HasAttachments: false,
            },
        ];
    }
    LoadToApproveEvents() {
        this.processes.GetToApprovedEvents('PR', 'false').subscribe(res => {
            this.eventsPRList = res;
            console.log(res);
        });
        this.processes.GetToApprovedEvents('MDGPR', 'false').subscribe(res => {
            this.eventsMDGPRList = res;
            console.log(res);
        });
    }
    openApproveModal() {
        return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
            const modal = yield this.modalController.create({
                component: _agenda_approve_event_modal_approve_event_modal_page__WEBPACK_IMPORTED_MODULE_4__["ApproveEventModalPage"],
                componentProps: {
                    segment: this.segment,
                },
                cssClass: 'cal-modal',
                backdropDismiss: false
            });
            yield modal.present();
            modal.onDidDismiss();
        });
    }
};
EventListPage.ctorParameters = () => [
    { type: src_app_services_processes_service__WEBPACK_IMPORTED_MODULE_2__["ProcessesService"] },
    { type: _ionic_angular__WEBPACK_IMPORTED_MODULE_3__["ModalController"] }
];
EventListPage = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
        selector: 'app-event-list',
        template: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(/*! raw-loader!./event-list.page.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/gabinete-digital/event-list/event-list.page.html")).default,
        styles: [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(/*! ./event-list.page.scss */ "./src/app/pages/gabinete-digital/event-list/event-list.page.scss")).default]
    })
], EventListPage);



/***/ })

}]);
//# sourceMappingURL=event-list-event-list-module.js.map