(self.webpackChunkapp=self.webpackChunkapp||[]).push([[5221],{25221:(vt,x,C)=>{C.r(x),C.d(x,{EventsPageModule:()=>Y});var T=C(61380),N=C(69270),p=C(15861),R=C(59584),w=C(47423),M=C(90603),y=C(24889),I=C(64633),t=C(45449),P=C(47898),G=C(14690),A=C(21284),k=C(80698),S=C(90944),V=C(87871),L=C(36290),D=C(99826);function j(s,m){1&s&&(t.\u0275\u0275elementStart(0,"div",9),t.\u0275\u0275element(1,"ion-spinner",10),t.\u0275\u0275elementEnd())}function F(s,m){1&s&&(t.\u0275\u0275elementStart(0,"div",11)(1,"div",12),t.\u0275\u0275text(2),t.\u0275\u0275pipe(3,"translate"),t.\u0275\u0275elementEnd()()),2&s&&(t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(3,1,"PG_EVENTS_TEXT_NO_EVENTS")," "))}function U(s,m){if(1&s){const e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"ion-card",35),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(e);const i=t.\u0275\u0275nextContext(3);return t.\u0275\u0275resetView(i.showToastMaxGuestInvitedEventMessageFull())}),t.\u0275\u0275elementStart(1,"div",36),t.\u0275\u0275text(2),t.\u0275\u0275pipe(3,"translate"),t.\u0275\u0275elementEnd()()}2&s&&(t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(3,1,"MAX_GUESTS_INVITED_EVENT_FULL_SHORT")," "))}function z(s,m){if(1&s&&t.\u0275\u0275element(0,"app-avatar",37),2&s){const e=m.$implicit;t.\u0275\u0275property("firstName",e.firstName)("lastName",e.lastName)("thumbnailImage",e.thumbnailImage)("size","sm")}}function B(s,m){if(1&s&&(t.\u0275\u0275elementStart(0,"div",38)(1,"div",18),t.\u0275\u0275text(2),t.\u0275\u0275elementEnd()()),2&s){const e=t.\u0275\u0275nextContext().$implicit;t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate1("",e.hosts.length-2,"+")}}function $(s,m){if(1&s&&t.\u0275\u0275element(0,"app-avatar",39),2&s){const e=m.$implicit,o=t.\u0275\u0275nextContext(3);t.\u0275\u0275property("ngClass","guest "+o.getGuestClass(e))("firstName",e.firstName)("lastName",e.lastName)("thumbnailImage",e.thumbnailImage)("size","sm")}}function Z(s,m){if(1&s&&(t.\u0275\u0275elementStart(0,"div",40)(1,"div",18),t.\u0275\u0275text(2),t.\u0275\u0275elementEnd()()),2&s){const e=t.\u0275\u0275nextContext().$implicit;t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate1("",e.guests.length-2,"+")}}const X=function(s){return{maxInvites:s}};function H(s,m){if(1&s){const e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",14),t.\u0275\u0275template(1,U,4,3,"ion-card",15),t.\u0275\u0275elementStart(2,"div",16),t.\u0275\u0275listener("click",function(){const c=t.\u0275\u0275restoreView(e).$implicit,l=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(l.onEventClick(c))}),t.\u0275\u0275elementStart(3,"div",17)(4,"div",18),t.\u0275\u0275text(5),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(6,"div",19),t.\u0275\u0275text(7),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(8,"div",20),t.\u0275\u0275text(9),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(10,"div",21)(11,"div",22),t.\u0275\u0275listener("click",function(){const c=t.\u0275\u0275restoreView(e).$implicit,l=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(l.onEventClick(c))}),t.\u0275\u0275elementStart(12,"div",23),t.\u0275\u0275template(13,z,1,4,"app-avatar",24),t.\u0275\u0275template(14,B,3,1,"div",25),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(15,"div",26),t.\u0275\u0275template(16,$,1,5,"app-avatar",27),t.\u0275\u0275template(17,Z,3,1,"div",28),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(18,"div",29)(19,"div",30),t.\u0275\u0275listener("click",function(){const c=t.\u0275\u0275restoreView(e).$implicit,l=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(l.verifyIsAllGuestsHaveEmail(c))}),t.\u0275\u0275element(20,"ion-icon",31),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(21,"div",32),t.\u0275\u0275listener("click",function(){const c=t.\u0275\u0275restoreView(e).$implicit,l=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(l.shareEvent(c))}),t.\u0275\u0275element(22,"ion-icon",33),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(23,"div",32),t.\u0275\u0275listener("click",function(){const c=t.\u0275\u0275restoreView(e).$implicit,l=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(l.shareEvent(c,"mail"))}),t.\u0275\u0275element(24,"ion-icon",34),t.\u0275\u0275elementEnd()()()()}if(2&s){const e=m.$implicit,o=t.\u0275\u0275nextContext(2);t.\u0275\u0275property("ngClass",t.\u0275\u0275pureFunction1(9,X,null!=(null==e?null:e.maxInvites)&&(null==e||null==e.guests?null:e.guests.length)>=(null==e?null:e.maxInvites))),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",null!=(null==e?null:e.maxInvites)&&(null==e||null==e.guests?null:e.guests.length)>=(null==e?null:e.maxInvites)),t.\u0275\u0275advance(4),t.\u0275\u0275textInterpolate(o.getEventTitleToTheView(e)),t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate(e.company?e.company.name:""),t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate(e.date),t.\u0275\u0275advance(4),t.\u0275\u0275property("ngForOf",e.hosts.slice(0,2)),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",e.hosts.length>2),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngForOf",e.guests.slice(0,2)),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",e.guests.length>2)}}function Q(s,m){if(1&s&&(t.\u0275\u0275elementContainerStart(0),t.\u0275\u0275template(1,H,25,11,"div",13),t.\u0275\u0275elementContainerEnd()),2&s){const e=t.\u0275\u0275nextContext();t.\u0275\u0275advance(1),t.\u0275\u0275property("ngForOf",e.events)}}function K(s,m){if(1&s){const e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementContainerStart(0),t.\u0275\u0275elementStart(1,"ion-fab",41)(2,"ion-fab-button",42),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(e);const i=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(i.onGoToCreateEvent())}),t.\u0275\u0275element(3,"ion-icon",43),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementContainerEnd()}if(2&s){const e=m.ngIf;t.\u0275\u0275advance(2),t.\u0275\u0275property("disabled","Offline"===e.status)}}const W=[{path:"",component:(()=>{class s{constructor(e,o,i,c,l,O,g,f,E,J,q,tt,et,nt,ot,it,st,rt,ct,at,lt,gt,dt,_t){var r=this;this.companyService=e,this.navigationService=o,this.momentService=i,this.loadingService=c,this.notificatorService=l,this.profileManagerService=O,this.modalController=g,this.logService=f,this.authService=E,this.apiService=J,this.androidPermissions=q,this.modalPermissionsService=tt,this.permissionsAndroidService=et,this.platform=nt,this.resumeCreateEventInterruptedService=ot,this.translateConfigService=it,this.socialSharingService=st,this.stateService=rt,this.eventInstantService=ct,this.sessionaddflowService=at,this.portalLogin=lt,this.showToastModalErroCodeZero=gt,this.createEventService=dt,this.userPhotoService=_t,this.events=[],this.voProfiles=[],this.numberRegistersPagination=10,this.page=0,this.loadedEvents=!1,this.navigateToPendingLiberations=()=>{this.navigationService.forward(["/push-notifications"])},this.sortByDate=(n,a="asc",d="date")=>n.sort((_,v)=>"dec"===a?new Date(v[d]).getTime()-new Date(_[d]).getTime():new Date(_[d]).getTime()-new Date(v[d]).getTime()),this.getInitials=(n,a)=>((n?n.substring(0,1):"")+(a?a.substring(0,1):"")).toUpperCase(),this.onEventClick=n=>{const a=n&&n.company?n.company.instanceName:"";n?.maxInvites&&this.createEventService.setMaxInvites(n.maxInvites);const d={state:{eventId:n.id,companyInstanceName:a}};this.getCompanyInstanceRelatedProfile(a).then(_=>{this.navigationService.forward(["/view-event/"],d)}).catch(_=>{this.handleErrorGetCompanyInstanceRelated(_,d)})},this.pullDownToGetEvents=n=>{this.loadingService.show(this.translateConfigService.translate("PG_EVENTS_LOADING_RECEIVING"),"loading-events");const d={"endAt.greaterOrEqualThan":(new Date).toISOString(),size:999999,"status.in":"OPENED","target.equals":"BUILDING"};this.companyService.getEvents(d).then(_=>{n&&n.target.complete(),this.processGetEventsSuccessResponse(_)}).catch(_=>{n&&n.target.complete(),this.processGetEventsErrorResponse(_)})},this.navigateToQRCode=()=>{this.navigationService.forward(["/home"])},this.verifyIsAllGuestsHaveEmail=(n,a)=>{this.eventBeingShare=n,this.socialNetworkSelected=a;const d=this.eventBeingShare.guests;d.find(v=>!v.email)?this.openUpdateUserEmailModal(d):this.addToCalendar(this.eventBeingShare)},this.openUpdateUserEmailModal=function(){var n=(0,p.Z)(function*(a){a=a.filter(_=>!_.email);const d=yield r.modalController.create({component:y.I1,componentProps:{guests:a}});d.onDidDismiss().then(r.onModalDismissCallback),yield d.present()});return function(a){return n.apply(this,arguments)}}(),this.onModalDismissCallback=n=>{n&&n.data&&(this.updateGuestsData(n.data.guests),n.data.share&&this.addToCalendar(this.eventBeingShare))},this.updateGuestsData=n=>{let a=this.eventBeingShare.guests;a=a.map(d=>n.find(v=>v.id===d.id)||d),this.eventBeingShare.guests=a},this.addToCalendar=function(){var n=(0,p.Z)(function*(a){(yield r.haspermissionCalendar())?r.addToCalendarComponsed(a):r.modalPermissionsService.openModal({permission:"CALENDAR"}).then(_=>{_?r.requestPermissionCalendarAndContact().then(function(){var v=(0,p.Z)(function*(h){r.addToCalendarComponsed(a)});return function(h){return v.apply(this,arguments)}}()):r.logService.logError("permissionModal::addToCalendarPageEvent","","modal-permission-rejected")})});return function(a){return n.apply(this,arguments)}}(),this.getCompanyAddress=n=>n&&n.company&&n.company.address?n.company.address:"",this.addToCalendarSuccessResponse=n=>{},this.addToCalendarErrorResponse=n=>{this.logService.logError("http::addToCalendarErrorResponse","",n)},this.getGuestClass=n=>n.status.toLowerCase().replace(/_/g,"-"),this.isLogisticEvent=n=>n&&n.target&&"LOGISTIC"===n.target,this.getEventTitleToTheView=n=>n?this.isLogisticEvent(n.title?n.title:"")?n.title+this.translateConfigService.translate("PG_EVENTS_TEXT_LOGISTIC"):n.title:"",this.isEmptyProfile=n=>n.authorities&&0===n.authorities.length,this.getNonLogisticProfilesAbleToCreateEvent=n=>this.profileManagerService.getProfilesAbleToCreateEvent(n,!1),this.onGoToCreateEvent=(0,p.Z)(function*(){r.sessionaddflowService.clearSessionId();const n=r.resumeCreateEventInterruptedService.isExistEventCreation();n.vo&&""!==n.action?r.resumeCreateEvent():(r.loadingService.show(r.translateConfigService.translate("LOADING_CHECKING_DATA"),"on-create-event"),r.getVoProfiles().then((0,p.Z)(function*(){let{limitedProfile:a,profiles:d}=r.getNonLogisticProfilesAbleToCreateEvent(r.voProfiles);if(a||r.voProfiles.length>=1&&0===d.length)r.loadingService.hide(0,"on-create-event").then(()=>{r.cantCreateEvent()});else if(d&&d.length>1){const _=yield r.modalController.create({component:y.w9,componentProps:{profiles:d}});_.onDidDismiss().then(v=>{v.data?r.selectProfileModalVOOnProfileSelectCreateEventCallback(v.data):r.selectProfileModalVOOnBackCreateEventCallback()}),r.loadingService.hide(0,"on-create-event"),yield _.present()}else if(d[0])r.selectProfileModalVOOnProfileSelectCreateEventCallback(d[0]);else{r.loadingService.hide(0,"on-create-event");const _=r.translateConfigService.translate("PG_EVENTS_TOAST_NO_ACCESS_PROFILE_TITLE"),v=r.translateConfigService.translate("PG_EVENTS_TOAST_NO_ACCESS_PROFILE_MESSAGE");r.notificatorService.notify({title:_,message:v,type:"error",timeout:5e3})}})).catch(a=>{r.loadingService.hide(0,"on-create-event");const d=r.translateConfigService.translate("PG_EVENTS_TOAST_TITLE_ERROR_REQUEST"),_=r.translateConfigService.translate("PG_EVENTS_TOAST_MESSAGE_ERROR_REQUEST");r.notificatorService.notify({title:d,message:_,type:"error",timeout:5e3})}).finally(()=>{r.loadingService.hide(0,"on-create-event")}))}),this.getVoProfiles=()=>new Promise((n,a)=>{this.authService.getToken().then(d=>{this.apiService.getUserProfiles("VO",d).subscribe(_=>this.processGetVOUserProfilesSuccessResponse(_,n),_=>this.processGetVOUserProfilesErrorResponse(_,a))})}),this.processGetVOUserProfilesSuccessResponse=(n,a)=>{this.voProfiles=n,a()},this.processGetVOUserProfilesErrorResponse=(n,a)=>{a()},this.isLogisticProfile=n=>!(!n.authorities||!n.authorities.includes("ROLE_LOGI_EXP")),this.selectProfileModalVOOnProfileSelectCreateEventCallback=n=>{this.setProfileCurrentCorrect(n),this.resumeCreateEventInterruptedService.setProfileVoCreationInterrupte(n),this.profileManagerService.setProfile(n);let a=null;this.loadingService.show(this.translateConfigService.translate("LOADING_CHECKING_DATA"),"on-create-event-ModalCallback"),this.getCompanyInstanceRelatedAccessToken(n).then(function(){var _=(0,p.Z)(function*(v){a=v,r.loadingService.hide(0,"on-create-event"),r.loadingService.hide(0,"on-create-event-ModalCallback").then(()=>{r.showModalSelectEventInstantOrDefault().then(h=>{if(!h.close||h.typeEvent){if(h&&"instant"===h.typeEvent)return void r.eventInstantService.createEventVO().then(u=>u).catch().finally(()=>{r.sessionaddflowService.clearSessionId(),r.callRefresh()});r.navigationService.forward(["/create-event-event-name-step"],{state:{event:null,action:"create"}})}}).catch(()=>{r.navigationService.forward(["/create-event-event-name-step"],{state:{event:null,action:"create"}})}).finally(()=>{r.loadingService.hide(0,"on-create-event-ModalCallback"),r.loadingService.hide(0,"on-create-event")})})});return function(v){return _.apply(this,arguments)}}()).catch(_=>{this.loadingService.hide(0,"on-create-event-ModalCallback"),this.loadingService.hide(0,"on-create-event"),this.logService.logError("http::getCompanyInstanceRelatedAccessToken","",_);const v=this.translateConfigService.translate("PG_EVENTS_TOAST_TITLE_ERROR_GET_TOKEN"),h=this.translateConfigService.translate("PG_EVENTS_TOAST_MESSAGE_ERROR_GET_TOKEN");this.notificatorService.notify({title:v,message:h,type:"error",timeout:5e3})})},this.selectProfileModalVOOnBackCreateEventCallback=()=>{},this.getCompanyInstanceRelatedAccessToken=n=>{const a=n?.login,d=n?.portal;return new Promise((_,v)=>{(!a||!d)&&v("Does not have desired profile"),this.authService.getToken().then(h=>{this.portalLogin.getAccessToken(a,d,h).then(u=>{u?.access_token?_(u.access_token):v("Does not have desired profile")}).catch(v)})})},this.sessionaddflowService.clearSessionId()}ngOnInit(){}ionViewDidEnter(){this.getEvents(this.page)}ionViewDidLeave(){this.loadedEvents=!1,this.page=0,this.events=[]}callInfiniteScroll(e){setTimeout(()=>{e.target.complete(),this.page+=1,this.getEvents(this.page,!0)},500)}callRefresh(){this.page=0,this.events=[],this.getEvents(this.page)}getEvents(e,o){o||(this.loadingService.show(this.translateConfigService.translate("PG_EVENTS_LOADING_RECEIVING"),"loading-events"),this.events=[]);const i={"endAt.greaterOrEqualThan":(new Date).toISOString(),size:this.numberRegistersPagination,page:e,"status.in":"OPENED","target.equals":"BUILDING",sort:["startAt,asc"]};this.companyService.getEvents(i).then(c=>{const l=c||[];this.infiniteScroll.disabled=!1,this.loadedEvents=!0,l.length>0?(this.processGetEventsSuccessResponse(l),this.infiniteScroll.complete()):(this.infiniteScroll.disabled=!0,this.loadingService.hide(0,"loading-events"))}).catch(c=>{this.infiniteScroll.disabled=!0,this.loadingService.hide(0,"loading-events"),this.processGetEventsErrorResponse(c)}).finally(()=>{this.loadedEvents=!0})}processGetEventsSuccessResponse(e){this.processEvents(e),this.loadPhotosForEvents(this.events)}processGetEventsErrorResponse(e){if(this.logService.logError("http::processGetEventsErrorResponse","getEvents",e),e instanceof R.HttpErrorResponse&&0===e?.status)return void this.showToastModalErroCodeZero.showToast();const o=this.translateConfigService.translate("PG_EVENTS_TOAST_TITLE_ERROR"),i=this.translateConfigService.translate("PG_EVENTS_TOAST_MESSAGE_ERROR");this.notificatorService.notify({title:o,message:i,type:"error",timeout:5e3})}processEvents(e){const o=e,i=[];for(let l=0;l(l.guests=l.invites.filter(O=>!O.host),l.hosts=l.invites.filter(O=>O.host),l.date=this.momentService.formatAsEventFromTo(l.startAt,l.endAt),l));c=this.sortByDate(c,"asc","startAt");for(let l=0;l{const l=g=>{const E=this.getProfile(g,e);E?(this.profileManagerService.setProfile(E),i(E)):c("Does not have desired profile")},O=g=>{this.logService.logError("http::processGetCompanyInstanceRelatedLoginErrorResponse","",g),c(g)};this.authService.getToken().then(g=>{o=g,this.apiService.getUserProfiles("VO",o).subscribe(l,O)})})}getProfile(e,o){return e.find(i=>i.company.instanceName===o&&null!==i.login)}handleErrorGetCompanyInstanceRelated(e,o){console.log("http::processGetCompanyInstanceRelatedLoginErrorResponse",e),this.logService.logError("http::processGetCompanyInstanceRelatedLoginErrorResponse","",e),this.profileManagerService.getProfile()&&this.navigationService.forward(["/view-event/"],o)}showModalSelectEventInstantOrDefault(){var e=this;return(0,p.Z)(function*(){e.loadingService.hide(0,"on-create-event-showModalSelect"),e.loadingService.hide(0,"on-create-event");const o=yield e.modalController.create({component:I.US,cssClass:"event-instant-",componentProps:{}});yield o.present();try{const{data:i}=yield o.onDidDismiss();if(!i)return{close:!0,typeEvent:null};if(i&&i&&i.typeEvent)return"instant"===i.typeEvent&&{...i,close:!0}}catch{return e.loadingService.hide(0,"on-create-event"),!1}})()}cantCreateEvent(){var e=this;return(0,p.Z)(function*(){yield(yield e.modalController.create({component:I.AL,componentProps:{},cssClass:"can-create-modal"})).present()})()}setProfileCurrentCorrect(e){e?.authorities.includes("ROLE_LOGI_EXP")?(this.profileManagerService.setProfileLogistic(e),this.profileManagerService.setProfile(e),this.resumeCreateEventInterruptedService.setProfileLogisticCreationInterrupte(e)):(this.profileManagerService.setProfile(e),this.resumeCreateEventInterruptedService.setProfileVoCreationInterrupte(e))}}return s.\u0275fac=function(e){return new(e||s)(t.\u0275\u0275directiveInject(P.JN),t.\u0275\u0275directiveInject(P.f5),t.\u0275\u0275directiveInject(P.EM),t.\u0275\u0275directiveInject(P.bz),t.\u0275\u0275directiveInject(P.V6),t.\u0275\u0275directiveInject(P.v4),t.\u0275\u0275directiveInject(M.ModalController),t.\u0275\u0275directiveInject(P.$V),t.\u0275\u0275directiveInject(P.e8),t.\u0275\u0275directiveInject(P.sM),t.\u0275\u0275directiveInject(G.r),t.\u0275\u0275directiveInject(P.JQ),t.\u0275\u0275directiveInject(P.YY),t.\u0275\u0275directiveInject(M.Platform),t.\u0275\u0275directiveInject(P.NL),t.\u0275\u0275directiveInject(P.wK),t.\u0275\u0275directiveInject(P.iX),t.\u0275\u0275directiveInject(A.b),t.\u0275\u0275directiveInject(P.xK),t.\u0275\u0275directiveInject(k.t),t.\u0275\u0275directiveInject(P.dj),t.\u0275\u0275directiveInject(P.ME),t.\u0275\u0275directiveInject(P.jc),t.\u0275\u0275directiveInject(P.IR))},s.\u0275cmp=t.\u0275\u0275defineComponent({type:s,selectors:[["app-events"]],viewQuery:function(e,o){if(1&e&&t.\u0275\u0275viewQuery(M.IonInfiniteScroll,5),2&e){let i;t.\u0275\u0275queryRefresh(i=t.\u0275\u0275loadQuery())&&(o.infiniteScroll=i.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(e,o){1&e&&(t.\u0275\u0275elementStart(0,"app-header",0),t.\u0275\u0275listener("callRefresh",function(){return o.callRefresh()}),t.\u0275\u0275pipe(1,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(2,"ion-content")(3,"div",1)(4,"div",2),t.\u0275\u0275text(5),t.\u0275\u0275pipe(6,"translate"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275template(7,j,2,0,"div",3),t.\u0275\u0275elementStart(8,"div",4),t.\u0275\u0275template(9,F,4,3,"div",5),t.\u0275\u0275template(10,Q,2,1,"ng-container",6),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(11,"ion-infinite-scroll",7),t.\u0275\u0275listener("ionInfinite",function(c){return o.callInfiniteScroll(c)}),t.\u0275\u0275element(12,"ion-infinite-scroll-content",8),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(13,K,4,1,"ng-container",6),t.\u0275\u0275pipe(14,"async"),t.\u0275\u0275elementEnd()),2&e&&(t.\u0275\u0275property("title",t.\u0275\u0275pipeBind1(1,7,"PG_EVENTS_HEADER_TITLE"))("showBadge",!0),t.\u0275\u0275advance(5),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(6,9,"PG_EVENTS_TEXT_SUBTITLE")," "),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",!o.loadedEvents),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",o.loadedEvents&&o.events.length<=-1),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",o.loadedEvents&&o.events.length>0),t.\u0275\u0275advance(3),t.\u0275\u0275property("ngIf",t.\u0275\u0275pipeBind1(14,11,o.stateService.getState())))},dependencies:[S.NgClass,S.NgForOf,S.NgIf,M.IonCard,M.IonContent,M.IonFab,M.IonFabButton,M.IonIcon,M.IonInfiniteScroll,M.IonInfiniteScrollContent,M.IonSpinner,V.A,L.G,S.AsyncPipe,D.X$],styles:["ion-content[_ngcontent-%COMP%]{--background: #f1f1f1}ion-toolbar[_ngcontent-%COMP%]{font-family:Nunito,sans-serif}ion-toolbar[_ngcontent-%COMP%] ion-img[_ngcontent-%COMP%]{height:25px;width:25px}ion-toolbar[_ngcontent-%COMP%] ion-title[_ngcontent-%COMP%]{letter-spacing:1px}ion-toolbar[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;height:24px;padding:0;width:24px;margin:0;font-size:19px;color:#656768}ion-toolbar[_ngcontent-%COMP%] ion-button.hover[_ngcontent-%COMP%]{background:#fff}.page-title[_ngcontent-%COMP%]{margin-top:30px;margin-bottom:26px}.page-title[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-weight:700;text-align:center}.page-title[_ngcontent-%COMP%] .sub-title[_ngcontent-%COMP%]{text-align:center;color:#656768;font-size:.9em;margin-top:4px}.empty[_ngcontent-%COMP%], .not-empty[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;padding:3em;color:#656768;font-size:.9em}.empty[_ngcontent-%COMP%] .text[_ngcontent-%COMP%], .not-empty[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{text-align:center}.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%]{display:inline-flex;justify-content:center;align-items:center;margin-top:1em}.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%]{display:inline-flex;justify-content:center;align-items:center;border:1px solid #eee;padding:.25em .75em;border-radius:32px;margin-right:8px}.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%]{margin-left:4px;color:#0ec254;margin-top:2px}.not-empty[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;padding:1em;color:#656768;font-size:.9em;margin-bottom:2em}.not-empty[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{text-align:center}.not-empty[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] .pull-to-reload-message[_ngcontent-%COMP%]{display:inline-flex;justify-content:center;align-items:center;margin-top:0}.not-empty[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] .pull-to-reload-message[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-flex;justify-content:center;align-items:center;border:1px solid #eee;padding:.25em .75em;border-radius:32px;margin-right:8px}.not-empty[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] .pull-to-reload-message[_ngcontent-%COMP%] span[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{margin-left:4px;color:#0ec254;margin-top:2px}.event[_ngcontent-%COMP%]{border:1px solid #eee;box-shadow:2px 2px 8px rgba(67,60,98,.1);background-color:#fff;border-radius:8px;width:90%;margin:12px auto}.event[_ngcontent-%COMP%] .top[_ngcontent-%COMP%]{display:flex;padding:16px;border-bottom:1px solid #eee;flex-direction:column}.event[_ngcontent-%COMP%] .top[_ngcontent-%COMP%] .date[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;font-size:.9em;color:#656768;margin-top:8px}.event[_ngcontent-%COMP%] .top[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:initial!important;font-weight:400!important;line-height:normal!important}.event[_ngcontent-%COMP%] .top[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{font-weight:700}.event[_ngcontent-%COMP%] .top[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .company[_ngcontent-%COMP%]{font-size:.9em}.event[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%]{display:flex;padding:16px;justify-content:space-between}.event[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%] .invites[_ngcontent-%COMP%], .event[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%] .invites[_ngcontent-%COMP%] .guests[_ngcontent-%COMP%], .event[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%] .invites[_ngcontent-%COMP%] .hosts[_ngcontent-%COMP%]{display:flex;justify-content:flex-start}.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%]{margin-left:-12px;height:38px;width:38px;border-radius:38px;display:flex;justify-content:center;align-items:center;border:2px solid #eee;background-color:#fff;color:#333}.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%]{font-size:.9em}.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{margin-left:0}.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%], .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%]{border-color:#fece00;color:#333}.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%], .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%]{border-color:#eee;color:#333}.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%]{border-color:#f14c3c;color:#333}.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%]{border-color:#eee;color:#333}.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%], .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%], .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%]{border-color:#0ec254;color:#333}.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%]{border-color:#f14c3c;color:#333}.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%]{border-color:#926152;color:#333}.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{margin-left:8px}.event[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.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%]{height:38px;width:38px;border-radius:38px;display:flex;justify-content:center;align-items:center;border:2px solid #0ec254;background-color:#fff;color:#0ec254;font-size:24px}.event[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] .share-holder[_ngcontent-%COMP%]{margin-left:12px}.event.maxInvites[_ngcontent-%COMP%]{position:relative;border:solid 2px #db1d1d!important;margin:1.5em auto 12px}.event.maxInvites[_ngcontent-%COMP%] .card_maxInvites[_ngcontent-%COMP%]{padding:5px 10px;box-shadow:0 0 6px rgba(0,0,0,.145)!important;margin:0;position:absolute;top:0%;left:50%;transform:translate(-50%,-50%);background-color:#db1d1d;width:150px;height:25px;display:flex;border-radius:4px;align-items:center;justify-content:center}.event.maxInvites[_ngcontent-%COMP%] .card_maxInvites__label[_ngcontent-%COMP%]{font-size:1em;color:#fff;font-weight:700}.spinner[_ngcontent-%COMP%]{display:flex;position:relative;height:80vh;align-items:center;justify-content:center}.pulsate-fwd[_ngcontent-%COMP%]{animation:pulsate-fwd .5s ease-in-out infinite both;outline:none}@keyframes pulsate-fwd{0%{transform:scale(1)}50%{transform:scale(1.5)}to{transform:scale(1)}}"]}),s})()}];let Y=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=t.\u0275\u0275defineNgModule({type:s}),s.\u0275inj=t.\u0275\u0275defineInjector({imports:[N.I,T.RouterModule.forChild(W)]}),s})()}}]);