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

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "EventSharePageModule": () => (/* binding */ EventSharePageModule)
/* 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 _event_share_page__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./event-share.page */ 52165);
/* 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: _event_share_page__WEBPACK_IMPORTED_MODULE_2__.EventSharePage
    }
];
class EventSharePageModule {
}
EventSharePageModule.ɵfac = function EventSharePageModule_Factory(t) { return new (t || EventSharePageModule)(); };
EventSharePageModule.ɵmod = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineNgModule"]({ type: EventSharePageModule });
EventSharePageModule.ɵinj = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineInjector"]({ imports: [
        // CommonModule,
        // FormsModule,
        // IonicModule,
        // FontAwesomeModule,
        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"](EventSharePageModule, { declarations: [_event_share_page__WEBPACK_IMPORTED_MODULE_2__.EventSharePage], imports: [
        // CommonModule,
        // FormsModule,
        // IonicModule,
        // FontAwesomeModule,
        src_app_shared_module_shared_module_module__WEBPACK_IMPORTED_MODULE_1__.SharedModuleModule, _angular_router__WEBPACK_IMPORTED_MODULE_0__.RouterModule] }); })();


/***/ }),

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "EventSharePage": () => (/* binding */ EventSharePage)
/* 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 _shared_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @shared/components */ 7667);
/* 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__);
/* harmony import */ var _awesome_cordova_plugins_social_sharing_ngx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @awesome-cordova-plugins/social-sharing/ngx */ 26436);
/* harmony import */ var _shared_services__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @shared/services */ 17253);
/* harmony import */ var _awesome_cordova_plugins_calendar_ngx__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @awesome-cordova-plugins/calendar/ngx */ 39020);
/* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @ionic/angular */ 93819);
/* 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_sessionaddflow_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @shared/services/sessionaddflow.service */ 80698);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/common */ 90944);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_angular_common__WEBPACK_IMPORTED_MODULE_9__);
/* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @ngx-translate/core */ 38699);













function EventSharePage_div_19_Template(rf, ctx) {
  if (rf & 1) {
    const _r3 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵgetCurrentView"]();

    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 13)(1, "button", 9);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function EventSharePage_div_19_Template_button_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r3);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r2.doShare());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](3, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
  }

  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipeBind1"](3, 1, "PG_CREATE_SHARE_STEP_BTN_SHARE_LINK"));
  }
}

function EventSharePage_div_20_Template(rf, ctx) {
  if (rf & 1) {
    const _r5 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵgetCurrentView"]();

    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 13)(1, "button", 9);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function EventSharePage_div_20_Template_button_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r5);
      const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r4.doCopyLink());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](3, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
  }

  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipeBind1"](3, 1, "PG_CREATE_SHARE_STEP_BTN_COPY_LINK"));
  }
}

class EventSharePage {
  constructor(socialSharing, navigationService, createLogisticEventService, calendar, modalController, profileManagerService, momentService, clipboardService, pendingRelease, notificatorService, permissionsAndroidService, modalPermissionService, platform, androidPermissions, logService, resumeCreateEventInterruptedService, translateConfigService, socialSharingService, sessionAddFlowService) {
    var _this = this;

    this.socialSharing = socialSharing;
    this.navigationService = navigationService;
    this.createLogisticEventService = createLogisticEventService;
    this.calendar = calendar;
    this.modalController = modalController;
    this.profileManagerService = profileManagerService;
    this.momentService = momentService;
    this.clipboardService = clipboardService;
    this.pendingRelease = pendingRelease;
    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.eventDirection = 'ENTRY';
    this.existPendings = false;

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

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

    this.doShare = () => {
      const profile = this.profileManagerService.getProfileLogistic();
      const locator = this.createLogisticEventService.getLocator();
      const baseUrl = _environment__WEBPACK_IMPORTED_MODULE_1__.environment.wc_url;
      const eventName = this.createLogisticEventService.getTitle();
      const companyName = profile?.company?.name ? profile?.company?.name : '';
      const url = 'https://' + baseUrl + '/?l=' + locator;
      const startAt = this.momentService.formatAsEventAt(this.createLogisticEventService.getStartDate());
      const location = profile?.company?.address ? profile?.company?.address : '';
      const subject = this.translateConfigService.translate('SHARE_EVENT_SUBJECT');
      const message2 = this.mensageShared(eventName, companyName, startAt, location, url, 'OTHERS');
      this.socialSharing.share(message2, subject, '', '').then(this.shareSuccessResponse).catch(this.shareErrorResponse);
    };

    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.createLogisticEventService.getAssistants();
      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_2__.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.createLogisticEventService.getAssistants();
      guests = guests.map(guest => {
        const foundGuest = updatedGuests.find(updatedGuest => updatedGuest.id === guest.id);

        if (foundGuest) {
          return foundGuest;
        }

        return guest;
      });
      this.createLogisticEventService.setAssistants(guests);
    };

