(self["webpackChunkapp"] = self["webpackChunkapp"] || []).push([[2734],{

/***/ 12734:
/*!*****************************************!*\
  !*** ./src/app/events/events.module.ts ***!
  \*****************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "EventsPageModule": () => (/* binding */ EventsPageModule)
/* harmony export */ });
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/router */ 61380);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_angular_router__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _shared_module_shared_module_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../shared-module/shared-module.module */ 69270);
/* harmony import */ var _events_page__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./events.page */ 42215);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ 45449);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_angular_core__WEBPACK_IMPORTED_MODULE_3__);





const routes = [
    {
        path: '',
        component: _events_page__WEBPACK_IMPORTED_MODULE_2__.EventsPage
    }
];
class EventsPageModule {
}
EventsPageModule.ɵfac = function EventsPageModule_Factory(t) { return new (t || EventsPageModule)(); };
EventsPageModule.ɵmod = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineNgModule"]({ type: EventsPageModule });
EventsPageModule.ɵinj = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineInjector"]({ imports: [_shared_module_shared_module_module__WEBPACK_IMPORTED_MODULE_1__.SharedModuleModule, _angular_router__WEBPACK_IMPORTED_MODULE_0__.RouterModule.forChild(routes)] });
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵsetNgModuleScope"](EventsPageModule, { declarations: [_events_page__WEBPACK_IMPORTED_MODULE_2__.EventsPage], imports: [_shared_module_shared_module_module__WEBPACK_IMPORTED_MODULE_1__.SharedModuleModule, _angular_router__WEBPACK_IMPORTED_MODULE_0__.RouterModule] }); })();


/***/ }),

/***/ 42215:
/*!***************************************!*\
  !*** ./src/app/events/events.page.ts ***!
  \***************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "EventsPage": () => (/* binding */ EventsPage)
/* harmony export */ });
/* harmony import */ var _Volumes_case_workspace_work_APPS_KA_APP_WORK_NOW_KA_PASS_V2_2_6_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ 71670);
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common/http */ 59584);
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_angular_common_http__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _capacitor_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @capacitor/core */ 26549);
/* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @ionic/angular */ 93819);
/* harmony import */ var _shared_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @shared/components */ 7667);
/* harmony import */ var _shared_components_modais__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @shared/components/modais */ 90340);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/core */ 45449);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_angular_core__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _shared_services__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @shared/services */ 17253);
/* harmony import */ var _awesome_cordova_plugins_android_permissions_ngx__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @awesome-cordova-plugins/android-permissions/ngx */ 4824);
/* harmony import */ var _shared_services_state_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @shared/services/state.service */ 21284);
/* harmony import */ var _shared_services_sessionaddflow_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @shared/services/sessionaddflow.service */ 80698);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/common */ 90944);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_angular_common__WEBPACK_IMPORTED_MODULE_10__);
/* harmony import */ var _shared_components_avatar_avatar_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../shared/components/avatar/avatar.component */ 87871);
/* harmony import */ var _shared_components_header_header_component__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../shared/components/header/header.component */ 36290);
/* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @ngx-translate/core */ 38699);


/* eslint-disable @typescript-eslint/dot-notation */

/* eslint-disable @typescript-eslint/naming-convention */

/* eslint-disable @typescript-eslint/prefer-for-of */
















function EventsPage_div_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 9);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "ion-spinner", 10);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}

function EventsPage_div_9_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 11)(1, "div", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipe"](3, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
  }

  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipeBind1"](3, 1, "PG_EVENTS_TEXT_NO_EVENTS"), " ");
  }
}

function EventsPage_ng_container_10_div_1_ion_card_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r12 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"]();

    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "ion-card", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function EventsPage_ng_container_10_div_1_ion_card_1_Template_ion_card_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r12);
      const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r11.showToastMaxGuestInvitedEventMessageFull());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](1, "div", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipe"](3, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
  }

  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipeBind1"](3, 1, "MAX_GUESTS_INVITED_EVENT_FULL_SHORT"), " ");
  }
}

function EventsPage_ng_container_10_div_1_app_avatar_13_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](0, "app-avatar", 37);
  }

  if (rf & 2) {
    const host_r13 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("firstName", host_r13.firstName)("lastName", host_r13.lastName)("thumbnailImage", host_r13.thumbnailImage)("size", "sm");
  }
}

function EventsPage_ng_container_10_div_1_div_14_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 38)(1, "div", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
  }

  if (rf & 2) {
    const event_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"]("", event_r5.hosts.length - 2, "+");
  }
}

function EventsPage_ng_container_10_div_1_app_avatar_16_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](0, "app-avatar", 39);
  }

  if (rf & 2) {
    const guest_r15 = ctx.$implicit;
    const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngClass", "guest " + ctx_r9.getGuestClass(guest_r15))("firstName", guest_r15.firstName)("lastName", guest_r15.lastName)("thumbnailImage", guest_r15.thumbnailImage)("size", "sm");
  }
}

function EventsPage_ng_container_10_div_1_div_17_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 40)(1, "div", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
  }

  if (rf & 2) {
    const event_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"]("", event_r5.guests.length - 2, "+");
  }
}

const _c0 = function (a0) {
  return {
    maxInvites: a0
  };
};

function EventsPage_ng_container_10_div_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r18 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"]();

    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 14);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](1, EventsPage_ng_container_10_div_1_ion_card_1_Template, 4, 3, "ion-card", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](2, "div", 16);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function EventsPage_ng_container_10_div_1_Template_div_click_2_listener() {
      const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r18);
      const event_r5 = restoredCtx.$implicit;
      const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r17.onEventClick(event_r5));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](3, "div", 17)(4, "div", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](6, "div", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](8, "div", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](9);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](10, "div", 21)(11, "div", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function EventsPage_ng_container_10_div_1_Template_div_click_11_listener() {
      const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r18);
      const event_r5 = restoredCtx.$implicit;
      const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r19.onEventClick(event_r5));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](12, "div", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](13, EventsPage_ng_container_10_div_1_app_avatar_13_Template, 1, 4, "app-avatar", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](14, EventsPage_ng_container_10_div_1_div_14_Template, 3, 1, "div", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](15, "div", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](16, EventsPage_ng_container_10_div_1_app_avatar_16_Template, 1, 5, "app-avatar", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](17, EventsPage_ng_container_10_div_1_div_17_Template, 3, 1, "div", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](18, "div", 29)(19, "div", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function EventsPage_ng_container_10_div_1_Template_div_click_19_listener() {
      const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r18);
      const event_r5 = restoredCtx.$implicit;
      const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r20.verifyIsAllGuestsHaveEmail(event_r5));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](20, "ion-icon", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](21, "div", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function EventsPage_ng_container_10_div_1_Template_div_click_21_listener() {
      const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r18);
      const event_r5 = restoredCtx.$implicit;
      const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r21.shareEvent(event_r5));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](22, "ion-icon", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](23, "div", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function EventsPage_ng_container_10_div_1_Template_div_click_23_listener() {
      const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r18);
      const event_r5 = restoredCtx.$implicit;
      const ctx_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r22.shareEvent(event_r5, "mail"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](24, "ion-icon", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()()();
  }

  if (rf & 2) {
    const event_r5 = ctx.$implicit;
    const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpureFunction1"](9, _c0, (event_r5 == null ? null : event_r5.maxInvites) !== undefined && (event_r5 == null ? null : event_r5.maxInvites) !== null && (event_r5 == null ? null : event_r5.guests == null ? null : event_r5.guests.length) >= (event_r5 == null ? null : event_r5.maxInvites)));
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", (event_r5 == null ? null : event_r5.maxInvites) !== undefined && (event_r5 == null ? null : event_r5.maxInvites) !== null && (event_r5 == null ? null : event_r5.guests == null ? null : event_r5.guests.length) >= (event_r5 == null ? null : event_r5.maxInvites));
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate"](ctx_r4.getEventTitleToTheView(event_r5));
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate"](event_r5.company ? event_r5.company.name : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate"](event_r5.date);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngForOf", event_r5.hosts.slice(0, 2));
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", event_r5.hosts.length > 2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngForOf", event_r5.guests.slice(0, 2));
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", event_r5.guests.length > 2);
  }
}

