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

/***/ 8848:
/*!****************************************************************************************************!*\
  !*** ./src/app/create-event/create-event-event-share-step/create-event-event-share-step.module.ts ***!
  \****************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "CreateEventEventShareStepPageModule": () => (/* binding */ CreateEventEventShareStepPageModule)
/* 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 src_app_shared_module_shared_module_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/shared-module/shared-module.module */ 69270);
/* harmony import */ var _create_event_event_share_step_page__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./create-event-event-share-step.page */ 91664);
/* 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__);





// import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
const routes = [
    {
        path: '',
        component: _create_event_event_share_step_page__WEBPACK_IMPORTED_MODULE_2__.CreateEventEventShareStepPage
    }
];
class CreateEventEventShareStepPageModule {
}
CreateEventEventShareStepPageModule.ɵfac = function CreateEventEventShareStepPageModule_Factory(t) { return new (t || CreateEventEventShareStepPageModule)(); };
CreateEventEventShareStepPageModule.ɵmod = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineNgModule"]({ type: CreateEventEventShareStepPageModule });
CreateEventEventShareStepPageModule.ɵinj = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineInjector"]({ imports: [src_app_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"](CreateEventEventShareStepPageModule, { declarations: [_create_event_event_share_step_page__WEBPACK_IMPORTED_MODULE_2__.CreateEventEventShareStepPage], imports: [src_app_shared_module_shared_module_module__WEBPACK_IMPORTED_MODULE_1__.SharedModuleModule, _angular_router__WEBPACK_IMPORTED_MODULE_0__.RouterModule] }); })();


/***/ }),

/***/ 91664:
/*!**************************************************************************************************!*\
  !*** ./src/app/create-event/create-event-event-share-step/create-event-event-share-step.page.ts ***!
  \**************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "CreateEventEventShareStepPage": () => (/* binding */ CreateEventEventShareStepPage)
/* 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 _environment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @environment */ 92340);
/* harmony import */ var _capacitor_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @capacitor/core */ 26549);
/* 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 _awesome_cordova_plugins_social_sharing_ngx__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @awesome-cordova-plugins/social-sharing/ngx */ 26436);
/* harmony import */ var _shared_services__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @shared/services */ 17253);
/* harmony import */ var _awesome_cordova_plugins_calendar_ngx__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @awesome-cordova-plugins/calendar/ngx */ 39020);
/* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @ionic/angular */ 93819);
/* harmony import */ var _awesome_cordova_plugins_android_permissions_ngx__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @awesome-cordova-plugins/android-permissions/ngx */ 4824);
/* harmony import */ var _shared_services_sessionaddflow_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @shared/services/sessionaddflow.service */ 80698);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/router */ 61380);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_angular_router__WEBPACK_IMPORTED_MODULE_11__);
/* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @ngx-translate/core */ 38699);














class CreateEventEventShareStepPage {
  constructor(socialSharing, navigationService, createEventService, calendar, modalController, profileManagerService, momentService, clipboardService, notificatorService, permissionsAndroidService, modalPermissionService, platform, androidPermissions, logService, resumeCreateEventInterruptedService, translateConfigService, socialSharingService, sessionaddflowService, router) {
    var _this = this;

    this.socialSharing = socialSharing;
    this.navigationService = navigationService;
    this.createEventService = createEventService;
    this.calendar = calendar;
    this.modalController = modalController;
    this.profileManagerService = profileManagerService;
    this.momentService = momentService;
    this.clipboardService = clipboardService;
    this.notificatorService = notificatorService;
    this.permissionsAndroidService = permissionsAndroidService;
    this.modalPermissionService = modalPermissionService;
    this.platform = platform;
    this.androidPermissions = androidPermissions;
    this.logService = logService;
    this.resumeCreateEventInterruptedService = resumeCreateEventInterruptedService;
    this.translateConfigService = translateConfigService;
    this.socialSharingService = socialSharingService;
    this.sessionaddflowService = sessionaddflowService;
    this.router = router;
    this.existPendings = false;

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

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

    this.shareSuccessResponse = response => {
      console.log('shareSuccessResponse');
      console.log('response:', response);
    };

    this.shareErrorResponse = error => {
      console.log('shareErrorResponse');
      console.log('error:', error); // TODO Warn about error at sharing.
    };

    this.verifyIsAllGuestsHaveEmail = () => {
      const guests = this.createEventService.getGuests();
      const isMissingEmail = guests.find(guest => !guest.email);

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

    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 => {
      console.log('onModalDismissCallback detail:', detail);

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

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

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

        if (foundGuest) {
          return foundGuest;
        }

        return guest;
      });
      this.createEventService.setGuests(guests);
    };