    this.addToCalendarComponsed = () => {
      const profile = this.profileManagerService.getProfileLogistic();
      const title = this.createLogisticEventService.getTitle();
      const startDate = new Date(this.createLogisticEventService.getStartDate());
      const endDate = new Date(this.createLogisticEventService.getEndDate());
      const wcUrl = _environment__WEBPACK_IMPORTED_MODULE_1__.environment.wc_url;
      const locator = this.createLogisticEventService.getLocator();
      const url = 'https://' + wcUrl + '/?l=' + locator;
      const location = profile?.company?.address ? profile?.company?.address : '';
      const eventName = this.createLogisticEventService.getTitle();
      const companyName = profile.company && profile.company.name ? profile.company.name : '';
      const startAt = this.momentService.formatAsEventAt(this.createLogisticEventService.getStartDate());
      const driver = this.createLogisticEventService.getDriver();
      const assistants = this.createLogisticEventService.getAssistants();
      const attendees = [];

      if (driver['email']) {
        attendees.push(driver['email']);
      }

      assistants.forEach(assistant => {
        if (assistant['email']) {
          attendees.push(assistant['email']);
        }
      });
      const options = {
        url,
        attendees: attendees.length ? attendees : null
      };
      const notes = this.mensageShared(eventName, companyName, startAt, location, url, 'CALENDAR'); // Interactively (options)

      this.calendar.createEventInteractivelyWithOptions(eventName, location, notes, startDate, endDate, options).then(this.addToCalendarSuccessResponse).catch(this.addToCalendarErrorResponse);
    };

    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();