function EventsPage_ng_container_10_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](1, EventsPage_ng_container_10_div_1_Template, 25, 11, "div", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementContainerEnd"]();
  }

  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngForOf", ctx_r2.events);
  }
}

function EventsPage_ng_container_13_Template(rf, ctx) {
  if (rf & 1) {
    const _r25 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"]();

    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](1, "ion-fab", 41)(2, "ion-fab-button", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function EventsPage_ng_container_13_Template_ion_fab_button_click_2_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r25);
      const ctx_r24 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r24.onGoToCreateEvent());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](3, "ion-icon", 43);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementContainerEnd"]();
  }

  if (rf & 2) {
    const connectionsStatus_r23 = ctx.ngIf;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("disabled", connectionsStatus_r23.status === "Offline");
  }
}

class EventsPage {
  constructor(companyService, navigationService, momentService, loadingService, notificatorService, profileManagerService, modalController, logService, authService, apiService, androidPermissions, modalPermissionsService, permissionsAndroidService, platform, resumeCreateEventInterruptedService, translateConfigService, socialSharingService, stateService, eventInstantService, sessionaddflowService, portalLogin, showToastModalErroCodeZero, createEventService, userPhotoService) {
    var _this = this;

    this.companyService = companyService;
    this.navigationService = navigationService;
    this.momentService = momentService;
    this.loadingService = loadingService;
    this.notificatorService = notificatorService;
    this.profileManagerService = profileManagerService;
    this.modalController = modalController;
    this.logService = logService;
    this.authService = authService;
    this.apiService = apiService;
    this.androidPermissions = androidPermissions;
    this.modalPermissionsService = modalPermissionsService;
    this.permissionsAndroidService = permissionsAndroidService;
    this.platform = platform;
    this.resumeCreateEventInterruptedService = resumeCreateEventInterruptedService;
    this.translateConfigService = translateConfigService;
    this.socialSharingService = socialSharingService;
    this.stateService = stateService;
    this.eventInstantService = eventInstantService;
    this.sessionaddflowService = sessionaddflowService;
    this.portalLogin = portalLogin;
    this.showToastModalErroCodeZero = showToastModalErroCodeZero;
    this.createEventService = createEventService;
    this.userPhotoService = userPhotoService;
    this.events = [];
    this.voProfiles = [];
    this.numberRegistersPagination = 10;
    this.page = 0;
    this.loadedEvents = false;

    this.navigateToPendingLiberations = () => {
      this.navigationService.forward(['/push-notifications']);
    };

    this.sortByDate = (datesArray, order = 'asc', key = 'date') => datesArray.sort((a, b) => order === 'dec' ? new Date(b[key]).getTime() - new Date(a[key]).getTime() : new Date(a[key]).getTime() - new Date(b[key]).getTime());

    this.getInitials = (firstName, lastName) => {
      const firstNameInitial = firstName ? firstName.substring(0, 1) : '';
      const lastNameInitial = lastName ? lastName.substring(0, 1) : '';
      return (firstNameInitial + lastNameInitial).toUpperCase();
    };

    this.onEventClick = event => {
      const companyInstanceName = event && event.company ? event.company.instanceName : '';

      if (event?.maxInvites) {
        this.createEventService.setMaxInvites(event.maxInvites);
      }

      const navigationExtras = {
        state: {
          eventId: event.id,
          companyInstanceName
        }
      };
      this.getCompanyInstanceRelatedProfile(companyInstanceName).then(profileRelated => {
        this.navigationService.forward(['/view-event/'], navigationExtras);
      }).catch(error => {
        this.handleErrorGetCompanyInstanceRelated(error, navigationExtras);
      });
    };

    this.pullDownToGetEvents = event => {
      this.loadingService.show(this.translateConfigService.translate('PG_EVENTS_LOADING_RECEIVING'), 'loading-events');
      const today = new Date();
      const filter = {
        'endAt.greaterOrEqualThan': today.toISOString(),
        size: 999999,
        'status.in': 'OPENED',
        'target.equals': 'BUILDING'
      };
      this.companyService.getEvents(filter).then(response => {
        if (event) {
          event.target.complete();
        }

        this.processGetEventsSuccessResponse(response);
      }).catch(error => {
        if (event) {
          event.target.complete();
        }

        this.processGetEventsErrorResponse(error);
      });
    };

    this.navigateToQRCode = () => {
      this.navigationService.forward(['/home']);
    };

    this.verifyIsAllGuestsHaveEmail = (event, socialNetwork) => {
      this.eventBeingShare = event;
      this.socialNetworkSelected = socialNetwork;
      const guests = this.eventBeingShare.guests;
      const isMissingEmail = guests.find(guest => !guest.email);

      if (isMissingEmail) {
        this.openUpdateUserEmailModal(guests);
      } else {
        this.addToCalendar(this.eventBeingShare);
      }
    };

    this.openUpdateUserEmailModal = /*#__PURE__*/function () {
      var _ref = (0,_Volumes_case_workspace_work_APPS_KA_APP_WORK_NOW_KA_PASS_V2_2_6_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (guests) {
        guests = guests.filter(guest => !guest.email);
        const modal = yield _this.modalController.create({
          component: _shared_components__WEBPACK_IMPORTED_MODULE_3__.UpdateUserEmailComponent,
          componentProps: {
            guests
          }
        });
        modal.onDidDismiss().then(_this.onModalDismissCallback);
        yield modal.present();
      });

      return function (_x) {
        return _ref.apply(this, arguments);
      };
    }();

    this.onModalDismissCallback = detail => {
      if (detail && detail.data) {
        const guests = detail.data.guests;
        this.updateGuestsData(guests);

        if (detail.data.share) {
          this.addToCalendar(this.eventBeingShare);
        }
      }
    };

    this.updateGuestsData = updatedGuests => {
      let guests = this.eventBeingShare.guests;
      guests = guests.map(guest => {
        const foundGuest = updatedGuests.find(updatedGuest => updatedGuest.id === guest.id);

        if (foundGuest) {
          return foundGuest;
        }

        return guest;
      });
      this.eventBeingShare.guests = guests;
    };

    this.addToCalendar = /*#__PURE__*/function () {
      var _ref2 = (0,_Volumes_case_workspace_work_APPS_KA_APP_WORK_NOW_KA_PASS_V2_2_6_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (event) {
        const haspermission = yield _this.haspermissionCalendar();

        if (!haspermission) {
          _this.modalPermissionsService.openModal({
            permission: 'CALENDAR'
          }).then(value => {
            if (value) {
              _this.requestPermissionCalendarAndContact().then( /*#__PURE__*/function () {
                var _ref3 = (0,_Volumes_case_workspace_work_APPS_KA_APP_WORK_NOW_KA_PASS_V2_2_6_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (requestpermission) {
                  _this.addToCalendarComponsed(event);
                });

                return function (_x3) {
                  return _ref3.apply(this, arguments);
                };
              }());
            } else {
              _this.logService.logError('permissionModal::addToCalendarPageEvent', '', 'modal-permission-rejected');
            }
          });
        } else {
          _this.addToCalendarComponsed(event);
        }
      });

      return function (_x2) {
        return _ref2.apply(this, arguments);
      };
    }();

    this.getCompanyAddress = event => event && event.company && event.company.address ? event.company.address : '';

    this.addToCalendarSuccessResponse = response => {};

    this.addToCalendarErrorResponse = response => {
      this.logService.logError('http::addToCalendarErrorResponse', '', response);
    };

    this.getGuestClass = guest => guest.status.toLowerCase().replace(/_/g, '-');

    this.isLogisticEvent = event => event && event.target && event.target === 'LOGISTIC';

    this.getEventTitleToTheView = event => {
      if (!event) {
        return '';
      }

      const title = event.title ? event.title : '';

      if (this.isLogisticEvent(title)) {
        return event.title + this.translateConfigService.translate('PG_EVENTS_TEXT_LOGISTIC');
      } else {
        return event.title;
      }
    };

    this.isEmptyProfile = profile => profile.authorities && profile.authorities.length === 0;

    this.getNonLogisticProfilesAbleToCreateEvent = profiles => {
      return this.profileManagerService.getProfilesAbleToCreateEvent(profiles, false);
    };

    this.onGoToCreateEvent = /*#__PURE__*/(0,_Volumes_case_workspace_work_APPS_KA_APP_WORK_NOW_KA_PASS_V2_2_6_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      _this.sessionaddflowService.clearSessionId();

      const isExistEventCreation = _this.resumeCreateEventInterruptedService.isExistEventCreation();

      if (isExistEventCreation.vo && isExistEventCreation.action !== '') {
        _this.resumeCreateEvent();

        return;
      }

      _this.loadingService.show(_this.translateConfigService.translate('LOADING_CHECKING_DATA'), 'on-create-event');

      _this.getVoProfiles().then( /*#__PURE__*/(0,_Volumes_case_workspace_work_APPS_KA_APP_WORK_NOW_KA_PASS_V2_2_6_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
        let {
          limitedProfile,
          profiles: goodProfiles
        } = _this.getNonLogisticProfilesAbleToCreateEvent(_this.voProfiles);

        if (limitedProfile || _this.voProfiles.length >= 1 && goodProfiles.length === 0) {
          _this.loadingService.hide(0, 'on-create-event').then(() => {
            _this.cantCreateEvent();
          });
        } else {
          if (goodProfiles && goodProfiles.length > 1) {
            const modal = yield _this.modalController.create({
              component: _shared_components__WEBPACK_IMPORTED_MODULE_3__.SelectProfileModalComponent,
              componentProps: {
                profiles: goodProfiles
              }
            });
            modal.onDidDismiss().then(response => {
              if (response.data) {
                _this.selectProfileModalVOOnProfileSelectCreateEventCallback(response.data);
              } else {
                _this.selectProfileModalVOOnBackCreateEventCallback();
              }
            });

            _this.loadingService.hide(0, 'on-create-event');

            yield modal.present();
          } else if (goodProfiles[0]) {
            _this.selectProfileModalVOOnProfileSelectCreateEventCallback(goodProfiles[0]);
          } else {
            _this.loadingService.hide(0, 'on-create-event');

            const title = _this.translateConfigService.translate('PG_EVENTS_TOAST_NO_ACCESS_PROFILE_TITLE');

            const message = _this.translateConfigService.translate('PG_EVENTS_TOAST_NO_ACCESS_PROFILE_MESSAGE');

            const notification = {
              title,
              message,
              type: 'error',
              timeout: 5000
            };

            _this.notificatorService.notify(notification);
          }
        }
      })).catch(error => {
        _this.loadingService.hide(0, 'on-create-event');

        const title = _this.translateConfigService.translate('PG_EVENTS_TOAST_TITLE_ERROR_REQUEST');

        const message = _this.translateConfigService.translate('PG_EVENTS_TOAST_MESSAGE_ERROR_REQUEST');

        const notification = {
          title,
          message,
          type: 'error',
          timeout: 5000
        };

        _this.notificatorService.notify(notification);
      }).finally(() => {
        _this.loadingService.hide(0, 'on-create-event');
      });
    });

    this.getVoProfiles = () => new Promise((resolve, reject) => {
      this.authService.getToken().then(token => {
        this.apiService.getUserProfiles('VO', token).subscribe(response => this.processGetVOUserProfilesSuccessResponse(response, resolve), response => this.processGetVOUserProfilesErrorResponse(response, reject));
      });
    });

    this.processGetVOUserProfilesSuccessResponse = (response, resolve) => {
      this.voProfiles = response;
      resolve();
    };

    this.processGetVOUserProfilesErrorResponse = (response, reject) => {
      reject();
    };

    this.isLogisticProfile = profile => !!(profile.authorities && profile.authorities.includes('ROLE_LOGI_EXP'));

    this.selectProfileModalVOOnProfileSelectCreateEventCallback = profile => {
      this.setProfileCurrentCorrect(profile);
      this.resumeCreateEventInterruptedService.setProfileVoCreationInterrupte(profile);
      this.profileManagerService.setProfile(profile);
      let accessToken = null;
      const companyInstance = profile.company.instanceName;
      this.loadingService.show(this.translateConfigService.translate('LOADING_CHECKING_DATA'), 'on-create-event-ModalCallback');
      this.getCompanyInstanceRelatedAccessToken(profile).then( /*#__PURE__*/function () {
        var _ref6 = (0,_Volumes_case_workspace_work_APPS_KA_APP_WORK_NOW_KA_PASS_V2_2_6_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (getCompanyInstanceRelatedAccessTokenResponse) {
          accessToken = getCompanyInstanceRelatedAccessTokenResponse;

          _this.loadingService.hide(0, 'on-create-event');

          _this.loadingService.hide(0, 'on-create-event-ModalCallback').then(() => {
            _this.showModalSelectEventInstantOrDefault().then(responseCloseModal => {
              if (responseCloseModal['close'] && !responseCloseModal['typeEvent']) {
                return;
              }

              if (responseCloseModal && responseCloseModal['typeEvent'] === 'instant') {
                _this.eventInstantService.createEventVO().then(_ => _).catch().finally(() => {
                  _this.sessionaddflowService.clearSessionId();

                  _this.callRefresh();
                });

                return;
              } else {
                const navigationExtras = {
                  state: {
                    event: null,
                    action: 'create'
                  }
                };

                _this.navigationService.forward(['/create-event-event-name-step'], navigationExtras);
              }
            }).catch(() => {
              const navigationExtras = {
                state: {
                  event: null,
                  action: 'create'
                }
              };

              _this.navigationService.forward(['/create-event-event-name-step'], navigationExtras);
            }).finally(() => {
              _this.loadingService.hide(0, 'on-create-event-ModalCallback');

              _this.loadingService.hide(0, 'on-create-event');
            });
          });
        });

        return function (_x4) {
          return _ref6.apply(this, arguments);
        };
      }()).catch(error => {
        this.loadingService.hide(0, 'on-create-event-ModalCallback');
        this.loadingService.hide(0, 'on-create-event');
        this.logService.logError('http::getCompanyInstanceRelatedAccessToken', '', error);
        const title = this.translateConfigService.translate('PG_EVENTS_TOAST_TITLE_ERROR_GET_TOKEN');
        const message = this.translateConfigService.translate('PG_EVENTS_TOAST_MESSAGE_ERROR_GET_TOKEN');
        const notification = {
          title,
          message,
          type: 'error',
          timeout: 5000
        };
        this.notificatorService.notify(notification);
      });
    };

    this.selectProfileModalVOOnBackCreateEventCallback = () => {};

    this.getCompanyInstanceRelatedAccessToken = profile => {
      const login = profile?.login;
      const portal = profile?.portal;
      return new Promise((resolve, reject) => {
        if (!login || !portal) {
          reject('Does not have desired profile');
        }

        this.authService.getToken().then(tokenUaamobile => {
          this.portalLogin.getAccessToken(login, portal, tokenUaamobile).then(resultPortalAuth => {
            const data = resultPortalAuth;

            if (data?.access_token) {
              resolve(data.access_token);
            } else {
              reject('Does not have desired profile');
            }
          }).catch(reject);
        });
      });
    };

    this.sessionaddflowService.clearSessionId();
  }

  ngOnInit() {}

  ionViewDidEnter() {
    this.getEvents(this.page); // this.verifyNotifications;
  }

  ionViewDidLeave() {
    this.loadedEvents = false;
    this.page = 0;
    this.events = []; // clearInterval(this.verifyNotifications);
  }

  callInfiniteScroll(event) {
    setTimeout(() => {
      event.target.complete();
      this.page += 1;
      this.getEvents(this.page, true);
    }, 500);
  }

  callRefresh() {
    this.page = 0;
    this.events = [];
    this.getEvents(this.page);
  }

  getEvents(page, infiniteScroll) {
    if (!infiniteScroll) {
      this.loadingService.show(this.translateConfigService.translate('PG_EVENTS_LOADING_RECEIVING'), 'loading-events');
      this.events = [];
    }

    const filter = {
      'endAt.greaterOrEqualThan': new Date().toISOString(),
      size: this.numberRegistersPagination,
      page,
      'status.in': 'OPENED',
      'target.equals': 'BUILDING',
      sort: ['startAt,asc']
    };
    this.companyService.getEvents(filter).then(res => {
      const data = res || [];
      this.infiniteScroll.disabled = false;
      this.loadedEvents = true;

      if (data.length > 0) {
        this.processGetEventsSuccessResponse(data);
        this.infiniteScroll.complete();
      } else {
        this.infiniteScroll.disabled = true;
        this.loadingService.hide(0, 'loading-events');
      }
    }).catch(error => {
      this.infiniteScroll.disabled = true;
      this.loadingService.hide(0, 'loading-events');
      this.processGetEventsErrorResponse(error);
    }).finally(() => {
      this.loadedEvents = true; // this.resumeCreateEvent();
    });
  }

  processGetEventsSuccessResponse(response) {
    this.processEvents(response);
    this.loadPhotosForEvents(this.events);
  }

  processGetEventsErrorResponse(error) {
    this.logService.logError('http::processGetEventsErrorResponse', 'getEvents', error);

    if (error instanceof _angular_common_http__WEBPACK_IMPORTED_MODULE_1__.HttpErrorResponse) {
      if (error?.status === 0) {
        this.showToastModalErroCodeZero.showToast();
        return;
      }
    }

    const title = this.translateConfigService.translate('PG_EVENTS_TOAST_TITLE_ERROR');
    const message = this.translateConfigService.translate('PG_EVENTS_TOAST_MESSAGE_ERROR');
    const notification = {
      title,
      message,
      type: 'error',
      timeout: 5000
    };
    this.notificatorService.notify(notification);
  }

  processEvents(events) {
    const eventosEntrada = events;
    const eventos = [];

    for (let i = 0; i < eventosEntrada.length; i++) {
      eventos.push(eventosEntrada[i]);
    }

    let processedEvents = eventos.map(event => {
      event.guests = event.invites.filter(item => !item.host);
      event.hosts = event.invites.filter(item => item.host);
      event.date = this.momentService.formatAsEventFromTo(event.startAt, event.endAt);
      return event;
    });
    processedEvents = this.sortByDate(processedEvents, 'asc', 'startAt');

    for (let i = 0; i < processedEvents.length; i++) {
      this.events.push(processedEvents[i]);
      this.loadedEvents = true;
    }

    this.loadingService.hide(0, 'loading-events');
  }

  loadPhotosForEvents(events) {
    var _this2 = this;

    return (0,_Volumes_case_workspace_work_APPS_KA_APP_WORK_NOW_KA_PASS_V2_2_6_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      console.log('📸 [loadPhotosForEvents] iniciando para', events.length, 'eventos');

      for (const event of events) {
        const companyInstance = event.company?.instanceName;

        const canShow = _this2.userPhotoService.canShowPhoto(companyInstance);

        console.log(`📸 [loadPhotosForEvents] evento="${event.title}" company="${companyInstance}" canShowPhoto=${canShow}`);
        if (!canShow) continue;
        let accessToken;

        try {
          accessToken = yield _this2.userPhotoService.getCompanyAccessToken(companyInstance);
          console.log(`📸 [loadPhotosForEvents] accessToken obtido para "${companyInstance}"`);
        } catch (err) {
          console.warn('📸 [loadPhotosForEvents] erro ao obter accessToken:', err);
          continue;
        }

        for (const host of event.hosts ?? []) {
          console.log('📸 [loadPhotosForEvents] host shape:', {
            firstName: host.firstName,
            lastName: host.lastName,
            refId: host.refId,
            id: host.id,
            keys: Object.keys(host)
          });

          if (!host.refId) {
            console.warn('📸 [loadPhotosForEvents] host sem refId — pulando:', host.firstName);
            continue;
          }

          try {
            const res = yield _this2.apiService.getUserThumbnailPhotoOfPendingRelease(companyInstance, accessToken, host.refId).toPromise();
            host.thumbnailImage = res?.faceImageThumbnail ?? null;
            console.log(`📸 [loadPhotosForEvents] foto do host ${host.firstName}:`, !!host.thumbnailImage);
          } catch (err) {
            console.warn('📸 [loadPhotosForEvents] erro ao buscar foto do host:', host.firstName, err);
          }
        }

        for (const guest of event.guests ?? []) {
          console.log('📸 [loadPhotosForEvents] guest shape:', {
            firstName: guest.firstName,
            lastName: guest.lastName,
            refId: guest.refId,
            id: guest.id,
            keys: Object.keys(guest)
          });

          if (!guest.refId) {
            console.warn('📸 [loadPhotosForEvents] guest sem refId — pulando:', guest.firstName);
            continue;
          }

          try {
            const res = yield _this2.apiService.getUserThumbnailPhotoOfPendingRelease(companyInstance, accessToken, guest.refId).toPromise();
            guest.thumbnailImage = res?.faceImageThumbnail ?? null;
            console.log(`📸 [loadPhotosForEvents] foto do guest ${guest.firstName}:`, !!guest.thumbnailImage);
          } catch (err) {
            console.warn('📸 [loadPhotosForEvents] erro ao buscar foto do guest:', guest.firstName, err);
          }
        }
      }

      console.log('📸 [loadPhotosForEvents] concluído');
    })();
  }

  shareEvent(event, socialNetwork) {
    var _this3 = this;

    return (0,_Volumes_case_workspace_work_APPS_KA_APP_WORK_NOW_KA_PASS_V2_2_6_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      if (event) {
        _this3.socialSharingService.shareEvent(event, 'OTHERS', 'events-list', socialNetwork);
      }
    })();
  }

  addToCalendarComponsed(event) {
    var _this4 = this;

    return (0,_Volumes_case_workspace_work_APPS_KA_APP_WORK_NOW_KA_PASS_V2_2_6_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      const android = _capacitor_core__WEBPACK_IMPORTED_MODULE_2__.Capacitor.getPlatform() === 'android';

      if (android) {
        const socialNetwork = _this4.socialNetworkSelected;

        _this4.socialSharingService.shareEvent(event, 'CALENDAR', 'view-event', socialNetwork);

        return;
      }

      const modal = yield _this4.modalController.create({
        component: _shared_components_modais__WEBPACK_IMPORTED_MODULE_4__.ShareModalComponent,
        componentProps: {
          event: event,
          page: 'view-event',
          calendar: true
        },
        cssClass: 'modal-share'
      });
      yield modal.present();
      const {
        role,
        data: closemodal
      } = yield modal.onDidDismiss();
    })();
  }

  isLimitedProfile(profile) {
    return profile.authorities && profile.authorities.length === 1 && profile.authorities.includes('ROLE_COMPANY_LIMITED');
  }

  onPopoverDismissed() {}
  /*
    // KA_APP-673
  handleVerifyCoordinatesSuccessResponse = async verifyCoordinatesResponse => {
    if (verifyCoordinatesResponse.authorized) {
      this.showModalSelectEventInstantOrDefault()
        .then(responseCloseModal => {
          if (responseCloseModal['close'] && !responseCloseModal['typeEvent']) {
            return;
          }
             if (responseCloseModal && responseCloseModal['typeEvent'] === 'instant') {
            this.eventInstantService
              .createEventVO()
              .then(_ => _)
              .catch()
              .finally(() => {
                this.sessionaddflowService.clearSessionId();
                this.callRefresh();
              });
               return;
          } else {
            const navigationExtras: NavigationExtras = {
              state: {
                event: null,
                action: 'create'
              }
            };
               this.navigationService.forward(['/create-event-event-name-step'], navigationExtras);
          }
        })
        .catch(() => {
          const navigationExtras: NavigationExtras = {
            state: {
              event: null,
              action: 'create'
            }
          };
             this.navigationService.forward(['/create-event-event-name-step'], navigationExtras);
        });
    } else {
      const modal = await this.modalController.create({
        component: CantCreateEventFromHereModalComponent
      });
         modal.onDidDismiss().then(response => {});
         await modal.present();
    }
  };
  */

  /*
    // KA_APP-673
  handleVerifyCoordinatesErrorResponse = error => {
    this.loadingService.hide(0, 'on-create-event-verifyCoordinates');
    this.logService.logError('http::handleVerifyCoordinatesErrorResponse', '', error);
    const title = this.translateConfigService.translate(
      'PG_EVENTS_TOAST_TITLE_ERROR_CHECKING_LOCATION'
    );
    const message = this.translateConfigService.translate(
      'PG_EVENTS_TOAST_MESSAGE_ERROR_CHECKING_LOCATION'
    );
       const notification: NotificatorNotification = {
      title,
      message,
      type: 'error',
      timeout: 5000
    };
       this.notificatorService.notify(notification);
  }; */
  // KA_APP-700


  showToastMaxGuestInvitedEventMessageFull() {
    const notification = {
      title: '',
      message: this.translateConfigService.translate('MAX_GUESTS_INVITED_EVENT_FULL_LONG'),
      type: 'error',
      timeout: 5000
    };
    this.notificatorService.notify(notification);
  }

  haspermissionCalendar() {
    var _this5 = this;

    return (0,_Volumes_case_workspace_work_APPS_KA_APP_WORK_NOW_KA_PASS_V2_2_6_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      const haspermissionCalendarRead = _this5.platform.is('cordova') ? yield _this5.permissionsAndroidService.hasPermission('READ_CALENDAR') : {
        hasPermission: true
      };
      const haspermissionCalendarWrite = _this5.platform.is('cordova') ? yield _this5.permissionsAndroidService.hasPermission('WRITE_CALENDAR') : {
        hasPermission: true
      };

      if (haspermissionCalendarRead.hasPermission && haspermissionCalendarWrite.hasPermission) {
        return true;
      } else {
        return false;
      }
    })();
  }

  requestPermissionCalendarAndContact() {
    var _this6 = this;

    return (0,_Volumes_case_workspace_work_APPS_KA_APP_WORK_NOW_KA_PASS_V2_2_6_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      const listPermissions = [_this6.androidPermissions.PERMISSION.READ_CALENDAR, _this6.androidPermissions.PERMISSION.WRITE_CALENDAR];
      const multRequestPermission = yield _this6.permissionsAndroidService.multRequestPermissions(listPermissions);

      if (multRequestPermission.hasPermission) {
        return true;
      } else {
        return false;
      }
    })();
  }

  resumeCreateEvent() {
    const {
      logistic,
      vo,
      action,
      event
    } = this.resumeCreateEventInterruptedService.getResumeCreationInterrupted();
    const props = {
      target: 'VO',
      eventType: '',
      canCreateEvent: true,
      action,
      event: {
        id: event?.id ? event.id : '',
        instanceName: event?.instanceName ? event.instanceName : ''
      }
    };
    this.resumeCreateEventInterruptedService.showModalResumeCreateEventInterrupted(props);
  }

  getCompanyInstanceRelatedProfile(companyInstance) {
    let token = null;
    return new Promise((resolve, reject) => {
      const processGetCompanyInstanceRelatedLoginSuccessResponse = response => {
        const profiles = response;
        const foundProfile = this.getProfile(profiles, companyInstance);

        if (foundProfile) {
          this.profileManagerService.setProfile(foundProfile);
          resolve(foundProfile);
        } else {
          reject('Does not have desired profile');
        }
      };

      const processGetCompanyInstanceRelatedLoginErrorResponse = error => {
        this.logService.logError('http::processGetCompanyInstanceRelatedLoginErrorResponse', '', error);
        reject(error);
      };

      this.authService.getToken().then(response => {
        token = response;
        this.apiService.getUserProfiles('VO', token).subscribe(processGetCompanyInstanceRelatedLoginSuccessResponse, processGetCompanyInstanceRelatedLoginErrorResponse);
      });
    });
  }

  getProfile(profiles, companyInstance) {
    return profiles.find(p => p.company.instanceName === companyInstance && p.login !== null);
  }

  handleErrorGetCompanyInstanceRelated(error, navigationExtras) {
    console.log('http::processGetCompanyInstanceRelatedLoginErrorResponse', error);
    this.logService.logError('http::processGetCompanyInstanceRelatedLoginErrorResponse', '', error);
    const profile = this.profileManagerService.getProfile();

    if (profile) {
      this.navigationService.forward(['/view-event/'], navigationExtras);
    } else {
      return;
    }
  }

  showModalSelectEventInstantOrDefault() {
    var _this7 = this;

    return (0,_Volumes_case_workspace_work_APPS_KA_APP_WORK_NOW_KA_PASS_V2_2_6_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      _this7.loadingService.hide(0, 'on-create-event-showModalSelect');

      _this7.loadingService.hide(0, 'on-create-event');

      const modal = yield _this7.modalController.create({
        component: _shared_components_modais__WEBPACK_IMPORTED_MODULE_4__.ModalEventInstantComponent,
        cssClass: 'event-instant-',
        componentProps: {}
      });
      yield modal.present();

      try {
        const {
          data
        } = yield modal.onDidDismiss();

        if (!data) {
          return {
            close: true,
            typeEvent: null
          };
        }

        if (data) {
          if (data && data.typeEvent) {
            if (data.typeEvent === 'instant') {
              return { ...data,
                close: true
              };
            } else {
              return false;
            }
          }
        }
      } catch (error) {
        _this7.loadingService.hide(0, 'on-create-event');

        return false;
      }
    })();
  }
  /*
  // KA_APP-673
  private async checkSoftLock(profile: IProfile) {
    const companyInstance = profile.company.instanceName;
    try {
      const accessToken = await this.getCompanyInstanceRelatedAccessToken(profile);
      try {
        const { authorized, lat, lng } = await this.apiService
          .checkSoftLock(companyInstance, null, null, accessToken)
          .toPromise();
        return { authorized, lat, lng };
      } catch (error) {
        // geo/verify-coordinates
        this.logService.logError('http:api:geo:verify-coodinates', 'CheckSoftLock HttpErro', error);
        throw error;
      }
    } catch (error) {
      this.loadingService.hide(0, 'on-create-event-ModalCallback');
      this.loadingService.hide(0, 'on-create-event');
      this.logService.logError(
        'http::checkSoftLock:getCompanyInstanceRelatedAccessToken',
        'error check softlock - http',
        { error }
      );
      return { authorized: null, lat: 0, lng: 0 };
    }
  }
  */


  cantCreateEvent() {
    var _this8 = this;

    return (0,_Volumes_case_workspace_work_APPS_KA_APP_WORK_NOW_KA_PASS_V2_2_6_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      const modal = yield _this8.modalController.create({
        component: _shared_components_modais__WEBPACK_IMPORTED_MODULE_4__.CantCreateEventModalComponent,
        componentProps: {},
        cssClass: 'can-create-modal'
      });
      yield modal.present();
    })();
  }

  setProfileCurrentCorrect(profile) {
    if (profile?.authorities.includes('ROLE_LOGI_EXP')) {
      this.profileManagerService.setProfileLogistic(profile);
      this.profileManagerService.setProfile(profile);
      this.resumeCreateEventInterruptedService.setProfileLogisticCreationInterrupte(profile);
    } else {
      this.profileManagerService.setProfile(profile);
      this.resumeCreateEventInterruptedService.setProfileVoCreationInterrupte(profile);
    }
  }

}