    this.addToCalendar = /*#__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* () {
      const haspermission = yield _this.haspermissionCalendar();

      if (!haspermission) {
        _this.modalPermissionService.openModal({
          permission: 'CALENDAR'
        }).then(value => {
          if (value) {
            _this.requestPermissionCalendarAndContact().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* () {
              const checkpermission = yield _this.haspermissionCalendar();

              _this.addToCalendarComponsed();
            }));
          } else {
            _this.logService.logError('permissionModal::addToCalendarPageSharedStep', '', 'modal-permission-rejected');
          }
        });
      } else {
        _this.addToCalendarComponsed();
      }
    });

    this.addToCalendarSuccessResponse = response => {
      console.log('addToCalendarSuccessResponse:', response);
    };

    this.addToCalendarErrorResponse = response => {
      console.log('addToCalendarErrorResponse:', response);
    };

    this.doCopyLink = () => {
      const wcUrl = _environment__WEBPACK_IMPORTED_MODULE_1__.environment.wc_url;
      const locator = this.createEventService.getLocator();
      const url = 'https://' + wcUrl + '/?l=' + locator;
      this.clipboardService.copy(url).then(() => {
        const notification = {
          message: '',
          title: this.translateConfigService.translate('PG_CREATE_TOAST_COPY_LINK'),
          type: 'success',
          timeout: 3000
        };
        this.notificatorService.notify(notification);
      });
    };

    this.exit = () => {
      this.createEventService.clearCreateEventData();
      this.resumeCreateEventInterruptedService.clearProfileVoCreationInterrupte();
      this.resumeCreateEventInterruptedService.clearResumeCreationInterrupte();
      this.navigationService.root(['/home']);
    };

    this.sessionaddflowService.clearSessionId();
  }

  ngOnInit() {
    this.event = this.router.getCurrentNavigation().extras?.state?.event;
  }

  ionViewDidEnter() {// this.verifyNotifications;
  }

  ionViewDidLeave() {}

  doShare() {
    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* () {
      const companyProfile = _this2.profileManagerService.getProfile();

      const profile = _this2.profileManagerService.getProfile();

      const locator = _this2.createEventService.getLocator();

      const minutesAllowedToDoCheckInBeforeCheckInStart = _this2.createEventService.getCheckInStartAt();

      const baseUrl = _environment__WEBPACK_IMPORTED_MODULE_1__.environment.wc_url;

      const eventName = _this2.createEventService.getTitle();

      const companyName = profile.company && profile.company.name ? profile.company.name : '';
      const url = 'https://' + baseUrl + '/?l=' + locator;

      const startAt = _this2.momentService.formatAsEventAt(_this2.createEventService.getStartDate());

      const location = companyProfile.company.address;

      const subject = _this2.translateConfigService.translate('SHARE_EVENT_SUBJECT');

      const message = _this2.mensageShared(eventName, companyName, startAt, location, url, minutesAllowedToDoCheckInBeforeCheckInStart, 'OTHERS');

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

  addToCalendarComponsed() {
    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* () {
      const companyProfile = _this3.profileManagerService.getProfile();

      const title = _this3.createEventService.getTitle();

      const startDate = new Date(_this3.createEventService.getStartDate());
      const endDate = new Date(_this3.createEventService.getEndDate());
      const wcUrl = _environment__WEBPACK_IMPORTED_MODULE_1__.environment.wc_url;

      const locator = _this3.createEventService.getLocator();

      const url = 'https://' + wcUrl + '/?l=' + locator;
      const location = companyProfile.company.address;

      const minutesAllowedToDoCheckInBeforeCheckInStart = _this3.createEventService.getCheckInStartAt();

      const profile = _this3.profileManagerService.getProfile();

      const eventName = _this3.createEventService.getTitle();

      const companyName = profile.company && profile.company.name ? profile.company.name : '';

      const startAt = _this3.momentService.formatAsEventAt(_this3.createEventService.getStartDate());

      const attendees = [];

      const hosts = _this3.createEventService.getHosts();

      hosts.forEach(host => {
        attendees.push(host.email);
      });

      const guests = _this3.createEventService.getGuests();

      guests.forEach(guest => {
        attendees.push(guest.email);
      });
      const options = {
        firstReminderMinutes: null,
        url,
        attendees: attendees.length ? attendees : null
      };

      const notes = _this3.mensageShared(eventName, companyName, startAt, location, url, minutesAllowedToDoCheckInBeforeCheckInStart, 'CALENDAR');

      if (!notes) {
        return;
      }

      const android = _capacitor_core__WEBPACK_IMPORTED_MODULE_2__.Capacitor.getPlatform() === 'android';

      if (android) {
        _this3.socialSharingService.shareEvent(_this3.event, 'CALENDAR', 'event-share-step');

        return;
      }

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

  haspermissionCalendar() {
    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 haspermissionCalendarRead = _this4.platform.is('cordova') ? yield _this4.permissionsAndroidService.hasPermission('READ_CALENDAR') : {
        hasPermission: true
      };
      const haspermissionCalendarWrite = _this4.platform.is('cordova') ? yield _this4.permissionsAndroidService.hasPermission('WRITE_CALENDAR') : {
        hasPermission: true
      };

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

  requestPermissionCalendarAndContact() {
    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 listPermissions = [_this5.androidPermissions.PERMISSION.READ_CALENDAR, _this5.androidPermissions.PERMISSION.WRITE_CALENDAR // this.androidPermissions.PERMISSION.READ_CONTACTS,
      // this.androidPermissions.PERMISSION.WRITE_CONTACTS,
      // this.androidPermissions.PERMISSION.GET_ACCOUNTS
      ];
      const multRequestPermission = yield _this5.permissionsAndroidService.multRequestPermissions(listPermissions);

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

  mensageShared(nameEvent, companyName, startAt, location, url, checkinStartAt, socialShare) {
    const text1 = this.translateConfigService.translate('SHARE_TEXT_1'); // Olá, estou te convidando para o evento

    const text2 = this.translateConfigService.translate('SHARE_TEXT_2'); // na empresa

    const text3 = this.translateConfigService.translate('SHARE_TEXT_3'); // agendado para

    const text4 = this.translateConfigService.translate('SHARE_TEXT_4'); // no

    const text5 = this.translateConfigService.translate('SHARE_TEXT_5'); // Chegando no local acesse o link

    const text6 = this.translateConfigService.translate('SHARE_TEXT_6'); // e faça seu checkin, que estará liberado com

    const text7 = this.translateConfigService.translate('SHARE_TEXT_7'); // minutos de antecedência.

    const text8 = this.translateConfigService.translate('SHARE_TEXT_8'); // Para ter acesso ao link, salve o meu contato.

    const textinvite = `${text1} "${nameEvent}" ${text2} ${companyName}`;
    const textinviteStartAt = `${text3} ${startAt}`;
    const textinviteLocation = `${text4} ${location}`;
    const textNotes = `${text5} ${url} ${text6} ${checkinStartAt} ${text7}`;
    let textFull = '';

    if (socialShare === 'OTHERS') {
      textFull = `${textinvite}, ${textinviteStartAt}, ${textinviteLocation}.\n\n${textNotes}\n\n${text8}`;
      return textFull;
    } else {
      textFull = `${textinvite}, ${textNotes}\n\n${text8}`;
      return textFull;
    }
  }

}

CreateEventEventShareStepPage.ɵfac = function CreateEventEventShareStepPage_Factory(t) {
  return new (t || CreateEventEventShareStepPage)(_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_awesome_cordova_plugins_social_sharing_ngx__WEBPACK_IMPORTED_MODULE_6__.SocialSharing), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_7__.NavigationService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_7__.CreateEventService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_awesome_cordova_plugins_calendar_ngx__WEBPACK_IMPORTED_MODULE_8__.Calendar), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_ionic_angular__WEBPACK_IMPORTED_MODULE_12__.ModalController), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_7__.ProfileManagerService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_7__.MomentService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_7__.ClipboardService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_7__.NotificatorService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_7__.PermissionsAndroidService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_7__.ModalPermissionsService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_ionic_angular__WEBPACK_IMPORTED_MODULE_12__.Platform), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_awesome_cordova_plugins_android_permissions_ngx__WEBPACK_IMPORTED_MODULE_9__.AndroidPermissions), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_7__.LogService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_7__.ResumeCreateEventInterruptedService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_7__.TranslateConfigService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_7__.SocialSharingService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_shared_services_sessionaddflow_service__WEBPACK_IMPORTED_MODULE_10__.SessionaddflowService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_11__.Router));
};

CreateEventEventShareStepPage.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdefineComponent"]({
  type: CreateEventEventShareStepPage,
  selectors: [["app-create-event-event-share-step"]],
  decls: 31,
  vars: 18,
  consts: [["mode", "ios"], ["slot", "start", "margin-start", "1"], ["src", "../../assets/toolbar-logo.png"], [1, "centralized-content"], [1, "page-title"], ["tabindex", "1", 1, "title"], [1, "sub-title", 3, "innerHTML"], [1, "actions"], [1, "add-to-calendar-button-holder"], [3, "click"], [1, "share-button-holder"], [1, "exit-button-holder", "button-holder"], [1, "back", 3, "click"]],
  template: function CreateEventEventShareStepPage_Template(rf, ctx) {
    if (rf & 1) {
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "ion-header", 0)(1, "ion-toolbar", 0)(2, "ion-buttons", 1);
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](3, "ion-img", 2);
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](4, "ion-title");
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](5, " KeyAccess ");
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()();
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](6, "ion-content")(7, "div", 3)(8, "div", 4)(9, "div", 5);
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](10);
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipe"](11, "translate");
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](12, "div", 6);
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipe"](13, "translate");
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](14, "div", 7)(15, "div", 8)(16, "button", 9);
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function CreateEventEventShareStepPage_Template_button_click_16_listener() {
        return ctx.verifyIsAllGuestsHaveEmail();
      });
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](17);
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipe"](18, "translate");
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](19, "div", 10)(20, "button", 9);
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function CreateEventEventShareStepPage_Template_button_click_20_listener() {
        return ctx.doShare();
      });
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](21);
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipe"](22, "translate");
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](23, "div", 10)(24, "button", 9);
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function CreateEventEventShareStepPage_Template_button_click_24_listener() {
        return ctx.doCopyLink();
      });
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](25);
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipe"](26, "translate");
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](27, "div", 11)(28, "button", 12);
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function CreateEventEventShareStepPage_Template_button_click_28_listener() {
        return ctx.exit();
      });
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](29);
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipe"](30, "translate");
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()()()();
    }

    if (rf & 2) {
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](10);
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipeBind1"](11, 6, "PG_CREATE_SHARE_STEP_TEXT_TITLE"));
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipeBind1"](13, 8, "PG_CREATE_SHARE_STEP_TEXT_SUBTITLE"), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵsanitizeHtml"]);
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](5);
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipeBind1"](18, 10, "PG_CREATE_SHARE_STEP_BTN_CALENDAR"), " ");
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](4);
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipeBind1"](22, 12, "PG_CREATE_SHARE_STEP_BTN_SHARE_LINK"));
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](4);
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipeBind1"](26, 14, "PG_CREATE_SHARE_STEP_BTN_COPY_LINK"), " ");
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](4);
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipeBind1"](30, 16, "PG_CREATE_SHARE_STEP_BTN_CLOSET"), " ");
    }
  },
  dependencies: [_ionic_angular__WEBPACK_IMPORTED_MODULE_12__.IonButtons, _ionic_angular__WEBPACK_IMPORTED_MODULE_12__.IonContent, _ionic_angular__WEBPACK_IMPORTED_MODULE_12__.IonHeader, _ionic_angular__WEBPACK_IMPORTED_MODULE_12__.IonImg, _ionic_angular__WEBPACK_IMPORTED_MODULE_12__.IonTitle, _ionic_angular__WEBPACK_IMPORTED_MODULE_12__.IonToolbar, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_13__.TranslatePipe],
  styles: ["ion-toolbar[_ngcontent-%COMP%] {\n  font-family: \"Nunito\", sans-serif;\n  --background: #fff;\n  padding-inline: 16px;\n}\nion-toolbar[_ngcontent-%COMP%]   ion-img[_ngcontent-%COMP%] {\n  height: 25px;\n  width: 25px;\n}\nion-toolbar[_ngcontent-%COMP%]   ion-title[_ngcontent-%COMP%] {\n  letter-spacing: 1px;\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}\nion-toolbar[_ngcontent-%COMP%]   ion-button.hover[_ngcontent-%COMP%] {\n  background: #fff;\n}\n.centralized-content[_ngcontent-%COMP%] {\n  height: calc(100vh - 56px);\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  flex-direction: column;\n}\n.centralized-content[_ngcontent-%COMP%]   .page-title[_ngcontent-%COMP%] {\n  margin-top: 24px;\n  margin-bottom: 32px;\n}\n.centralized-content[_ngcontent-%COMP%]   .page-title[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%] {\n  font-size: initial !important;\n  font-weight: bold;\n  text-align: center;\n}\n.centralized-content[_ngcontent-%COMP%]   .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  padding: 0 8px;\n}\n.centralized-content[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%] {\n  display: flex;\n  width: 100%;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n}\n.centralized-content[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]   .share-button-holder[_ngcontent-%COMP%] {\n  text-align: center;\n  margin-top: 1em;\n}\n.centralized-content[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]   .share-button-holder[_ngcontent-%COMP%]   button[_ngcontent-%COMP%] {\n  padding: 0.75em 1.5em;\n  border-radius: 50px;\n  background-color: #0ec254;\n  color: #fff;\n  font-size: 1em;\n  transition: background-color 0.1s ease-out;\n}\n.centralized-content[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]   .share-button-holder[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:active {\n  background-color: #fff;\n  color: #0ec254;\n  transition: background-color 0.1s ease-out;\n}\n.centralized-content[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]   .share-button-holder[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:focus {\n  outline: none;\n}\n.centralized-content[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]   .add-to-calendar-button-holder[_ngcontent-%COMP%] {\n  text-align: center;\n  margin-top: 3em;\n}\n.centralized-content[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]   .add-to-calendar-button-holder[_ngcontent-%COMP%]   button[_ngcontent-%COMP%] {\n  padding: 0.75em 1.5em;\n  border-radius: 50px;\n  background-color: #0ec254;\n  color: #fff;\n  font-size: 1em;\n  transition: background-color 0.1s ease-out;\n}\n.centralized-content[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]   .add-to-calendar-button-holder[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:active {\n  background-color: #fff;\n  color: #0ec254;\n  transition: background-color 0.1s ease-out;\n}\n.centralized-content[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]   .add-to-calendar-button-holder[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:focus {\n  outline: none;\n}\n.centralized-content[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]   .button-holder[_ngcontent-%COMP%] {\n  justify-content: center;\n}\n.pulsate-fwd[_ngcontent-%COMP%] {\n  animation: pulsate-fwd 0.5s ease-in-out infinite both;\n  outline: none;\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, 4828 characters] */"]
});

/***/ })

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