1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[514],{80513:(z,V,o)=>{o.d(V,{p:()=>N});var D=o(73308),b=o(93527),d=o(3871),$=o(23456),P=o(1224),c=o(23279),t=o(27985),F=o(23700),k=o(77897),I=o(56610),h=o(88832),_=o(32861);const E=["scrollElement"],v=(j,G)=>({left:j,right:G});function x(j,G){if(1&j){const r=c.RV6();c.j41(0,"ion-icon",18),c.bIt("click",function(f){c.eBV(r);const m=c.XpG(2).$implicit,M=c.XpG();return c.Njj(M.viewChatOptions(m,f))}),c.k0s()}}function X(j,G){if(1&j&&(c.j41(0,"span"),c.EFF(1),c.k0s()),2&j){const r=c.XpG(2).$implicit;c.R7$(),c.JRh(r.message)}}function O(j,G){if(1&j){const r=c.RV6();c.j41(0,"div",19)(1,"ion-textarea",20),c.mxI("ngModelChange",function(f){c.eBV(r);const m=c.XpG(3);return c.DH7(m.edited_chat,f)||(m.edited_chat=f),c.Njj(f)}),c.k0s(),c.j41(2,"ion-button",21),c.bIt("click",function(){c.eBV(r);const f=c.XpG(3);return c.Njj(f.editChatCancel())}),c.EFF(3,"Cancel"),c.k0s(),c.EFF(4,"\xa0 "),c.j41(5,"ion-button",21),c.bIt("click",function(){c.eBV(r);const f=c.XpG(2).$implicit,m=c.XpG();return c.Njj(m.editChatConfirm(f))}),c.EFF(6,"Update Chat"),c.k0s()()}if(2&j){const r=c.XpG(3);c.R7$(),c.R50("ngModel",r.edited_chat)}}function Y(j,G){if(1&j&&(c.j41(0,"ion-row")(1,"ion-col",12)(2,"div",13)(3,"div",14)(4,"b"),c.EFF(5),c.
1k0s(),c.DNE(6,x,1,0,"ion-icon",15),c.k0s(),c.DNE(7,X,2,1,"span",11)(8,O,7,1,"div",16),c.j41(9,"div",17)(10,"small"),c.EFF(11),c.nI1(12,"date"),c.k0s()()()()()),2&j){const r=c.XpG().$implicit,p=c.XpG();c.R7$(),c.Y8G("ngClass",c.l_i(9,v,r.author_id!=p.user_id,r.author_id==p.user_id)),c.R7$(4),c.JRh(r.author),c.R7$(),c.Y8G("ngIf",r.author_id==p.user_id||p.is_modirator),c.R7$(),c.Y8G("ngIf",r._id!=p.edited_chat_id),c.R7$(),c.Y8G("ngIf",r._id==p.edited_chat_id),c.R7$(3),c.JRh(c.i5U(12,6,1e3*r.date,"d MMM h:mm a"))}}function B(j,G){if(1&j&&(c.qex(0),c.DNE(1,Y,13,12,"ion-row",11),c.bVm()),2&j){const r=G.$implicit;c.R7$(),c.Y8G("ngIf","Deleted"!=r.status)}}let N=(()=>{class j{firestore;session;popoverController;alertController;common;content;event_id;session_id;chat_session;messages=[];chat_message="";chat_submitting=!1;user_id="";last_mod=0;is_modirator=!1;edited_chat="";edited_chat_id="";constructor(r,p,f,m,M){this.firestore=r,this.session=p,this.popoverController=f,this.alertController=m,this.common=M,this.session_id="global"}ngOnInit(){var r=this;return(0,D.A)(function*(){let p=yield r.session.getFirebaseAuthUID();r.user_id=r.session.getCurrentUser().user_id,(typeof r.user_id>"u"||""==r.user_id)&&(r.user_id=p),(r.session.hasAccess("admin")||r.session.hasAccess("organiser")||r.session.hasAccess("moderator"))&&(r.is_modirator=!0),typeof r.event_id<"u"&&r.initChatSession()})()}ngOnDestroy(){}ngOnChanges(r){typeof r.event_id<"u"&&1!=r.event_id.firstChange&&(this.event_id=r.event_id.currentValue,typeof this.event_id<"u"&&this.initChatSession()),typeof r.session_id<"u"&&1!=r.session_id.firstChange&&null!=r.session_id.currentValue&&(this.session_id=r.session_id.currentValue,typeof this.event_id<"u"&&this.initChatSession()),typeof r.chat_session<"u"&&1!=r.chat_session.firstChange&&null!=r.chat_session.currentValue&&(this.chat_session=r.chat_session.currentValue,console.log(this.chat_session))}trackChats(r){return r._id}updateScroll(r=500){setTimeout(()=>{typeof this.content<"u"&&this.content.scrollToBottom(0)},r)}initChatSession(){var r=this;return(0,D.A)(function*(){r.messages=[],(yield r.firestore.collection("events/"+r.event_id+"/sessions/"+r.session_id+"/chats").ref.orderBy("date","desc").limit(20).get()).forEach(M=>{const y=M.data();r.messages.unshift({_id:M.id,...y}),r.last_mod<=0&&(r.last_mod=y.mod)}),r.updateScroll(100),r.firestore.collection("events/"+r.event_id+"/sessions/"+r.session_id+"/chats",M=>M.where("mod",">",r.last_mod)).stateChanges().pipe((0,b.T)(M=>M.map(y=>{const A=y.payload.doc.data();return{_id:y.payload.doc.id,_action:y.type,...A}}))).subscribe(M=>{M.forEach(y=>{let A=!1;for(let U=0;U<r.messages.length;U++)r.messages[U]._id==y._id&&(r.messages[U]=y,A=!0,U=r.messages.length);A||(r.messages.push(y),r.updateScroll(100))})})})()}newMessageFocus(){}newMessageBlur(){}messageKeyEvent(r){r&&"Enter"===r.key&&this.submitMessage()}submitMessage(){var r=this;return(0,D.A)(function*(){if(!r.chat_submitting){r.chat_submitting=!0;let p={};if(p.message=r.chat_message.trim(),""!=p.message){p.date=Math.round(Date.now()/1e3),p.mod=Math.round(Date.now()/1e3);let f=yield r.session.getCurrentUser();p.author=f.nickname,p.author_id=r.user_id;let m=r.firestore.createId();r.messages.push(Object.assign({},{_id:m,status:"New",...p})),r.updateScroll(10),r.updateScroll(100),p.status="Sent",r.firestore.collection("events/"+r.event_id+"/sessions/"+r.session_id+"/chats").doc(m).set(p).then(M=>{typeof r.chat_session<"u"&&r.chat_session.unsaved?r.saveChatSessionInfo(r.chat_message,p.date):r.setLastChatMessage(r.chat_message,p.date),r.chat_submitting=!1,r.chat_message=""})}else r.common.showNotice("Please enter a message before sending!","warning")}})()}setLastChatMessage(r,p){var f=this;return(0,D.A)(function*(){let m={date:{}};m.date.modified=p,m.last_message=r,f.firestore.collection("events/"+f.event_id+"/sessions/").doc(f.session_id).update(m).then(M=>{f.chat_session.unsaved=!1})})()}saveChatSessionInfo(r,p){var f=this;return(0,D.A)(function*(){let m={};m.date=f.chat_session.date,m.members=f.chat_session.members,m.participants=f.chat_session.participants,m.date.modified=p,m.last_message=r,f.firestore.collection("events/"+f.event_id+"/sessions/").doc(f.session_id).set(m).then(M=>{f.chat_session.unsaved=!1})})()}viewChatOptions(r,p){var f=this;return(0,D.A)(function*(){let m=[];m.options=[{name:"Edit message",action:"edit"},{name:"Delete message",action:"delete"}],f.is_modirator&&m.options.push({name:"Author Info",action:"profile"});const M=yield f.popoverController.create({component:$.D,componentProps:{params:m},cssClass:"popover",translucent:!0,event:p});yield M.present();const{data:y}=yield M.onDidDismiss();if(y&&"edit"==y.action)f.edited_chat_id=r._id,f.edited_chat=r.message;else if(y&&"delete"==y.action){const A=yield f.alertController.create({header:"Delete chat message!",message:"Are you sure you want to delete this message?",buttons:[{text:"Cancel",role:"cancel"},{text:"Yes, Continue",role:"continue"}]});yield A.present();const{role:U}
1=yield A.onDidDismiss();if("continue"==U){let w=r._id,S={status:"Deleted"};S.mod=Math.round(Date.now()/1e3);let K=yield f.session.getCurrentUser();S.deletor=K.nickname,S.deletor_id=f.user_id,f.firestore.collection("events/"+f.event_id+"/sessions/"+f.session_id+"/chats").doc(w).update(S).then(J=>{r.status=S.status}).catch(J=>{})}}else if(y&&"profile"==y.action){p.stopPropagation();let A=[];A.event_id=f.event_id,A.user_id=r.author_id,A.nickname=r.author;const U=yield f.popoverController.create({component:P.k,componentProps:{params:A},cssClass:"popover-user-profile-summary",translucent:!0,event:p});yield U.present(),yield U.onDidDismiss()}})()}editChatCancel(){var r=this;return(0,D.A)(function*(){r.edited_chat_id="",r.edited_chat=""})()}editChatConfirm(r){var p=this;return(0,D.A)(function*(){let f=p.edited_chat.trim();if(""!=f){if(!p.chat_submitting){p.chat_submitting=!0;let m=r._id,M={};M.message=f,M.mod=Math.round(Date.now()/1e3);let y=yield p.session.getCurrentUser();M.editor=y.nickname,M.editor_id=p.user_id,p.firestore.collection("events/"+p.event_id+"/sessions/"+p.session_id+"/chats").doc(m).update(M).then(A=>{p.editChatCancel(),p.chat_submitting=!1}
1).catch(A=>{p.chat_submitting=!1}),p.chat_submitting=!1}}else p.common.showNotice("No answer provided!","warning","top")})()}static \u0275fac=function(p){return new(p||j)(c.rXU(t.Qe),c.rXU(F.Q),c.rXU(k.IE),c.rXU(k.hG),c.rXU(d.h))};static \u0275cmp=c.VBU({type:j,selectors:[["app-chatbox"]],viewQuery:function(p,f){if(1&p&&c.GBs(E,5),2&p){let m;c.mGM(m=c.lsd())&&(f.content=m.first)}},inputs:{event_id:"event_id",session_id:"session_id",chat_session:"chat_session"},features:[c.OA$],decls:12,vars:2,consts:[["scrollElement",""],[1,"chatbox"],[1,"content"],[1,"chat"],[4,"ngFor","ngForOf"],[1,"footer"],["lines","none",1,"comment-box"],["slot","start"],["src","assets/img/avatar.png"],["type","text","placeholder","Have a chat ....","autocapitalize","on","autocorrect","on","spellcheck","true","enterkeyhint","send",3,"ngModelChange","keypress","keyup.enter","ionBlur","ionFocus","ngModel"],["slot","end","name","send",3,"click"],[4,"ngIf"],[3,"ngClass"],[1,"chat-box"],[1,"chat-author"],["name","settings-outline","class","options",3,"click",4,"ngIf"],["style","text-align:right",4,"ngIf"],[1,"time"],["name","settings-outline",1,"options",3,"click"],[2,"text-align","right"],[2,"text-align","left",3,"ngModelChange","ngModel"],["size","xsmall","fill","outline",3,"click"]],template:function(p,f){if(1&p){const m=c.RV6();c.j41(0,"div",1)(1,"div",2)(2,"ion-content",null,0)(4,"ion-grid",3),c.DNE(5,B,2,1,"ng-container",4),c.k0s()()(),c.j41(6,"div",5)(7,"ion-item",6)(8,"ion-avatar",7),c.nrm(9,"ion-img",8),c.k0s(),c.j41(10,"ion-input",9),c.mxI("ngModelChange",function(y){return c.eBV(m),c.DH7(f.chat_message,y)||(f.chat_message=y),c.Njj(y)}),c.bIt("keypress",function(y){return c.eBV(m),c.Njj(f.messageKeyEvent(y))})("keyup.enter",function(){return c.eBV(m),c.Njj(f.submitMessage())})("ionBlur",function(){return c.eBV(m),c.Njj(f.newMessageBlur())})("ionFocus",function(){return c.eBV(m),c.Njj(f.newMessageFocus())}),c.k0s(),c.j41(11,"ion-icon",10),c.bIt("click",function(){return c.eBV(m),c.Njj(f.submitMessage())}),c.k0s()()()()}2&p&&(c.R7$(5),c.Y8G("ngForOf",f.messages),c.R7$(5),c.R50("ngModel",f.chat_message))},dependencies:[I.YU,I.Sq,I.bT,h.BC,h.vS,k.mC,k.Jm,k.hU,k.W9,k.lO,k.iq,k.KW,k.$w,k.uz,k.ln,k.nc,k.Gw,_.ZP,I.vh],styles:['@charset "UTF-8";ion-content[_ngcontent-%COMP%]{--background:var(--ion-background-color, #fff)}.chatbox[_ngcontent-%COMP%]{height:100%;display:flex;flex-direction:column}.chatbox[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{overflow-y:auto;flex:1 1 auto;padding:0}.chatbox[_ngcontent-%COMP%] .footer[_ngcontent-%COMP%]{flex:0 1 48px}.chat[_ngcontent-%COMP%] ion-col[_ngcontent-%COMP%]{padding:5px}.chat[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{text-align:left}.chat[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{text-align:right;position:relative}.chat[_ngcontent-%COMP%] .chat-box[_ngcontent-%COMP%]{display:inline-block;width:auto;padding:10px 18px;border-radius:5px;background-color:#f8f8f8;white-space:pre-wrap;box-shadow:0 0 2px #0000000f}.chat[_ngcontent-%COMP%] .chat-box[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{font-size:.625rem}.chat[_ngcontent-%COMP%] .chat-box[_ngcontent-%COMP%]:before{content:"\\a0";display:block;height:16px;width:9px;position:absolute;bottom:-2px}.chat[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] .chat-box[_ngcontent-%COMP%]:before{right:15px;background-color:#f8f8f8;-webkit-transform:rotate(118deg) skew(-5deg)}.chat[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] .chat-box[_ngcontent-%COMP%]{background-color:#f8f8f8}.chat[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] .chat-box[_ngcontent-%COMP%]:before{left:15px;background-color:var(--ion-color-light-tint);-webkit-transform:rotate(70deg) skew(5deg)}.chat[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] .time[_ngcontent-%COMP%]{float:right;padding-left:20px}.chat[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] .chat-box[_ngcontent-%COMP%]{background-color:var(--ion-color-light-tint)}.chat[_ngcontent-%COMP%] .chat-author[_ngcontent-%COMP%]{position:relative;padding-right:20px}.chat[_ngcontent-%COMP%] .chat-author[_ngcontent-%COMP%] .options[_ngcontent-%COMP%]{position:absolute;right:0;top:0;cursor:pointer}
1.comment-box[_ngcontent-%COMP%] ion-avatar[_ngcontent-%COMP%]{--min-height:30px;height:30px;--min-width:30px;width:30px}.comment-box[_ngcontent-%COMP%] ion-input[_ngcontent-%COMP%]{border-color:#cfcfcf!important;--padding-start:10px;--padding-top:4px;--padding-bottom:5px;min-height:30px}.comment-box[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{font-size:20px;cursor:pointer}']})}return j})()},23456:(z,V,o)=>{o.d(V,{D:()=>t});var D=o(73308),b=o(23279),d=o(77897),$=o(56610);function P(F,k){if(1&F&&b.nrm(0,"ion-icon",3),2&F){const I=b.XpG().$implicit;b.FS9("name",I.icon)}}function c(F,k){if(1&F){const I=b.RV6();b.j41(0,"ion-item",1),b.bIt("click",function(){const _=b.eBV(I).$implicit,E=b.XpG();return b.Njj(E.action(_.action))}),b.DNE(1,P,1,1,"ion-icon",2),b.j41(2,"ion-label"),b.EFF(3),b.k0s()()}if(2&F){const I=k.$implicit;b.Y8G("detail",I.show_detail),b.R7$(),b.Y8G("ngIf",I.icon),b.R7$(2),b.SpI(" ",I.name," ")}}let t=(()=>{class F{popoverController;params;options=[];constructor(I){this.popoverController=I}ngOnInit(){for(let I=0;I<this.params.options.length;I++)null==this.params.options[I].show_detail&&(this.params.options[I].show_detail=!0);this.options=this.params.options}ngOnDestroy(){}action(I){var h=this;return(0,D.A)(function*(){yield h.popoverController.dismiss({action:I})})()}dismissPopup(){var I=this;return(0,D.A)(function*(){yield I.popoverController.dismiss()})()}static \u0275fac=function(h){return new(h||F)(b.rXU(d.IE))};static \u0275cmp=b.VBU({type:F,selectors:[["generic-options"]],inputs:{params:"params"},decls:2,vars:1,consts:[["button","","lines","none",3,"detail","click",4,"ngFor","ngForOf"],["button","","lines","none",3,"click","detail"],["slot","start",3,"name",4,"ngIf"],["slot","start",3,"name"]],template:function(h,_){1&h&&(b.j41(0,"ion-list"),b.DNE(1,c,4,3,"ion-item",0),b.k0s()),2&h&&(b.R7$(),b.Y8G("ngForOf",_.options))},dependencies:[$.Sq,$.bT,d.iq,d.uz,d.he,d.nf],styles:["ion-icon[_ngcontent-%COMP%]{font-size:16px;margin-inline-end:10px}"]})}return F})()},80514:(z,V,o)=>{o.r(V),o.d(V,{EventPortalPageModule:()=>At});var D=o(56610),b=o(88832),d=o(77897),$=o(60564),P=o(73308),c=o(5060),t=o(23279),F=o(23700);let k=(()=>{class e{router;platform;session;api;constructor(n,s,i,l){this.router=n,this.platform=s,this.session=i,this.api=l}canLoad(){var n=this;return(0,P.A)(function*(){let s=yield n.session.getCurrentEvent(),i="";n.router.url.indexOf("/mobile/")>=0&&(i="/mobile/"+s.event_id);let l=yield n.api.getEventLookFeel(s.event_id,"menu_portal");if(l.menu&&l.menu.length>0){let a=i+l.menu[0].url;return a.toLowerCase().startsWith("https://")||a.toLowerCase().startsWith("http://")?window.location.href=a:n.router.navigateByUrl(a,{skipLocationChange:!0}),!1}return!0})()}static \u0275fac=function(s){return new(s||e)(t.KVO($.Ix),t.KVO(d.OD),t.KVO(F.Q),t.KVO(c.G))};static \u0275prov=t.jDH({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var I=o(67241),h=o(3871),_=o(27985);function E(e,g){1&e&&(t.j41(0,"ion-title"),t.EFF(1,"ADD NOTIFICATION"),t.k0s())}function v(e,g){1&e&&(t.j41(0,"ion-title"),t.EFF(1,"NOTIFICATION DETAILS"),t.k0s())}function x(e,g){if(1&e){const n=t.RV6();t.j41(0,"ion-button",15),t.bIt("click",function(){t.eBV(n);const i=t.XpG();return t.Njj(i.saveNotification())}),t.EFF(1,"Add notification"),t.k0s()}}function X(e,g){if(1&e){const n=t.RV6();t.j41(0,"ion-button",15),t.bIt("click",function(){t.eBV(n);const i=t.XpG();return t.Njj(i.saveNotification())}),t.EFF(1,"Save notification"),t.k0s()}}let O=(()=>{class e{modal;common;api;firestore;alertController;params;notification_id;notification={};event_id;active=!1;constructor(n,s,i,l,a){this.modal=n,this.common=s,this.api=i,this.firestore=l,this.alertController=a,this.notification.title="",this.notification.notice=""}ngOnInit(){this.event_id=this.params.event_id,this.notification.author=this.params.author,this.notification.author_id=this.params.author_id,typeof this.params.notification<"u"&&(this.notification=JSON.parse(JSON.stringify(this.params.notification)),this.notification_id=this.params.notification._id),"Active"==this.notification.status?this.active=!0:(this.active=!1,this.notification.status="Hidden")}changeActiveStatus(){var n=this;return(0,P.A)(function*(){n.notification.status=n.active?"Active":"Hidden"})()}savingNotification=!1;saveNotification(){var n=this;return(0,P.A)(function*(){if(null!=n.event_id&&typeof n.event_id<"u"){let s=JSON.parse(JSON.stringify(n.notification));if(""!=s.title&&""!=s.notice){const i=yield n.alertController.create({header:"Notification",message:"Are you sure you want to send out this notification!",buttons:[{text:"No, cancel",role:"cancel"},{text:"Yes, publish",role:"continue"}]});yield i.present();const{role:l}=yield i.onDidDismiss();if("continue"==l&&!n.savingNotification){n.savingNotification=!0;let a=n.notification_id;typeof a>"u"&&(a=n.firestore.createId()),s._id=a,console.log(n.notification),!0!==s.alert&&(s.alert=!1),!0!==s.popup&&(s.popup=!1),!0!==s.pinned&&(s.pinned=!1),typeof s.date>"u"&&(s.date={}),s.date.modified=Math.round(Date.now()/1e3),s.status="Active",n.firestore.collection("events/"+n.event_id+"/notifications/").doc(a).set(s).then(u=>{n.savingNotification=!1,n.common.showNotice("Notification saved and broadcasted!","success","top"),n.modal.dismiss(!0)})}}else n.common.showNotice("Notification requires atleast a title and wording for the notification!","warning","top")}})()}static \u0275fac=function(s){return new(s||e)(t.rXU(d.W3),t.rXU(h.h),t.rXU(c.G),t.rXU(_.Qe),t.rXU(d.hG))};static \u0275cmp=t.VBU({type:e,selectors:[["app-notification-add"]],inputs:{params:"params"},decls:47,vars:9,consts:[["slot","primary"],[3,"click"],[1,"icon","ki-duotone","ki-cross"],[1,"path1"],[1,"path2"],[4,"ngIf"],["size","12"],[1,"form_group"],[1,"danger"],["name","name","type","text","placeholder","Heading of notice","autocapitalize","words","min-length","3","required","",3,"ngModelChange","ngModel"],["name","about","rows","5","type","text","placeholder","Notification Wording",3,"ngModelChange","ngModel"],["lines","none","color","none"],["slot","start",1,"form-control",3,"ngModelChange","ngModel"],[1,"ion-text-right","ion-padding"],["color","primary",3,"click",4,"ngIf"],["color","primary",3,"click"]],template:function(s,i){1&s&&(t.j41(0,"ion-header")(1,"ion-toolbar")(2,"ion-buttons",0)(3,"ion-button",1),t.bIt("click",function(){return i.modal.dismiss()}),t.j41(4,"i",2),t.nrm(5,"span",3)(6,"span",4),t.k0s()()(),t.DNE(7,E,2,0,"ion-title",5)(8,v,2,0,"ion-title",5),t.k0s()(),t.j41(9,"ion-content")(10,"ion-grid")(11,"ion-row")(12,"ion-col",6)(13,"div",7)(14,"ion-label"),t.EFF(15,"Title"),t.j41(16,"span",8),t.EFF(17,"\xa0*"),t.k0s()(),t.j41(18,"ion-input",9),t.mxI("ngModelChange",function(a){return t.DH7(i.notification.title,a)||(i.notification.title=a),a}),t.k0s()()()(),t.j41(19,"ion-row")(20,"ion-col",6)(21,"div",7)(22,"ion-label"),t.EFF(23,"Notification"),t.j41(24,"span",8),t.EFF(25,"\xa0*"),t.k0s()(),t.j41(26,"ion-textarea",10),t.mxI("ngModelChange",function(a){return t.DH7(i.notification.notice,a)||(i.notification.notice=a),a}),t.k0s()()()(),t.j41(27,"ion-row")(28,"ion-col",6)(29,"div",7)(30,"ion-label"),t.EFF(31,"Visibility"),t.k0s(),t.j41(32,"ion-item",11)(33,"ion-checkbox",12),t.mxI("ngModelChange",function(a){return t.DH7(i.notification.alert,a)||(i.notification.alert=a),a}),t.k0s(),t.j41(34,"ion-label"),t.EFF(35,"Alert via audible alert"),t.k0s()(),t.j41(36,"ion-item",11)(37,"ion-checkbox",12),t.mxI("ngModelChange",function(a){return t.DH7(i.notification.popup,a)||(i.notification.popup=a),a}),t.k0s(),t.j41(38,"ion-label"),t.EFF(39,"Popup on receipt"),t.k0s()(),t.j41(40,"ion-item",11)(41,"ion-checkbox",12),t.mxI("ngModelChange",function(a){return t.DH7(i.notification.pinned,a)||(i.notification.pinned=a),a}),t.k0s(),t.j41(42,"ion-label"),t.EFF(43,"Pinned (Stays visible within notification area)"),t.k0s()()()()()()(),t.j41(44,"ion-footer",13),t.DNE(45,x,2,0,"ion-button",14)(46,X,2,0,"ion-button",14),t.k0s()),2&s&&(t.R7$(7),t.Y8G("ngIf",!i.notification_id),t.R7$(),t.Y8G("ngIf",i.notification_id),t.R7$(10),t.R50("ngModel",i.notification.title),t.R7$(8),t.R50("ngModel",i.notification.notice),t.R7$(7),t.R50("ngModel",i.notification.alert),t.R7$(4),t.R50("ngModel",i.notification.popup),t.R7$(4),t.R50("ngModel",i.notification.pinned),t.R7$(4),t.Y8G("ngIf",!i.notification_id),t.R7$(),t.Y8G("ngIf",i.notification_id))},dependencies:[D.bT,b.BC,b.YS,b.vS,d.Jm,d.QW,d.eY,d.hU,d.W9,d.M0,d.lO,d.eU,d.$w,d.uz,d.he,d.ln,d.nc,d.BC,d.ai,d.hB,d.Gw]})}return e})();var Y=o(76098),B=o(99733);function N(e,g){if(1&e&&t.nrm(0,"ion-img",9),2&e){const n=t.XpG();t.FCK("src","",n.params.banner,"?m=",n.params.mod,"")}}function j(e,g){if(1&e&&t.nrm(0,"app-vjs-player",10),2&e){const n=t.XpG();
1t.Y8G("options",n.video_feed_options)}}function G(e,g){if(1&e&&(t.j41(0,"h4"),t.EFF(1),t.k0s()),2&e){const n=t.XpG(2);t.R7$(),t.JRh(n.params.title)}}function r(e,g){if(1&e&&(t.j41(0,"p"),t.EFF(1),t.k0s()),2&e){const n=t.XpG(2);t.R7$(),t.JRh(n.params.content)}}function p(e,g){if(1&e){const n=t.RV6();t.j41(0,"ion-button",14),t.bIt("click",function(){t.eBV(n);const i=t.XpG(2);return t.Njj(i.dismiss())}),t.EFF(1),t.k0s()}if(2&e){const n=t.XpG(2);t.R7$(),t.JRh(n.params.call_to_action)}}function f(e,g){if(1&e&&(t.j41(0,"div",11),t.DNE(1,G,2,1,"h4",12)(2,r,2,1,"p",12)(3,p,2,1,"ion-button",13),t.k0s()),2&e){const n=t.XpG();t.R7$(),t.Y8G("ngIf",n.params.title&&""!=n.params.title),t.R7$(),t.Y8G("ngIf",n.params.content&&""!=n.params.content),t.R7$(),t.Y8G("ngIf",n.params.call_to_action&&""!=n.params.call_to_action)}}let m=(()=>{class e{modal;common;api;firestore;alertController;sanitizer;params;video_feed_options={};show_video_player=!1;has_content=!1;constructor(n,s,i,l,a,u){this.modal=n,this.common=s,this.api=i,this.firestore=l,this.alertController=a,this.sanitizer=u}ngOnInit(){(null!=this.params.title&&""!=this.params.title||null!=this.params.content&&""!=this.params.content||null!=this.params.call_to_action&&""!=this.params.call_to_action)&&(this.has_content=!0),this.params.video&&(this.video_feed_options={autoplay:!0,fluid:!0,controls:!0,muted:!1,liveui:!0,controlBar:{pictureInPictureToggle:!1},sources:[{src:this.params.video,type:"video/youtube"}]},this.show_video_player=!0)}dismiss(){this.modal.dismiss()}static \u0275fac=function(s){return new(s||e)(t.rXU(d.W3),t.rXU(h.h),t.rXU(c.G),t.rXU(_.Qe),t.rXU(d.hG),t.rXU(Y.up))};static \u0275cmp=t.VBU({type:e,selectors:[["welcome-message"]],inputs:{params:"params"},decls:9,vars:3,consts:[[1,"inner-content"],[3,"src",4,"ngIf"],[3,"options",4,"ngIf"],["class","mesage-box",4,"ngIf"],[1,"btn-dismiss"],["color","transparent",3,"click"],[1,"icon","ki-duotone","ki-cross"],[1,"path1"],[1,"path2"],[3,"src"],[3,"options"],[1,"mesage-box"],[4,"ngIf"],[3,"click",4,"ngIf"],[3,"click"]],template:function(s,i){1&s&&(t.j41(0,"div",0),t.DNE(1,N,1,3,"ion-img",1)(2,j,1,1,"app-vjs-player",2)(3,f,4,3,"div",3),t.j41(4,"div",4)(5,"ion-button",5),t.bIt("click",function(){return i.dismiss()}),t.j41(6,"i",6),t.nrm(7,"span",7)(8,"span",8),t.k0s()()()()),2&s&&(t.R7$(),t.Y8G("ngIf",i.params.banner&&""!=i.params.banner),t.R7$(),t.Y8G("ngIf",i.show_video_player),t.R7$(),t.Y8G("ngIf",i.has_content))},dependencies:[D.bT,d.Jm,d.KW,B.O],styles:[".inner-content[_ngcontent-%COMP%]{padding:0!important;position:relative}.mesage-box[_ngcontent-%COMP%]{text-align:center;padding:10px}.btn-dismiss[_ngcontent-%COMP%]{position:absolute;top:0;right:0}.btn-dismiss[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%]{--background-hover:var(--ion-color-primary)}.btn-dismiss[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%]::part(native){border-radius:50%;width:36px;height:36px}.btn-dismiss[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%]::part(native):hover{background-color:var(--ion-color-light)}.btn-dismiss[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{font-size:2rem;border-radius:50%;color:var(--ion-color-dark)}.btn-dismiss[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]:hover{color:var(--ion-color-primary)}"]})}return e})();var M=o(23456),y=o(56028),A=o(62022),U=o(53641),w=o(99406),S=o(93527),K=o(89818);let J=(()=>{class e{firestore;session;storage;initialized=!1;notifications=[];event={};event_id="";last_mod=0;reads={};notificationObservable;notificationSubscriber;constructor(n,s,i){this.firestore=n,this.session=s,this.storage=i}initialize(){var n=this;return(0,P.A)(function*(){if(n.event=yield n.session.getCurrentEvent(),n.event_id=n.event.event_id,""!=n.event_id){let s=yield n.storage.get("notifications");null!=s&&""!=s&&(n.reads=JSON.parse(s)),yield n.session.getFirebaseAuthUID(),n.initialized=!0,n.initNotifications()}})()}getNotifications(){return(typeof this.notificationObservable>"u"||null==this.notificationObservable)&&(this.notificationObservable=new w.c(n=>(this.notificationSubscriber=n,this.initialized?n.next(this.notifications):this.initialize(),{unsubscribe(){}}))),this.notificationObservable}initNotifications(){this.notifications=[],this.last_mod=0,this.firestore.collection("events/"+this.event_id+"/notifications",s=>s.where("date.modified",">",this.last_mod)).stateChanges().pipe((0,S.T)(s=>s.map(i=>{const l=i.payload.doc.data();return{_id:i.payload.doc.id,_action:i.type,...l}}))).subscribe(s=>
1{s.forEach(i=>{let l=!1;i.date.modified>this.last_mod&&(this.last_mod=i.date.modified),!0===this.reads[i._id]&&(i.read=!0);for(let u=0;u<this.notifications.length;u++)this.notifications[u]._id==i._id&&(this.notifications[u]=i,l=!0,u=this.notifications.length);l||this.notifications.push(i)}),typeof this.notificationSubscriber<"u"&&null!=this.notificationSubscriber&&this.notificationSubscriber.next(this.notifications)})}updateNotificationStatus(n,s){var i=this;return(0,P.A)(function*(){let l={};l.status=s,l.date={},l.date.modified=Math.round(Date.now()/1e3),i.firestore.collection("events/"+i.event_id+"/notifications/").doc(n).update(l).then(a=>{})})()}markAsRead(n){var s=this;return(0,P.A)(function*(){s.reads[n]=!0;let i=JSON.stringify(s.reads);s.storage.set("notifications",i)})()}static \u0275fac=function(s){return new(s||e)(t.KVO(_.Qe),t.KVO(F.Q),t.KVO(K.w))};static \u0275prov=t.jDH({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var H=o(40856),Q=o(80513),Z=o(2121);const q=e=>({event_id:e}),tt=e=>({"notice-pinned":e});function nt(e,g){1&e&&t.nrm(0,"ion-menu-button",27)}function et(e,g){if(1&e){const n=t.RV6();t.j41(0,"ion-button",28),t.bIt("click",function(){const i=t.eBV(n).$implicit,l=t.XpG();return t.Njj(l.goToPage(i))}),t.EFF(1),t.k0s()}if(2&e){const n=g.$implicit,s=t.XpG();t.AVh("active",s.isNavActive(n.url)),t.R7$(),t.JRh(n.title)}}function it(e,g){if(1&e&&(t.j41(0,"ion-buttons",8)(1,"ion-button",29),t.EFF(2),t.k0s(),t.EFF(3,"\xa0\xa0 "),t.j41(4,"ion-button",29),t.EFF(5),t.k0s()()),2&e){const n=t.XpG();t.R7$(2),t.SpI("Currently Live: ",n.live_stats_online,""),t.R7$(3),t.SpI("Total Visitors: ",n.live_stats_total,"")}}function ot(e,g){if(1&e&&(t.j41(0,"ion-badge",1),t.EFF(1),t.k0s()),2&e){const n=t.XpG(2);t.R7$(),t.JRh(n.notifications_unread)}}function st(e,g){if(1&e){const n=t.RV6();t.j41(0,"ion-button",30),t.bIt("click",function(i){t.eBV(n);const l=t.XpG();return t.Njj(l.toggleNotifications(i))}),t.DNE(1,ot,2,1,"ion-badge",31),t.nrm(2,"ion-icon",32),t.k0s()}if(2&e){const n=t.XpG();t.R7$(),t.Y8G("ngIf",n.notifications_unread>0)}}function at(e,g){if(1&e&&(t.qex(0),t.nrm(1,"ion-icon",38),t.j41(2,"ion-label"),t.EFF(3),t.k0s(),t.bVm()),2&e){const n=t.XpG(2).$implicit;t.R7$(),t.Y8G("name",n.icon),t.R7$(2),t.SpI(" ",n.title," ")}}function ct(e,g){if(1&e){const n=t.RV6();t.j41(0,"ion-menu-toggle",36)(1,"ion-item",37),t.bIt("click",function(){t.eBV(n);const i=t.XpG().$implicit,l=t.XpG();return t.Njj(l.goToPage(i))}),t.DNE(2,at,4,2,"ng-container",21),t.k0s()()}if(2&e){const n=t.XpG().$implicit,s=t.XpG();t.R7$(),t.AVh("active",s.isNavActive(n.url)),t.Y8G("ngClass",1!=s.show_full_menu?"minimized_menu_item":""),t.R7$(),t.Y8G("ngIf",s.show_full_menu)}}function rt(e,g){1&e&&t.nrm(0,"ion-icon",42)}function lt(e,g){1&e&&t.nrm(0,"ion-icon",43)}function dt(e,g){if(1&e){const n=t.RV6();t.j41(0,"ion-item",39),t.bIt("click",function(){t.eBV(n);const i=t.XpG().$implicit;return t.Njj(i.open=!i.open)}),t.nrm(1,"ion-icon",38),t.DNE(2,rt,1,0,"ion-icon",40)(3,lt,1,0,"ion-icon",41),t.j41(4,"ion-label"),t.EFF(5),t.k0s()()}if(2&e){const n=t.XpG().$implicit;t.AVh("active-parent",n.open),t.R7$(),t.Y8G("name",n.icon),t.R7$(),t.Y8G("ngIf",!n.open),t.R7$(),t.Y8G("ngIf",n.open),t.R7$(2),t.SpI(" ",n.title," ")}}function pt(e,g){if(1&e&&(t.j41(0,"ion-item",46),t.nrm(1,"ion-icon",38),t.j41(2,"ion-label"),t.EFF(3),t.k0s()()),2&e){const n=g.$implicit;t.Y8G("routerLink",n.url),t.R7$(),t.Y8G("name",n.icon),t.R7$(2),t.SpI(" ",n.title," ")}}function ht(e,g){if(1&e&&(t.j41(0,"ion-list",44)(1,"ion-menu-toggle",36),t.DNE(2,pt,4,3,"ion-item",45),t.k0s()()),2&e){const n=t.XpG().$implicit;t.R7$(2),t.Y8G("ngForOf",n.children)}}function ft(e,g){if(1&e&&(t.j41(0,"div"),t.DNE(1,ct,3,4,"ion-menu-toggle",33)(2,dt,6,6,"ion-item",34)(3,ht,3,1,"ion-list",35),t.k0s()),2&e){const n=g.$implicit;t.R7$(),t.Y8G("ngIf",n.url),t.R7$(),t.Y8G("ngIf",(null==n.children?null:n.children.length)>0),t.R7$(),t.Y8G("ngIf",n.open)}}function ut(e,g){1&e&&(t.qex(0),t.nrm(1,"ion-icon",47),t.j41(2,"ion-label"),t.EFF(3," Logout "),t.k0s(),t.bVm())}function gt(e,g){if(1&e){const n=t.RV6();t.j41(0,"ion-chip",54),t.bIt("click",function(){t.eBV(n);const i=t.XpG(2);return t.Njj(i.addNotification())}),t.EFF(1,"Add Notification"),t.k0s()}}function _t(e,g){if(1&e&&(t.j41(0,"ion-chip",55),t.EFF(1),t.k0s()),2&e){const n=t.XpG(2);t.R7$(),t.SpI("",n.notifications_unread," New")}}function mt(e,g){1&e&&(t.j41(0,"ion-chip",55),t.EFF(1,"New"),t.k0s())}function vt(e,g){if(1&e){const n=t.RV6();t.j41(0,"ion-checkbox",62),t.bIt("ionChange",function(){t.eBV(n);const i=t.XpG(2),l=i.$implicit,a=i.index,u=t.XpG(2);return t.Njj(u.notificationRead(l,a))}),t.k0s()}if(2&e){const n=t.XpG(2).$implicit;t.Y8G("checked",n.read)}}function Pt(e,g){if(1&e){const n=t.RV6();t.j41(0,"ion-icon",63),t.bIt("click",function(i){t.eBV(n);const l=t.XpG(2),a=l.$implicit,u=l.index,C=t.XpG(2);return t.Njj(C.viewNotificationOptions(a,u,i))}),t.k0s()}}function Ct(e,g){if(1&e&&(t.j41(0,"ion-item",57)(1,"ion-avatar",1)(2,"div",58),t.EFF(3),t.k0s()(),t.j41(4,"ion-label",59)(5,"h3")(6,"strong"),t.EFF(7),t.DNE(8,mt,2,0,"ion-chip",52),t.k0s()(),t.j41(9,"p")(10,"small"),t.EFF(11),t.k0s()(),t.j41(12,"p")(13,"small"),t.EFF(14),t.nI1(15,"date"),t.k0s()()(),t.DNE(16,vt,1,1,"ion-checkbox",60)(17,Pt,1,0,"ion-icon",61),t.k0s()),2&e){const n=t.XpG().$implicit,s=t.XpG(2);t.Y8G("ngClass",t.eq3(12,tt,n.pinned)),t.R7$(3),t.JRh(n.author_initial),t.R7$(4),t.JRh(n.title),t.R7$(),t.Y8G("ngIf",!n.read),t.R7$(3),t.JRh(n.notice),t.R7$(3),t.Lme("",t.i5U(15,9,1e3*n.date.modified,"d MMM h:mm a")," by ",n.author,""),t.R7$(2),t.Y8G("ngIf",!n.pinned&&!n.read),t.R7$(),t.Y8G("ngIf",s.live_stats_enabled)}}function bt(e,g){if(1&e&&(t.qex(0),t.DNE(1,Ct,18,14,"ion-item",56),t.bVm()),2&e){const n=g.$implicit;t.R7$(),t.Y8G("ngIf","Active"==n.status&&(!n.read||n.age<300||n.pinned))}}function Mt(e,g){if(1&e&&(t.j41(0,"div",48)(1,"div",49)(2,"div",50)(3,"h3")(4,"strong"),t.EFF(5,"Notifications"),t.k0s()(),t.DNE(6,gt,2,0,"ion-chip",51)(7,_t,2,1,"ion-chip",52),t.k0s(),t.j41(8,"div",53),t.DNE(9,bt,2,1,"ng-container",18),t.k0s()()()),2&e){const n=t.XpG();t.R7$(6),t.Y8G("ngIf",n.live_stats_enabled),t.R7$(),t.Y8G("ngIf",n.notifications_unread>0),t.R7$(2),t.Y8G("ngForOf",n.notifications)}}function xt(e,g){if(1&e){const n=t.RV6();t.j41(0,"ion-item",71),t.bIt("click",function(){const i=t.eBV(n).$implicit,l=t.XpG(3);return t.Njj(l.continueChatSession(i))}),t.j41(1,"ion-avatar",1)(2,"div",58),t.EFF(3),t.k0s()(),t.j41(4,"ion-label"),t.EFF(5),t.j41(6,"p"),t.EFF(7),t.k0s()()()}if(2&e){const n=g.$implicit;t.R7$(3),t.JRh(n.initial),t.R7$(2),t.SpI("",n.name," "),t.R7$(2),t.JRh(n.last_message)}}function Ot(e,g){if(1&e&&(t.j41(0,"div",67)(1,"div",68),t.EFF(2," Conversations "),t.k0s(),t.j41(3,"div",69)(4,"ion-list"),t.DNE(5,xt,8,3,"ion-item",70),t.k0s()()()),2&e){const n=t.XpG(2);t.R7$(5),t.Y8G("ngForOf",n.chat_sessions)}}function Et(e,g){if(1&e&&(t.j41(0,"p"),t.EFF(1),t.k0s()),2&e){const n=t.XpG(3);t.R7$(),t.SpI("",n.chat_session.designation,"\xa0")}}function yt(e,g){if(1&e){const n=t.RV6();t.j41(0,"div",49)(1,"div",68)(2,"ion-item",72)(3,"ion-icon",73),t.bIt("click",function(){t.eBV(n);const i=t.XpG(2);return t.Njj(i.backToConversations())}),t.k0s(),t.j41(4,"ion-avatar",1)(5,"div",58),t.EFF(6),t.k0s()(),t.j41(7,"ion-label"),t.EFF(8),t.DNE(9,Et,2,1,"p",21),t.k0s()()(),t.j41(10,"div",74),t.nrm(11,"app-ch
1atbox",75),t.k0s()()}if(2&e){const n=t.XpG(2);t.R7$(6),t.JRh(n.chat_session.initial),t.R7$(2),t.SpI(" ",n.chat_session.name," "),t.R7$(),t.Y8G("ngIf",n.chat_session.designation&&""!=n.chat_session.designation),t.R7$(2),t.Y8G("event_id",n.event_id)("session_id",n.chat_session._id)("chat_session",n.chat_session)}}function It(e,g){if(1&e&&(t.j41(0,"div",64),t.DNE(1,Ot,6,1,"div",65)(2,yt,12,6,"div",66),t.k0s()),2&e){const n=t.XpG();t.R7$(),t.Y8G("ngIf",!n.chat_session),t.R7$(),t.Y8G("ngIf",n.chat_session)}}function kt(e,g){1&e&&t.nrm(0,"ion-icon",79)}function Dt(e,g){1&e&&t.nrm(0,"ion-icon",80)}function jt(e,g){if(1&e){const n=t.RV6();t.j41(0,"ion-fab",76)(1,"ion-fab-button",13),t.bIt("click",function(){t.eBV(n);const i=t.XpG();return t.Njj(i.toggleChatVisibility())}),t.DNE(2,kt,1,0,"ion-icon",77)(3,Dt,1,0,"ion-icon",78),t.k0s()()}if(2&e){const n=t.XpG();t.R7$(2),t.Y8G("ngIf",!n.chat_visible),t.R7$(),t.Y8G("ngIf",n.chat_visible)}}const Rt=[{path:"",component:(()=>{class e{session;events;router;route;navCtrl;api;titleService;firebasedb;firestore;document;video;notices;modalController;popoverController;alertController;chat;basepath="";baseurl="";show_full_menu=!1;show_popup_menu=!1;show_notifications=!1;showMenuContacts=!1;pages=[];event={};event_id="";ticket_id=null;user_id;user_nickname="";user_email="";user_role="Attendee";user_avatar="";lookfeel={};notifications_visible=!1;notifications_unread=0;notifications=[];live_stats_enabled=!1;live_stats_online=0;live_stats_total=0;chat_enabled=!1;chat_visible=!1;chat_session;chat_sessions=[];subscription_auth_changes;constructor(n,s,i,l,a,u,C,T,W,R,L,Nt,Gt,$t,Ut,Xt){this.session=n,this.events=s,this.router=i,this.route=l,this.navCtrl=a,this.api=u,this.titleService=C,this.firebasedb=T,this.firestore=W,this.document=R,this.video=L,this.notices=Nt,this.modalController=Gt,this.popoverController=$t,this.alertController=Ut,this.chat=Xt,this.basepath=this.api.getBasepath(),this.subscription_auth_changes=s.subscribe("user:change",Bt=>{this.user_nickname=this.session.getCurrentUser().nickname,this.user_avatar=this.session.getCurrentUser().avatar+"?m="+this.session.getCurrentUser().last_mod})}onDocumentClick(n){this.session.registerUserInteraction()}ngOnInit(){var n=this;return(0,P.A)(function*(){yield n.session.getFirebaseAuthUID(),n.user_id=n.session.currentUserId(),n.user_nickname=n.session.getCurrentUser().nickname,n.user_avatar=n.session.getCurrentUser().avatar+"?m="+n.session.getCurrentUser().last_mod,n.event=yield n.session.getCurrentEvent(),n.titleService.setTitle(n.event.title),n.event_id=n.event.event_id,n.ticket_id=n.event.ticket_id,n.baseurl="",n.router.url.indexOf("/mobile/")>=0&&(n.baseurl="/mobile/"+n.event_id);try{n.lookfeel=yield n.api.getEventLookFeel(n.event_id,"menu_portal")}catch{}n.setEventCSS(),null!=n.event&&n.enableFeatures(n.event.features),n.showMenuContacts=null!=n.event&&null!=n.event.features&&null!=n.event.features.networking&&!0===n.event.features.networking,n.session.hasAccess("admin")||n.session.hasAccess("organiser")?(n.live_stats_enabled=!0,n.user_role=n.session.hasAccess("admin")?"Administrator":"Organiser"):n.session.hasAccess("speaker")?n.user_role="Speaker":n.session.hasAccess("moderator")&&(n.user_role="Moderator"),n.initPresence(),n.initNotifications(),n.initChatSessions(),n.loadWelcomeMessage()})()}ngOnDestroy(){this.subscription_auth_changes.unsubscribe()}toggleNotifications(n){if(this.show_notifications=!this.show_notifications,n.stopPropagation(),this.show_notifications)for(let s=0;s<this.notifications.length;s++)this.notifications[s].pinned&&(this.notifications[s].read=!0,this.notices.markAsRead(this.notifications[s]._id),this.sortNotifications())}togglePopupMenu(n){this.show_popup_menu=!this.show_popup_menu,n.stopPropagation()}pageClick(n){this.show_popup_menu&&(this.show_popup_menu=!1),this.show_notifications&&(this.show_notifications=!1)}timestamp(){return y.A.database?y.A.database.ServerValue.TIMESTAMP:Math.floor(Date.now()/1e3)}initNotifications(){var n=this;return(0,P.A)(function*(){n.notices.getNotifications().subscribe(i=>{i.forEach(l=>{l.author_initial=n.getInitials(l.author);let a=!1,u=0;for(let C=0;C<n.notifications.length;C++)if(n.notifications[C]._id==l._id){let T=n.notifications[C].read;n.notifications[C]=l,T&&(n.notifications[C].read=T),a=!0,u=C,C=n.notifications.length}if(a){let C=n.notifications.splice(u,1);n.notifications.unshift(C[0])}else n.notifications.unshift(l)}),n.notifications.length>0&&(n.sortNotifications(),n.notifications_visible=!0)})})()}sortNotifications(){var n=this;return(0,P.A)(function*(){n.notifications.sort((a,u)=>{let C=a.date.modified;"Timed"==a.status&&a.date.timed_start>0&&(C=a.date.timed_start);let T=u.date.modified;return"Timed"==u.status&&u.date.timed_start>0&&(T=u.date.timed_start),1==a.read&&(typeof u.read>"u"||0==u.read)?1:1==u.read&&(typeof a.read>"u"||0==a.read)||1==a.pinned&&(typeof u.pinned>"u"||0==u.pinned)?-1:1==u.pinned&&(typeof a.pinned>"u"||0==a.pinned)?1:C>T?-1:C<T?1:0});let s=!1,i=!1,l=0;for(let a=0;a<n.notifications.length;a++){let C=Math.round(Date.now()/1e3)-n.notifications[a].date.modified;n.notifications[a].age=C,!n.notifications[a].read&&"Active"==n.notifications[a].status&&(l+=1,n.notifications[a].alert&&(s=!0),n.notifications[a].popup&&C<120&&(n.showNotificationPopup(n.notifications[a]),l-=1,n.notifications[a].alert&&(i=!0)))}(n.notifications_unread<l&&s||i)&&new Audio("/assets/audio/notification.wav").play(),n.notifications_unread=l})()}showNotificationPopup(n){var s=this;return(0,P.A)(function*(){n.read=!0,s.notices.markAsRead(n._id);let i=!1,l=s.video.getVideoComponent();if(typeof l<"u"&&typeof l.instance<"u"&&typeof l.instance.player<"u"&&(i=l.instance.player.isFullscreen_),i){let u=document.createElement("div");u.classList.add("heading"),u.appendChild(document.createTextNode(n.title));let C=document.createElement("div");C.classList.add("content"),C.appendChild(document.createTextNode(n.notice));let T=document.createElement("div");T.classList.add("notification"),T.appendChild(u),T.appendChild(C);
1var a=l.instance.player.createModal(T,{pauseOnOpen:!1});a.addClass("video-notification"),setTimeout(()=>{a.close()},1e4)}else yield(yield s.alertController.create({header:"Notification",subHeader:n.title,message:n.notice,buttons:["OK"],cssClass:"notification-alert"})).present()})()}goToPage(n){var s=this;return(0,P.A)(function*(){"url"==n.type?window.open(n.url,"_blank"):s.navCtrl.navigateRoot(n.url)})()}isNavActive(n){return this.router.url===n}addNotification(n){var s=this;return(0,P.A)(function*(){const i={};i.event_id=s.event_id,i.author=s.user_nickname,i.author_id=s.user_id,typeof n<"u"&&(i.notification=n);const l=yield s.modalController.create({component:O,componentProps:{params:i}});yield l.present(),l.onDidDismiss().then(function(){var a=(0,P.A)(function*(u){});return function(u){return a.apply(this,arguments)}}())})()}viewNotificationOptions(n,s,i){var l=this;return(0,P.A)(function*(){i.stopPropagation();let a=[];a.options=[{name:"Edit",action:"edit"},{name:"Delete",action:"delete"}];const u=yield l.popoverController.create({component:M.D,componentProps:{params:a},cssClass:"popover",translucent:!0,event:i});yield u.present();const{data:C}=yield u.onDidDismiss();if(C&&"edit"==C.action)l.addNotification(n);else if(C&&"delete"==C.action){const T=yield l.alertController.create({header:"Remove notification!",message:"Are you sure you want to remove this notification?",buttons:[{text:"Cancel",role:"cancel"},{text:"Yes, Continue",role:"continue"}]});yield T.present();const{role:W}=yield T.onDidDismiss();"continue"==W&&l.notices.updateNotificationStatus(n._id,"Hidden")}})()}notificationRead(n,s){var i=this;return(0,P.A)(function*(){i.notifications[s].read=!0,i.notices.markAsRead(i.notifications[s]._id),i.sortNotifications()})()}getInitials(n){typeof n>"u"&&(n="");let s="",i=n.split(" "),l=i.length;l>2&&(l=2);for(let a=0;a<l;a++)s+=i[a].substring(0,1);return s.toUpperCase()}initPresence(){var n=this;return(0,P.A)(function*(){let s=n.firebasedb.database.ref("event/"+n.event_id+"/users/"),i=s.child(n.user_id),l=n.firebasedb.database.ref("event/"+n.event_id+"/online/"),a=l.child(n.user_id);n.live_stats_enabled&&(l.on("value",T=>{n.live_stats_online=T.numChildren()}),s.on("value",T=>{n.live_stats_total=T.numChildren()}));var u=n;n.firebasedb.database.ref(".info/connected").on("value",function(){var T=(0,P.A)(function*(W){if(W.val()){a.onDisconnect().remove(),a.set(u.session.currentUserNickname());let R=yield(yield i.get()).val();null!=R&&R.time_connected>0?(isNaN(R.connections)&&(R.connections=1),i.update({nickname:n.user_nickname,status:"Online",connections:R.connections+1})):i.update({time_connected:u.timestamp(),nickname:n.user_nickname,status:"Online",connections:1}),i.onDisconnect().update({time_disconnect:u.timestamp(),status:"Offline"})}});return function(W){return T.apply(this,arguments)}}())})()}toggleMenuVisibility(){this.show_full_menu=!this.show_full_menu}enableFeatures(n){var s=this;return(0,P.A)(function*(){let i=0;if(typeof s.lookfeel.menu<"u"&&null!=s.lookfeel.menu)for(let l in s.lookfeel.menu){let a=s.lookfeel.menu[l];if((n[a.type]||"location"==a.type||"url"==a.type||"floorplan"==a.type||"participants"==a.type&&(""==a.classification||n[a.classification]))&&null!=a.active&&1==a.active){i+=1;let u=s.baseurl+a.url;"content"==a.type&&(u+="/"+a.slug),"participants"==a.type&&""!=a.classification&&(u+="/"+a.classification),s.pages.push({title:a.title,icon:a.icon,url:u,type:a.type})}}else typeof n<"u"&&(n.lobby&&(i+=1,s.pages.push({title:"Lobby",icon:"walk-outline",url:"/portal/lobby"})),n.agenda&&(i+=1,s.pages.push({title:"Schedule",icon:"calendar-outline",url:"/portal/schedule"})),n.speakers&&(i+=1,s.pages.push({title:"Speakers",icon:"people-outline",url:"/portal/speakers"})),n.sponsors&&(i+=1,s.pages.push({title:"Sponsors",icon:"people-outline",url:"/portal/sponsors"})),n.downloads&&(i+=1,s.pages.push({title:"Downloads",icon:"download-outline",url:"/portal/downloads"})),n.networking&&(i+=1,s.pages.push({title:"Networking",icon:"calendar-outline",url:"/portal/networking"})),n.faq&&(i+=1,s.pages.push({title:"FAQ",icon:"help-circle",url:"/portal/faq"})),n.contests&&(i+=1,s.pages.push({title:"Scoreboard",icon:"trophy-outline",url:"/portal/scoreboard"})),n.exhibitors&&s.checkExhibitors());i>=2&&(s.show_full_menu=!0)})()}setEventCSS(){var n=this;return(0,P.A)(function*(){const s=n.document.getElementsByTagName("head")[0];let i=n.document.getElementById("client-theme");if(i)i.href=n.api.getBasepath()+"css?eid="+n.event_id;else{const l=n.document.createElement("link");l.id="client-theme",l.rel="stylesheet",l.href=n.api.getBasepath()+"css?eid="+n.event_id,s.appendChild(l)}})()}logout(){var n=this;return(0,P.A)(function*(){n.video.stopVideoPlayback(),yield n.session.unsetCurrentUser().then(()=>{n.events.publish("user:logout"),!(n.router.url.indexOf("/mobile/")>=0)&&(typeof n.ticket_id<"u"?n.router.navigate(["/webinar/"+n.event_id+"/"+n.ticket_id],{replaceUrl:!0}).then(()=>{window.location.reload()}):n.router.navigate(["/webinar/"+n.event_id],{replaceUrl:!0}).then(()=>{window.location.reload()}))})})()}initChatSessions(){var n=this;return(0,P.A)(function*(){if(n.router.url.indexOf("/mobile/")>=0)return;let s=!0;
1n.chat.getChatSessions(n.user_id).subscribe(l=>{l.forEach(a=>{let u=!1,C=0;for(let R=0;R<n.chat_sessions.length;R++)if(n.chat_sessions[R]._id==a._id){let L=n.chat_sessions[R].read;n.chat_sessions[R]=a,L&&(n.chat_sessions[R].read=L),u=!0,C=R,R=n.chat_sessions.length}if(a.members.forEach(R=>{R.user_id!=n.user_id&&(a.name=R.name,a.designation=R.designation,a.initial=n.getInitials(R.name))}),u){let R=n.chat_sessions.splice(C,1);n.chat_sessions.unshift(R[0]),!s&&!n.chat_visible&&"modified"==a._action&&(n.chat_visible=!0,n.chat_session=R[0])}else n.chat_sessions.unshift(a),s||(n.chat_visible=!0,n.chat_session=a)}),s=!1,n.chat_sessions.length>0&&(n.chat_enabled=!0)})})()}loadWelcomeMessage(){var n=this;return(0,P.A)(function*(){if(!0===n.event.show_welcome)try{let s=yield n.api.getEventWelcomeMessage(n.event_id);if("success"==s.status){const i=s.welcome;i.mod=s.mod,yield(yield n.modalController.create({component:m,cssClass:"minimal",componentProps:{params:i}})).present()}}catch{}})()}checkExhibitors(){var n=this;return(0,P.A)(function*(){if(null!=n.event)try{let s=yield n.api.getEventExhibitors(n.event_id);"success"==s.status&&s.exhibitors&&s.exhibitors.length>0&&n.pages.push({title:"Exhibitors",icon:"people-outline",url:"/portal/exhibitors"})}catch{}})()}toggleChatVisibility(){this.chat_visible=!this.chat_visible,this.chat_visible||this.backToConversations()}continueChatSession(n){this.chat_session=n}backToConversations(){this.chat_session=void 0}static \u0275fac=function(s){return new(s||e)(t.rXU(F.Q),t.rXU(A.s),t.rXU($.Ix),t.rXU($.nX),t.rXU(d.q9),t.rXU(c.G),t.rXU(Y.hE),t.rXU(U.w$),t.rXU(_.Qe),t.rXU(D.qQ),t.rXU(I.r),t.rXU(J),t.rXU(d.W3),t.rXU(d.IE),t.rXU(d.hG),t.rXU(H.m))};static \u0275cmp=t.VBU({type:e,selectors:[["app-event-portal"]],hostBindings:function(s,i){1&s&&t.bIt("click",function(a){return i.onDocumentClick(a)})},decls:35,vars:26,consts:[[1,"ion-no-border",3,"click"],["slot","start"],["color","menu","menu","event-portal-menu","class","tablet","autoHide","false",4,"ngIf"],[1,"logo","desktop",3,"src"],["class","desktop","size","default","fill","clear","color","menu",3,"active","click",4,"ngFor","ngForOf"],[1,"mobile"],[3,"src"],["slot","end","class","end-buttons tablet_desktop",4,"ngIf"],["slot","end",1,"end-buttons","tablet_desktop"],["color","menu","class","btn-notifications",3,"click",4,"ngIf"],["color","medium",3,"click"],["name","chevron-down-outline"],["slot","end",1,"end-buttons","mobile"],[3,"click"],["side","start","menuId","event-portal-menu","contentId","event-portal-menu","type","overlay",1,"tablet",3,"ngClass"],[1,"mobile-menu-content"],[1,"menu-cover"],[1,"mobile-menu"],[4,"ngFor","ngForOf"],[2,"position","absolute","bottom","0px","left","0px","right","0px"],["button","","lines","none",3,"click"],[4,"ngIf"],["id","event-portal-menu"],[3,"showPopupMenuChange","showMenuContacts","showPopupMenu","params"],["class","popup-notifications",4,"ngIf"],["class","popup-chat",4,"ngIf"],["slot","fixed","vertical","bottom","horizontal","start","class","global-chat",4,"ngIf"],["color","menu","menu","event-portal-menu","autoHide","false",1,"tablet"],["size","default","fill","clear","color","menu",1,"desktop",3,"click"],["size","xsmall","fill","outline","color","menu"],["color","menu",1,"btn-notifications",3,"click"],["slot","start",4,"ngIf"],["name","notifications-outline","slot","icon-only"],["auto-hide","false",4,"ngIf"],["button","","detail","false","lines","none",3,"active-parent","click",4,"ngIf"],["color","transparent",4,"ngIf"],["auto-hide","false"],["lines","none",3,"click","ngClass"],["slot","start",3,"name"],["button","","detail","false","lines","none",3,"click"],["name","chevron-forward-sharp","slot","end",4,"ngIf"],["name","chevron-down-sharp","slot","end",4,"ngIf"],["name","chevron-forward-sharp","slot","end"],["name","chevron-down-sharp","slot","end"],["color","transparent"],["class","sub-item","routerDirection","root","routerLinkActive","active","lines","none","color","transparent",3,"routerLink",4,"ngFor","ngForOf"],["routerDirection","root","routerLinkActive","active","lines","none","color","transparent",1,"sub-item",3,"routerLink"],["name","power-sharp","slot","start"],[1,"popup-notifications"],[1,"panel"],[1,"title"],["color","menu","class","chipbutton",3,"click",4,"ngIf"],["color","success",4,"ngIf"],[1,"content"],["color","menu",1,"chipbutton",3,"click"],["color","success"],["lines","full","class","notice",3,"ngClass",4,"ngIf"],["lines","full",1,"notice",3,"ngClass"],[1,"avatar_alternative"],[1,"ion-text-wrap"],[3,"checked","ionChange",4,"ngIf"],["name","settings-outline","class","options",3,"click",4,"ngIf"],[3,"ionChange","checked"],["name","settings-outline",1,"options",3,"click"],[1,"popup-chat"],["class","panel dashboard",4,"ngIf"],["class","panel",4,"ngIf"],[1,"panel","dashboard"],[1,"header"],[1,"conversations"],["lines","none","detail","true","button","",3,"click",4,"ngFor","ngForOf"],["lines","none","detail","true","button","",3,"click"],["lines","none"],["name","chevron-back-sharp","slot","start",1,"back-button",3,"click"],[1,"chatbox"],[3,"event_id","session_id","chat_session"],["slot","fixed","vertical","bottom","horizontal","start",1,"global-chat"],["name","chatbubbles-sharp",4,"ngIf"],["name","close-sharp",4,"ngIf"],["name","chatbubbles-sharp"],["name","close-sharp"]],template:function(s,i){1&s&&(t.j41(0,"ion-header",0),t.bIt("click",function(a){return i.pageClick(a)}),t.j41(1,"ion-toolbar")(2,"ion-buttons",1),t.DNE(3,nt,1,0,"ion-menu-button",2),t.nrm(4,"img",3),t.DNE(5,et,2,3,"ion-button",4),t.k0s(),t.j41(6,"ion-title",5),t.nrm(7,"img",6),t.k0s(),t.DNE(8,it,6,2,"ion-buttons",7),t.j41(9,"ion-buttons",8),t.DNE(10,st,3,1,"ion-button",9),t.j41(11,"ion-chip",10),t.bIt("click",function(a){return i.togglePopupMenu(a)}),t.j41(12,"ion-avatar"),t.nrm(13,"img",6),t.k0s(),t.j41(14,"ion-label"),t.EFF(15),t.k0s(),t.nrm(16,"i
1on-icon",11),t.k0s()(),t.j41(17,"ion-buttons",12)(18,"ion-avatar",13),t.bIt("click",function(a){return i.togglePopupMenu(a)}),t.nrm(19,"img",6),t.k0s()()()(),t.j41(20,"ion-content",13),t.bIt("click",function(a){return i.pageClick(a)}),t.j41(21,"ion-menu",14)(22,"ion-content",15)(23,"div",16)(24,"div",17),t.DNE(25,ft,4,3,"div",18),t.j41(26,"div",19)(27,"ion-item",20),t.bIt("click",function(){return i.logout()}),t.DNE(28,ut,4,0,"ng-container",21),t.k0s()()()()()(),t.j41(29,"ion-content"),t.nrm(30,"ion-router-outlet",22),t.k0s()(),t.j41(31,"app-user-menu",23),t.mxI("showPopupMenuChange",function(a){return t.DH7(i.show_popup_menu,a)||(i.show_popup_menu=a),a}),t.k0s(),t.DNE(32,Mt,10,3,"div",24)(33,It,3,2,"div",25)(34,jt,4,2,"ion-fab",26)),2&s&&(t.R7$(3),t.Y8G("ngIf",i.show_full_menu),t.R7$(),t.yjJ("src","",i.basepath,"logo?eid=",i.event_id,"&m=",i.event.last_mod,"",t.B4B),t.R7$(),t.Y8G("ngForOf",i.pages),t.R7$(2),t.yjJ("src","",i.basepath,"logo?eid=",i.event_id,"&m=",i.event.last_mod,"",t.B4B),t.R7$(),t.Y8G("ngIf",i.live_stats_enabled),t.R7$(2),t.Y8G("ngIf",i.notifications_visible||i.live_stats_enabled),t.R7$(3),t.FS9("src",i.user_avatar,t.B4B),t.R7$(2),t.SpI("Hi, ",i.user_nickname,""),t.R7$(4),t.FS9("src",i.user_avatar,t.B4B),t.R7$(2),t.Y8G("ngClass",1!=i.show_full_menu?"minimized":""),t.R7$(4),t.Y8G("ngForOf",i.pages),t.R7$(3),t.Y8G("ngIf",i.show_full_menu),t.R7$(3),t.Y8G("showMenuContacts",i.showMenuContacts),t.R50("showPopupMenu",i.show_popup_menu),t.Y8G("params",t.eq3(24,q,i.event_id)),t.R7$(),t.Y8G("ngIf",i.show_notifications),t.R7$(),t.Y8G("ngIf",i.chat_enabled&&i.event_id&&i.chat_visible),t.R7$(),t.Y8G("ngIf",i.chat_enabled))},dependencies:[D.YU,D.Sq,D.bT,d.mC,d.In,d.Jm,d.QW,d.eY,d.ZB,d.W9,d.Q8,d.YW,d.eU,d.iq,d.uz,d.he,d.nf,d.oS,d.MC,d.cA,d.BC,d.ai,d.hB,d.Rg,d.N7,Q.p,Z.e,$.Wk,$.wQ,D.vh],styles:[".split-pane-visible[_ngcontent-%COMP%] > ion-menu[_ngcontent-%COMP%]{max-width:200px!important;
1--side-min-width:200px}.split-pane-visible[_ngcontent-%COMP%] > ion-menu.minimized[_ngcontent-%COMP%]{max-width:70px!important;--side-min-width:70px}ion-item[_ngcontent-%COMP%]{--inner-padding-end:16px}ion-content.mobile-menu-content[_ngcontent-%COMP%]{--background: url(menubg.5d9207510d3924ed.svg) -50px 0px/cover no-repeat}ion-content.mobile-menu-content[_ngcontent-%COMP%] ion-item[_ngcontent-%COMP%]{--background:rgba(0, 0, 0, 0);--color:#1D2939;font-size:12px}ion-content.mobile-menu-content[_ngcontent-%COMP%] ion-item[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%]{opacity:.62;font-size:13px;font-weight:600;font-family:var(ion-font-family)}ion-content.mobile-menu-content[_ngcontent-%COMP%] ion-item[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{font-size:16px;--ion-text-color-rgb:#1D2939;opacity:.62;margin-inline-end:16px}ion-content.mobile-menu-content[_ngcontent-%COMP%] ion-item.sub-item[_ngcontent-%COMP%]{border-color:#0000;background-color:#0000;font-size:small;--background:#181a1d;--color: #94989d}ion-content.mobile-menu-content[_ngcontent-%COMP%] ion-item.sub-item[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{margin-inline-start:20px}ion-content.mobile-menu-content[_ngcontent-%COMP%] ion-list[_ngcontent-%COMP%]{background-color:#181a1d;padding-top:0;padding-bottom:0}ion-content.mobile-menu-content[_ngcontent-%COMP%] ion-item.active[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%]{--color:#1D2939;opacity:1}ion-content.mobile-menu-content[_ngcontent-%COMP%] ion-item.active[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{--color:#1D2939;opacity:1}ion-content.mobile-menu-content[_ngcontent-%COMP%] .active-parent[_ngcontent-%COMP%]{font-weight:500;opacity:1;--background:#00ADEF !important}ion-content.mobile-menu-content[_ngcontent-%COMP%] .active-parent[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%]{opacity:1}ion-content.mobile-menu-content[_ngcontent-%COMP%] .active-parent[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{opacity:1}ion-toolbar[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{margin-top:10px;margin-bottom:10px;margin-right:24px;height:44px;float:left}ion-toolbar[_ngcontent-%COMP%] ion-title[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{color:#1d2939;font-size:20px;letter-spacing:-.5px;margin:0;padding-top:7px;padding-bottom:3px;font-weight:600}ion-toolbar[_ngcontent-%COMP%] ion-title[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}ion-toolbar[_ngcontent-%COMP%] ion-title[_ngcontent-%COMP%] ion-button.tablet_desktop[_ngcontent-%COMP%]{margin-top:10px}ion-toolbar[_ngcontent-%COMP%] ion-title.mobile[_ngcontent-%COMP%]{text-align:center}ion-toolbar[_ngcontent-%COMP%] ion-title.mobile[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:44px}.minimizer-buttons[_ngcontent-%COMP%]{text-align:right;padding-top:16px;padding-right:16px}.end-buttons[_ngcontent-%COMP%]{margin-right:10px}@media screen and (max-width: 576px){.end-buttons[_ngcontent-%COMP%]{padding-right:10px}}ion-header[_ngcontent-%COMP%]{box-shadow:0 0 8px #00000026}.popup-menu[_ngcontent-%COMP%]{position:fixed;top:55px;right:20px;z-index:1000;min-width:275px}.popup-menu[_ngcontent-%COMP%] ion-thumbnail[_ngcontent-%COMP%]{margin-right:20px}.popup-menu[_ngcontent-%COMP%] ion-thumbnail[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{border-radius:12px;border:1px solid rgba(47,48,51,.12);box-shadow:0 2px 4px #00000014}.popup-menu[_ngcontent-%COMP%] .buttons[_ngcontent-%COMP%]{padding-top:10px;padding-left:10px;padding-right:10px}.popup-menu[_ngcontent-%COMP%] .buttons[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%]{--border-radius: 10px;--padding-start: 10px;--padding-end: 10px}.popup-menu[_ngcontent-%COMP%] .buttons[_ngcontent-%COMP%] .ion-text-left[_ngcontent-%COMP%]{font-size:12px;font-weight:500;margin-right:auto}.popup-notifications[_ngcontent-%COMP%]{position:fixed;top:55px;right:200px;z-index:1001;min-width:275px;border-radius:6px;box-shadow:0 5px 40px #00000029;opacity:1;will-change:transform,opacity;transform:translateY(0);overflow:hidden!important;position:fixed!important;transition:opacity .2s linear,transform .25s linear}.popup-notifications[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{height:40px;padding:10px;border-bottom:1px solid rgba(47,48,51,.12)}.popup-notifications[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:inline-block}.popup-notifications[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] ion-chip[_ngcontent-%COMP%]{cursor:default;float:right;padding-top:2px;padding-bottom:2px;font-size:10px;height:20px;margin-top:0}.popup-notifications[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .chipbutton[_ngcontent-%COMP%]{cursor:pointer}.popup-notifications[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{max-width:400px;padding-bottom:0}.popup-notifications[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] ion-item[_ngcontent-%COMP%]:last-child::part(native){border:0px;border-bottom-left-radius:6px;border-bottom-right-radius:6px}.popup-notifications[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{line-height:normal}.popup-notifications[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] ion-chip[_ngcontent-%COMP%]{cursor:default;padding-top:2px;padding-bottom:2px;font-size:10px;height:20px;margin-top:0}.btn-notifications[_ngcontent-%COMP%] ion-badge[_ngcontent-%COMP%]{position:absolute;right:-6px;top:-5px;box-shadow:0 0 #ff5252;transform:scale(1);animation:_ngcontent-%COMP%_load 2s ease-out infinite}@keyframes _ngcontent-%COMP%_load{0%{transform:scale(.95);box-shadow:0 0 #ff5252b3}70%{transform:scale(1);box-shadow:0 0 0 10px #ff525200}to{transform:scale(.95);box-shadow:0 0 #ff525200}}.btn-notifications[_ngcontent-%COMP%]::part(native){overflow:visible}.avatar_alternative[_ngcontent-%COMP%]{background-color:var(--ion-color-light-tint);width:40px;height:40px;border-radius:20px;line-height:40px;text-align:center}.notice[_ngcontent-%COMP%]{position:relative}.notice[_ngcontent-%COMP%] .options[_ngcontent-%COMP%]{position:absolute;top:10px;right:10px;cursor:pointer;z-index:10}.notice-pinned[_ngcontent-%COMP%]{--ion-background-color: #fffbe5}
1.global-chat[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{font-size:28px}.popup-chat[_ngcontent-%COMP%]{position:fixed;bottom:76px;left:calc(10px + var(--ion-safe-area-left, 0px));z-index:2147483000!important;background-color:#fff;height:calc(85% - 84px);max-height:590px!important;min-height:250px!important;width:400px!important;border-radius:16px;box-shadow:0 5px 40px #00000029;opacity:1;will-change:transform,opacity;transform:translateY(0);overflow:hidden!important;position:fixed!important;transition:opacity .2s linear,transform .25s linear}.popup-chat[_ngcontent-%COMP%] .dashboard[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{padding-top:25px;text-align:center;width:100%;font-size:1.5rem;font-weight:700;color:var(--ion-color-primary)}.popup-chat[_ngcontent-%COMP%] .conversations[_ngcontent-%COMP%]{padding:10px;height:calc(100% - 74px);background-color:#f1f5f8}.popup-chat[_ngcontent-%COMP%] .conversations[_ngcontent-%COMP%] ion-list[_ngcontent-%COMP%]{border-radius:6px}.popup-chat[_ngcontent-%COMP%] .panel[_ngcontent-%COMP%]{height:100%;width:100%}.popup-chat[_ngcontent-%COMP%] .chatbox[_ngcontent-%COMP%]{height:calc(100% - 74px);width:100%;--ion-background-color: #f1f5f8}.popup-chat[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{height:74px}.popup-chat[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .back-button[_ngcontent-%COMP%]{font-size:24px;cursor:pointer}.mobile-menu[_ngcontent-%COMP%]{padding:16px}.mobile-menu[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{font-size:24px;--ion-text-color-rgb:#1D2939}ion-buttons.mobile[_ngcontent-%COMP%] ion-avatar[_ngcontent-%COMP%]{height:25px;width:25px}"]})}return e})(),children:[{path:"",loadChildren:()=>Promise.all([o.e(5137),o.e(925)]).then(o.bind(o,60925)).then(e=>e.EventPortalAgendaPageModule),pathMatch:"full",canLoad:[k]},{path:"",redirectTo:"agenda",pathMatch:"full"},{path:"menu",loadChildren:()=>o.e(4350).then(o.bind(o,84350)).then(e=>e.EventPortalTilemenuPageModule)},{path:"overview",loadChildren:()=>o.e(3981).then(o.bind(o,93981)).then(e=>e.EventPortalDashboardPageModule)},{path:"agenda",loadChildren:()=>Promise.all([o.e(5137),o.e(925)]).then(o.bind(o,60925)).then(e=>e.EventPortalAgendaPageModule)},{path:"agenda/:session_id",loadChildren:()=>Promise.all([o.e(5137),o.e(925)]).then(o.bind(o,60925)).then(e=>e.EventPortalAgendaPageModule)},{path:"schedule",loadChildren:()=>Promise.all([o.e(5137),o.e(925)]).then(o.bind(o,60925)).then(e=>e.EventPortalAgendaPageModule)},{path:"schedule/:session_id",loadChildren:()=>Promise.all([o.e(5137),o.e(925)]).then(o.bind(o,60925)).then(e=>e.EventPortalAgendaPageModule)},{path:"speakers",loadChildren:()=>o.e(674).then(o.bind(o,30674)).then(e=>e.EventPortalSpeakersPageModule)},{path:"speakers/:speaker_id",loadChildren:()=>o.e(674).then(o.bind(o,30674)).then(e=>e.EventPortalSpeakersPageModule)},{path:"downloads",loadChildren:()=>o.e(1179).then(o.bind(o,11179)).then(e=>e.EventPortalDownloadsPageModule)},{path:"downloads/:download_id",loadChildren:()=>o.e(1179).then(o.bind(o,11179)).then(e=>e.EventPortalDownloadsPageModule)},{path:"networking",loadChildren:()=>Promise.all([o.e(1959),o.e(5373),o.e(4623),o.e(3741),o.e(7955),o.e(1499),o.e(7188)]).then(o.bind(o,27188)).then(e=>e.EventPortalNetworkingPageModule)},{path:"my-schedule",loadChildren:()=>Promise.all([o.e(1959),o.e(5373),o.e(3741),o.e(9182)]).then(o.bind(o,59182)).then(e=>e.EventPortalMySchedulePageModule)},{path:"faq",loadChildren:()=>o.e(9305).then(o.bind(o,49305)).then(e=>e.EventPortalFaqPageModule)},{path:"sponsors",loadChildren:()=>o.e(1468).then(o.bind(o,1468)).then(e=>e.EventPortalSponsorsPageModule)},{path:"venues",loadChildren:()=>o.e(1467).then(o.bind(o,1467)).then(e=>e.EventPortalLocationVenuesPageModule)},{path:"scoreboard/:location_id",loadChildren:()=>o.e(8186).then(o.bind(o,38186)).then(e=>e.ScoreboardPageModule)},{path:"scoreboard",loadChildren:()=>o.e(8186).then(o.bind(o,38186)).then(e=>e.ScoreboardPageModule)},{path:"lobby",loadChildren:()=>o.e(4101).then(o.bind(o,64101)).then(e=>e.EventPortalLobbyPageModule)},{path:"c/:slug",loadChildren:()=>o.e(2565).then(o.bind(o,22565)).then(e=>e.EventPortalContentPageModule)},{path:"my-contacts",loadChildren:()=>o.e(7414).then(o.bind(o,47414)).then(e=>e.EventPortalMycontactsPageModule)},{path:"exhibitors",loadChildren:()=>Promise.all([o.e(3345),o.e(6190)]).then(o.bind(o,26190)).then(e=>e.EventPortalExhibitorsPageModule)},{path:"exhibitor/:exhibitor_id",loadChildren:()=>Promise.all([o.e(5373),o.e(997),o.e(4781),o.e(4133)]).then(o.bind(o,24133)).then(e=>e.EventPortalExhibitorPageModule)},{path:"participants",loadChildren:()=>Promise.all([o.e(4623),o.e(9962)]).then(o.bind(o,19962)).then(e=>e.EventPortalParticipantsPageModule)},{path:"participants/:classification",loadChildren:()=>Promise.all([o.e(4623),o.e(9962)]).then(o.bind(o,19962)).then(e=>e.EventPortalParticipantsPageModule)},{path:"participant/:classification/:participant_id",loadChildren:()=>Promise.all([o.e(5373),o.e(4739),o.e(1550)]).then(o.bind(o,41550)).then(e=>e.EventPortalParticipantPageModule)},{path:"floorplan",loadChildren:()=>o.e(6071).then(o.bind(o,66071)).then(e=>e.EventPortalFloorplanPageModule)},{path:"floorplan/:exhibitor_id",loadChildren:()=>o.e(6071).then(o.bind(o,66071)).then(e=>e.EventPortalFloorplanPageModule)}]}];let Tt=(()=>{class e{static \u0275fac=function(s){return new(s||e)};static \u0275mod=t.$C({type:e});static \u0275inj=t.G2t({imports:[$.iI.forChild(Rt),$.iI]})}return e})();var Ft=o(55553);let At=(()=>{class e{static \u0275fac=function(s){return new(s||e)};static \u0275mod=t.$C({type:e});static \u0275inj=t.G2t({imports:[D.MD,b.YN,d.bv,Ft.h,Tt]})}return e})()},67241:(z,V,o)=>{o.d(V,{r:()=>F});var D=o(73308),b=o(3871),d=o(5060),$=o(99733),P=o(23279),c=o(23700),t=o(62022);let F=(()=>{class k{resolver;injector;session;api;common;events;component;cpd={};active_agenda_session=null;event_id=null;user_id=null;cpd_confirmed=!1;current_playing_state=!1;constructor(h,_,E,v,x,X){this.resolver=h,this.injector=_,this.session=E,this.api=v,this.common=x,this.events=X,this.cpd.attendance=0,this.initVideoComponent(),this.initCPDProcessor()}initVideoComponent(){this.getVideoComponent()}initCPDProcessor(){setInterval(()=>{this.submitCPDInfo()},6e4)}getVideoComponent(){if(typeof this.component>"u"||this.component.hostView.destroyed){const h=this.resolver.resolve
1ComponentFactory($.O);this.component=h.create(this.injector),this.component.instance.duration_played.subscribe(_=>{this.setDurationPlayed(_)}),this.component.instance.is_playing.subscribe(_=>{!_&&_!=this.current_playing_state&&this.submitCPDInfo(),this.current_playing_state=_})}return this.component}stopVideoPlayback(){this.component.instance.cancelPIP(),this.component.instance.stop()}confirmCPD(){null!=this.cpd.fsp_id&&""!=this.cpd.fsp_id.trim()?(this.cpd_confirmed=!0,this.cpd.fsp_confirmed=Math.floor(Date.now()/1e3),typeof this.cpd.agendas>"u"&&(this.cpd.agendas={}),this.submitCPDInfo(),this.enableCPDOnUserProfile()):this.common.showNotice("Please provide your FSP or ID number!","warning","top")}enableCPDOnUserProfile(){var h=this;return(0,D.A)(function*(){try{let _={cpd_enabled:!0};yield h.api.saveUserProfile(h.user_id,_);let E=h.session.getCurrentUser();E.profile.cpd_enabled=!0,yield h.session.setCurrentUser(E);const v={user_id:h.session.currentUserId()};h.events.publish("user:change",v)}catch{}})()}setActiveAgendaSession(h,_,E,v){let x=this.session.getCurrentUser().session_id,X=0,O=this.active_agenda_session;null!=O&&null!=this.cpd.agendas&&typeof this.cpd.agendas[O]<"u"&&(X=this.cpd.agendas[O].sessions[x].attendance),this.component.instance.resetTimer(),this.active_agenda_session=E,this.event_id=h,this.user_id=_,this.loadCPDInfo(O,x,X)}resetTimer(){this.component.instance.resetTimer()}unsetActiveAgendaSession(){this.active_agenda_session=null}setDurationPlayed(h){if(null!=this.active_agenda_session){let _=this.session.getCurrentUser().session_id;(typeof this.cpd.agendas>"u"||null==this.cpd.agendas)&&(this.cpd.agendas={}),typeof this.cpd.agendas[this.active_agenda_session]>"u"&&(this.cpd.agendas[this.active_agenda_session]={},this.cpd.agendas[this.active_agenda_session].attendance=0,this.cpd.agendas[this.active_agenda_session].sessions={}),typeof this.cpd.agendas[this.active_agenda_session].sessions[_]>"u"&&(this.cpd.agendas[this.active_agenda_session].sessions[_]={},this.cpd.agendas[this.active_agenda_session].sessions[_].first_seen=h.start_time),this.cpd.agendas[this.active_agenda_session].sessions[_].last_seen=h.current_time;let E=0;typeof this.cpd.agendas[this.active_agenda_session].sessions[_].attendance_previous<"u"&&(E=this.cpd.agendas[this.active_agenda_session].sessions[_].attendance_previous),this.cpd.agendas[this.active_agenda_session].sessions[_].attendance=h.current_time-h.start_time-h.pause+E,this.calculateCPDAttendance()}this.cpd.last_seen=h.current_time}calculateCPDAttendance(){let h=0;null!=this.cpd.agendas&&(Object.keys(this.cpd.agendas).forEach((E,v)=>{let x=0;
1Object.keys(this.cpd.agendas[E].sessions).forEach((O,Y)=>{let B=this.cpd.agendas[E].sessions[O].attendance;h+=B,x+=B}),this.cpd.agendas[E].attendance=x}),this.cpd.attendance=h)}getCPDAttendance(){return this.cpd.attendance}loadCPDInfo(h,_,E){var v=this;return(0,D.A)(function*(){v.api.getCPDInfo(v.event_id,v.user_id).then(x=>{null!=x.agendas&&(Object.keys(x.agendas).forEach((O,Y)=>{Object.keys(x.agendas[O].sessions).forEach((N,j)=>{let G=x.agendas[O].sessions[N].attendance;if(typeof h<"u"&&O==h&&N==_&&G<E){let r=E-G;G=E,x.agendas[O].sessions[N].attendance=G,x.agendas[O].attendance+=r,x.attendance+=r,v.submitCPDInfo()}typeof v.cpd.agendas>"u"&&(v.cpd.agendas={}),typeof v.cpd.agendas[O]>"u"&&(v.cpd.agendas[O]={},v.cpd.agendas[O].attendance=0,v.cpd.agendas[O].sessions={}),typeof v.cpd.agendas[O].sessions[N]>"u"&&(v.cpd.agendas[O].sessions[N]=x.agendas[O].sessions[N]),v.cpd.agendas[O].sessions[N].attendance_previous=G})}),v.calculateCPDAttendance()),x.fsp_id&&null!=x.fsp_id&&(v.cpd.fsp_id=x.fsp_id),x.fsp_confirmed&&x.fsp_confirmed>0&&(v.cpd.fsp_confirmed=x.fsp_confirmed),v.cpd.fsp_confirmed>0&&(v.cpd_confirmed=!0)})})()}submitCPDInfo(){var h=this;return(0,D.A)(function*(){try{let E,_=h.cpd.fsp_id;if(h.cpd_confirmed&&(E=h.cpd.fsp_confirmed),typeof h.cpd.agendas<"u"){let v=JSON.parse(JSON.stringify(h.cpd.agendas));null!=v&&Object.keys(v).forEach((O,Y)=>
1{Object.keys(v[O].sessions).forEach((N,j)=>{v[O].sessions[N].attendance_previous==v[O].sessions[N].attendance?delete v[O].sessions[N]:delete v[O].sessions[N].attendance_previous})});let x=h.component.instance.isPlaying();h.cpd.attendance>0?yield h.api.setCPDSessionInfo(h.event_id,h.user_id,v,h.cpd.last_seen,_,E,h.active_agenda_session,x):E&&(yield h.api.setCPDSessionInfo(h.event_id,h.user_id,void 0,h.cpd.last_seen,_,E,h.active_agenda_session,x))}}catch(_){console.log(_)}})()}static \u0275fac=function(_){return new(_||k)(P.KVO(P.OM3),P.KVO(P.zZn),P.KVO(c.Q),P.KVO(d.G),P.KVO(b.h),P.KVO(t.s))};static \u0275prov=P.jDH({token:k,factory:k.\u0275fac,providedIn:"root"})}return k})()}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.