EventsPage.ɵfac = function EventsPage_Factory(t) {
  return new (t || EventsPage)(_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_6__.CompanyService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_6__.NavigationService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_6__.MomentService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_6__.LoadingService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_6__.NotificatorService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_6__.ProfileManagerService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_ionic_angular__WEBPACK_IMPORTED_MODULE_13__.ModalController), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_6__.LogService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_6__.AuthService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_6__.ApiService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_awesome_cordova_plugins_android_permissions_ngx__WEBPACK_IMPORTED_MODULE_7__.AndroidPermissions), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_6__.ModalPermissionsService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_6__.PermissionsAndroidService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_ionic_angular__WEBPACK_IMPORTED_MODULE_13__.Platform), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_6__.ResumeCreateEventInterruptedService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_6__.TranslateConfigService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_6__.SocialSharingService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_shared_services_state_service__WEBPACK_IMPORTED_MODULE_8__.StateService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_6__.EventInstantService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_shared_services_sessionaddflow_service__WEBPACK_IMPORTED_MODULE_9__.SessionaddflowService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_6__.PortalLoginManagerService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_6__.ShowToastAndModalErroCodeZeroService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_6__.CreateEventService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_6__.UserPhotoService));
};

EventsPage.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdefineComponent"]({
  type: EventsPage,
  selectors: [["app-events"]],
  viewQuery: function EventsPage_Query(rf, ctx) {
    if (rf & 1) {
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵviewQuery"](_ionic_angular__WEBPACK_IMPORTED_MODULE_13__.IonInfiniteScroll, 5);
    }

    if (rf & 2) {
      let _t;

      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵloadQuery"]()) && (ctx.infiniteScroll = _t.first);
    }
  },
  decls: 15,
  vars: 13,
  consts: [[3, "title", "showBadge", "callRefresh"], [1, "page-title"], [1, "sub-title"], ["class", "spinner", 4, "ngIf"], [1, "events"], ["class", "empty", 4, "ngIf"], [4, "ngIf"], [2, "z-index", "100000", 3, "ionInfinite"], ["loadingSpinner", "crescent"], [1, "spinner"], ["name", "circular"], [1, "empty"], [1, "text"], ["class", "event", 3, "ngClass", 4, "ngFor", "ngForOf"], [1, "event", 3, "ngClass"], ["class", "card_maxInvites", 3, "click", 4, "ngIf"], [1, "top", 3, "click"], [1, "title"], [1, "content"], [1, "company"], [1, "date"], [1, "bottom"], [1, "invites", 3, "click"], [1, "hosts"], ["class", "host", 3, "firstName", "lastName", "thumbnailImage", "size", 4, "ngFor", "ngForOf"], ["class", "host", 4, "ngIf"], [1, "guests"], [3, "ngClass", "firstName", "lastName", "thumbnailImage", "size", 4, "ngFor", "ngForOf"], ["class", "guest", 4, "ngIf"], [1, "actions"], [1, "calendar-holder", 3, "click"], ["slot", "start", "name", "calendar", "mode", "ios"], [1, "share-holder", 3, "click"], ["slot", "start", "name", "share", "mode", "ios"], ["slot", "start", "name", "mail", "mode", "ios"], [1, "card_maxInvites", 3, "click"], [1, "card_maxInvites__label"], [1, "host", 3, "firstName", "lastName", "thumbnailImage", "size"], [1, "host"], [3, "ngClass", "firstName", "lastName", "thumbnailImage", "size"], [1, "guest"], ["vertical", "top", "horizontal", "end", "slot", "fixed", 1, "heartbeat"], [3, "disabled", "click"], ["name", "add"]],
  template: function EventsPage_Template(rf, ctx) {
    if (rf & 1) {
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "app-header", 0);
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("callRefresh", function EventsPage_Template_app_header_callRefresh_0_listener() {
        return ctx.callRefresh();
      });
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipe"](1, "translate");
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](2, "ion-content")(3, "div", 1)(4, "div", 2);
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](5);
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipe"](6, "translate");
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](7, EventsPage_div_7_Template, 2, 0, "div", 3);
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](8, "div", 4);
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](9, EventsPage_div_9_Template, 4, 3, "div", 5);
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](10, EventsPage_ng_container_10_Template, 2, 1, "ng-container", 6);
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](11, "ion-infinite-scroll", 7);
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("ionInfinite", function EventsPage_Template_ion_infinite_scroll_ionInfinite_11_listener($event) {
        return ctx.callInfiniteScroll($event);
      });
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](12, "ion-infinite-scroll-content", 8);
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](13, EventsPage_ng_container_13_Template, 4, 1, "ng-container", 6);
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipe"](14, "async");
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    }

    if (rf & 2) {
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("title", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipeBind1"](1, 7, "PG_EVENTS_HEADER_TITLE"))("showBadge", true);
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](5);
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipeBind1"](6, 9, "PG_EVENTS_TEXT_SUBTITLE"), " ");
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", !ctx.loadedEvents);
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx.loadedEvents && ctx.events.length <= -1);
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1);
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx.loadedEvents && ctx.events.length > 0);
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](3);
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipeBind1"](14, 11, ctx.stateService.getState()));
    }
  },
  dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_10__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_10__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_10__.NgIf, _ionic_angular__WEBPACK_IMPORTED_MODULE_13__.IonCard, _ionic_angular__WEBPACK_IMPORTED_MODULE_13__.IonContent, _ionic_angular__WEBPACK_IMPORTED_MODULE_13__.IonFab, _ionic_angular__WEBPACK_IMPORTED_MODULE_13__.IonFabButton, _ionic_angular__WEBPACK_IMPORTED_MODULE_13__.IonIcon, _ionic_angular__WEBPACK_IMPORTED_MODULE_13__.IonInfiniteScroll, _ionic_angular__WEBPACK_IMPORTED_MODULE_13__.IonInfiniteScrollContent, _ionic_angular__WEBPACK_IMPORTED_MODULE_13__.IonSpinner, _shared_components_avatar_avatar_component__WEBPACK_IMPORTED_MODULE_11__.AvatarComponent, _shared_components_header_header_component__WEBPACK_IMPORTED_MODULE_12__.HeaderComponent, _angular_common__WEBPACK_IMPORTED_MODULE_10__.AsyncPipe, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_14__.TranslatePipe],
  styles: ["ion-content[_ngcontent-%COMP%] {\n  --background: #f1f1f1;\n}\n\nion-toolbar[_ngcontent-%COMP%] {\n  font-family: \"Nunito\", sans-serif;\n}\n\nion-toolbar[_ngcontent-%COMP%]   ion-img[_ngcontent-%COMP%] {\n  height: 25px;\n  width: 25px;\n}\n\nion-toolbar[_ngcontent-%COMP%]   ion-title[_ngcontent-%COMP%] {\n  letter-spacing: 1px;\n}\n\nion-toolbar[_ngcontent-%COMP%]   ion-button[_ngcontent-%COMP%]   fa-icon[_ngcontent-%COMP%] {\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  height: 24px;\n  padding: 0;\n  width: 24px;\n  margin: 0;\n  font-size: 19px;\n  color: #656768;\n}\n\nion-toolbar[_ngcontent-%COMP%]   ion-button.hover[_ngcontent-%COMP%] {\n  background: #fff;\n}\n\n.page-title[_ngcontent-%COMP%] {\n  margin-top: 30px;\n  margin-bottom: 26px;\n}\n\n.page-title[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%] {\n  font-weight: bold;\n  text-align: center;\n}\n\n.page-title[_ngcontent-%COMP%]   .sub-title[_ngcontent-%COMP%] {\n  text-align: center;\n  color: #656768;\n  font-size: 0.9em;\n  margin-top: 4px;\n}\n\n.empty[_ngcontent-%COMP%], .not-empty[_ngcontent-%COMP%] {\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  padding: 3em;\n  color: #656768;\n  font-size: 0.9em;\n}\n\n.empty[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%], .not-empty[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%] {\n  text-align: center;\n}\n\n.empty[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]   .pull-to-reload-message[_ngcontent-%COMP%], .not-empty[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]   .pull-to-reload-message[_ngcontent-%COMP%] {\n  display: inline-flex;\n  justify-content: center;\n  align-items: center;\n  margin-top: 1em;\n}\n\n.empty[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]   .pull-to-reload-message[_ngcontent-%COMP%]   span[_ngcontent-%COMP%], .not-empty[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]   .pull-to-reload-message[_ngcontent-%COMP%]   span[_ngcontent-%COMP%] {\n  display: inline-flex;\n  justify-content: center;\n  align-items: center;\n  border: 1px solid #eee;\n  padding: 0.25em 0.75em;\n  border-radius: 32px;\n  margin-right: 8px;\n}\n\n.empty[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]   .pull-to-reload-message[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]   ion-icon[_ngcontent-%COMP%], .not-empty[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]   .pull-to-reload-message[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]   ion-icon[_ngcontent-%COMP%] {\n  margin-left: 4px;\n  color: #0ec254;\n  margin-top: 2px;\n}\n\n.not-empty[_ngcontent-%COMP%] {\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  padding: 1em;\n  color: #656768;\n  font-size: 0.9em;\n  margin-bottom: 2em;\n}\n\n.not-empty[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%] {\n  text-align: center;\n}\n\n.not-empty[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]   .pull-to-reload-message[_ngcontent-%COMP%] {\n  display: inline-flex;\n  justify-content: center;\n  align-items: center;\n  margin-top: 0;\n}\n\n.not-empty[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]   .pull-to-reload-message[_ngcontent-%COMP%]   span[_ngcontent-%COMP%] {\n  display: inline-flex;\n  justify-content: center;\n  align-items: center;\n  border: 1px solid #eee;\n  padding: 0.25em 0.75em;\n  border-radius: 32px;\n  margin-right: 8px;\n}\n\n.not-empty[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]   .pull-to-reload-message[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]   ion-icon[_ngcontent-%COMP%] {\n  margin-left: 4px;\n  color: #0ec254;\n  margin-top: 2px;\n}\n\n.event[_ngcontent-%COMP%] {\n  border: 1px solid #eee;\n  box-shadow: 2px 2px 8px rgba(67, 60, 98, 0.1);\n  background-color: #fff;\n  border-radius: 8px;\n  width: 90%;\n  margin: 12px auto;\n}\n\n.event[_ngcontent-%COMP%]   .top[_ngcontent-%COMP%] {\n  display: flex;\n  padding: 16px;\n  border-bottom: 1px solid #eee;\n  flex-direction: column;\n}\n\n.event[_ngcontent-%COMP%]   .top[_ngcontent-%COMP%]   .date[_ngcontent-%COMP%] {\n  display: flex;\n  justify-content: flex-start;\n  font-size: 0.9em;\n  color: #656768;\n  margin-top: 8px;\n}\n\n.event[_ngcontent-%COMP%]   .top[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%] {\n  font-size: initial !important;\n  font-weight: normal !important;\n  line-height: normal !important;\n}\n\n.event[_ngcontent-%COMP%]   .top[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%] {\n  font-weight: bold;\n}\n\n.event[_ngcontent-%COMP%]   .top[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   .company[_ngcontent-%COMP%] {\n  font-size: 0.9em;\n}\n\n.event[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%] {\n  display: flex;\n  padding: 16px;\n  justify-content: space-between;\n}\n\n.event[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%]   .invites[_ngcontent-%COMP%] {\n  display: flex;\n  justify-content: flex-start;\n}\n\n.event[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%]   .invites[_ngcontent-%COMP%]   .guests[_ngcontent-%COMP%], .event[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%]   .invites[_ngcontent-%COMP%]   .hosts[_ngcontent-%COMP%] {\n  display: flex;\n  justify-content: flex-start;\n}\n\n.event[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%]   .invites[_ngcontent-%COMP%]   .guests[_ngcontent-%COMP%]   .guest[_ngcontent-%COMP%], .event[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%]   .invites[_ngcontent-%COMP%]   .guests[_ngcontent-%COMP%]   .host[_ngcontent-%COMP%], .event[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%]   .invites[_ngcontent-%COMP%]   .hosts[_ngcontent-%COMP%]   .guest[_ngcontent-%COMP%], .event[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%]   .invites[_ngcontent-%COMP%]   .hosts[_ngcontent-%COMP%]   .host[_ngcontent-%COMP%] {\n  margin-left: -12px;\n  height: 38px;\n  width: 38px;\n  border-radius: 38px;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  border: 2px solid #eee;\n  background-color: #fff;\n  color: #333;\n}\n\n.event[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%]   .invites[_ngcontent-%COMP%]   .guests[_ngcontent-%COMP%]   .guest[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%], .event[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%]   .invites[_ngcontent-%COMP%]   .guests[_ngcontent-%COMP%]   .host[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%], .event[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%]   .invites[_ngcontent-%COMP%]   .hosts[_ngcontent-%COMP%]   .guest[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%], .event[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%]   .invites[_ngcontent-%COMP%]   .hosts[_ngcontent-%COMP%]   .host[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%] {\n  font-size: 0.9em;\n}\n\n.event[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%]   .invites[_ngcontent-%COMP%]   .guests[_ngcontent-%COMP%]   .guest[_ngcontent-%COMP%]:first-of-type, .event[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%]   .invites[_ngcontent-%COMP%]   .guests[_ngcontent-%COMP%]   .host[_ngcontent-%COMP%]:first-of-type, .event[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%]   .invites[_ngcontent-%COMP%]   .hosts[_ngcontent-%COMP%]   .guest[_ngcontent-%COMP%]:first-of-type, .event[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%]   .invites[_ngcontent-%COMP%]   .hosts[_ngcontent-%COMP%]   .host[_ngcontent-%COMP%]:first-of-type {\n  margin-left: 0;\n}\n\n.event[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%]   .invites[_ngcontent-%COMP%]   .guests[_ngcontent-%COMP%]   .guest.waiting-for-invite-approve[_ngcontent-%COMP%], .event[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%]   .invites[_ngcontent-%COMP%]   .guests[_ngcontent-%COMP%]   .host.waiting-for-invite-approve[_ngcontent-%COMP%], .event[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%]   .invites[_ngcontent-%COMP%]   .hosts[_ngcontent-%COMP%]   .guest.waiting-for-invite-approve[_ngcontent-%COMP%], .event[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%]   .invites[_ngcontent-%COMP%]   .hosts[_ngcontent-%COMP%]   .host.waiting-for-invite-approve[_ngcontent-%COMP%] {\n  border-color: #fece00;\n  color: #333;\n}\n\n.event[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%]   .invites[_ngcontent-%COMP%]   .guests[_ngcontent-%COMP%]   .guest.waiting-for-release[_ngcontent-%COMP%], .event[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%]   .invites[_ngcontent-%COMP%]   .guests[_ngcontent-%COMP%]   .host.waiting-for-release[_ngcontent-%COMP%], .event[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%]   .invites[_ngcontent-%COMP%]   .hosts[_ngcontent-%COMP%]   .guest.waiting-for-release[_ngcontent-%COMP%], .event[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%]   .invites[_ngcontent-%COMP%]   .hosts[_ngcontent-%COMP%]   .host.waiting-for-release[_ngcontent-%COMP%] {\n  border-color: #fece00;\n  color: #333;\n}\n\n.event[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%]   .invites[_ngcontent-%COMP%]   .guests[_ngcontent-%COMP%]   .guest.release-done[_ngcontent-%COMP%], .event[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%]   .invites[_ngcontent-%COMP%]   .guests[_ngcontent-%COMP%]   .host.release-done[_ngcontent-%COMP%], .event[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%]   .invites[_ngcontent-%COMP%]   .hosts[_ngcontent-%COMP%]   .guest.release-done[_ngcontent-%COMP%], .event[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%]   .invites[_ngcontent-%COMP%]   .hosts[_ngcontent-%COMP%]   .host.release-done[_ngcontent-%COMP%] {\n  border-color: #eee;\n  color: #333;\n}\n\n.event[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%]   .invites[_ngcontent-%COMP%]   .guests[_ngcontent-%COMP%]   .guest.not-checkin[_ngcontent-%COMP%], .event[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%]   .invites[_ngcontent-%COMP%]   .guests[_ngcontent-%COMP%]   .host.not-checkin[_ngcontent-%COMP%], .event[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%]   .invites[_ngcontent-%COMP%]   .hosts[_ngcontent-%COMP%]   .guest.not-checkin[_ngcontent-%COMP%], .event[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%]   .invites[_ngcontent-%COMP%]   .hosts[_ngcontent-%COMP%]   .host.not-checkin[_ngcontent-%COMP%] {\n  border-color: #eee;\n  color: #333;\n}\n\n.event[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%]   .invites[_ngcontent-%COMP%]   .guests[_ngcontent-%COMP%]   .guest.finished[_ngcontent-%COMP%], .event[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%]   .invites[_ngcontent-%COMP%]   .guests[_ngcontent-%COMP%]   .host.finished[_ngcontent-%COMP%], .event[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%]   .invites[_ngcontent-%COMP%]   .hosts[_ngcontent-%COMP%]   .guest.finished[_ngcontent-%COMP%], .event[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%]   .invites[_ngcontent-%COMP%]   .hosts[_ngcontent-%COMP%]   .host.finished[_ngcontent-%COMP%] {\n  border-color: #f14c3c;\n  color: #333;\n}\n\n.event[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%]   .invites[_ngcontent-%COMP%]   .guests[_ngcontent-%COMP%]   .guest.waiting-for-checkin[_ngcontent-%COMP%], .event[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%]   .invites[_ngcontent-%COMP%]   .guests[_ngcontent-%COMP%]   .host.waiting-for-checkin[_ngcontent-%COMP%], .event[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%]   .invites[_ngcontent-%COMP%]   .hosts[_ngcontent-%COMP%]   .guest.waiting-for-checkin[_ngcontent-%COMP%], .event[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%]   .invites[_ngcontent-%COMP%]   .hosts[_ngcontent-%COMP%]   .host.waiting-for-checkin[_ngcontent-%COMP%] {\n  border-color: #eee;\n  color: #333;\n}\n\n.event[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%]   .invites[_ngcontent-%COMP%]   .guests[_ngcontent-%COMP%]   .guest.checkin-done[_ngcontent-%COMP%], .event[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%]   .invites[_ngcontent-%COMP%]   .guests[_ngcontent-%COMP%]   .host.checkin-done[_ngcontent-%COMP%], .event[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%]   .invites[_ngcontent-%COMP%]   .hosts[_ngcontent-%COMP%]   .guest.checkin-done[_ngcontent-%COMP%], .event[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%]   .invites[_ngcontent-%COMP%]   .hosts[_ngcontent-%COMP%]   .host.checkin-done[_ngcontent-%COMP%] {\n  border-color: #0ec254;\n  color: #333;\n}\n\n.event[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%]   .invites[_ngcontent-%COMP%]   .guests[_ngcontent-%COMP%]   .guest.multi-checkin[_ngcontent-%COMP%], .event[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%]   .invites[_ngcontent-%COMP%]   .guests[_ngcontent-%COMP%]   .host.multi-checkin[_ngcontent-%COMP%], .event[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%]   .invites[_ngcontent-%COMP%]   .hosts[_ngcontent-%COMP%]   .guest.multi-checkin[_ngcontent-%COMP%], .event[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%]   .invites[_ngcontent-%COMP%]   .hosts[_ngcontent-%COMP%]   .host.multi-checkin[_ngcontent-%COMP%] {\n  border-color: #0ec254;\n  color: #333;\n}\n\n.event[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%]   .invites[_ngcontent-%COMP%]   .guests[_ngcontent-%COMP%]   .guest.qrcode-printed[_ngcontent-%COMP%], .event[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%]   .invites[_ngcontent-%COMP%]   .guests[_ngcontent-%COMP%]   .host.qrcode-printed[_ngcontent-%COMP%], .event[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%]   .invites[_ngcontent-%COMP%]   .hosts[_ngcontent-%COMP%]   .guest.qrcode-printed[_ngcontent-%COMP%], .event[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%]   .invites[_ngcontent-%COMP%]   .hosts[_ngcontent-%COMP%]   .host.qrcode-printed[_ngcontent-%COMP%] {\n  border-color: #0ec254;\n  color: #333;\n}\n\n.event[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%]   .invites[_ngcontent-%COMP%]   .guests[_ngcontent-%COMP%]   .guest.release-denied[_ngcontent-%COMP%], .event[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%]   .invites[_ngcontent-%COMP%]   .guests[_ngcontent-%COMP%]   .host.release-denied[_ngcontent-%COMP%], .event[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%]   .invites[_ngcontent-%COMP%]   .hosts[_ngcontent-%COMP%]   .guest.release-denied[_ngcontent-%COMP%], .event[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%]   .invites[_ngcontent-%COMP%]   .hosts[_ngcontent-%COMP%]   .host.release-denied[_ngcontent-%COMP%] {\n  border-color: #f14c3c;\n  color: #333;\n}\n\n.event[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%]   .invites[_ngcontent-%COMP%]   .guests[_ngcontent-%COMP%]   .host[_ngcontent-%COMP%], .event[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%]   .invites[_ngcontent-%COMP%]   .hosts[_ngcontent-%COMP%]   .host[_ngcontent-%COMP%] {\n  border-color: #926152;\n  color: #333;\n}\n\n.event[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%]   .invites[_ngcontent-%COMP%]   .guests[_ngcontent-%COMP%]   .guest[_ngcontent-%COMP%]:first-of-type, .event[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%]   .invites[_ngcontent-%COMP%]   .hosts[_ngcontent-%COMP%]   .guest[_ngcontent-%COMP%]:first-of-type {\n  margin-left: 8px;\n}\n\n.event[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%] {\n  display: flex;\n  justify-content: center;\n  align-items: center;\n}\n\n.event[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]   .calendar-holder[_ngcontent-%COMP%], .event[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]   .share-holder[_ngcontent-%COMP%] {\n  height: 38px;\n  width: 38px;\n  border-radius: 38px;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  border: 2px solid #0ec254;\n  background-color: #fff;\n  color: #0ec254;\n  font-size: 24px;\n}\n\n.event[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]   .share-holder[_ngcontent-%COMP%] {\n  margin-left: 12px;\n}\n\n.event.maxInvites[_ngcontent-%COMP%] {\n  position: relative;\n  border: solid 2px #db1d1d !important;\n  margin: 1.5em auto 12px;\n}\n\n.event.maxInvites[_ngcontent-%COMP%]   .card_maxInvites[_ngcontent-%COMP%] {\n  padding: 5px 10px;\n  box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.1450980392) !important;\n  margin: 0;\n  position: absolute;\n  top: 0%;\n  left: 50%;\n  transform: translate(-50%, -50%);\n  background-color: #db1d1d;\n  width: 150px;\n  height: 25px;\n  display: flex;\n  border-radius: 4px;\n  align-items: center;\n  justify-content: center;\n}\n\n.event.maxInvites[_ngcontent-%COMP%]   .card_maxInvites__label[_ngcontent-%COMP%] {\n  font-size: 1em;\n  color: #fff;\n  font-weight: bold;\n}\n\n.spinner[_ngcontent-%COMP%] {\n  display: flex;\n  position: relative;\n  height: 80vh;\n  align-items: center;\n  justify-content: center;\n}\n\n.pulsate-fwd[_ngcontent-%COMP%] {\n  animation: pulsate-fwd 0.5s ease-in-out infinite both;\n  outline: none;\n}\n\n@keyframes pulsate-fwd {\n  0% {\n    transform: scale(1);\n  }\n  50% {\n    transform: scale(1.5);\n  }\n  100% {\n    transform: scale(1);\n  }\n}\n/*# sourceMappingURL=data:application/json;base64,[encoded data, 12820 characters] */"]
});

/***/ })

}])
//# sourceMappingURL=2734.js.map