(this["webpackJsonpbd-project"]=this["webpackJsonpbd-project"]||[]).push([[0],{103:function(e,t,n){},138:function(e,t,n){},146:function(e,t,n){},223:function(e,t,n){},257:function(e,t,n){},259:function(e,t,n){},260:function(e,t,n){},346:function(e,t){},388:function(e,t){},426:function(e,t,n){},429:function(e,t,n){"use strict";n.r(t);var a={};n.r(a),n.d(a,"InfoHotspots",(function(){return he})),n.d(a,"AudiData",(function(){return pe})),n.d(a,"BreakoutData",(function(){return me})),n.d(a,"GameType",(function(){return be})),n.d(a,"GameStatus",(function(){return fe})),n.d(a,"LobbyHotspots",(function(){return je})),n.d(a,"NetworkingLounge",(function(){return ve}));var o={};n.r(o),n.d(o,"VideoPlayerData",(function(){return Oe}));var s,i=n(0),r=n(4),c=n.n(r),l=n(212),u=n.n(l),d=(n(223),n(10)),h=n(11),p=n(13),m=n(12),b=n(3),f=n(5),j=n.n(f),v=n(9),O=n(135),g=n(22),y=n(14),x=(n(138),n(26)),w=(n(225),n(227),n(229),n(430),n(431),"backStage"),k="staticData",I="realtimeData",C="preRegistrationData",S="breakout",N="userScore",T="leaderboard",M="userData",A="transition",U="iframe",L="video",D="image",P="pdf",R="anchor",B="videoPlayer",F="inlineVideo",_="chatbot",E="quiz",q=0,V=1,z=2,H="default",Q="named",G="lobby",W="audi",K="breakout",Y="youtube",Z="vimeo",$={InfoDesk:{value:50,oneTime:!0},Photobooth:{value:20,oneTime:!1},TeamBuilding:{value:100,oneTime:!0},Audi:{value:20,oneTime:!1},NetworkingConnect:{value:20,oneTime:!1},NetworkingSession:{value:20,oneTime:!1},NetworkingSpeakerProfile:{value:20,oneTime:!1},NetworkingChat:{value:20,oneTime:!1},Game:{value:20,oneTime:!1}},X={Lobby:1,Audi:2,Leaderboard:3,MyProfile:4,Agenda:5},J=0,ee=1,te=1,ne=2,ae=3,oe=4,se=5,ie=[{id:X.Lobby,name:"Lobby",class:"icon-Lobby"},{id:X.Audi,name:"Auditorium",class:"icon-Audi",subMenus:[{id:te,name:"ASK THE SPEAKER",class:"icon-Speaker"},{id:ne,name:"POLL",class:"icon-Poll"},{id:ae,name:"CHAT",class:"icon-Chat"},{id:oe,name:"GoToStage",class:"icon-Stage",disabled:!0},{id:se,name:"MY PROFILE",class:"icon-Profile"}]},{id:X.Agenda,name:"Agenda",class:"icon-AgendaV1"},{id:X.Leaderboard,name:"LeaderBoard",class:"icon-leaderboard"},{id:X.MyProfile,name:"My Profile",class:"icon-Profile"}],re="/3dAssets/videos/",ce={LOBBYLOOP:re+"Lobby_Loop.mp4",LOOBYTOINFO:re+"ToInfoBooth.mp4",LOBBYTOAudi:re+"ToAuditorium.mp4",LOOBYTOPRODUCTSTALL:re+"ToProductStall.mp4",LOBBYTOBREAKOUT:re+"breakout.mp4",BREAKOUTLOOP:re+"breakoutLoop.mp4",AUDITORIUM:re+"Auditorium.mp4"},le="/3dAssets/UI/",ue={MiddleLogo:"/assets/images/header/logo.png",LOGOR1:"/assets/images/R1Logo.png",LOGOKOA:"/assets/images/koaLogo.png",LOGO:"/assets/images/logo.png",LOGOLG:"/assets/images/logo-lg.png",LoginScreen:"/assets/images/login/Login.jpg",LOGINSCREENSIDELOGO:"/assets/images/logo.png",MENULOGO:"/assets/images/logo.png",LOBBYLOOP:"/3dAssets/images/Lobby.jpg",Infodesk:"/3dAssets/images/Info.jpg",ProductStall:"/3dAssets/images/Product-Stall.jpg",Breakout:"/3dAssets/images/breakout.jpg",WELCOMEBACKGROUND:"assets/images/bg/all-stages.jpg",RIPPLE:"/3dAssets/gifs/Ripple-2.4s-128px.svg",BACKBUTTON:le+"backButton.png",CLOSEBUTTON:le+"closeButton.png",BUMPERPRIZEHEADER:"assets/images/banner-header.jpg",PDFLOGO:le+"pdfIcon.png",INFOBUTTON:le+"info/information.png",QUIZBG:"assets/images/quizBg.png"},de={team1:"/assets/images/TeamLogos/AhmedabadRanas.png",team2:"/assets/images/TeamLogos/BangaloreSultans.png",team3:"/assets/images/TeamLogos/ChennaiCholas.png",team4:"/assets/images/TeamLogos/DelhiMughals.png",team5:"/assets/images/TeamLogos/GuwahatiAhom.png",team6:"/assets/images/TeamLogos/HyderabadNizams.png",team7:"/assets/images/TeamLogos/KeralaMarthanda.png",team8:"/assets/images/TeamLogos/KolkataMauryas.png",team9:"/assets/images/TeamLogos/LucknowNawabs.png",team10:"/assets/images/TeamLogos/MumbaiRajas.png",team11:"/assets/images/TeamLogos/PunePeshwa.png",team12:"/assets/images/TeamLogos/SuperKings.png"},he={Agenda:{id:"Agenda",enabled:!0,style:{margin:"7% -26.5%"},hotspotType:P,buttonType:H,link:"/web/viewer.html?file=%2Fassets%2Fcontent%2FAgenda.pdf"},Agenda2:{id:"Agenda2",enabled:!0,style:{margin:"7% 20%"},hotspotType:P,buttonType:H,link:"/web/viewer.html?file=%2Fassets%2Fcontent%2FAgenda.pdf"},AskMe:{id:"AskMe",enabled:!0,name:"Ask Me",style:{margin:"4% -3.5%"},hotspotType:_,buttonType:Q}},pe={active:!0,infoMessage:"Audi is closed today.",introVideo:ce.AUDITORIUM,link:"https://vimeo.com/event/473964",placementStyle:{margin:"8.65% 34.0%",width:"30.8%",height:"40.1%"}},me={active:!0,infoMessage:"This section will be live tommorrow.",introVideo:ce.BREAKOUTLOOP,link:"https://vimeo.com/event/473964",placementStyle:{margin:"8% 32.3%",width:"34.8%",height:"45.7%"}},be={football:"football",cricket:"cricket",quiz:"quiz",photobooth:"photobooth"},fe={active:!1,message:"We regret to inform you that games are disabled while the sessions are live. Kindly come back once the session is over."},je=(s={},Object(y.a)(s,be.photobooth,{id:be.photobooth,enabled:!0,style:{margin:"-4% 20%"},hotspotType:U,link:"/photobooth/index.html"}),Object(y.a)(s,be.football,{id:be.football,enabled:!0,style:{margin:"-4% -41.5%"},hotspotType:U,link:"/football/game/index.html"}),Object(y.a)(s,be.cricket,{id:be.cricket,enabled:!0,style:{margin:"-4% -27.5%"},hotspotType:U,link:"/cricket/index.html"}),Object(y.a)(s,be.quiz,{id:be.quiz,enabled:!0,style:{margin:"-4% 34.5%"},hotspotType:E}),Object(y.a)(s,"Audi",{id:"Audi",enabled:!0,style:{margin:"-4% -4%"},hotspotType:A,transitionVideo:ce.LOBBYTOAudi,transitionType:V,newItem:ie[ee]}),Object(y.a)(s,"Infodesk",{id:"Infodesk",enabled:!0,style:{margin:"6% -3.5%"},hotspotType:A,transitionVideo:ce.LOOBYTOINFO,transitionType:q,newItem:ue.Infodesk,hotspot:he,name:"Infodesk"}),s),ve={speakerPdf:"/web/viewer.html?file=%2Fassets%2Fcontent%2FSpeakers.pdf"},Oe={Holding:{enabled:!0,type:Y,id:"Holding",link:"https://youtu.be/VoeUTFTXrOk",name:"ComingSoon",videoCode:"VoeUTFTXrOk",description:""},Video1:{enabled:!1,type:Z,id:"Video1",link:"https://vimeo.com/334905384",name:"Neymar",videoCode:"781333669",description:"All content is copy right of R1RCM, strictly non-shareable on any medium. We would request all participants to support the same.\n In case you need any Get Connected related content reach out to R1 India's communication team."}},ge=(n(232),n(69)),ye=n.n(ge);x.a.initializeApp({apiKey:"AIzaSyAVsGnVV8uc9xUquISdWG_MVj3MYGsIIxE",authDomain:"sanofi-virtualevent.firebaseapp.com",databaseURL:"https://sanofi-virtualevent-default-rtdb.firebaseio.com",projectId:"sanofi-virtualevent",storageBucket:"sanofi-virtualevent.appspot.com",messagingSenderId:"688109064965",appId:"1:688109064965:web:801fc24eee09a9d73e9d6c"}),window.firebaseInstance=x.a;var xe=x.a,we=x.a.auth(),ke=x.a.firestore(),Ie=x.a.database(),Ce=(x.a.analytics(),x.a.storage(),function(e,t){return new Promise(function(){var n=Object(v.a)(j.a.mark((function n(a,o){var s;return j.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,we.signInWithEmailAndPassword(e,t);case 3:s=n.sent,console.log(s.user.email+" is logged in right now"),a(),n.next=11;break;case 8:n.prev=8,n.t0=n.catch(0),o(n.t0);case 11:case"end":return n.stop()}}),n,null,[[0,8]])})));return function(e,t){return n.apply(this,arguments)}}())}),Se=function(e,t,n){return new Promise(function(){var a=Object(v.a)(j.a.mark((function a(o,s){var i;return j.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,we.createUserWithEmailAndPassword(e,t);case 3:return i=a.sent,console.log(i.user.email+" is signedUp in right now"),a.next=7,i.user.updateProfile({displayName:n,photoURL:"https://firebasestorage.googleapis.com/v0/b/djfarmademo.appspot.com/o/profileimages%2Fblank-avatar.png?alt=media&token=2af15226-9bd7-47ce-bc72-f3c1a12a0780"});case 7:o(),a.next=13;break;case 10:a.prev=10,a.t0=a.catch(0),s(a.t0);case 13:case"end":return a.stop()}}),a,null,[[0,10]])})));return function(e,t){return a.apply(this,arguments)}}())},Ne=function(){var e=Object(v.a)(j.a.mark((function e(t,n){var a,o,s=arguments;return j.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=s.length>2&&void 0!==s[2]&&s[2],o=s.length>3?s[3]:void 0,e.abrupt("return",new Promise(function(){var e=Object(v.a)(j.a.mark((function e(s,i){return j.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Ce(t,n);case 3:s(),e.next=22;break;case 6:if(e.prev=6,e.t0=e.catch(0),"auth/user-not-found"!==e.t0.code||!a){e.next=21;break}return e.prev=9,e.next=12,Ae(o);case 12:return window.userData=e.sent,e.next=15,Se(t,n,"".concat(window.userData.fname," ").concat(window.userData.lname));case 15:return e.abrupt("return");case 18:e.prev=18,e.t1=e.catch(9),"NoUserFound"===e.t1.code&&i(e.t1);case 21:i({code:e.t0.code,message:e.t0.message});case 22:case"end":return e.stop()}}),e,null,[[0,6],[9,18]])})));return function(t,n){return e.apply(this,arguments)}}()));case 3:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),Te=function(e){we.signOut().then((function(){e||(window.location.reload(),window.location.href="/")}))};!function(){var e="-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz",t=0,n=[]}();var Me=function(e){return new Promise(function(){var t=Object(v.a)(j.a.mark((function t(n,a){var o,s;return j.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,console.log(e),o=ke.collection(M).doc(e),t.next=5,o.get();case 5:(s=t.sent).exists||n({roomId:[],teamId:"team-NA"}),n(s.data()),t.next=14;break;case 10:t.prev=10,t.t0=t.catch(0),console.log(t.t0),a(t.t0);case 14:case"end":return t.stop()}}),t,null,[[0,10]])})));return function(e,n){return t.apply(this,arguments)}}())},Ae=function(e){return new Promise(function(){var t=Object(v.a)(j.a.mark((function t(n,a){var o,s;return j.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,o=ke.collection(C).where("employeeId","==",e),t.next=4,o.get();case 4:if(!(s=t.sent).empty){t.next=8;break}throw{code:"NotRegistered",message:"Please Use Registered ID"};case 8:n(s.docs[0].data()),t.next=15;break;case 11:t.prev=11,t.t0=t.catch(0),console.log(t.t0),a(t.t0);case 15:case"end":return t.stop()}}),t,null,[[0,11]])})));return function(e,n){return t.apply(this,arguments)}}())},Ue=function(){return new Promise(function(){var e=Object(v.a)(j.a.mark((function e(t,n){var a,s;return j.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,ke.collection(w).doc(I).get();case 3:(a=e.sent).exists||n({code:"NoDataFound",message:"no such document exists."}),s=a.data(),Object.keys(s).forEach((function(e){var t=s[e];Object.keys(t).forEach((function(n){o["".concat(e)].hasOwnProperty(n)?"object"!==typeof o["".concat(e)][n]?o["".concat(e)][n]=t[n]:o["".concat(e)][n]=Object(b.a)(Object(b.a)({},o["".concat(e)][n]),t[n]):"object"!==typeof t[n]?o["".concat(e)][n]=t[n]:o["".concat(e)][n]=Object(b.a)({},t[n])}))})),t(s),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),n(e.t0);case 13:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(t,n){return e.apply(this,arguments)}}())},Le=function(){return new Promise(function(){var e=Object(v.a)(j.a.mark((function e(t,n){var o,s;return j.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,ke.collection(w).doc(k).get();case 3:(o=e.sent).exists||n({code:"NoDataFound",message:"no such document exists."}),s=o.data(),Object.keys(s).forEach((function(e){var t=s[e];Object.keys(t).forEach((function(n){a["".concat(e)].hasOwnProperty(n)?"object"!==typeof a["".concat(e)][n]?a["".concat(e)][n]=t[n]:a["".concat(e)][n]=Object(b.a)(Object(b.a)({},a["".concat(e)][n]),t[n]):"object"!==typeof t[n]?a["".concat(e)][n]=t[n]:a["".concat(e)][n]=Object(b.a)({},t[n])}))})),t(),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),n(e.t0);case 13:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(t,n){return e.apply(this,arguments)}}())},De=function(e,t){return new Promise((function(n,a){try{if(!e.email){throw{code:"NoEmailFound",message:"Please pass a valid User Object"}}n((t?e.email:e.email.split("@")[0]).replace(/[&\/\\#,+$~%.'":*?<>{}]/g,"").toLowerCase())}catch(o){a(o)}}))},Pe=function(){return new Promise(function(){var e=Object(v.a)(j.a.mark((function e(t,n){var a;return j.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,void 0!==window.todaysDateTimestamp&&null!==window.todaysDateTimestamp){e.next=7;break}return e.next=4,Re();case 4:return a=e.sent,window.todaysDateTimestamp=a.todaysDateTimestamp,e.abrupt("return");case 7:t(),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),n(e.t0);case 13:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(t,n){return e.apply(this,arguments)}}())},Re=function(){return new Promise(function(){var e=Object(v.a)(j.a.mark((function e(t,n){var a,o,s,i,r,c;return j.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("https://dj-timeserver.glitch.me");case 3:return a=e.sent,e.next=6,a.json();case 6:o=e.sent,s=new Date(o.epoch),i=new Date,r=s.getTime()-i.getTime(),c="".concat(s.getFullYear(),"-").concat(s.getMonth()+1,"-").concat(s.getDate()),t({currDateWeb:s,webTimeDiff:r,todaysDateTimestamp:c}),e.next=17;break;case 14:e.prev=14,e.t0=e.catch(0),n(e.t0);case 17:case"end":return e.stop()}}),e,null,[[0,14]])})));return function(t,n){return e.apply(this,arguments)}}())},Be=function(e){return new Promise(function(){var t=Object(v.a)(j.a.mark((function t(n,a){var o,s,i;return j.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Pe();case 3:return t.next=5,De(e);case 5:return o=t.sent,s="analytics/".concat(window.todaysDateTimestamp,"/").concat(o),i=Ie.ref(s),t.next=10,i.once("value");case 10:if(!t.sent.exists()){t.next=16;break}return t.next=14,i.update({Id:o,name:e.displayName,lastLoginTime:x.a.database.ServerValue.TIMESTAMP});case 14:t.next=18;break;case 16:return t.next=18,i.set({Id:o,name:e.displayName,firstLoginTime:x.a.database.ServerValue.TIMESTAMP,lastLoginTime:x.a.database.ServerValue.TIMESTAMP});case 18:n(),t.next=24;break;case 21:t.prev=21,t.t0=t.catch(0),a(t.t0);case 24:case"end":return t.stop()}}),t,null,[[0,21]])})));return function(e,n){return t.apply(this,arguments)}}())},Fe=null,_e=function(e){return new Promise(function(){var t=Object(v.a)(j.a.mark((function t(n,a){var o,s,i;return j.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Pe();case 3:return t.next=5,De(e);case 5:return o=t.sent,s="analytics/".concat(window.todaysDateTimestamp,"/").concat(o),i=Ie.ref(s),Fe=i.onDisconnect(),t.next=11,Fe.update({lastLogoutTime:x.a.database.ServerValue.TIMESTAMP});case 11:n(),t.next=17;break;case 14:t.prev=14,t.t0=t.catch(0),a(t.t0);case 17:case"end":return t.stop()}}),t,null,[[0,14]])})));return function(e,n){return t.apply(this,arguments)}}())},Ee=function(e){return new Promise(function(){var t=Object(v.a)(j.a.mark((function t(n,a){var o,s,i;return j.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Pe();case 3:return t.next=5,De(e);case 5:return o=t.sent,s="analytics/".concat(window.todaysDateTimestamp,"/").concat(o),i=Ie.ref(s),t.next=10,i.update({lastLogoutTime:x.a.database.ServerValue.TIMESTAMP});case 10:Fe&&Fe.cancel(),n(),t.next=17;break;case 14:t.prev=14,t.t0=t.catch(0),a(t.t0);case 17:case"end":return t.stop()}}),t,null,[[0,14]])})));return function(e,n){return t.apply(this,arguments)}}())},qe=function(e){return new Promise(function(){var t=Object(v.a)(j.a.mark((function t(n,a){var o,s;return j.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,(void 0==e||""===e)&&a({code:"UserIDWasNull",message:"Please try again later"}),o=Ie.ref("loggedInUser/"+e),t.next=5,o.update({state:"online",lastChange:x.a.database.ServerValue.TIMESTAMP});case 5:return t.next=7,o.onDisconnect();case 7:return s=t.sent,t.next=10,s.update({state:"offline",lastChange:x.a.database.ServerValue.TIMESTAMP});case 10:n(),t.next=16;break;case 13:t.prev=13,t.t0=t.catch(0),a(t.t0);case 16:case"end":return t.stop()}}),t,null,[[0,13]])})));return function(e,n){return t.apply(this,arguments)}}())},Ve=function(e,t){return new Promise(function(){var n=Object(v.a)(j.a.mark((function n(a,o){var s,i;return j.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,De(e,!0);case 3:return s=n.sent,i=Ie.ref("loggedInUser/"+s),n.next=7,i.update({location:t});case 7:a(),n.next=13;break;case 10:n.prev=10,n.t0=n.catch(0),o(n.t0);case 13:case"end":return n.stop()}}),n,null,[[0,10]])})));return function(e,t){return n.apply(this,arguments)}}())},ze=function(e,t){return new Promise(function(){var n=Object(v.a)(j.a.mark((function n(a,o){var s,i,r;return j.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,Pe();case 3:return n.next=5,De(e);case 5:return s=n.sent,i="analytics/".concat(window.todaysDateTimestamp,"/").concat(s),r=Ie.ref(i),n.next=10,r.update(Object(y.a)({},t,x.a.database.ServerValue.increment(1)));case 10:a(),n.next=16;break;case 13:n.prev=13,n.t0=n.catch(0),o(n.t0);case 16:case"end":return n.stop()}}),n,null,[[0,13]])})));return function(e,t){return n.apply(this,arguments)}}())},He=function(e,t){return new Promise(function(){var n=Object(v.a)(j.a.mark((function n(a,o){var s,i,r,c,l,u,d,h,p,m,f;return j.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,s=(s=(s=e.email).replace(/[&\/\\#,+$~%.'":*?<>{}]/g,"")).toLowerCase(),i="/usersScore/"+s,r="/leaderboard/"+s,c=Ie.ref(i),l=Ie.ref(r),n.next=10,c.once("value");case 10:if(!(u=n.sent).exists()){n.next=22;break}return(d=u.val()).hasOwnProperty(t)?d[t]+=1:d[t]=1,d.score&&delete d.score,h=Qe(d),n.next=18,c.update(Object(b.a)(Object(b.a)({},d),{},{score:h}));case 18:return n.next=20,l.update({name:e.displayName,email:e.email,score:h});case 20:n.next=28;break;case 22:return m=Object(y.a)({},"".concat(t),1),f=Qe(m),n.next=26,c.set((p={},Object(y.a)(p,"".concat(t),1),Object(y.a)(p,"score",f),p));case 26:return n.next=28,l.set({name:e.displayName,email:e.email,score:f});case 28:a(),n.next=34;break;case 31:n.prev=31,n.t0=n.catch(0),o(n.t0);case 34:case"end":return n.stop()}}),n,null,[[0,31]])})));return function(e,t){return n.apply(this,arguments)}}())},Qe=function(e){var t=0;return Object.keys(e).forEach((function(n){$[n].oneTime?t+=$[n].value:t+=e[n]*$[n].value})),t},Ge=function(e){return new Promise(function(){var t=Object(v.a)(j.a.mark((function t(n,a){var o,s,i,r,c,l,u;return j.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,o=(o=(o=e.email).replace(/[&\/\\#,+$~%.'":*?<>{}]/g,"")).toLowerCase(),"/leaderboard/",s=Ie.ref("/leaderboard/").orderByChild("score"),t.next=8,s.once("value");case 8:(i=t.sent).exists()?(r=i.val(),c=Object.keys(r),l=c.length,u=c.indexOf(o),n(-1!==u?l-u:l+1)):n(0),t.next=15;break;case 12:t.prev=12,t.t0=t.catch(0),a(t.t0);case 15:case"end":return t.stop()}}),t,null,[[0,12]])})));return function(e,n){return t.apply(this,arguments)}}())},We=function(e){window.audiListener=ke.collection(w).doc(k).onSnapshot((function(t){t.exists||e({code:"NoDataFound",message:"no such document exists."}),e(null,t.data())}),(function(t){e(t)}))},Ke=function(e){window.breakoutListener=ke.collection(w).doc(S).onSnapshot((function(t){t.exists||e({code:"NoDataFound",message:"no such document exists."}),e(null,t.data().rooms)}),(function(t){e(t)}))},Ye=function(e){return new Promise(function(){var t=Object(v.a)(j.a.mark((function t(n,a){var o,s,i,r;return j.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,o=e.email,s=ke.collection(N).doc(o),t.next=5,s.get();case 5:(i=t.sent).exists?(r=i.data().total,n(r||0)):n(0),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(0),a(t.t0);case 12:case"end":return t.stop()}}),t,null,[[0,9]])})));return function(e,n){return t.apply(this,arguments)}}())},Ze=function(e,t){var n=e.email;n=(n=n.replace(/[&\/\\#,+$~%.'":*?<>{}]/g,"")).toLowerCase(),Ie.ref("userPlayCount/"+n).on("value",(function(e){var n={football:0,cricket:0,quiz:0};e.exists()&&(n=Object(b.a)(Object(b.a)({},n),e.val())),t&&t(null,n)}),(function(e){t&&t(e)}))},$e=function(e,t){return new Promise(function(){var n=Object(v.a)(j.a.mark((function n(a,o){var s,i;return j.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,s=(s=(s=e.email).replace(/[&\/\\#,+$~%.'":*?<>{}]/g,"")).toLowerCase(),i=Ie.ref("userPlayCount/"+s),n.next=7,i.update(Object(y.a)({},t,x.a.database.ServerValue.increment(1)));case 7:a(),n.next=13;break;case 10:n.prev=10,n.t0=n.catch(0),o(n.t0);case 13:case"end":return n.stop()}}),n,null,[[0,10]])})));return function(e,t){return n.apply(this,arguments)}}())},Xe=function(e,t,n,a){return new Promise(function(){var o=Object(v.a)(j.a.mark((function o(s,i){var r,c,l;return j.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.prev=0,r=e.email,c=ke.collection(N).doc(r),l=ke.collection(T).doc(t),o.next=6,ke.runTransaction(function(){var e=Object(v.a)(j.a.mark((function e(o){var s,i,u,d,h,p,m;return j.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o.get(c);case 2:return s=e.sent,e.next=5,o.get(l);case 5:if(i=e.sent,u={id:r.split("@")[0],scores:{},total:0},s.exists&&(u=Object(b.a)(Object(b.a)({},u),s.data())),!u.scores.hasOwnProperty(n)){e.next=17;break}if(!(u.scores[n]u.total)){e.next=25;break}u.total=d,s.exists?o.update(c,u):o.set(c,u),e.next=27;break;case 25:throw{code:"TotalScoreLess",message:"Earlier Total Score was higher"};case 27:if(h={id:t,users:{},total:0},i.exists&&(h=Object(b.a)(Object(b.a)({},h),i.data())),!h.users.hasOwnProperty(r)){e.next=42;break}if(!h.users[r]){e.next=39;break}if(!(d>h.users[r])){e.next=35;break}h.users[r]=d,e.next=37;break;case 35:throw{code:"userScore",message:"Earlier UserScore was higher"};case 37:e.next=40;break;case 39:h.users[r]=d;case 40:e.next=43;break;case 42:h.users[r]=d;case 43:if(h.hasOwnProperty("".concat(n,"_user"))?h["".concat(n,"_user")]=Object(b.a)(Object(b.a)({},h["".concat(n,"_user")]),{},Object(y.a)({},r,a)):h["".concat(n,"_user")]=Object(y.a)({},r,a),h.hasOwnProperty(n)?(p=0,Object.keys(h["".concat(n,"_user")]).forEach((function(e){p+=h["".concat(n,"_user")][e]})),p>h[n]&&(h[n]=p)):h[n]=a,m=0,Object.keys(h.users).forEach((function(e){m+=h.users[e]})),!(m>h.total)){e.next=51;break}h.total=m,e.next=53;break;case 51:throw{code:"TeamScore",message:"Earlier TeamScore was higher"};case 53:i.exists?o.update(l,h):o.set(l,h);case 54:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 6:o.sent,s(),o.next=13;break;case 10:o.prev=10,o.t0=o.catch(0),i(o.t0);case 13:case"end":return o.stop()}}),o,null,[[0,10]])})));return function(e,t){return o.apply(this,arguments)}}())},Je=function(e){var t=ke.collection(T).orderBy("total","desc");window.leaderboardListener=t.onSnapshot((function(t){if(t.empty){e&&e({code:"NoData",message:"No data found"})}else{var n=[];t.docs.forEach((function(e){"team0"!==e.data().id&&n.push(e.data())})),e&&e(null,n)}}),(function(t){e&&e(t)}))},et=function(e){Object(p.a)(n,e);var t=Object(m.a)(n);function n(){var e;Object(d.a)(this,n);for(var a=arguments.length,o=new Array(a),s=0;s()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(e).toLowerCase())},e.onFormSubmit=function(){var t=Object(v.a)(j.a.mark((function t(n){var a,o,s,i;return j.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n.preventDefault(),t.prev=1,e.setState({error:!1,forceDisable:!0}),a=e.state.employeId.toLowerCase().replace(/\s+/g,""),o="".concat(a,"@event.com"),s="".concat(a,"123456"),t.next=9,Ne(o,s,!0,a);case 9:t.next=28;break;case 11:t.prev=11,t.t0=t.catch(1),e.setState({forceDisable:!1}),i="",t.t1=t.t0.code,t.next="auth/wrong-password"===t.t1?18:"auth/user-not-found"===t.t1?20:"auth/too-many-requests"===t.t1?22:"NoUserFound"===t.t1?24:26;break;case 18:return i="Invalid username and password.",t.abrupt("break",27);case 20:return i="User not registered",t.abrupt("break",27);case 22:return i="Too many invalid requests, please wait for 60 seconds before retrying",t.abrupt("break",27);case 24:return i="User not registered",t.abrupt("break",27);case 26:i=t.t0.message;case 27:e.setState({error:!0,errorMessage:i});case 28:case"end":return t.stop()}}),t,null,[[1,11]])})));return function(e){return t.apply(this,arguments)}}(),e.checkUserStatus=function(){var e=Object(v.a)(j.a.mark((function e(t){return j.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,n){(void 0==t||""===t)&&n({code:"UserIDWasNull",message:"Please try again later"}),Ie.ref("loggedInUser/"+t).once("value").then((function(t){if(t.exists())if("online"===t.val().state){n({code:"AlreadyLogged",message:"User Logged in from another system."})}else e();else e()}),(function(e){n(e)}))})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),e}return Object(h.a)(n,[{key:"render",value:function(){return this.state._loading?Object(i.jsx)("img",{alt:"loading",src:"/images/loader.gif"}):Object(i.jsxs)("section",{className:"landing-page min-height-full",children:[Object(i.jsx)("aside",{className:"landing-pageBox d-flex justify-content-between align-items-start min-height-full image-bg",style:{backgroundImage:"url(".concat(ue.LoginScreen,")")}}),Object(i.jsxs)("aside",{className:"signinBox min-height-full",children:[this.props.showLoggingIn&&Object(i.jsxs)(i.Fragment,{children:[Object(i.jsx)("div",{className:"signinBox__heading",children:Object(i.jsx)("div",{className:"middle"})}),Object(i.jsx)("br",{}),Object(i.jsxs)("div",{className:"loaderContainer",children:[Object(i.jsx)("img",{src:"/assets/images/Loader.gif",alt:"loader"}),Object(i.jsx)("div",{children:"Logging you in..."})]})]}),!this.props.showLoggingIn&&Object(i.jsx)(i.Fragment,{children:Object(i.jsxs)("form",{onSubmit:this.onFormSubmit,children:[Object(i.jsx)("div",{className:"signinBox__heading",children:Object(i.jsx)("div",{className:"middle"})}),Object(i.jsxs)("div",{className:"signinBox__body pd-t50",children:[Object(i.jsx)("div",{className:"signinBox_title",children:"Participant Login"}),Object(i.jsx)("div",{className:"form-group mg-b50",children:Object(i.jsx)("input",{type:"text",className:"form-control form-control-login",name:"employeId",value:this.state.employeId,placeholder:"Enter Employee ID",onChange:this.onInputChange,autoComplete:"off",autoCorrect:"off",required:!0})}),this.state.error&&Object(i.jsx)("div",{className:"mg-b50",style:{color:"red",fontSize:"1.25rem"},children:this.state.errorMessage}),Object(i.jsx)("div",{className:"text-center",children:Object(i.jsx)("button",{className:"loginBtn",disabled:!!this.state.forceDisable||!this.state.employeId.length>0,children:"LOG IN"})})]})]})})]})]})}}]),n}(r.Component),tt=Object(r.createContext)({user:null}),nt=function(e){Object(p.a)(n,e);var t=Object(m.a)(n);function n(){var e;Object(d.a)(this,n);for(var a=arguments.length,o=new Array(a),s=0;s{}]/g,"")).toLowerCase(),t.next=9,qe(a);case 9:Be(n).then((function(){})),_e(n),t.next=16;break;case 13:localStorage.clear(),sessionStorage.clear(),e.setState({user:null});case 16:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 1:case"end":return t.stop()}}),t)}))),e}return Object(h.a)(n,[{key:"render",value:function(){var e=this.state.user;return Object(i.jsx)(tt.Provider,{value:e,children:this.props.children})}}]),n}(r.Component),at=n(49),ot=n(60),st=n.n(ot),it=(n(257),function(e){Object(p.a)(n,e);var t=Object(m.a)(n);function n(e){var a;return Object(d.a)(this,n),(a=t.call(this,e)).state={items:a.props.items,activeItemId:a.props.mainMenuState},a.onMenuItemClick=a.onMenuItemClick.bind(Object(at.a)(a)),a}return Object(h.a)(n,[{key:"componentWillReceiveProps",value:function(e){void 0!==e.mainMenuState&&this.setState({activeItemId:e.mainMenuState})}},{key:"onMenuItemClick",value:function(e,t){this.props.canInteract&&(this.setState({activeItemId:t.id}),this.props.onMenuItemClick(e,t))}},{key:"getPathRender",value:function(e){if(e>0){for(var t=[],n=0;nwindow.innerHeight*e.ratio)}),child3dContainerStyle:{marginLeft:"0"}}}));e.props.showingTutorialEvent&&e.props.showingTutorialEvent("end")}e.initiScene()},e.closeTut=function(){var t="home";e.props.sceneName&&(t=e.props.sceneName),sessionStorage.setItem("".concat(t,"-tut"),"visited"),setTimeout((function(){e.props.showingTutorialEvent&&e.props.showingTutorialEvent("end")}),250),e.initiScene()},e.initiScene=function(){e.initialForceUpdate=setTimeout((function(){e.setState((function(t){return{UI:Object(b.a)(Object(b.a)({},t.UI),{},{showOverlay:!0,showArrows:!0,showTutComponenet:!1,arrowsRequired:!(window.innerWidth>window.innerHeight*e.ratio)}),child3dContainerStyle:{marginLeft:"0"}}}))}),250)},e.hadnleResize=function(){window.innerWidth>window.innerHeight*e.ratio?e.setState((function(e){return{UI:Object(b.a)(Object(b.a)({},e.UI),{},{arrowsRequired:!1})}})):e.setState((function(e){return{UI:Object(b.a)(Object(b.a)({},e.UI),{},{arrowsRequired:!0})}}))},e.componentWillUnmount=function(){e.props.addAnalytics&&e.props.addAnalytics(!1),e.forceUpdate&&clearTimeout(e.forceUpdate),e.initialForceUpdate&&clearTimeout(e.initialForceUpdate),document.body.style.overflow=e.previousStyle_Overflow,window.removeEventListener("resize",e.hadnleResize)},e.calculateOverlayStyle=function(){if(e.videoRef.current)return{width:"".concat(e.videoRef.current.clientWidth,"px"),height:"".concat(e.videoRef.current.clientHeight,"px")};var t=document.querySelector("#FrameVideo");return t?{width:"".concat(t.clientWidth,"px"),height:"".concat(t.clientHeight,"px")}:void 0},e.resetCamera=function(){e.arrowRef.current&&e.arrowRef.current.recenterCamera()},e.updateChild3DContainerStyle=function(t){e.setState({child3dContainerStyle:Object(b.a)({},t)})},e.toggleHUDElement=function(t,n,a){e.setState((function(e){return{UI:Object(b.a)(Object(b.a)({},e.UI),{},{showOverlay:t,showArrows:n,showBackButton:a})}}))},e.startTransition=function(t,n,a,o,s,i){null!==t&&t.preventDefault(),e.resetCamera(),e.currentTransitionType=a,e.afterTransitionItem=o,a!==z?(e.toggleHUDElement(!1,!1,!1),e.setState({currentHotspot:s}),null!=n?(e.newStateName=i,e.setState((function(e){return{UI:Object(b.a)(Object(b.a)({},e.UI),{},{showTutButton:!1}),CurrentUrl:Object(b.a)(Object(b.a)({},e.CurrentUrl),{},{transitionVideo:n})}})),e.transitionVideoRef.current.load(),e.transitionVideoRef.current.play(),e.transitionVideoRef.current.loop=!1):e.handleTransitionWithOutVideo()):e.handleTransitionWithOutVideo()},e.applyFadeInDuringTransition=function(){e.videoRef.current.removeEventListener("loadedmetadata",e.applyFadeInDuringTransition),setTimeout((function(){e.setState({frameVideoStyle:Ot})}),900*e.videoRef.current.duration)},e.handleTransitionVideoEnd=function(t){e.currentTransitionType===q?(e.toggleHUDElement(!1,!0,!0),e.updateChild3DContainerStyle({marginLeft:"0"}),e.setState((function(t){return{CurrentUrl:Object(b.a)(Object(b.a)({},t.CurrentUrl),{},{image:e.afterTransitionItem}),UI:Object(b.a)(Object(b.a)({},t.UI),{},{showVideo:!1,showImage:!0,showOverlay:!0}),frameVideoStyle:gt}})),e.props.changeInternalStateHandler&&e.props.changeInternalStateHandler(e.newStateName)):e.currentTransitionType===V&&e.props.changeComponenet(t,e.afterTransitionItem)},e.handleTransitionWithOutVideo=function(){if(e.currentTransitionType===q)e.setState({frameVideoStyle:Ot}),setTimeout((function(){e.setState((function(t){return{CurrentUrl:Object(b.a)(Object(b.a)({},t.CurrentUrl),{},{image:e.afterTransitionItem}),UI:Object(b.a)(Object(b.a)({},t.UI),{},{showVideo:!1,showImage:!0,showOverlay:!0,showBackButton:!0}),frameVideoStyle:gt}}))}),1125);else if(e.currentTransitionType===V)e.props.changeComponenet(null,e.afterTransitionItem);else if(e.currentTransitionType===z){var t=Object(at.a)(e);e.props.changeComponenet(null,e.afterTransitionItem,(function(){t.toggleHUDElement(!0,!0,!1),t.setState((function(e){return{CurrentUrl:Object(b.a)(Object(b.a)({},e.CurrentUrl),{},{mainVideo:t.props.initialVideo}),UI:Object(b.a)(Object(b.a)({},e.UI),{},{showVideo:!0,showImage:!1,showBackButton:!1}),currentHotspot:t.props.initialHotspot}}))}))}},e.backToLobby=function(t){t.preventDefault(),e.props.changeInternalStateHandler&&e.props.changeInternalStateHandler(""),e.toggleHUDElement(!1,!1,!1),e.frameImageRef.current?(e.setState({frameImageClass:"fadeIn"}),e.frameImageRef.current.addEventListener("webkitAnimationEnd",e.playLobbyLoop),e.frameImageRef.current.addEventListener("animationend",e.playLobbyLoop)):e.playLobbyLoop()},e.playLobbyLoop=function(){e.setState((function(t){return{CurrentUrl:Object(b.a)(Object(b.a)({},t.CurrentUrl),{},{mainVideo:e.props.initialVideo}),UI:Object(b.a)(Object(b.a)({},t.UI),{},{showVideo:!0,showImage:!1,showBackButton:!1,showTransitionVideo:!1,showTutButton:!0}),frameImageClass:"fadeOut",frameVideoStyle:{visibility:"visible",animation:"fadeOutEffect 1.25s ease-in-out",MozAnimation:"fadeOutEffect 1.25s ease-in-out",WebkitAnimation:"fadeOutEffect 1.25s ease-in-out"},currentHotspot:e.props.initialHotspot}})),e.videoRef.current.load(),e.videoRef.current.loop=!0,e.videoRef.current.play(),setTimeout((function(){e.toggleHUDElement(!0,!0,!1)}),1250)},e.showMediaModal=function(t,n,a){t.preventDefault(),n!==R?e.props.ShowMediaModal(n,a):window.open(a,"_blank")},e.handleTransitionVideoStart=function(){e.setState((function(e){return{UI:Object(b.a)(Object(b.a)({},e.UI),{},{showTransitionVideo:!0})}}))},e.handleTransitionVideoTagEnd=function(){e.setState((function(e){return{UI:Object(b.a)(Object(b.a)({},e.UI),{},{showTransitionVideo:!1})}})),e.handleTransitionVideoEnd(null)},e.handleIntroVideoStart=function(){e.setState((function(e){return{UI:Object(b.a)(Object(b.a)({},e.UI),{},{fadeIntroImage:!0})}}))},e.handleHotspotCLick=function(t,n){n.hotspotType===A?(n.transitionType===q&&e.props.addHotspotAnalytics&&e.props.addHotspotAnalytics(n),e.startTransition(t,n.transitionVideo,n.transitionType,n.newItem,n.hotspot,n.name)):n.hotspotType===_?(e.props.addHotspotAnalytics&&e.props.addHotspotAnalytics(n),e.showMediaModal(t,n.hotspotType,n)):n.hotspotType===E?e.props.checkIfSectionIsOpen(n.id)?e.showMediaModal(t,n.hotspotType,n):e.props.showLocationPopInfo(n.id):(e.props.addHotspotAnalytics&&e.props.addHotspotAnalytics(n),e.props.checkIfSectionIsOpen(n.id)?(console.log(n.id,be.football),n.id!==be.cricket&&n.id!==be.football||e.props.showGamePop&&e.props.showGamePop(!0,n.id),e.showMediaModal(t,n.hotspotType,n.link)):e.props.showLocationPopInfo(n.id))},e.handleInlineVideoPlayerClick=function(t){t&&t.preventDefault(),e.mouseInlineControlHover||e.setState((function(e){return{InlinePlayer:Object(b.a)(Object(b.a)({},e.InlinePlayer),{},{playing:!e.InlinePlayer.playing})}}))},e.handleInlineVideoPlay=function(t){e.setState((function(e){return{InlinePlayer:Object(b.a)(Object(b.a)({},e.InlinePlayer),{},{showLid:!1})}}))},e.handleInlineVideoPause=function(t){e.setState((function(e){return{InlinePlayer:Object(b.a)(Object(b.a)({},e.InlinePlayer),{},{showLid:!0})}}))},e.checkToPlayVideo=function(){return void 0!=e.props.medialModalActive&&(!e.props.medialModalActive&&(!!e.state.InlinePlayer.playing||void 0))},e.handleInlineMouseHover=function(t){e.mouseInlineControlHover=t},e.handleInfoButton=function(){e.setState((function(e){return{UI:Object(b.a)(Object(b.a)({},e.UI),{},{showTutComponenet:!0})}}))},e}return Object(h.a)(n,[{key:"componentDidMount",value:function(){window.scene=this,this.props.addAnalytics&&this.props.addAnalytics(!0),this.previousStyle_Overflow=document.body.style.overflow,document.body.style.overflow="hidden",this.checkForTut(),window.addEventListener("resize",this.hadnleResize)}},{key:"render",value:function(){var e=this;return Object(i.jsxs)(i.Fragment,{children:[this.state.UI.showGlobalBackButton&&(void 0===this.props.medialModalActive||!this.props.medialModalActive)&&Object(i.jsx)("img",{src:ue.BACKBUTTON,alt:"backButtonToLobby",className:"globalBackButton",onClick:function(t){return e.props.changeComponenet(t,ie[J])}}),this.props.showTut&&this.state.UI.showTutButton&&Object(i.jsx)("img",{src:ue.INFOBUTTON,alt:"infoButton",className:"infoButton-audi",onClick:function(t){return e.handleInfoButton(t)}}),Object(i.jsx)("div",{className:"main3DContainer",ref:this.main3dContainer,children:Object(i.jsxs)("div",{id:"child3DContainer",ref:this.child3dContainer,style:this.state.child3dContainerStyle,children:[this.props.isImageScene&&Object(i.jsx)("img",{ref:this.videoRef,id:"FrameVideo",src:this.props.initalImage,style:Object(b.a)(Object(b.a)({},this.state.frameVideoStyle),{},{height:"100%",width:"auto",maxWidth:"none"}),alt:"MainSceneImage"}),!this.props.isImageScene&&Object(i.jsxs)(i.Fragment,{children:[!this.state.UI.fadeIntroImage&&Object(i.jsx)(i.Fragment,{children:Object(i.jsxs)("div",{style:{width:"calc(100vh * ".concat(this.ratio,")"),height:"100vh",position:"absolute",display:"flex",justifyContent:"center",pointerEvents:"none"},children:[Object(i.jsx)("div",{className:"blocker ".concat(this.state.UI.fadeIntroImage?"d-none":""),children:Object(i.jsx)("div",{className:"lds-dual-ring"})}),Object(i.jsx)("img",{id:"introFrame",className:this.state.UI.fadeIntroImage?"IntroFadeImage":"",alt:"Introframe",src:this.props.firstVideoFrame,style:jt})]})}),Object(i.jsxs)("video",{id:"FrameVideo",width:"320",height:"240",loop:!0,muted:!0,autoPlay:!0,preload:"auto",playsInline:!0,ref:this.videoRef,style:this.state.frameVideoStyle,onPlay:this.handleIntroVideoStart,children:[Object(i.jsx)("source",{src:this.state.CurrentUrl.mainVideo,type:"video/mp4"}),"Your browser does not support HTML5 video."]}),Object(i.jsxs)("video",{className:"TransitionVideo ".concat(this.state.UI.showTransitionVideo?"fadeInTransitionVideo":""," "),width:"320",height:"240",loop:!1,muted:!0,preload:"auto",playsInline:!0,ref:this.transitionVideoRef,style:this.state.UI.showTransitionVideo?this.state.frameVideoStyle:{},onPlay:this.handleTransitionVideoStart,onEnded:this.handleTransitionVideoTagEnd,children:[Object(i.jsx)("source",{src:this.state.CurrentUrl.transitionVideo,type:"video/mp4"}),"Your browser does not support HTML5 video."]})]}),this.state.UI.showBackButton&&Object(i.jsx)("img",{src:ue.BACKBUTTON,alt:"backButtonToLobby",className:"backButton",onClick:function(t){return e.backToLobby(t)}}),this.state.UI.showImage&&Object(i.jsx)("img",{id:"FrameImage",className:this.state.frameImageClass,src:this.state.CurrentUrl.image,alt:"LobbyImage",ref:this.frameImageRef}),this.state.UI.showOverlay&&Object(i.jsx)("div",{id:"overlayContent",style:{height:"100vh",width:"calc(100vh * ".concat(this.ratio,")")},className:"".concat(this.state.InlinePlayer.fullScreen?"unsetPos":""),children:Object(i.jsx)("div",{id:"lobbyScreen",children:this.state.currentHotspot&&Object.keys(this.state.currentHotspot).map((function(t){if(!e.state.currentHotspot[t].enabled)return null;if(e.state.currentHotspot[t].hotspotType===F)return Object(i.jsx)(i.Fragment,{children:Object(i.jsxs)("div",{id:"audiVideoFrame",style:e.state.InlinePlayer.fullScreen?{width:"100%",height:"100%",position:"fixed",zIndex:"44"}:e.state.currentHotspot[t].style,children:[Object(i.jsxs)("div",{className:"videoPlayerCover ".concat(e.state.InlinePlayer.showLid?"blackTransparentColor":""),style:e.state.InlinePlayer.fullScreen?{width:"100%",height:"100%"}:Object(b.a)(Object(b.a)({},e.state.currentHotspot[t].style),{},{margin:0}),onClick:function(t){return e.handleInlineVideoPlayerClick(t)},children:[Object(i.jsx)("div",{className:"lid upperLid ".concat(e.state.InlinePlayer.showLid?"":"animateLid")}),Object(i.jsx)("div",{className:"lid lowerLid ".concat(e.state.InlinePlayer.showLid?"":"animateLid")}),Object(i.jsx)("div",{className:"fakePlaybutton-container",children:Object(i.jsx)("div",{className:"fakePlaybutton ".concat(e.state.InlinePlayer.showLid?"":"animateLid-0")})}),Object(i.jsx)("div",{className:"inlineVideoControlsContainer",children:Object(i.jsxs)("div",{className:"videoControlsContainer-fullscreen",onMouseEnter:function(t){return e.handleInlineMouseHover(!0)},onMouseLeave:function(t){return e.handleInlineMouseHover(!1)},children:[Object(i.jsx)("img",{className:"mg-b-2rem cursor-pointer inlineVideoControlsIcon",src:"/3dAssets/UI/".concat(e.state.InlinePlayer.mute?"mute_white.png":"unmute_white.png"),alt:"muteButton",onClick:function(t){return e.setState((function(e){return{InlinePlayer:Object(b.a)(Object(b.a)({},e.InlinePlayer),{},{mute:!e.InlinePlayer.mute})}}))}}),Object(i.jsx)("img",{className:"cursor-pointer inlineVideoControlsIcon",src:"/3dAssets/UI/".concat(e.state.InlinePlayer.fullScreen?"closeFullScreen_white.png":"FullScreen_white.png"),alt:"fullScreenButton",onClick:function(t){return e.setState((function(e){return{InlinePlayer:Object(b.a)(Object(b.a)({},e.InlinePlayer),{},{fullScreen:!e.InlinePlayer.fullScreen})}}))}})]})})]}),Object(i.jsx)(st.a,{id:"audiVideoPlayer",url:e.state.currentHotspot[t].link,playing:e.checkToPlayVideo(),controls:!1,loop:!0,playsinline:!0,width:"100%",height:"100%",volume:e.state.InlinePlayer.mute?0:.3,onPlay:function(){return e.handleInlineVideoPlay(e.state.currentHotspot[t].name)},onPause:function(){return e.handleInlineVideoPause(e.state.currentHotspot[t].name)}})]},t)});if(e.state.currentHotspot[t].buttonType)switch(e.state.currentHotspot[t].buttonType){case Q:return Object(i.jsx)("div",{id:t,className:"button-ripple hotspot",style:e.state.currentHotspot[t].style,onClick:function(n){return e.handleHotspotCLick(n,e.state.currentHotspot[t])},children:e.state.currentHotspot[t].name},t)}return Object(i.jsx)("img",{id:t,src:ue.RIPPLE,className:"hotspot",onClick:function(n){return e.handleHotspotCLick(n,e.state.currentHotspot[t])},style:e.state.currentHotspot[t].style,alt:"hotspot"},t)}))})}),this.state.UI.showTutComponenet&&this.props.tutComponent&&Object(i.jsx)(this.props.tutComponent,{ratio:this.ratio,skip:this.closeTut}),this.state.UI.showArrows&&this.state.UI.arrowsRequired&&Object(i.jsx)(i.Fragment,{children:Object(i.jsx)(ft,{updateParent:this.updateChild3DContainerStyle,mainContainer:this.child3dContainer.current,mediaContainer:this.videoRef.current,ref:this.arrowRef})})]})}),Object(i.jsx)("div",{})]})}}]),n}(r.Component);yt.contextType=tt;var xt=n(217);var wt,kt,It=function(e){return Object(i.jsxs)("div",{className:"qa-section__reply mg-b15",children:[Object(i.jsx)("h3",{className:"qa-section__title pd-b15",children:e.replyby}),Object(i.jsx)("h2",{className:"qa-section__ques",children:e.rcontent}),Object(i.jsxs)("span",{className:"time",children:[" ",e.time.toString()]})]})},Ct=function(e){var t=Object(r.useState)([]),n=Object(xt.a)(t,2),a=n[0],o=n[1];return Object(r.useEffect)((function(){ke.collection(e.QNAReplyCollection).orderBy("timestamp","desc").where("replytoid","==",e.id).onSnapshot((function(e){if(console.log(e),!e.empty){var t=e.docs.map((function(e){return Object(b.a)({id:e.id},e.data())}));console.log(t),o(t)}}))}),[]),Object(i.jsx)("div",{children:a.map((function(e){return Object(i.jsx)(It,{id:e.id,replyby:e.replyby,rcontent:e.rcontent,time:e.time2},e.id)}))})},St=n(98),Nt=n.n(St);we.onAuthStateChanged((function(e){e?(wt=e.uid,kt=e.displayName?e.displayName:e.email):wt=null}));var Tt=function(e){return Object(i.jsxs)("div",{className:"qa-section__block mg-b15",children:[Object(i.jsxs)("div",{className:"d-flex align-items-center justify-content-between pd-b10",children:[Object(i.jsx)("h3",{className:"qa-section__title",children:e.title}),Object(i.jsx)("span",{className:"qa-section__date",children:e.time.toString()})]}),Object(i.jsx)("h2",{className:"qa-section__ques pd-b20",children:e.content}),e.canReply&&Object(i.jsxs)(i.Fragment,{children:[Object(i.jsx)("form",{className:"",onSubmit:function(t){var n=t.target.parentElement,a=(n.querySelector("form"),n.querySelector("input"));t.preventDefault();var o=new FormData(t.target).get("content"),s=Nt()().utcOffset("+05:30").format("hh:mm A DD-MM-YYYY");ke.collection(e.QNAReplyCollection).add({rcontent:o,replyby:kt,replybyid:wt,replytoid:e.id,time:new Date,time2:s,timestamp:xe.firestore.FieldValue.serverTimestamp()}).then((function(){a.value=""}))},children:Object(i.jsx)("input",{className:"form-control-qna mg-b20",name:"content",id:"myInput",required:!0,placeholder:"Reply to "+e.title,autoCorrect:"off",autoComplete:"off"})}),Object(i.jsx)("div",{children:Object(i.jsx)(Ct,{id:e.id,QNACollection:e.QNACollection,QNAReplyCollection:e.QNAReplyCollection})})]})]})},Mt=function(e){Object(p.a)(n,e);var t=Object(m.a)(n);function n(e){var a;return Object(d.a)(this,n),(a=t.call(this,e)).state={content:"",user:{}},a}return Object(h.a)(n,[{key:"componentDidMount",value:function(){this.authListener()}},{key:"authListener",value:function(){var e=this;we.onAuthStateChanged((function(t){t?e.setState({user:t}):e.setState({user:null})}))}},{key:"onSubmit",value:function(e){var t=this;e.preventDefault();var n=Nt()().utcOffset("+05:30").format("hh:mm A DD-MM-YYYY");ke.collection(this.props.QNACollection).add({title:this.state.user.displayName?this.state.user.displayName:this.state.user.email,content:this.state.content,time:new Date,time2:n,timestamp:xe.firestore.FieldValue.serverTimestamp(),status:"".concat(this.props.moderated?"0":"1")}).then((function(){t.setState({content:""}),t.props.moderated&&ye()("Question Submitted!","Your question has been submitted")}))}},{key:"render",value:function(){var e=this;return Object(i.jsxs)("form",{className:"qa-section__input",onSubmit:this.onSubmit.bind(this),children:[Object(i.jsx)("input",{className:"form-control-qna",name:"content",onChange:function(t){return e.setState({content:t.currentTarget.value})},value:this.state.content,required:!0,placeholder:"Enter Your Question",autoCorrect:"off",autoComplete:"off",onFocus:this.props.onFocus,onBlur:this.props.onBlur}),Object(i.jsx)("button",{className:"form-control-qna__btn",children:Object(i.jsx)("i",{className:"icon-send"})})]})}}]),n}(c.a.Component),At=function(e){Object(p.a)(n,e);var t=Object(m.a)(n);function n(){var e;Object(d.a)(this,n);for(var a=arguments.length,o=new Array(a),s=0;s0&&(t.docs.forEach((function(e){a.pollDocData.push(e)})),a.setState({pollCurrentState:Lt})),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),console.log(e.t0);case 11:case"end":return e.stop()}}),e,null,[[0,8]])}))),a.printOption=function(e){var t=e.data().option,n=[];return t.forEach((function(a){n.push(Object(i.jsxs)("label",{className:"poll-custom-radio",children:[Object(i.jsx)("input",{type:"radio",name:"poll_".concat(e.id),value:"".concat(t.indexOf(a)),onClick:function(t){document.getElementById(e.id).querySelectorAll("input").forEach((function(e){e.classList.contains("selectedAnswer")&&e.classList.remove("selectedAnswer")})),t.target.classList.add("selectedAnswer")}}),Object(i.jsx)("i",{className:"icon-unchecked"}),"".concat(a)]}))})),n},a.printPoll=function(){if(a.pollDocData.length>0){var e=[];return a.pollDocData.forEach((function(t){e.push(Object(i.jsxs)("div",{className:"poll-section__block poll-identifier",id:"".concat(t.id),children:[Object(i.jsx)("h3",{className:"poll-section__title mg-b20",children:"".concat(t.data().question)}),a.printOption(t)]},"".concat(t.id)))})),e.push(Object(i.jsx)("div",{className:"poll-section__block",children:Object(i.jsx)("div",{className:"pd-t10 pd-b10",children:Object(i.jsx)("button",{className:"poll-btn btn-primary",onClick:a.onSubmit,children:"Submit"})})},"submitConainer")),e}return null},a.onSubmit=function(){document.querySelectorAll(".poll-identifier").forEach((function(e){if(e.querySelector(".selectedAnswer")){var t=e.querySelector(".selectedAnswer").value;a.sendPollFeedback(e.id,t),console.log("sent result")}})),a.setState({pollCurrentState:Pt})},a.sendPollFeedback=function(e,t){var n=ke.collection(a.props.Poll_Doc).doc(e);return ke.runTransaction((function(e){return e.get(n).then((function(a){if(!a.exists)throw"Document does not exist!";var o=a.data().totalResponse;o+=1;var s=a.data().optionResponse;return s[t]+=1,null!==s?(e.update(n,{totalResponse:o}),e.update(n,{optionResponse:s}),o):Promise.reject("Sorry! scoreArray is null")}))})).then((function(e){console.log("total response :",e)})).catch((function(e){console.error(e)}))},a.getResult=Object(v.a)(j.a.mark((function e(){var t;return j.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a.pollResultData=[],e.prev=1,e.next=4,ke.collection(a.props.Poll_Doc).get();case 4:t=e.sent,t.docs.forEach((function(e){a.pollResultData.push(e)})),a.setState({pollCurrentState:Dt}),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(1),console.log(e.t0);case 13:case"end":return e.stop()}}),e,null,[[1,10]])}))),a.printPollAnswer=function(e){var t=[],n=e.option,a=e.totalResponse,o=e.optionResponse;return n.forEach((function(s){var r=0;0!==e.totalResponse&&(r=Math.floor((o[n.indexOf(s)]/a*100).toPrecision(2))),t.push(Object(i.jsxs)("div",{className:"poll-custom-progress-box",children:["".concat(s),Object(i.jsxs)("div",{className:"poll-custom-progress-bar",children:[Object(i.jsx)("div",{className:"poll-custom-progress-bar__front",style:{width:"".concat(r,"%")}}),Object(i.jsxs)("span",{className:"poll-custom-progress-bar__percent",children:[" ","".concat(r,"%")]})]})]},n.indexOf(s)))})),t},a.printPollResults=function(){if(a.pollResultData.length>0){var e=[];return a.pollResultData.forEach((function(t){var n=t.data();e.push(Object(i.jsxs)("div",{className:"poll-section__block",id:"".concat(t.id),children:[Object(i.jsx)("h3",{className:"poll-section__title pd-b10",children:"".concat(n.question)}),a.printPollAnswer(n)]},"".concat(t.id)))})),e}return null},a.state={pollCurrentState:Rt},a.pollDocData=[],a.pollResultData=[],a}return Object(h.a)(n,[{key:"componentDidMount",value:function(){this.suscribeToPollAdmin()}},{key:"componentWillUnmount",value:function(){this.unsuscribeToPollAdmin()}},{key:"onHeadingClick",value:function(e){this.props.onHeadingClick(e)}},{key:"render",value:function(){var e=this;return Object(i.jsx)(i.Fragment,{children:Object(i.jsxs)("div",{className:"second-level-nav",children:[Object(i.jsxs)("h3",{className:"second-level-nav__title has-icon",onClick:function(t){return e.onHeadingClick(t)},children:["Public Poll",Object(i.jsx)("i",{className:"icon-close"})]}),Object(i.jsxs)("div",{className:"poll-section scrollable-part",children:[this.state.pollCurrentState===Lt?Object(i.jsx)("div",{className:"poll-section__inner",children:this.printPoll()}):null,this.state.pollCurrentState===Dt?Object(i.jsx)("div",{className:"poll-section__inner",children:this.printPollResults()}):null,this.state.pollCurrentState===Pt?Object(i.jsx)("div",{className:"d-flex h-100 align-items-center justify-content-center",children:Object(i.jsx)("p",{className:"light-color",children:"Waiting for results"})}):null,this.state.pollCurrentState===Rt?Object(i.jsx)("div",{className:"d-flex h-100 align-items-center justify-content-center",children:Object(i.jsx)("p",{className:"light-color",children:"Waiting for Poll To GO Live"})}):null]})]})})}}]),n}(r.Component),Ft=function(e){Object(p.a)(n,e);var t=Object(m.a)(n);function n(e){var a;return Object(d.a)(this,n),(a=t.call(this,e)).getFirstEnabledVideo=function(){for(var e=0;e90?e.props.videoData[t].name.substr(0,90)+"...":e.props.videoData[t].name}),Object(i.jsx)("p",{className:"video-player__item-text",children:e.props.videoData[t].description.length>40?e.props.videoData[t].description.substr(0,40)+"...":e.props.videoData[t].description})]})]},t):null}))})})]})]})})})})})}}]),n}(r.Component),_t=function(e){Object(p.a)(n,e);var t=Object(m.a)(n);function n(){var e;Object(d.a)(this,n);for(var a=arguments.length,o=new Array(a),s=0;s0?e:0}},a.closeChat=function(e){e.preventDefault(),a.props.closeChat(!1)},a.user={channel:e.channel,id:e.user.id,name:e.user.name},a.message=c.a.createRef(),a.messageDiv=c.a.createRef(),a}return Object(h.a)(n,[{key:"componentDidMount",value:function(){fetch("https://twilio-chat-api-dot-virtualeventdemo.el.r.appspot.com/chat/token",{headers:{"Content-Type":"application/x-www-form-urlencoded"},method:"POST",body:"identity=".concat(encodeURIComponent(this.user.id))}).then((function(e){return e.json()})).then((function(e){return Jt.a.create(e.token)})).then(this.setupChatClient).catch(this.handleError)}},{key:"componentWillUnmount",value:function(){}},{key:"render",value:function(){var e=this;return this.state.error?Object(i.jsxs)("p",{className:"popover-modal",children:[" ",this.state.error]}):Object(i.jsx)(i.Fragment,{children:Object(i.jsx)("div",{className:"publicChatBox ".concat(this.props.visibility?" ":"d-none"),children:Object(i.jsx)("section",{className:"chat-container",children:Object(i.jsxs)("div",{className:"chat-section",children:[Object(i.jsxs)("div",{className:"chat-section__header bottom-border",children:[Object(i.jsx)("div",{className:"chat-section__header__title light-color",children:"Helpdesk"}),!this.state.isLoading&&Object(i.jsx)("div",{className:"chat-section__header__close",onClick:function(t){return e.closeChat(t)}})]}),Object(i.jsxs)("div",{className:"chat-section__body",ref:this.messageDiv,children:[this.state.isLoading&&Object(i.jsx)(i.Fragment,{children:Object(i.jsx)("div",{className:"chat-loader",children:Object(i.jsx)("img",{src:"/assets/images/Loader.gif",alt:"Loader",width:"50"})})}),!this.state.isLoading&&this.state.messages.map((function(t){return Object(i.jsxs)(i.Fragment,{children:[e.user.id==t.user.id&&Object(i.jsxs)("div",{className:"chat-section__message chat-section__message--sent",children:[Object(i.jsxs)("span",{className:"chat-section__text",children:[" ",t.text," "]},"".concat(t.id,"-span")),Object(i.jsx)("span",{className:"chat-section__profile",children:Object(i.jsx)("img",{src:"assets/images/Profile-picture.png",alt:""})},"".concat(t.id,"-profile"))]},t.id),e.user.id!=t.user.id&&Object(i.jsxs)("div",{className:"chat-section__message chat-section__message--received",children:[Object(i.jsx)("span",{className:"chat-section__profile",children:Object(i.jsx)("img",{src:"assets/images/chatbot-s.png",alt:""})}),Object(i.jsxs)("span",{className:"chat-section__text",children:[" ",t.text," "]})]},t.id)]})}))]}),!this.state.isLoading&&Object(i.jsx)("div",{className:"chat-section__footer",children:Object(i.jsxs)("div",{className:"chat-section__form",children:[Object(i.jsx)("input",{ref:this.message,type:"text",className:"chat-section__input",placeholder:"Type a Message",onKeyPress:function(t){return"Enter"===t.key&&e.sendMessage(t)}}),Object(i.jsx)("button",{onClick:function(t){return e.sendMessage(t)},className:"chat-section__btn",children:Object(i.jsx)("i",{className:"icon-send"})})]})})]})})})})}}]),n}(r.Component),tn=(n(426),{background:"url(/assets/images/leaderboard-bg.jpg)",backgroundPosition:"center",backgroundSize:"cover",backgroundRepeat:"noRepeat"}),nn={background:"url(/assets/images/header/logo.png)",backgroundPosition:"center",backgroundSize:"contain",backgroundRepeat:"no-repeat",width:"35rem",height:"20rem"},an={background:"url(/assets/images/close.png)",backgroundPosition:"center",backgroundSize:"contain",backgroundRepeat:"no-repeat"},on={background:"url(/assets/images/team.png)",backgroundPosition:"center",backgroundSize:"contain",backgroundRepeat:"no-repeat"},sn={background:"url(/assets/images/leaderStart.png)",backgroundPosition:"center",backgroundSize:"contain",backgroundRepeat:"no-repeat"},rn=function(e){Object(p.a)(n,e);var t=Object(m.a)(n);function n(){var e;Object(d.a)(this,n);for(var a=arguments.length,o=new Array(a),s=0;s0?e.state.questionTimer-e.timeDecrementValue:0;e.setState({questionTimer:t}),0===t&&(clearInterval(e.questionTimerRef),setTimeout((function(){var t=e.state.answerRecord;t.push(0),e.setState({answerRecord:t}),e.updateToNextQuestion()}),500))}),e.timeDecrementValue)},e.renderFooter=function(){for(var t=[],n=0;ne.currentQuestionIndex&&Object(i.jsx)("span",{className:"quiz-progress--growth",style:{width:"0%"}})]})}));return t},e.handleAudioFinish=function(){if(console.log("audioFInished"),e.state.quizState===fn)e.setState((function(e){return{Audio:Object(b.a)(Object(b.a)({},e.Audio),{},{introFinsih:!0,audioSeek:0})}}));else if(e.state.quizState===jn)e.setState((function(e){return{Audio:Object(b.a)(Object(b.a)({},e.Audio),{},{howToPlayFinish:!0,audioSeek:0})}}));else if(e.state.quizState===On)e.setState((function(e){return{Audio:Object(b.a)(Object(b.a)({},e.Audio),{},{thanksFinish:!0,audioSeek:0})}}));else if(e.state.quizState===vn)if(e.state.answered)if(clearInterval(e.questionTimerRef),e.state.succefulyAttempt)setTimeout((function(){e.updateToNextQuestion()}),500);else{for(var t=0,n=e.props.quizData[e.state.currentQuestionKey].option,a=0;a3&&e.showGamePop(!0,e.state.UI.gamePopID))))}))},e.updateScore=function(){var t=Object(v.a)(j.a.mark((function t(n,a){return j.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Xe(e.context,e.props.userData.teamId,n,a);case 2:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),e.incrementGameStartCount=function(){var t=Object(v.a)(j.a.mark((function t(n){return j.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,$e(e.context,n);case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),e.playIntroAudio=function(){console.log(e.currentAudioRef),e.currentAudioRef.current&&e.currentAudioRef.current.audioEl.current.play(),e.AudioListenerRemoved=!0,window.removeEventListener("click",e.playIntroAudio)},e.openLastMenu=function(t){t&&t.preventDefault(),e.setState((function(e){return{UI:Object(b.a)(Object(b.a)({},e.UI),{},{activeMenu:e.UI.lastMenu,overlayMenu:null})}}))},e.handleClick=function(t,n,a){if(t&&t.preventDefault(),e.closeMediaModal(),e.state.UI.overlayMenu){if(n.id===e.state.UI.overlayMenu.id)return}else if(n.id===e.state.UI.activeMenu.id)return;a&&(e.currentOverlayCallback=a),n.id===X.Leaderboard&&e.addHotspotAnalytics("leaderboard"),n.id===X.Audi?(console.log("make interaction false"),e.setState((function(t){return{UI:Object(b.a)(Object(b.a)({},t.UI),{},{activeMenu:n,overlayMenu:null,lastMenu:t.UI.activeMenu,activeSubMenu:null,showHelpdeskChat:!1,showLeaderboard:!1,showLeaderboardButton:!0,showGamePop:!1,isInteractable:e.state.audiActive}),selectedBreakoutRoom:null}}))):n.id!==X.MyProfile&&n.id!==X.Leaderboard&&n.id!==X.Agenda?e.setState((function(e){return{UI:Object(b.a)(Object(b.a)({},e.UI),{},{activeMenu:n,overlayMenu:null,lastMenu:e.UI.activeMenu,activeSubMenu:null,showHelpdeskChat:!1,showLeaderboard:!1,showLeaderboardButton:!0,showGamePop:!1,isInteractable:!0}),selectedBreakoutRoom:null}})):e.setState((function(e){return{UI:Object(b.a)(Object(b.a)({},e.UI),{},{overlayMenu:n,lastMenu:e.UI.activeMenu,showGamePop:!1}),selectedBreakoutRoom:null}}))},e.handleBreakoutRoomSelection=function(t,n){t&&t.preventDefault(),console.log("make interaction true"),e.props.userData.roomId.indexOf(n.id)>-1&&e.setState((function(e){return{UI:Object(b.a)(Object(b.a)({},e.UI),{},{isInteractable:!0}),breakoutLink:n.link,selectedBreakoutRoom:n}}))},e.checkIfSectionIsOpen=function(t){switch(console.log(t),t){case be.football:case be.quiz:case be.cricket:case be.photobooth:return e.state.GamesActive;default:return!0}},e.showLocationPopInfo=function(t){switch(t){case be.football:case be.quiz:case be.cricket:case be.photobooth:e.showInfoPopUp(e.state.GamesMessage);break;default:return!0}},e.handleSubmenuItemClick=function(t,n){t&&t.preventDefault(),e.state.UI.activeSubMenu&&e.state.UI.activeSubMenu.id===n.id||(n.id!==oe?e.setState((function(e){return{UI:Object(b.a)(Object(b.a)({},e.UI),{},{activeSubMenu:n})}})):e.state.audiActive?window.location.href=pe.stageLink:e.state.breakoutActive&&window.open(e.state.selectedBreakoutRoom.stageLink))},e.closeSubMenu=function(t){t&&t.preventDefault(),e.setState((function(e){return{UI:Object(b.a)(Object(b.a)({},e.UI),{},{activeSubMenu:null,showMediaModal:!1}),MediaModalInfo:Object(b.a)(Object(b.a)({},e.MediaModalInfo),{},{link:"",type:null})}}))},e.hideOverlayMenu=function(t){t&&t.preventDefault(),e.state.UI.overlayMenu&&e.setState((function(e){return{UI:Object(b.a)(Object(b.a)({},e.UI),{},{overlayMenu:null,showAskExpertError:!1})}})),e.currentOverlayCallback&&(e.currentOverlayCallback(),e.currentOverlayCallback=null)},e.showMediaModal=function(t,n){if(t!==_)return t===E?e.state.gameCount.quiz&&e.state.gameCount.quiz>=1?void e.showGamePop(!0,be.quiz):void e.setState((function(e){return{UI:Object(b.a)(Object(b.a)({},e.UI),{},{showQuiz:!0})}})):void e.setState((function(e){return{UI:Object(b.a)(Object(b.a)({},e.UI),{},{showMediaModal:!0}),MediaModalInfo:Object(b.a)(Object(b.a)({},e.MediaModalInfo),{},{link:n||"",type:t})}}));e.handleHelpdeskChatbutton()},e.handleMedialModalFromOverlay=function(t,n){e.hideOverlayMenu(),e.showMediaModal(t,n)},e.closeMediaModal=function(){e.setState((function(e){return{UI:Object(b.a)(Object(b.a)({},e.UI),{},{showMediaModal:!1}),MediaModalInfo:Object(b.a)(Object(b.a)({},e.MediaModalInfo),{},{link:"",type:null})}}))},e.handleTeamOptionSelection=function(t,n){window.open(n.link,"_blank"),e.hideOverlayMenu(t)},e.checkIfAudioCanPlayUnderMediaModal=function(){return!e.state.UI.showMediaModal||e.state.MediaModalInfo.type===P},e.handleHelpdeskChatClose=function(){window.lastChatBotRef&&(window.lastChatBotRef.enabled=!0)},e.handleHelpdeskChatbutton=function(){document.querySelector(".engt-launcher-button").click()},e.handleLobbyInternalState=function(t){switch(t){case"Infodesk":e.setState((function(e){return{UI:Object(b.a)(Object(b.a)({},e.UI),{},{showHelpdeskChat:!0})}}));break;default:document.querySelector("#engt-chatbox").style.display="none",e.setState((function(e){return{UI:Object(b.a)(Object(b.a)({},e.UI),{},{showHelpdeskChat:!1})}}))}},e.handleSceneTutorial=function(t){"end"===t&&e.setState((function(e){return{UI:Object(b.a)(Object(b.a)({},e.UI),{},{isInteractable:!0})}}))},e.handleHotspotAnalytics=function(t){console.log(t.id),e.addHotspotAnalytics(t.id)},e.addComponentAnalytics=function(t,n){n&&e.addHotspotAnalytics(t),e.addLocationAnalytics(t,n)},e.addLocationAnalytics=function(t,n){n&&Ve(e.context,t)},e.addHotspotAnalytics=function(t){ze(e.context,t)},e.addScorePoints=function(t){console.log("pooint->"+t),He(e.context,t)},e.handleLeaderboardClose=function(){e.setState((function(e){return{UI:Object(b.a)(Object(b.a)({},e.UI),{},{showLeaderboard:!1,showLeaderboardButton:!0})}}))},e.handleLeaderboardButton=function(){e.setState((function(e){return{UI:Object(b.a)(Object(b.a)({},e.UI),{},{showLeaderboard:!0,showLeaderboardButton:!1})}}))},e.canShowLeaderboardInNet=function(){return e.state.UI.activeMenu.id===X.Networking&&!e.state.UI.activeSubMenu},e.updateQuizScore=function(e){void 0!=e&&console.log(e)},e.handleQuizFinish=function(){var t=Object(v.a)(j.a.mark((function t(n,a){return j.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n&&(e.updateScore("quiz",a),console.log(a)),e.setState((function(e){return{UI:Object(b.a)(Object(b.a)({},e.UI),{},{showQuiz:!1})}}));case 2:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),e.showGamePop=function(t,n){console.log(t);var a=!1;e.state.gameCount[n]&&(n===be.cricket||n===be.football?e.state.gameCount[n]>=3&&(a=!0):n===be.quiz&&e.state.gameCount[n]>=1&&(a=!0)),e.setState((function(e){return{UI:Object(b.a)(Object(b.a)({},e.UI),{},{showGamePop:t,showAttemptFull:a,gamePopID:n||e.UI.gamePopID})}}))},e.getBreakOutRoom=function(){for(var t=e.props.breakoutRooms,n=0;n-1?"":"listItem-notActive"),children:[Object(i.jsxs)("div",{className:"listItem-title",style:{textAlign:"left"},children:[Object(i.jsx)("h2",{style:{color:"red"},children:t.name}),Object(i.jsx)("span",{children:t.description})]}),Object(i.jsx)("div",{className:"listItem-btn",style:{background:"#0D2EA6",boxShadow:"0px 4px 14px rgba(0, 0, 0, 0.25)",padding:"0.5rem 0.8rem",borderRadius:"0.2rem"},onClick:function(n){return e.handleBreakoutRoomSelection(n,t)},children:"CONNECT"})]},t.id)})}))})]})})})})]}),this.state.UI.overlayMenu&&this.state.UI.overlayMenu.id===X.Leaderboard&&Object(i.jsx)(hn,{teamId:this.props.userData.teamId,close:this.hideOverlayMenu}),this.state.UI.overlayMenu&&Object(i.jsx)(i.Fragment,{children:this.state.UI.overlayMenu.id===X.Agenda&&Object(i.jsx)("article",{className:"img-bg videoBox h-100 zIndex-16",id:"play",children:Object(i.jsxs)("div",{className:"media-modal",children:[Object(i.jsx)("iframe",{title:"pdf",className:"media-modal-content",src:he.Agenda.link}),Object(i.jsx)("img",{src:ue.CLOSEBUTTON,className:"closeButton-mediaModal",alt:"MediaModalCLoseButton",onClick:this.hideOverlayMenu})]})})}),Object(i.jsxs)("footer",{className:"footerBox",children:[this.state.UI.overlayMenu&&Object(i.jsx)(i.Fragment,{children:this.state.UI.overlayMenu.id===X.MyProfile&&Object(i.jsx)("div",{children:Object(i.jsx)(lt,{close:this.hideOverlayMenu,ShowMediaModal:this.handleMedialModalFromOverlay})})}),this.state.UI.activeMenu&&!this.state.UI.activeMenu.subMenus&&Object(i.jsx)(it,{items:this.state.UI.menuItems,mainMenuState:this.state.UI.overlayMenu?this.state.UI.overlayMenu.id:this.state.UI.activeMenu.id,onMenuItemClick:this.handleClick,canInteract:this.state.UI.isInteractable}),this.state.UI.activeMenu.subMenus&&Object(i.jsx)(it,{items:this.state.UI.activeMenu.subMenus,mainMenuState:this.state.UI.activeSubMenu?this.state.UI.activeSubMenu.id:-1,onMenuItemClick:this.handleSubmenuItemClick,canInteract:this.state.UI.isInteractable,backButton:!0,onBackButtonClick:function(t){return e.handleClick(t,ie[J])}}),this.state.UI.activeSubMenu&&this.state.UI.activeMenu.id===X.Audi&&Object(i.jsx)(i.Fragment,{children:this.state.UI.activeSubMenu.id===se&&Object(i.jsx)("div",{children:Object(i.jsx)(lt,{close:this.closeSubMenu,ShowMediaModal:this.handleMedialModalFromOverlay})})}),this.state.UI.activeSubMenu&&this.state.UI.activeMenu.id===X.Audi&&this.state.UI.activeSubMenu.id!==se&&Object(i.jsxs)(i.Fragment,{children:[this.state.audiActive&&Object(i.jsxs)("div",{className:"submenu-container active expended",children:[this.state.UI.activeSubMenu.id===te&&Object(i.jsx)(Ut,{headerName:"Q&A",onHeadingClick:this.closeSubMenu,QNACollection:"qnaAudi",QNAReplyCollection:"qnaAudiReply",canReply:!1,moderated:!0}),this.state.UI.activeSubMenu.id===ne&&Object(i.jsx)(Bt,{onHeadingClick:this.closeSubMenu,PollAdmin_Col:"audiPollAdmin",PollAdmin_Doc:"adminAccess",Poll_Doc:"audiPoll"}),this.state.UI.activeSubMenu.id===ae&&Object(i.jsx)(Ut,{headerName:"Chat",onHeadingClick:this.closeSubMenu,QNACollection:"chatAudi",QNAReplyCollection:"chatAudiReply",canReply:!0,moderated:!1})]}),this.state.breakoutActive&&Object(i.jsxs)("div",{className:"submenu-container active expended",children:[this.state.UI.activeSubMenu.id===te&&Object(i.jsx)(Ut,{headerName:"Q&A",onHeadingClick:this.closeSubMenu,QNACollection:"qnaBreakout-".concat(this.state.selectedBreakoutRoom.id),QNAReplyCollection:"qnaBreakoutReply-".concat(this.state.selectedBreakoutRoom.id),canReply:!1,moderated:!0}),this.state.UI.activeSubMenu.id===ne&&Object(i.jsx)(Bt,{onHeadingClick:this.closeSubMenu,PollAdmin_Col:"breakoutPollAdmin-".concat(this.state.selectedBreakoutRoom.id),PollAdmin_Doc:"adminAccess",Poll_Doc:"breakoutPoll-".concat(this.state.selectedBreakoutRoom.id)}),this.state.UI.activeSubMenu.id===ae&&Object(i.jsx)(Ut,{headerName:"Chat",onHeadingClick:this.closeSubMenu,QNACollection:"chatBreakout-".concat(this.state.selectedBreakoutRoom.id),QNAReplyCollection:"chatBreakoutReply-".concat(this.state.selectedBreakoutRoom.id),canReply:!0,moderated:!1})]})]})]})]})}),this.checkIfAudioCanPlayUnderMediaModal()&&this.state.UI.activeMenu.id!==X.Breakout&&this.state.UI.activeMenu.id!==X.Audi&&this.state.UI.activeMenu.id!==X.product&&Object(i.jsx)(Wt.a,{src:"/3dAssets/music/ambientMusic.mp3",autoPlay:!0,volume:.1,loop:!0,preload:"auto",ref:this.currentAudioRef})]})}}]),n}(r.Component);In.contextType=tt;var Cn=In,Sn=function(e){Object(p.a)(n,e);var t=Object(m.a)(n);function n(){var e;Object(d.a)(this,n);for(var a=arguments.length,o=new Array(a),s=0;s