              if (checkpermission) {
                _this.addToCalendarComponsed();
              }
            }));
          } else {
            _this.logService.logError('permissionModal::addToCalendarPageEventSharedLogistic', '', '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.createLogisticEventService.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.createLogisticEventService.clearCreateEventData();
      this.resumeCreateEventInterruptedService.clearProfileLogisticCreationInterrupte();
      this.resumeCreateEventInterruptedService.clearResumeCreationInterrupte();
      this.navigationService.forward(['/home']);
    };

    this.sessionAddFlowService.clearSessionId();
  }

  ngOnInit() {
    this.getDirection();
  }

  ionViewDidEnter() {//this.verifyNotifications;
  }

  ionViewDidLeave() {}

  getDirection() {
    const type = this.createLogisticEventService.getType();

    if (type === 'CLONE_EXIT') {
      this.eventDirection = 'ENTRY';
    } else if (type === 'CLONE_ENTRY') {
      this.eventDirection = 'EXIT';
    }
  }

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

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

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

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

  mensageShared(nameEvent, companyName, startAt, location, url, 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_LG'); // para realizar seu checkin e entrar sem filas e sem passar pela recepção.

    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}`;
    let textFull = '';

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

}

EventSharePage.ɵfac = function EventSharePage_Factory(t) {
  return new (t || EventSharePage)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_awesome_cordova_plugins_social_sharing_ngx__WEBPACK_IMPORTED_MODULE_4__.SocialSharing), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_5__.NavigationService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_5__.CreateLogisticEventService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_awesome_cordova_plugins_calendar_ngx__WEBPACK_IMPORTED_MODULE_6__.Calendar), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_ionic_angular__WEBPACK_IMPORTED_MODULE_10__.ModalController), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_5__.ProfileManagerService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_5__.MomentService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_5__.ClipboardService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_5__.PendingReleaseService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_5__.NotificatorService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_5__.PermissionsAndroidService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_5__.ModalPermissionsService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_ionic_angular__WEBPACK_IMPORTED_MODULE_10__.Platform), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_awesome_cordova_plugins_android_permissions_ngx__WEBPACK_IMPORTED_MODULE_7__.AndroidPermissions), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_5__.LogService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_5__.ResumeCreateEventInterruptedService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_5__.TranslateConfigService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_shared_services__WEBPACK_IMPORTED_MODULE_5__.SocialSharingService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_shared_services_sessionaddflow_service__WEBPACK_IMPORTED_MODULE_8__.SessionaddflowService));
};

EventSharePage.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineComponent"]({
  type: EventSharePage,
  selectors: [["app-event-share"]],
  decls: 25,
  vars: 14,
  consts: [["mode", "ios"], ["slot", "start", "margin-start", "1"], ["src", "./assets/toolbar-logo.png"], [1, "centralized-content"], [1, "page-title"], [1, "title"], [1, "sub-title", 3, "innerHTML"], [1, "actions"], [1, "add-to-calendar-button-holder"], [3, "click"], ["class", "share-button-holder", 4, "ngIf"], [1, "exit-button-holder", "button-holder"], [1, "back", 3, "click"], [1, "share-button-holder"]],
  template: function EventSharePage_Template(rf, ctx) {
    if (rf & 1) {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "ion-header", 0)(1, "ion-toolbar", 0)(2, "ion-buttons", 1);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](3, "ion-img", 2);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](4, "ion-title");
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](5, " KeyAccess ");
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()();
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](6, "ion-content")(7, "div", 3)(8, "div", 4)(9, "div", 5);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](10);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](11, "translate");
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](12, "div", 6);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](13, "translate");
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](14, "div", 7)(15, "div", 8)(16, "button", 9);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function EventSharePage_Template_button_click_16_listener() {
        return ctx.verifyIsAllGuestsHaveEmail();
      });
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](17);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](18, "translate");
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](19, EventSharePage_div_19_Template, 4, 3, "div", 10);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](20, EventSharePage_div_20_Template, 4, 3, "div", 10);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](21, "div", 11)(22, "button", 12);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function EventSharePage_Template_button_click_22_listener() {
        return ctx.exit();
      });
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](23);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](24, "translate");
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()()();
    }

    if (rf & 2) {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](10);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipeBind1"](11, 6, "PG_CREATE_SHARE_STEP_TEXT_TITLE"));
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipeBind1"](13, 8, "PG_CREATE_SHARE_STEP_TEXT_SUBTITLE"), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵsanitizeHtml"]);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](5);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipeBind1"](18, 10, "PG_CREATE_SHARE_STEP_BTN_CALENDAR"), " ");
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx.eventDirection === "ENTRY");
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx.eventDirection === "ENTRY");
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](3);
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipeBind1"](24, 12, "PG_CREATE_SHARE_STEP_BTN_CLOSET"), " ");
    }
  },
  dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_9__.NgIf, _ionic_angular__WEBPACK_IMPORTED_MODULE_10__.IonButtons, _ionic_angular__WEBPACK_IMPORTED_MODULE_10__.IonContent, _ionic_angular__WEBPACK_IMPORTED_MODULE_10__.IonHeader, _ionic_angular__WEBPACK_IMPORTED_MODULE_10__.IonImg, _ionic_angular__WEBPACK_IMPORTED_MODULE_10__.IonTitle, _ionic_angular__WEBPACK_IMPORTED_MODULE_10__.IonToolbar, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_11__.TranslatePipe],
  styles: ["ion-toolbar[_ngcontent-%COMP%] {\n  font-family: \"Nunito\", sans-serif;\n  background-color: #fff;\n  --background: #fff !important;\n  padding: 0 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: 30px;\n  margin-bottom: 26px;\n}\n.centralized-content[_ngcontent-%COMP%]   .page-title[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%] {\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: 1em;\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, 4772 characters] */"]
});

/***/ })

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