PageSourceSearch

https://sephora-da876.web.app/static/js/main.e313548d.chunk.js

js sephora-da876.web.app collected 2026-10-03 12:35:20 UTC 227,602 bytes, 2 lines download raw bytes

1(this["webpackJsonpbd-project"]=this["webpackJsonpbd-project"]||[]).push([[0],{115:function(e,t,n){},174:function(e,t,n){},179:function(e,t,n){},311:function(e,t,n){},342:function(e,t,n){},460:function(e,t,n){},461:function(e,t,n){},550:function(e,t){},592:function(e,t){},630:function(e,t,n){},631:function(e,t,n){},634:function(e,t,n){},635:function(e,t,n){"use strict";n.r(t);var a={};n.r(a),n.d(a,"VideoPlayerData",(function(){return ye})),n.d(a,"LobbyStall1VideoPlayer",(function(){return xe})),n.d(a,"LobbyStall1PdfPlayer",(function(){return we})),n.d(a,"LobbyStall1BusinessCardPlayer",(function(){return ke}));var i={};n.r(i),n.d(i,"InfoHotspots",(function(){return Se})),n.d(i,"LobbyStall1Hotspot",(function(){return Ce})),n.d(i,"AudiData",(function(){return Ie})),n.d(i,"LabData",(function(){return Me})),n.d(i,"DBRData",(function(){return Ne})),n.d(i,"links",(function(){return Le})),n.d(i,"TeamsData",(function(){return Ae})),n.d(i,"LobbyHotspotsId",(function(){return Te})),n.d(i,"LobbyHotspots",(function(){return Ue})),n.d(i,"NetworkingLounge",(function(){return Pe}));var s,o=n(1),c=n(4),r=n.n(c),l=n(55),d=n.n(l),u=(n(311),n(12)),h=n(13),m=n(16),p=n(15),b=n(6),f=n.n(b),j=n(8),v=n(29),g=n(10),O=n(171),y=n(28),x=(n(174),n(5)),w=n(34),k=(n(314),n(316),n(318),n(636),n(637),"dailyco"),S="backStage",C="backStage",I="staticData",M="meetingRoomMessage",N="meetingRoom",L="meetingRoomCutom",A={Prelobby:1,Lobby:2,Game:3,LeaderBoard:4,PhotoBooth:5,MyProfile:7,videoPlayList:6},T={Prelobby:0,Lobby:1,Game:2,LeaderBoard:3,PhotoBooth:4,MyProfile:6,videoPlayList:5},U=1,P=2,R=3,D=4,B=5,F={Chat:1},E=0,V=[{id:A.Prelobby,name:"PreLobby",class:"icon-pre-lobby-n"},{id:A.Lobby,name:"Funzone",class:"icon-lobby"},{id:A.Game,name:"Treasure hunt",class:"icon-game"},{id:A.LeaderBoard,name:"Leader Board",class:"icon-board"},{id:A.PhotoBooth,name:"Photobooth",class:"icon-photo"},{id:A.videoPlayList,name:"SEPHORA'S GOT TALENT",class:"icon-play",liClass:"invered-color"},{id:A.MyProfile,name:"Profile",class:"icon-profile"}],_="/3dAssets/videos/",H={LOBBYLOOP:_+"Lobby_Loop.mp4",LOOBYTOINFO:_+"ToInfoBooth.mp4",LOOBYTODBR:_+"ToDBR.mp4",DBRLOOP:_+"dbr.mp4",LOBBYTOAudi:_+"ToAuditorium.mp4",LOOBYTOPRODUCTSTALL:_+"ToProductStall.mp4",LOBBYTOBREAKOUT:_+"breakout.mp4",BREAKOUTLOOP:_+"breakoutLoop.mp4",AUDITORIUM:_+"Auditorium.mp4"},q="transition",z="iframe",G="video",W="image",Y="pdf",Q="anchor",J="videoPlayer",Z="pdfPlayer",K="inlineVideo",X="chatbot",$="custom",ee="videoCall",te="stallChat",ne="QRcode",ae="imgGraphics",ie="PortraitIMGgraphics",se=0,oe=1,ce=2,re="named",le="lobby",de="audi",ue="networking",he="dbr",me="PreLobby",pe="youtube",be="vimeo",fe="/stallChat/index.html",je="/publicChatEmail/index.html",ve={treasure1:100,treasure2:100,treasure3:200,treasure4:100,treasure5:100,treasure6:200,treasure7:200,treasure8:200},ge="/3dAssets/UI/",Oe={LOGOR1_old:"/assets/images/R1Logo.png",LOGOR1:"/assets/images/login/Login.png",LOGOKOA:"/assets/images/koaLogo.png",LOGO2:"/assets/images/login/Logo.png",LOGO:"/assets/images/logo.png",LOGOLG:"/assets/images/logo-lg.png",LoginScreen:"/assets/images/login/Login.png",LOGINSCREENSIDELOGO:"/assets/images/login/Welcome.png",MENULOGO:"/assets/images/logo.png",KnowledgeBook:"/assets/images/Interested.png",LOBBYLOOP:"/3dAssets/images/Lobby.jpg",Infodesk:"/3dAssets/images/Info.jpg",ProductStall:"/3dAssets/images/Product-Stall.jpg",Breakout:"/3dAssets/images/breakout.jpg",LobbyStall1:"/3dAssets/images/LobbyStall1.jpg",WELCOMEBACKGROUND:"assets/images/bg/all-stages.jpg",RIPPLE:"/3dAssets/gifs/Ripple-2.4s-128px.svg",BACKBUTTON:ge+"backButton.png",CLOSEBUTTON:ge+"closeButton.png",BUMPERPRIZEHEADER:"assets/images/banner-header.jpg",PDFLOGO:ge+"pdfIcon.png",INFOBUTTON:ge+"info/information.png"},ye={Holding:{enabled:!0,type:pe,id:"Holding",link:"/assets/content/sample.pdf",name:"ComingSoon",videoCode:"VoeUTFTXrOk",description:""},Video1:{enabled:!1,type:be,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."}},xe={Holding:{enabled:!0,type:pe,id:"Holding",link:"https://youtu.be/VoeUTFTXrOk",name:"ComingSoon",videoCode:"VoeUTFTXrOk",description:""},Video2:{enabled:!0,type:pe,id:"Holding",link:"https://www.youtube.com/rCoPr8UwRMc",name:"ComingSoon",videoCode:"rCoPr8UwRMc",description:""}},we={Holding:{enabled:!0,id:"Holding",link:"/web/viewer.html?file=%2Fassets%2Fcontent%2FAgenda.pdf",name:"pdf-1",description:""}},ke={card1:{enabled:!0,id:"card1",link:"/web/viewer.html?file=%2Fassets%2Fcontent%2FAgenda.pdf",name:"pdf-1",description:""}},Se={inLinevideo:{id:"product-video",get enabled(){return!g.isMobileOnly},name:"Stall Video",style:{margin:"13.7% 37.1%",width:"calc(58vh)",height:"calc(33vh)"},hotspotType:K,buttonType:re,link:"https://www.youtube.com/embed/BF5C3sxdewI"},video:{id:"product-video",get enabled(){return!!g.isMobileOnly},name:"Stall Video",desk_style:{margin:"5% 27%"},mobile_style:{margin:"-5% 0.5%"},get style(){return g.isMobileOnly?this.mobile_style:this.desk_style},hotspotType:G,buttonType:"default",link:"https://www.youtube.com/embed/BF5C3sxdewI"}},Ce={stallChat:{id:"intelStallChat",enabled:!0,name:"Live Chat",style:{margin:"8.5% -6.8%"},hotspotType:te,roomDetails:{id:"LobbyStall1"}
1,buttonType:re,customAnalytics:{path:"/lobbyStall1",id:"stallChat"}},stallCall:{id:"stallCall",enabled:!0,name:"Video Call",style:{margin:"8.5% 2.2%"},hotspotType:ee,roomDetails:{id:"lobbystall1"},buttonType:re,customAnalytics:{path:"/lobbyStall1",id:"stallCall"}}},Ie={introVideo:H.AUDITORIUM,link:"https://vimeo.com/event/473964",rmtpURL:"",showImage:!1,imageLink:"",placementStyle:{margin:"16.1% 35.38%",width:"28.5%",height:"37.2%"},streamLink:"https://streamyard.com/fpupwvz8ku"},Me={introVideo:H.BREAKOUTLOOP,link:"https://vimeo.com/event/473964",placementStyle:{margin:"14.65% 39%",width:"20.9%",height:"27.5%"}},Ne={introVideo:H.DBRLOOP,link:"https://vimeo.com/event/473964",placementStyle:{margin:"14.65% 39%",width:"25.9%",height:"27.5%"},zoomlink:""},Le={faceyoga:"/assets/content/sample.pdf",gamezone:"/assets/content/sample.pdf",igfilter:"/assets/content/sample.pdf",infodesk:"/assets/content/sample.pdf",pressroom:"/digitalRack/index.html"},Ae={"pdf-1":{id:"pdf=1",name:"ABOUT THE ACTIVITY",description:"",link:"/assets/content/TeamBuildingInfo.pdf",button:"READ MORE"},link1:{id:"link1",name:"Team Leadership",description:"Lorem Ipsum is simply dummy text of the printing and typesetting industry",link:"https://teams.microsoft.com/l/meetup-join/19%3ameeting_ODFmOTI3MTUtZTFmNy00NTgwLWExMzItOTI2MzkyNmFmYTlk%40thread.v2/0?context=%7b%22Tid%22%3a%2225c1df4b-00ea-4e39-98bd-5f1143c5c5df%22%2c%22Oid%22%3a%22abcb8352-f7bf-475a-82d7-cb6c48c7d70f%22%7d"},link2:{id:"link2",name:"Team Mindset",description:"Lorem Ipsum is simply dummy text of the printing and typesetting industry",link:"https://www.r1rcm.com/"},link3:{id:"link3",name:"Team Values",description:"Lorem Ipsum is simply dummy text of the printing and typesetting industry",link:"https://www.r1rcm.com/"},link4:{id:"link4",name:"Team Rising",description:"Lorem Ipsum is simply dummy text of the printing and typesetting industry",link:"https://www.r1rcm.com/"},link5:{id:"link5",name:"Team Leadership",description:"Lorem Ipsum is simply dummy text of the printing and typesetting industry",link:"https://www.r1rcm.com/"},link6:{id:"link6",name:"Team Mindset",description:"Lorem Ipsum is simply dummy text of the printing and typesetting industry",link:"https://www.r1rcm.com/"},link7:{id:"link7",name:"Team Values",description:"Lorem Ipsum is simply dummy text of the printing and typesetting industry",link:"https://www.r1rcm.com/"},link8:{id:"link8",name:"Team Rising",description:"Lorem Ipsum is simply dummy text of the printing and typesetting industry",link:"https://www.r1rcm.com/"},link9:{id:"link9",name:"Team Values",description:"Lorem Ipsum is simply dummy text of the printing and typesetting industry",link:"https://www.r1rcm.com/"},link10:{id:"link10",name:"Team Rising",description:"Lorem Ipsum is simply dummy text of the printing and typesetting industry",link:"https://www.r1rcm.com/"}},Te={Survey:"Survey",Twitter:"Twitter",Audi:"Audi",Networking:"Networking",Infodesk:"Infodesk",Agenda:"Agenda",LobbyStall1:"LobbyStall1",DBR:"DBR",LeadersProfile:"LeadersProfile",PreLobby:"PreLobby",Lobby:"Lobby",Game:"Game",PhotoBooth:"PhotoBooth",LeaderBoard:"LeaderBoard"},Ue=(s={},Object(v.a)(s,Te.Lobby,{id:Te.Lobby,enabled:!0,style:{margin:g.isIOS?"-2% -4.5%":"-3% -4.5%"},hotspotType:q,transitionVideo:H.LOBBYTOAudi,transitionType:oe,newItem:V[T.Lobby]}),Object(v.a)(s,Te.LeaderBoard,{id:Te.LeaderBoard,enabled:!1,style:{margin:"-20% -3%"},hotspotType:q,transitionVideo:null,transitionType:oe,newItem:V[T.LeaderBoard]}),Object(v.a)(s,Te.PhotoBooth,{id:Te.PhotoBooth,enabled:!0,style:{margin:(g.isIOS,"6% 1%")},hotspotType:z,link:"/photobooth/index.html"}),s),Pe={speakerPdf:"/web/viewer.html?file=%2Fassets%2Fcontent%2FSpeakers.pdf"};w.a.initializeApp({apiKey:"AIzaSyCAPrYs9EQjrggNIM7ByHBvAJl8VjFzlJY",authDomain:"seph
1ora-da876.firebaseapp.com",databaseURL:"https://sephora-da876-default-rtdb.asia-southeast1.firebasedatabase.app",projectId:"sephora-da876",storageBucket:"sephora-da876.appspot.com",messagingSenderId:"1085794147333",appId:"1:1085794147333:web:61cdaf99f727df5312d06c",measurementId:"G-HL69T9MK1R"}),window.firebaseInstance=w.a;var Re=w.a,De=w.a.auth(),Be=w.a.firestore(),Fe=w.a.database(),Ee=(w.a.analytics(),w.a.storage()),Ve=function(e,t){return new Promise(function(){var n=Object(j.a)(f.a.mark((function n(a,i){var s;return f.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,De.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),i(n.t0);case 11:case"end":return n.stop()}}),n,null,[[0,8]])})));return function(e,t){return n.apply(this,arguments)}}())},_e=function(e,t,n,a){return new Promise(function(){var i=Object(j.a)(f.a.mark((function i(s,o){var c;return f.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,De.createUserWithEmailAndPassword(e,t);case 3:return c=i.sent,console.log(c.user.email+" is signedUp in right now"),i.next=7,c.user.updateProfile({displayName:n,photoURL:a||"https://firebasestorage.googleapis.com/v0/b/djfarmademo.appspot.com/o/profileimages%2Fblank-avatar.png?alt=media&token=2af15226-9bd7-47ce-bc72-f3c1a12a0780"});case 7:s(),i.next=13;break;case 10:i.prev=10,i.t0=i.catch(0),o(i.t0);case 13:case"end":return i.stop()}}),i,null,[[0,10]])})));return function(e,t){return i.apply(this,arguments)}}())},He=function(){var e=Object(j.a)(f.a.mark((function e(t,n,a){var i=arguments;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i.length>3&&void 0!==i[3]&&i[3],e.abrupt("return",new Promise(function(){var e=Object(j.a)(f.a.mark((function e(i,s){return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Ve(t,n);case 3:i(),e.next=20;break;case 6:if(e.prev=6,e.t0=e.catch(0),console.log(e.t0),"auth/user-not-found"!==e.t0.code){e.next=19;break}return e.prev=10,e.next=13,_e(t,n,a);case 13:return e.abrupt("return");case 16:e.prev=16,e.t1=e.catch(10),"NoUserFound"===e.t1.code&&s(e.t1);case 19:s({code:e.t0.code,message:e.t0.message});case 20:case"end":return e.stop()}}),e,null,[[0,6],[10,16]])})));return function(t,n){return e.apply(this,arguments)}}()));case 2:case"end":return e.stop()}}),e)})));return function(t,n,a){return e.apply(this,arguments)}}(),qe=function(e){De.signOut().then((function(){e||(window.location.reload(),window.location.href="/")}))};!function(){var e="-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz",t=0,n=[]}();var ze=function(){return new Promise(function(){var e=Object(j.a)(f.a.mark((function e(t,n){var a,s;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Be.collection(S).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){i["".concat(e)].hasOwnProperty(n)?"object"!==typeof i["".concat(e)][n]?i["".concat(e)][n]=t[n]:i["".concat(e)][n]=Object(x.a)(Object(x.a)({},i["".concat(e)][n]),t[n]):"object"!==typeof t[n]?i["".concat(e)][n]=t[n]:i["".concat(e)][n]=Object(x.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)}}())},Ge=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];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(i){a(i)}}))},We=function(){return new Promise(function(){var e=Object(j.a)(f.a.mark((function e(t,n){var a;return f.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=8;break}return e.next=4,Ye();case 4:return a=e.sent,window.todaysDateTimestamp=a,t(),e.abrupt("return");case 8:t(),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(0),n(e.t0);case 14:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(t,n){return e.apply(this,arguments)}}())},Ye=function(){return new Promise(function(){var e=Object(j.a)(f.a.mark((function e(t,n){return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t("".concat((new Date).getFullYear(),"-").concat((new Date).getMonth()+1,"-").concat((new Date).getDate()));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}())},Qe=function(e){return new Promise(function(){var t=Object(j.a)(f.a.mark((function t(n,a){var i,s,o,c,r;return f.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,We();case 3:return t.next=5,Ge(e);case 5:return i=t.sent,s="analytics/".concat(window.todaysDateTimestamp,"/").concat(i),o=Fe.ref(s),t.next=10,o.once("value");case 10:if(c=t.sent,r={email:e.email,name:e.displayName},window.userData&&(r=Object(x.a)(Object(x.a)({},r),window.userData)),!c.exists()){t.next=18;break}return t.next=16,o.update(Object(x.a)(Object(x.a)({},r),{},{lastLoginTime:w.a.database.ServerValue.TIMESTAMP}));case 16:t.next=20;break;case 18:return t.next=20,o.set(Object(x.a)(Object(x.a)({},r),{},{firstLoginTime:w.a.database.ServerValue.TIMESTAMP,lastLoginTime:w.a.database.ServerValue.TIMESTAMP}));case 20:n(),t.next=27;break;case 23:t.prev=23,t.t0=t.catch(0),console.log(t.t0),a(t.t0);case 27:case"end":return t.stop()}}),t,null,[[0,23]])})));return function(e,n){return t.apply(this,arguments)}}())},Je=null,Ze=function(e){return new Promise(function(){var t=Object(j.a)(f.a.mark((function t(n,a){var i,s,o;return f.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,We();case 3:return t.next=5,Ge(e);case 5:return i=t.sent,s="analytics/".concat(window.todaysDateTimestamp,"/").concat(i),o=Fe.ref(s),Je=o.onDisconnect(),t.next=11,Je.update({lastLogoutTime:w.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]])}
1)));return function(e,n){return t.apply(this,arguments)}}())},Ke=function(e){return new Promise(function(){var t=Object(j.a)(f.a.mark((function t(n,a){var i,s,o;return f.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,We();case 3:return t.next=5,Ge(e);case 5:return i=t.sent,s="analytics/".concat(window.todaysDateTimestamp,"/").concat(i),o=Fe.ref(s),t.next=10,o.update({lastLogoutTime:w.a.database.ServerValue.TIMESTAMP});case 10:Je&&Je.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)}}())},Xe=function(e){return new Promise(function(){var t=Object(j.a)(f.a.mark((function t(n,a){var i,s,o;return f.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,i=Fe.ref("loggedInUser/"+e),s={},window.userData&&(s=Object(x.a)(Object(x.a)({},s),window.userData)),t.next=6,i.update(Object(x.a)(Object(x.a)({},s),{},{state:"online",lastChange:w.a.database.ServerValue.TIMESTAMP}));case 6:return t.next=8,i.onDisconnect();case 8:return o=t.sent,t.next=11,o.update(Object(x.a)(Object(x.a)({},s),{},{state:"offline",lastChange:w.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)}}())},$e=function(e,t){return new Promise(function(){var n=Object(j.a)(f.a.mark((function n(a,i){var s,o,c;return f.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,Ge(e);case 3:return s=n.sent,o=Fe.ref("loggedInUser/"+s),c={},window.userData&&(c=Object(x.a)(Object(x.a)({},c),window.userData)),n.next=9,o.update(Object(x.a)(Object(x.a)({},c),{},{location:t,lastActiveTime:w.a.database.ServerValue.TIMESTAMP}));case 9:a(),n.next=15;break;case 12:n.prev=12,n.t0=n.catch(0),i(n.t0);case 15:case"end":return n.stop()}}),n,null,[[0,12]])})));return function(e,t){return n.apply(this,arguments)}}())},et=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return new Promise(function(){var a=Object(j.a)(f.a.mark((function a(i,s){var o,c,r;return f.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,We();case 3:return a.next=5,Ge(e);case 5:return o=a.sent,c=n?"analytics/".concat(window.todaysDateTimestamp,"/").concat(o,"/hotspots"):"analytics/".concat(window.todaysDateTimestamp,"/").concat(o),r=Fe.ref(c),a.next=10,r.update(Object(v.a)({},t,w.a.database.ServerValue.increment(1)));case 10:i(),a.next=16;break;case 13:a.prev=13,a.t0=a.catch(0),s(a.t0);case 16:case"end":return a.stop()}}),a,null,[[0,13]])})));return function(e,t){return a.apply(this,arguments)}}())},tt=function(e,t){return new Promise(function(){var n=Object(j.a)(f.a.mark((function n(a,i){var s,o,c,r;return f.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,We();case 3:return n.next=5,Ge(e);case 5:return s=n.sent,o="".concat(t.path,"/analytics/").concat(window.todaysDateTimestamp,"/").concat(s),c=Fe.ref(o),r={},window.userData&&(r=Object(x.a)(Object(x.a)({},r),window.userData)),n.next=12,c.update(Object(x.a)(Object(x.a)({},r),{},Object(v.a)({},t.id,w.a.database.ServerValue.increment(1))));case 12:a(),n.next=18;break;case 15:n.prev=15,n.t0=n.catch(0),i(n.t0);case 18:case"end":return n.stop()}}),n,null,[[0,15]])})));return function(e,t){return n.apply(this,arguments)}}())},nt=function(e){return new Promise(function(){var t=Object(j.a)(f.a.mark((function t(n,a){var i,s,o,c;return f.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,i=(i=(i=e.email).replace(/[&\/\\#,+$~%.'":*?<>{}]/g,"")).toLowerCase(),s="/leaderboard/"+i,o=Fe.ref(s),t.next=8,o.once("value");case 8:(c=t.sent).exists()?n(c.val().score):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)}}())},at=function(e){return new Promise(function(){var t=Object(j.a)(f.a.mark((function t(n,a){var i,s;return f.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Be.collection(k).where("admin","array-contains",e.uid).get();case 3:(i=t.sent).empty&&a({code:"NoAdmin",messsage:"this user is not a admin"}),delete(s=i.docs[0].data()).users,delete s.admin,delete s.callStarted,n(s),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)}}())},it=function(){return new Promise(function(){var e=Object(j.a)(f.a.mark((function e(t,n){var a,i;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Be.collection(k).get();case 3:(a=e.sent).empty&&n({code:"NoVideoRoom",messsage:"NoVideoRoomFound"}),i={},a.forEach((function(e){var t=e.data();console.log(t),i["".concat(t.docName)]={docName:t.docName,publicRoomName:t.publicRoomName,room
1Name:t.roomName}})),t(i),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)}}())},st=function(e){return new Promise(function(){var t=Object(j.a)(f.a.mark((function t(n,a){var i;return f.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Be.collection(k).doc(e).get();case 3:(i=t.sent).exists||a({code:"NoVideoRoom",messsage:"NoVideoRoomFound"}),console.log(i.data()),n(i.data().callStarted),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)}}())},ot=function(e,t){return new Promise(function(){var n=Object(j.a)(f.a.mark((function n(a,i){var s,o;return f.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,s=Be.collection(N).doc(t),n.next=4,Be.runTransaction(function(){var t=Object(j.a)(f.a.mark((function t(n){var a,i,o,c,r;return f.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.get(s);case 2:if((a=t.sent).exists){t.next=6;break}throw{code:"NoRoomFound",message:"No videoCall room found for the event."};case 6:i=a.data().slots,o={found:!1},c=0;case 9:if(!(c<i.length)){t.next=22;break}if(-1===(r=i[c]).adminID.indexOf(e)){t.next=18;break}return console.log(".."),o.found=!0,o.slot=r,o.index=c,o.isAdmin=!0,t.abrupt("break",22);case 18:r.available?o.found||(o.found=!0,o.slot=r,o.index=c):r.userId===e&&(o.found=!0,o.slot=r,o.index=c);case 19:c++,t.next=9;break;case 22:if(o.found){t.next=25;break}throw{code:"NoRoomAvaliable",message:"All videocall rooms are occupied. Please come back later, Thanks."};case 25:return o.isAdmin?(o.slot.adminJoined=!0,o.slot.isAdmin=!0):(o.slot.available=!1,o.slot.userId=e,o.slot.isAdmin=!1),i[o.index]=o.slot,console.log(i),n.update(s,{slots:i}),t.abrupt("return",o.slot);case 30:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 4:o=n.sent,console.log(o),a(o),n.next=13;break;case 9:n.prev=9,n.t0=n.catch(0),console.log(n.t0),i(n.t0);case 13:case"end":return n.stop()}}),n,null,[[0,9]])})));return function(e,t){return n.apply(this,arguments)}}())},ct=function(e,t,n){return new Promise(function(){var a=Object(j.a)(f.a.mark((function a(i,s){var o,c;return f.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,console.log(e,t,n),o=Be.collection(N).doc(n),a.next=5,Be.runTransaction(function(){var n=Object(j.a)(f.a.mark((function n(a){var i,s,c,r,l;return f.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,a.get(o);case 2:if((i=n.sent).exists){n.next=6;break}throw{code:"NoRoomFound",message:"No videoCall room found for the event."};case 6:s=i.data().slots,c={found:!1},r=0;case 9:if(!(r<s.length)){n.next=25;break}if((l=s[r]).id!==e){n.next=22;break}if(-1===l.adminID.indexOf(t)){n.next=18;break}return c.found=!0,c.slot=l,c.index=r,c.isAdmin=!0,n.abrupt("break",25);case 18:return c.found=!0,c.index=r,c.slot=l,n.abrupt("break",25);case 22:r++,n.next=9;break;case 25:if(c.found){n.next=28;break}throw{code:"NoSuchSlotFound",message:"No such slot found to be cleared."};case 28:return c.isAdmin?c.slot.adminJoined=!1:(c.slot.available=!0,c.slot.userId=""),s[c.index]=c.slot,a.update(o,{slots:s}),n.abrupt("return",c.slot);case 32:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}());case 5:c=a.sent,console.log(c),i(c),a.next=15;break;case 10:a.prev=10,a.t0=a.catch(0),console.log(e,t,n),console.log(a.t0),s(a.t0);case 15:case"end":return a.stop()}}),a,null,[[0,10]])})));return function(e,t){return a.apply(this,arguments)}}())},rt=function(e){window.audiListener=Be.collection(C).doc(I).onSnapshot((function(t){t.exists||e({code:"NoDataFound",message:"no such document exists."}),e(null,t.data())}),(function(t){e(t)}))},lt=function(){window.bgListener&&window.bgListener()},dt=n.p+"static/media/spinner.ba96b13e.svg",ut=function(e){Object(m.a)(n,e);var t=Object(p.a)(n);function n(){var e;Object(u.a)(this,n);for(var a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];return(e=t.call.apply(t,[this].concat(i))).state={isLoading:!1,email:"",name:"",error:!1,errorMessage:"",_loading:!1,forceDisable:!1,forceUpdate:!1},e.onInputChange=function(t){t.preventDefault();var n=t.target.value;e.setState(Object(v.a)({},t.target.name,n))},e.showLoginError=function(t){e.setState({error:!0,errorMessage:t.message?t.message:t})},e.validateEmail=function(e){return/^(([^<>()\[\]\\.,;:\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(j.a)(f.a.mark((function t(n){var a,i,s,o;return f.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(""!==e.state.email&&""!==e.state.name){t.next=3;break}return e.setState({error:!0,errorMessage:"Enter your details"}),t.abrupt("return");case 3:if(e.validateEmail(e.state.email)){t.next=6;break}return e.setState({error:!0,errorMessage:"Invalid Email"}),t.abrupt("return");case 6:return e.setState({_loading:!0}),n.preventDefault(),t.prev=8,e.setState({error:!1,forceDisable:!0}),a=e.state.email.toLowerCase().trim(),i=e.state.name,s="".concat(a,"123456"),t.next=15,He(a,s,i,!0);case 15:t.next=35;break;case 17:t.prev=17,t.t0=t.catch(8),console.log(t.t0),e.setState({forceDisable:!1}),o="",t.t1=t.t0.code,t.next="auth/wrong-password"===t.t1?25:"auth/user-not-found"===t.t1?27:"auth/too-many-requests"===t.t1?29:"NoUserFound"===t.t1?31:33;break;case 25:return o="Invalid username and password.",t.abrupt("break",34);case 27:return o="User not registered",t.abrupt("break",34);
1case 29:return o="Too many invalid requests, please wait for 60 seconds before retrying",t.abrupt("break",34);case 31:return o="User not registered",t.abrupt("break",34);case 33:o=t.t0.message;case 34:e.setState({_loading:!1,error:!0,errorMessage:o});case 35:case"end":return t.stop()}}),t,null,[[8,17]])})));return function(e){return t.apply(this,arguments)}}(),e.checkUserStatus=function(){var e=Object(j.a)(f.a.mark((function e(t){return f.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"}),Fe.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 Object(o.jsxs)(o.Fragment,{children:[this.state._loading&&Object(o.jsx)("div",{className:"loading",children:Object(o.jsx)("img",{src:dt,alt:""})}),Object(o.jsxs)("section",{className:"login__div",children:[Object(o.jsx)("div",{className:"login__img",style:{backgroundImage:"url(".concat("/assets/images/login/Login.png",")")}}),Object(o.jsxs)("div",{className:"login__form",children:[Object(o.jsx)("div",{className:"login__head",children:Object(o.jsx)("img",{src:"/assets/images/login/login-logo.png",alt:""})}),Object(o.jsxs)("div",{className:"login__inputs",children:[Object(o.jsx)("h1",{children:"Log In"}),Object(o.jsx)("input",{type:"text",placeholder:"Name",name:"name",value:this.state.name,onChange:this.onInputChange,required:!0}),Object(o.jsx)("input",{type:"text",placeholder:"E mail",name:"email",value:this.state.email,onChange:this.onInputChange,required:!0}),this.state.error&&Object(o.jsx)("span",{className:"error-message",children:this.state.errorMessage+" *"}),Object(o.jsx)("button",{onClick:this.onFormSubmit,children:"Log In"})]})]})]}),Object(o.jsxs)("div",{id:"loginrotate",children:[Object(o.jsx)("div",{className:"loginphone",children:" "}),Object(o.jsx)("div",{className:"loginmessage",children:"Please rotate your device! "})]})]})}}]),n}(c.Component),ht=Object(c.createContext)({user:null}),mt=function(e){Object(m.a)(n,e);var t=Object(p.a)(n);function n(){var e;Object(u.a)(this,n);for(var a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];return(e=t.call.apply(t,[this].concat(i))).state={user:null},e.componentDidMount=Object(j.a)(f.a.mark((function t(){return f.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:De.onAuthStateChanged(function(){var t=Object(j.a)(f.a.mark((function t(n){var a;return f.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n){t.next=14;break}return e.setState({user:n}),a=(a=(a=n.email).replace(/[&\/\\#,+$~%.'":*?<>{}]/g,"")).toLowerCase(),t.next=7,Xe(a);case 7:return window.userData={email:n.email,name:n.displayName?n.displayName:n.email.split("@")[0]},t.next=10,Qe(n);case 10:window.app.appConfig(n),Ze(n),t.next=18;break;case 14:localStorage.clear(),sessionStorage.clear(),window.userData=null,e.setState({user:null});case 18: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(o.jsx)(ht.Provider,{value:e,children:this.props.children})}}]),n}(c.Component),pt=n(19),bt=n(32),ft=n.n(bt),jt=n(50),vt=n.n(jt),gt=(n(342),function(e){Object(m.a)(n,e);var t=Object(p.a)(n);function n(e){var a;return Object(u.a)(this,n),(a=t.call(this,e)).onMenuItemClick=function(e,t){a.props.canInteract&&a.props.onMenuItemClick(e,t)},a.getPathRender=function(e){if(e>0){for(var t=[],n=0;n<e;n++)t.push(Object(o.jsx)("span",{className:"path".concat(n+1)},n));return t}},a.state={speaker:window.isSpeaker},a}return Object(h.a)(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.items,a=t.activeItemId;return Object(o.jsxs)(o.Fragment,{children:[Object(o.jsx)("div",{className:"desktop__logo",children:Object(o.jsx)("img",{src:Oe.LOGO2,alt:"Logo"})}),Object(o.jsxs)("ul",{className:"bottom-icons-nav bottom-icons-nav--withtext",children:[this.props.backButton&&Object(o.jsx)("li",{className:"menuBackButton",onClick:function(t){return e.props.onBackButtonClick(t)},children:Object(o.jsx)("a",{style:{justifyContent:"center"},children:this.props.fromDbr?Object(o.jsxs)(o.Fragment,{children:[Object(o.jsx)("i",{className:"icon-__speaker"}),Object(o.jsx)("span",{children:"Join as a guest"})]}):Object(o.jsx)("span",{children:" < Back"})})},"blackButton"),n.map((function(t){if(!t.disabled)return!e.state.speaker&&t.speaker?Object(o.jsx)(o.Fragment,{}):Object(o.jsx)("li",{className:t.liClass?t.liClass:"",onClick:function(n){return e.onMenuItemClick(n,t)},children:Object(o.jsxs)("a",{className:t.id==a?"active":"",children:[Object(o.jsx)("i",{className:t.class}),Object(o.jsx)("span",{children:t.name})]})},t.id)}))]})]})}}]),n}(c.Component)),Ot=function(e){Object(m.a)(n,e);var t=Object(p.a)(n);function n(){var e;Object(u.a)(this,n);for(var a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];return(e=t.call.apply(t,[this].concat(i))).state={score:0},e.componentDidMount=Object(j.a)(f.a.mark((function t(){var n,a;return f.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return window.pro=Object(pt.a)(e),n={n
1ame:e.context.displayName?e.context.displayName:"User",email:e.context.email?e.context.email:"[email protected]"},e.setState(Object(x.a)({},n)),t.next=5,nt(e.context);case 5:if(a=t.sent,e.setState({score:a}),e.context.displayName){t.next=10;break}return t.next=10,e.context.updateProfile({displayName:e.context.email.split("@")[0]});case 10:case"end":return t.stop()}}),t)}))),e.getUserdata=function(e){return new Promise(function(){var t=Object(j.a)(f.a.mark((function t(n,a){var i,s;return f.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,i=Be.collection("userData").where("phoneNumber","==","".concat(e)),t.next=4,i.get();case 4:if(!(s=t.sent).empty){t.next=8;break}throw{code:"UserNotFound",message:"User is not registered"};case 8:n(s.docs[0].data()),t.next=14;break;case 11:t.prev=11,t.t0=t.catch(0),a(t.t0);case 14:case"end":return t.stop()}}),t,null,[[0,11]])})));return function(e,n){return t.apply(this,arguments)}}())},e.logout=function(t){t.preventDefault(),Ke(e.context).then((function(){qe()}))},e.handleButtonClick=function(){e.props.ShowMediaModal(Y,"/web/viewer.html?file=%2Fassets%2Fcontent%2Fleaderboard.pdf")},e}return Object(h.a)(n,[{key:"render",value:function(){var e=this;return Object(o.jsx)(o.Fragment,{children:Object(o.jsxs)("div",{className:"user-profile ".concat(g.isIOS?"ios-profile":""),children:[Object(o.jsx)("div",{className:"user-profile__header",children:Object(o.jsx)("a",{href:"#",className:"user-profile__close",onClick:function(t){e.props.close(t),1===e.props.activeMenu.id&&(e.props.mute||window.parent.unmute&&window.parent.unmute())},children:Object(o.jsx)("i",{className:"icon-close"})})}),Object(o.jsx)("div",{className:"user-profile__body",children:Object(o.jsxs)("div",{className:"user-profile__form",children:[Object(o.jsxs)("div",{className:"form-group",children:[Object(o.jsx)("label",{className:"form-label",children:"Name"}),Object(o.jsx)("div",{className:"form-group__has-icon",children:Object(o.jsx)("input",{className:"form-control",value:this.state.name?this.state.name:"",readOnly:!0})})]}),Object(o.jsxs)("div",{className:"form-group",children:[Object(o.jsx)("label",{className:"form-label",children:"Email Id"}),Object(o.jsx)("div",{className:"form-group__has-icon",children:Object(o.jsx)("input",{className:"form-control",value:this.state.email?this.state.email:"",readOnly:!0})})]})]})}),Object(o.jsx)("div",{className:"user-profile__footer",children:Object(o.jsx)("a",{href:"#",className:"btn btn-sm btn-yellow",onClick:function(t){return e.logout(t)},children:"Log Out"})})]})})}}]),n}(c.Component);Ot.contextType=ht;var yt=Ot,xt="leftArrow",wt="rightArrow",kt=-1,St=0,Ct=1,It=function(e){Object(m.a)(n,e);var t=Object(p.a)(n);function n(){var e;Object(u.a)(this,n);for(var a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];return(e=t.call.apply(t,[this].concat(i))).state={frameOrigin:St},e.handleArrowClickMobile=function(t,n){n.preventDefault();var a=parseInt((e.props.mainContainer.currentStyle||window.getComputedStyle(e.props.mainContainer)).marginLeft.split("p")[0]),i=(e.props.mainContainer.clientWidth-e.props.mediaContainer.clientWidth)/2;t===xt?(e.props.updateParent({marginLeft:"".concat(a+Math.abs(i/2),"px"),transition:"0.25s"}),Math.abs(Math.abs(i)-(a+Math.abs(i/2)))<5?e.setState({frameOrigin:kt}):e.setState({frameOrigin:St})):t===wt&&(e.props.updateParent({marginLeft:"".concat(a+i/2,"px"),transition:"0.25s"}),Math.abs(i-(a+i/2))<5?e.setState({frameOrigin:Ct}):e.setState({frameOrigin:St}))},e.handleArrowClick=function(t,n){if(g.isMobileOnly||e.props.mainContainer.clientWidth<991)e.handleArrowClickMobile(t,n);else if(n.preventDefault(),t===xt)switch(e.state.frameOrigin){case St:e.moveCameraToSide(kt);break;case Ct:e.recenterCamera()}else if(t===wt)switch(e.state.frameOrigin){case St:e.moveCameraToSide(Ct);break;case kt:e.recenterCamera()}},e.moveCameraToSide=function(t){var n=(e.props.mainContainer.clientWidth-e.props.mediaContainer.clientWidth)/2;e.props.mainContainer.clientWidth<e.props.mediaContainer.clientWidth&&(e.props.updateParent({marginLeft:"".concat(t===kt?Math.abs(n):n,"px"),transition:"0.25s"}),e.setState({frameOrigin:t}))},e.recenterCamera=function(){e.props.updateParent({marginLeft:"0",transition:"0.25s"}),e.setState({frameOrigin:St})},e}
1return Object(h.a)(n,[{key:"componentDidMount",value:function(){window.addEventListener("resize",this.recenterCamera)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.recenterCamera)}},{key:"render",value:function(){var e=this;return Object(o.jsxs)(o.Fragment,{children:[this.state.frameOrigin!==kt&&Object(o.jsxs)("svg",{id:"leftArrow",className:"more-arrows",style:{left:g.isIOS?"7%":""},onClick:function(t){e.handleArrowClick(xt,t)},children:[Object(o.jsx)("polygon",{className:"arrow-top",points:"37.6,27.9 1.8,1.3 3.3,0 37.6,25.3 71.9,0 73.7,1.3 "}),Object(o.jsx)("polygon",{className:"arrow-middle",points:"37.6,45.8 0.8,18.7 4.4,16.4 37.6,41.2 71.2,16.4 74.5,18.7 "}),Object(o.jsx)("polygon",{className:"arrow-bottom",points:"37.6,64 0,36.1 5.1,32.8 37.6,56.8 70.4,32.8 75.5,36.1 "})]}),this.state.frameOrigin!==Ct&&Object(o.jsxs)("svg",{id:"rightArrow",className:"more-arrows",style:{right:g.isIOS?"12%":""},onClick:function(t){e.handleArrowClick(wt,t)},children:[Object(o.jsx)("polygon",{className:"arrow-top",points:"37.6,27.9 1.8,1.3 3.3,0 37.6,25.3 71.9,0 73.7,1.3 "}),Object(o.jsx)("polygon",{className:"arrow-middle",points:"37.6,45.8 0.8,18.7 4.4,16.4 37.6,41.2 71.2,16.4 74.5,18.7 "}),Object(o.jsx)("polygon",{className:"arrow-bottom",points:"37.6,64 0,36.1 5.1,32.8 37.6,56.8 70.4,32.8 75.5,36.1 "})]})]})}}]),n}(c.Component);It.contextType=ht;n(179);var Mt={height:"100%",width:"100%",maxWidth:"none",position:"absolute",zIndex:1},Nt={animation:"fadeOutEffect 0.25s ease-in-out",MozAnimation:"fadeOutEffect 0.25s ease-in-out",WebkitAnimation:"fadeOutEffect 0.25s ease-in-out"},Lt={visibility:"visible",animation:"fadeInEffect 0.25s ease-in-out",MozAnimation:"fadeInEffect 0.25s ease-in-out",WebkitAnimation:"fadeInEffect 0.25s ease-in-out"},At={visibility:"hidden"},Tt=function(e){Object(m.a)(n,e);var t=Object(p.a)(n);function n(){var e;Object(u.a)(this,n);for(var a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];return(e=t.call.apply(t,[this].concat(i))).previousStyle_Overflow="",e.currentTransitionType=se,e.afterTransitionItem=null,e.main3dContainer=r.a.createRef(),e.child3dContainer=r.a.createRef(),e.videoRef=r.a.createRef(),e.transitionVideoRef=r.a.createRef(),e.frameImageRef=r.a.createRef(),e.arrowRef=r.a.createRef(),e.state={CurrentUrl:{mainVideo:e.props.initialVideo,image:null,transitionVideo:""},UI:{fadeIntroImage:!1,showTransitionVideo:!1,showTutComponenet:!1,showVideo:!0,showImage:!1,showOverlay:!1,showArrows:!1,arrowsRequired:!0,showBackButton:!1,showGlobalBackButton:e.props.globalBackButton,showTutButton:!0},currentHotspot:e.props.initialHotspot,child3dContainerStyle:{marginLeft:"0"},frameImageClass:"fadeOut",frameVideoStyle:Nt,tranVideoStyle:At,forceUpdate:!1,InlinePlayer:{showLid:!0,playing:!0,fullScreen:!1,mute:!1}},e.initialForceUpdate=null,e.forceUpdateRef=null,e.mouseInlineControlHover=!1,e.ratio=e.props.ratio?e.props.ratio:2.33,e.checkForTut=function(){if(e.props.showTut){var t="home";if(e.props.sceneName?t=e.props.sceneName:console.error("NoSceneName is provided, for now it is set to home"),"visited"!==sessionStorage.getItem("".concat(t,"-tut")))return e.props.showingTutorialEvent&&e.props.showingTutorialEvent("start"),void e.setState((function(t){return{UI:Object(x.a)(Object(x.a)({},t.UI),{},{showTutComponenet:!0,showArrows:!0,arrowsRequired:!(window.innerWidth>window.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),e.videoRef&&e.videoRef.current&&(e.props.isImageScene||e.videoRef.current.play()),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(x.a)(Object(x.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(x.a)(Object(x.a)({},e.UI),{},{arrowsRequired:!1})}})):e.setState((function(e){return{UI:Object(x.a)(Object(x.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(x.a)({},t)})},e.toggleHUDElement=function(t,n,a){e.setState((function(e){return{UI:Object(x.a)(Object(x.a)({},e.UI),{},{showOverlay:t,showArrows:n,showBackButton:a})}}))},e.startTransition=function(t,n,a,i,s,o){if(null!==t&&t.preventDefault(),e.props.isImageScene&&(n=null),e.resetCamera(),e.currentTransitionType=a,e.afterTransitionItem=i,a!==ce){if(e.toggleHUDElement(!1,!1,!1),e.setState({currentHotspot:s}),null==n)return e.setState((function(e){return{UI:Object(x.a)(Object(x.a)({},e.UI),{},{showTutButton:!1})}})),void e.handleTransitionWithOutVideo();e.newStateName=o,e.setState((function(e){return{UI:Object(x.a)(Object(x.a)({},e.UI),{},{showTutButton:!1}),CurrentUrl:Object(x.a)(Object(x.a)({},e.CurrentUrl),{},{transitionVideo:n})}})),e.transitionVideoRef.current.load(),e.transitionVideoRef.current.play(),e.transitionVideoRef.current.loop=!1}else e.handleTransitionWithOutVideo()},e.applyFadeInDuringTransition=function(){e.videoRef.current.removeEventListener("loadedmetadata",e.applyFadeInDuringTransition),setTimeout((function(){e.setState({frameVideoStyle:Lt})}),900*e.videoRef.current.duration)},e.handleTransitionVideoEnd=function(t){e.currentTransitionType===se?(e.toggleHUDElement(!1,!0,!0),e.updateChild3DContainerStyle({marginLeft:"0"}),e.setState((function(t){return{CurrentUrl:Object(x.a)(Object(x.a)({},t.CurrentUrl),{},{image:e.afterTransitionItem}),UI:Object(x.a)(Object(x.a)({},t.UI),{},{showVideo:!1,showImage:!0,showOverlay:!0}),frameVideoStyle:At}})),e.props.changeInternalStateHandler&&e.props.changeInternalStateHandler(e.newStateName)):e.currentTransitionType===oe&&e.props.changeComponenet(t,e.afterTransitionItem)},e.handleTransitionWithOutVideo=function(){if(e.currentTransitionType===se)e.setState({frameVideoStyle:Lt}),e.setState((function(t){return{CurrentUrl:Object(x.a)(Object(x.a)({},t.CurrentUrl),{},{image:e.afterTransitionItem}),UI:Object(x.a)(Object(x.a)({},t.UI),{},{showVideo:!1,showImage:!0,showOverlay:!0,showBackButton:!0,showArrows:!0}),frameVideoStyle:At}}));else if(e.currentTransitionType===oe)e.props.changeComponenet(null,e.afterTransitionItem);else if(e.currentTransitionType===ce){var t=Object(pt.a)(e);e.props.changeComponenet(null,e.afterTransitionItem,(function(){t.toggleHUDElement(!0,!0,!1),t.setState((function(e){return{CurrentUrl:Object(x.a)(Object(x.a)({},e.CurrentUrl),{},{mainVideo:t.props.initialVideo}),UI:Object(x.a)(Object(x.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(x.a)(Object(x.a)({},t.CurrentUrl),{},{mainVideo:e.props.initialVideo}),UI:Object(x.a)(Object(x.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.props.isImageScene||(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!==Q?e.props.ShowMediaModal(n,a):window.open(a,"_blank")},e.handleTransitionVideoStart=function(){e.setState((function(e){return{UI:Object(x.a)(Object(x.a)({},e.UI),{},{showTransitionVideo:!0})}}))},e.handleTransitionVideoTagEnd=function(){e.setState((function(e){return{UI:Object(x.a)(Object(x.a)({},e.UI),{},{showTransitionVideo:!1})}})),e.handleTransitionVideoEnd(null)},e.handleIntroVideoStart=function(){e.setState((function(e){return{UI:Object(x.a)(Object(x.a)({},e.UI),{},{fadeIntroImage:!0})}}))},e.handleHotspotCLick=function(t,n){"PhotoBooth"===n.id&&et(e.context,"PhotoBooth"),e.props.addHotspotAnalytics&&n.transitionType!==oe&&e.props.addHotspotAnalytics(n),n.customAnalytics&&e.props.addCustomHotspotAnalytics&&e.props.addCustomHotspotAnalytics(n.customAnalytics),n.hotspotType===q?n.checkBeforeTransition?e.props.checkBeforeTransitionFun&&e.props.checkBeforeTransitionFun(t,n.checkId,(function(a){a||e.startTransition(t,n.transitionVideo,n.transitionType,n.newItem,n.hotspot,n.name)})):e.startTransition(t,n.transitionVideo,n.transitionType,n.newItem,n.hotspot,n.name):n.hotspotType===X?e.showMediaModal(t,n.hotspotType,n):n.hotspotType===$?e.props.customHotspotFun&&e.props.customHotspotFun(t,n):n.hotspotType===ee?e.props.handleStallCallHotspot&&e.props.handleStallCallHotspot(t,n):n.hotspotType===te?e.props.handleStallCallHotspot&&e.props.handleStallChatHotspot(t,n):e.showMediaModal(t,n.hotspotType,n.link)},e.handleInlineVideoPlayerClick=function(t){console.log("in/////
1////////////"),t&&t.preventDefault(),e.mouseInlineControlHover||e.setState((function(e){return{InlinePlayer:Object(x.a)(Object(x.a)({},e.InlinePlayer),{},{playing:!e.InlinePlayer.playing})}}),(function(){return console.log(e.state.InlinePlayer)}))},e.handleInlineVideoPlay=function(t){e.setState((function(e){return{InlinePlayer:Object(x.a)(Object(x.a)({},e.InlinePlayer),{},{showLid:!1})}}))},e.handleInlineVideoPause=function(t){e.setState((function(e){return{InlinePlayer:Object(x.a)(Object(x.a)({},e.InlinePlayer),{},{showLid:!0})}}))},e.checkToPlayVideo=function(){return!!e.state.InlinePlayer.playing||!e.props.closeVideo&&(void 0!=e.props.medialModalActive&&(!e.props.medialModalActive&&void 0))},e.handleInlineMouseHover=function(t){e.mouseInlineControlHover=t},e.handleInfoButton=function(){e.resetCamera(),e.setState((function(e){return{UI:Object(x.a)(Object(x.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(o.jsxs)(o.Fragment,{children:[this.state.UI.showGlobalBackButton&&(void 0===this.props.medialModalActive||!this.props.medialModalActive)&&Object(o.jsx)("img",{src:Oe.BACKBUTTON,alt:"backButtonToLobby",className:"globalBackButton",onClick:function(t){return e.props.changeComponenet(t,V[T.Lobby])}}),this.props.showTut&&this.state.UI.showTutButton&&Object(o.jsx)("img",{src:Oe.INFOBUTTON,alt:"infoButton",className:"infoButton-audi",onClick:function(t){return e.handleInfoButton(t)}}),Object(o.jsx)("div",{className:"main3DContainer",ref:this.main3dContainer,children:Object(o.jsxs)("div",{id:"child3DContainer",ref:this.child3dContainer,style:this.state.child3dContainerStyle,children:[this.props.isImageScene&&Object(o.jsx)("img",{ref:this.videoRef,id:"".concat(g.isIOS?"IOSFRAME":"FrameVideo"),src:this.props.initalImage,style:Object(x.a)(Object(x.a)({},this.state.frameVideoStyle),{},{height:"100%",width:"auto",maxWidth:"none"}),alt:"MainSceneImage"}),!this.props.isImageScene&&Object(o.jsxs)(o.Fragment,{children:[!this.state.UI.fadeIntroImage&&Object(o.jsx)(o.Fragment,{children:Object(o.jsxs)("div",{style:g.isMobileOnly?{width:"calc(233vh - 5rem)",height:"calc(100vh - 5rem)",position:"absolute",display:"flex",justifyContent:"center",pointerEvents:"none"}:{width:"calc(100vh * ".concat(this.ratio,")"),height:"100vh",position:"absolute",display:"flex",justifyContent:"center",pointerEvents:"none"},children:[Object(o.jsx)("img",{src:"/assets/images/spinnerA.svg",alt:"loader",style:{width:"10rem"}}),Object(o.jsx)("img",{id:"introFrame",className:this.state.UI.fadeIntroImage?"IntroFadeImage":"",alt:"Introframe",src:this.props.firstVideoFrame,style:Mt})]})}),Object(o.jsxs)("video",{id:"".concat(g.isIOS?"IOSFRAME":"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(o.jsx)("source",{src:this.state.CurrentUrl.mainVideo,type:"video/mp4"}),"Your browser does not support HTML5 video."]}),Object(o.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(o.jsx)("source",{src:this.state.CurrentUrl.transitionVideo,type:"video/mp4"}),"Your browser does not support HTML5 video."]})]}),this.state.UI.showBackButton&&Object(o.jsx)("img",{src:Oe.BACKBUTTON,alt:"backButtonToLobby",className:"backButton",onClick:function(t){return e.backToLobby(t)}}),this.state.UI.showImage&&Object(o.jsx)("img",{id:"FrameImage",className:this.state.frameImageClass,src:this.state.CurrentUrl.image,alt:"LobbyImage",ref:this.frameImageRef}),this.state.UI.showOverlay&&Object(o.jsx)("div",{id:"overlayContent",style:g.isMobileOnly?g.isIOS?{width:"calc(233vh)",height:"calc(100vh)"}:{width:"calc(233vh - 5rem)",height:"calc(100vh - 5rem)"}:{height:"100vh",width:"calc(100vh * ".concat(this.ratio,")")},className:"".concat(this.state.InlinePlayer.fullScreen?"unsetPos":""),children:Object(o.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===K)return Object(o.jsx)(o.Fragment,{children:Object(o.jsxs)("div",{id:"audiVideoFrame",style:e.state.InlinePlayer.fullScreen?{width:"100%",height:"100%",position:"fixed",zIndex:"6",left:"0%"}:e.state.currentHotspot[t].style,children:[Object(o.jsxs)("div",{className:"videoPlayerCover ".concat(e.state.InlinePlayer.showLid?"blackTransparentColor":""),style:e.state.InlinePlayer.fullScreen?{width:"100%",height:"100%"}:Object(x.a)(Object(x.a)({},e.state.currentHotspot[t].style),{},{margin:0}),onClick:function(t){return e.handleInlineVideoPlayerClick(t)},children:[Object(o.jsx)("div",{className:"lid upperLid ".concat(e.state.InlinePlayer.showLid?"":"animateLid")}),Object(o.jsx)("div",{className:"lid lowerLid ".concat(e.state.InlinePlayer.showLid?"":"animateLid")}),Object(o.jsx)("div",{className:"fakePlaybutton-container",children:Object(o.jsx)("div",{className:"fakePlaybutton ".concat(e.state.InlinePlayer.showLid?"":"animateLid-0")})}),Object(o.jsx)("div",{className:"inlineVideoControlsContainer product-video",children:Object(o.jsxs)("div",{className:"videoControlsContainer-fullscreen inline  ".concat(e.state.InlinePlayer.fullScreen&&"inlineFullScreen"),onMouseEnter:function(t){return e.handleInlineMouseHover(!0)},onMouseLeave:function(t){return e.handleInlineMouseHover(!1)},children:[Object(o.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(x.a)(Object(x.a)({},e.InlinePlayer),{},{mute:!e.InlinePlayer.mute})}}))}}),Object(o.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(x.a)(Object(x.a)({},e.InlinePlayer),{},{fullScreen:!e.InlinePlayer.fullScreen})}}))}})]})})]}),Object(o.jsx)(vt.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 re:return Object(o.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(o.jsx)("img",{id:t,src:Oe.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(o.jsx)(this.props.tutComponent,{ratio:this.ratio,skip:this.closeTut}),this.state.UI.showArrows&&this.state.UI.arrowsRequired&&Object(o.jsx)(o.Fragment,{children:Object(o.jsx)(It,{updateParent:this.updateChild3DContainerStyle,mainContainer:this.child3dContainer.current,mediaContainer:this.videoRef.current,ref:this.arrowRef})})]})}),Object(o.jsx)("div",{})]})}}]),n}(c.Component);Tt.contextType=ht;var Ut=n(129);var Pt,Rt,Dt=function(e){return Object(o.jsxs)("div",{className:"qa-section__reply mg-b15",children:[Object(o.jsx)("h3",{className:"qa-section__title pd-b15",children:e.replyby}),Object(o.jsx)("h2",{className:"qa-section__ques",children:e.rcontent}
1),Object(o.jsxs)("span",{className:"time",children:[" ",e.time.toString()]})]})},Bt=function(e){var t=Object(c.useState)([]),n=Object(Ut.a)(t,2),a=n[0],i=n[1];return Object(c.useEffect)((function(){Be.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(x.a)({id:e.id},e.data())}));console.log(t),i(t)}}))}),[]),Object(o.jsx)("div",{children:a.map((function(e){return Object(o.jsx)(Dt,{id:e.id,replyby:e.replyby,rcontent:e.rcontent,time:e.time2},e.id)}))})},Ft=n(125),Et=n.n(Ft);De.onAuthStateChanged((function(e){e?(Pt=e.uid,Rt=e.displayName?e.displayName:e.email):Pt=null}));var Vt=function(e){return Object(o.jsxs)("div",{className:"qa-section__block mg-b15",children:[Object(o.jsxs)("div",{className:"d-flex align-items-center justify-content-between pd-b10",children:[Object(o.jsx)("h3",{className:"qa-section__title",children:e.title}),Object(o.jsx)("span",{className:"qa-section__date",children:e.time.toString()})]}),Object(o.jsx)("h2",{className:"qa-section__ques pd-b20",children:e.content}),e.canReply&&Object(o.jsxs)(o.Fragment,{children:[Object(o.jsx)("form",{className:"",onSubmit:function(t){var n=t.target.parentElement,a=(n.querySelector("form"),n.querySelector("input"));t.preventDefault();var i=new FormData(t.target).get("content"),s=Et()().utcOffset("+05:30").format("hh:mm A DD-MM-YYYY");Be.collection(e.QNAReplyCollection).add({rcontent:i,replyby:Rt,replybyid:Pt,replytoid:e.id,time:new Date,time2:s,timestamp:Re.firestore.FieldValue.serverTimestamp()}).then((function(){a.value=""}))},children:Object(o.jsx)("input",{className:"form-control-qna mg-b20",name:"content",id:"myInput",required:!0,placeholder:"Reply to "+e.title,autoCorrect:"off",autoComplete:"off"})}),Object(o.jsx)("div",{children:Object(o.jsx)(Bt,{id:e.id,QNACollection:e.QNACollection,QNAReplyCollection:e.QNAReplyCollection})})]})]})},_t=function(e){Object(m.a)(n,e);var t=Object(p.a)(n);function n(e){var a;return Object(u.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;De.onAuthStateChanged((function(t){t?e.setState({user:t}):e.setState({user:null})}))}},{key:"onSubmit",value:function(e){var t=this;e.preventDefault();var n=Et()().utcOffset("+05:30").format("hh:mm A DD-MM-YYYY");Be.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:Re.firestore.FieldValue.serverTimestamp(),status:"".concat(this.props.moderated?"0":"1")}).then((function(){t.setState({content:""}),t.props.moderated&&ft()("Question Submitted!","Your question has been submitted")}))}},{key:"render",value:function(){var e=this;return Object(o.jsxs)("form",{className:"qa-section__input",onSubmit:this.onSubmit.bind(this),children:[Object(o.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(o.jsx)("button",{className:"form-control-qna__btn",children:Object(o.jsx)("i",{className:"icon-send"})})]})}}]),n}(r.a.Component),Ht=function(e){Object(m.a)(n,e);var t=Object(p.a)(n);function n(){var e;Object(u.a)(this,n);for(var a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];return(e=t.call.apply(t,[this].concat(i))).state={notes:null},e}return Object(h.a)(n,[{key:"componentDidMount",value:function(){var e=this;Be.collection(this.props.QNACollection).orderBy("timestamp","desc").where("status","==","1").onSnapshot((function(t){if(!t.empty){var n=t.docs.map((function(e){return Object(x.a)({id:e.id},e.data())}));e.setState({notes:n})}}))}},{key:"render",value:function(){var e=this.props,t=e.QNACollection,n=e.QNAReplyCollection,a=e.canReply,i=e.moderated,s=this.state.notes;return Object(o.jsxs)("div",{className:"qa-section scrollable-part",children:[Object(o.jsx)("div",{className:"qa-section__inner pd-b70 ",children:s&&s.map((function(e){return Object(o.jsx)(Vt,{id:e.id,title:e.title,content:e.content,time:e.time2,QNACollection:t,QNAReplyCollection:n,canReply:a},e.id)}))}),Object(o.jsx)(_t,{QNACollection:t,QNAReplyCollection:n,moderated:i})]})}}]),n}(r.a.Component),qt=function(e){Object(m.a)(n,e);var t=Object(p.a)(n);function n(){return Object(u.a)(this,n),t.apply(this,arguments)}return Object(h.a)(n,[{key:"onHeadingClick",value:function(e){this.props.onHeadingClick(e)}},{key:"render",value:function(){var e=this,t=this.props,n=t.QNACollection,a=t.QNAReplyCollection,i=t.canReply,s=t.moderated,c=t.headerName;return Object(o.jsxs)("div",{className:"second-level-nav",children:[Object(o.jsxs)("h3",{className:"second-level-nav__title has-icon",onClick:function(t){return e.onHeadingClick(t)},children:[c||"Q&A",Object(o.jsx)("i",{className:"icon-close"})]}),Object(o.jsx)(Ht,{QNACollection:n,QNAReplyCollection:a,canReply:i,moderated:s})]})}}]),n}(r.a.Component),zt=0,Gt=1,Wt=2,Yt=3,Qt=function(e){Object(m.a)(n,e);var t=Object(p.a)(n);function n(e){var a;return Object(u.a)(this,n),(a=t.call(this,e)).suscribeToPollAdmin=function(){a.removeListener&&a.removeListener(),a.removeListener=Be.collection(a.props.PollAdmin_Col).doc(a.props.PollAdmin_Doc).onSnapshot((function(e){e.data().showPoll?a.getPolls():e.data().showResults?a.getResult():a.setState({pollCurrentState:Yt})}),(function(e){console.log(e)}))},a.unsuscribeToPollAdmin=function(){a.removeListener&&a.removeListener()},a.getPolls=Object(j.a)(f.a.mark((function e(){var t;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,a.pollDocData=[],e.next=4,Be.collection(a.props.Poll_Doc).get();case 4:(t=e.sent).docs.length>0&&(t.docs.forEach((function(e){a.pollDocData.push(e)})),a.setState({pollCurrentState:zt})),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(o.jsxs)("label",{className:"poll-custom-radio",children:[Object(o.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(o.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(o.jsxs)("div",{className:"poll-section__block poll-identifier",id:"".concat(t.id),children:[Object(o.jsx)("h3",{className:"poll-section__title mg-b20",children:"".concat(t.data().question)}),a.printOption(t)]},"".concat(t.id)))})),e.push(Object(o.jsx)("div",{className:"poll-section__block",children:Object(o.jsx)("div",{className:"pd-t10 pd-b10",children:Object(o.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:Wt})},a.sendPollFeedback=function(e,t){var n=Be.collection(a.props.Poll_Doc).doc(e);return Be.runTransaction((function(e){return e.get(n).then((function(a){if
1(!a.exists)throw"Document does not exist!";var i=a.data().totalResponse;i+=1;var s=a.data().optionResponse;return s[t]+=1,null!==s?(e.update(n,{totalResponse:i}),e.update(n,{optionResponse:s}),i):Promise.reject("Sorry! scoreArray is null")}))})).then((function(e){console.log("total response :",e)})).catch((function(e){console.error(e)}))},a.getResult=Object(j.a)(f.a.mark((function e(){var t;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a.pollResultData=[],e.prev=1,e.next=4,Be.collection(a.props.Poll_Doc).get();case 4:t=e.sent,t.docs.forEach((function(e){a.pollResultData.push(e)})),a.setState({pollCurrentState:Gt}),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,i=e.optionResponse;return n.forEach((function(s){var c=0;0!==e.totalResponse&&(c=Math.floor((i[n.indexOf(s)]/a*100).toPrecision(2))),t.push(Object(o.jsxs)("div",{className:"poll-custom-progress-box",children:["".concat(s),Object(o.jsxs)("div",{className:"poll-custom-progress-bar",children:[Object(o.jsx)("div",{className:"poll-custom-progress-bar__front",style:{width:"".concat(c,"%")}}),Object(o.jsxs)("span",{className:"poll-custom-progress-bar__percent",children:[" ","".concat(c,"%")]})]})]},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(o.jsxs)("div",{className:"poll-section__block",id:"".concat(t.id),children:[Object(o.jsx)("h3",{className:"poll-section__title pd-b10",children:"".concat(n.question)}),a.printPollAnswer(n)]},"".concat(t.id)))})),e}return null},a.state={pollCurrentState:Yt},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(o.jsx)(o.Fragment,{children:Object(o.jsxs)("div",{className:"second-level-nav",children:[Object(o.jsxs)("h3",{className:"second-level-nav__title has-icon",onClick:function(t){return e.onHeadingClick(t)},children:["Public Poll",Object(o.jsx)("i",{className:"icon-close"})]}),Object(o.jsxs)("div",{className:"poll-section scrollable-part",children:[this.state.pollCurrentState===zt?Object(o.jsx)("div",{className:"poll-section__inner",children:this.printPoll()}):null,this.state.pollCurrentState===Gt?Object(o.jsx)("div",{className:"poll-section__inner",children:this.printPollResults()}):null,this.state.pollCurrentState===Wt?Object(o.jsx)("div",{className:"d-flex h-100 align-items-center justify-content-center",children:Object(o.jsx)("p",{className:"light-color",children:"Waiting for results"})}):null,this.state.pollCurrentState===Yt?Object(o.jsx)("div",{className:"d-flex h-100 align-items-center justify-content-center",children:Object(o.jsx)("p",{className:"light-color",children:"Waiting for Poll To GO Live"})}):null]})]})})}}]),n}(c.Component),Jt=function(e){Object(m.a)(n,e);var t=Object(p.a)(n);function n(e){var a;return Object(u.a)(this,n),(a=t.call(this,e)).getFirstEnabledVideo=function(){for(var e=0;e<a.videoIds.length;e++)if(a.props.videoData[a.videoIds[e]].enabled)return a.videoIds[e]},a.getNextEnabledVideo=function(){return a.currentVideoIndex+=1,a.currentVideoIndex%=a.videoListLength,a.props.videoData[a.videoIds[a.currentVideoIndex]].enabled?a.currentVideoIndex:a.getNextEnabledVideo()},a.handleVideoSelection=function(e,t,n){a.currentVideoIndex=n,a.setState({currentVideoId:t})},a.onVideoFinish=function(){a.setState({currentVideoId:a.videoIds[a.getNextEnabledVideo()]})},a.close=function(e){a.props.close()},a.getThumnailUrl=function(e,t){return e===pe?"https://img.youtube.com/vi/".concat(t,"/mqdefault.jpg"):e===be?"https://i.vimeocdn.com/video/".concat(t,"_130x73.jpg"):"http://img.youtube.com/vi/".concat(t,"/mqdefault.jpg")},a.videoIds=Object.keys(a.props.videoData),a.currentVideoIndex=0,a.videoListLength=a.videoIds.length,a.state={data:a.props.videoData,currentVideoId:a.getFirstEnabledVideo()},a}return Object(h.a)(n,[{key:"render",value:function(){var e=this;return Object(o.jsx)(o.Fragment,{children:Object(o.jsx)("div",{className:"popover-modal popover-modal-0zindex",children:Object(o.jsx)("div",{className:"popover-modal__inner",children:Object(o.jsx)("div",{className:"popover-modal__body popover-modal__body--xl",children:Object(o.jsxs)("div",{className:"video-player",children:[Object(o.jsxs)("div",{className:"video-player__header",children:[Object(o.jsx)("h2",{children:"R1 RCM Sessions"}),Object(o.jsx)("div",{className:"headerCloseButton",onClick:function(t){return e.close(t)}})]}),Object(o.jsxs)("div",{className:"video-player__body",children:[Object(o.jsxs)("div",{className:"video-player__left",children:[Object(o.jsx)(vt.a,{id:"audiVideoPlayer",className:"mg-b25",url:this.props.videoData[this.state.currentVideoId].link,playing:!0,controls:!1,playsinline:!0,width:"100%",height:"25rem",onEnded:this.onVideoFinish}),Object(o.jsx)("h2",{className:"video-player__title",children:this.props.videoData[this.state.currentVideoId].name}),Object(o.jsx)("p",{className:"video-player__desc",children:this.props.videoData[this.state.currentVideoId].description})]}),Object(o.jsx)("div",{className:"video-player__right",children:Object(o.jsx)("div",{className:"video-player__list",children:this.videoIds.map((function(t,n){return e.props.videoData[t].enabled?Object(o.jsxs)("div",{className:"video-player__item cursor-pointer",style:t===e.state.currentVideoId?{background:"#ffbc04",pointerEvents:"none"}:null,onClick:function(a){return e.handleVideoSelection(a,t,n)},children:[Object(o.jsx)("div",{className:"video-player__item-pic",style:{backgroundImage:"url(".concat(e.getThumnailUrl(e.props.videoData[t].type,e.props.videoData[t].videoCode),")"),backgroundPosition:"center"}}),Object(o.jsxs)("div",{className:"video-player__item-desc",children:[Object(o.jsx)("h4",{className:"video-player__item-title ".concat(t===e.state.currentVideoId?"":"light-color"),children:e.props.videoData[t].name.length>90?e.props.videoData[t].name.substr(0,90)+"...":e.props.videoData[t].name}),Object(o.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}
1(c.Component),Zt=n(126),Kt=n.n(Zt),Xt=n(299),$t=n(86),en=(n(359),n(52)),tn="/3dAssets/UI/dailyco/png/",nn=function(e){Object(m.a)(n,e);var t=Object(p.a)(n);function n(e){var a;return Object(u.a)(this,n),(a=t.call(this,e)).suscribeToVideoCallStatus=function(){a.statusLisenter=Be.collection(k).doc(a.docName).onSnapshot((function(e){e.data()&&(console.log("Firebase Current data: ",e.data()),a.setState({videoCallStillOn:e.data().callStarted}))}))},a.unsuscribeToVideoCallStatus=function(){a.statusLisenter&&a.statusLisenter()},a.suscribeToUserCollection=function(){var e=Object(pt.a)(a);a.LiveParticipantListFromFirebase.clear(),a.lisenter=Be.collection(k).doc(a.roomName).onSnapshot((function(t){t.data()&&(console.log("Firebase Current data: ",t.data()),t.data().users.forEach((function(t){var n={userid:t.userid,imageUrl:t.imageUrl};e.LiveParticipantListFromFirebase.set(t.sessionId,n),e.setState({update:!1})})),console.log(e.LiveParticipantListFromFirebase))}))},a.unsuscribeToUserCollection=function(){a.lisenter&&a.lisenter()},a.saveSessionId=function(e){var t={sessionId:e,userid:a.context.currentUser.uid,imageUrl:a.context.currentUser.photoURL};Be.collection(k).doc(a.docName).update({users:a.context.app.firestore.FieldValue.arrayUnion(t)}).then((function(){console.log("user is updated")})).catch((function(e){console.error(e)}))},a.removeParticipantFromFirebase=function(e){if(a.LiveParticipantListFromFirebase.has(e.session_id)){var t=a.LiveParticipantListFromFirebase.get(e.session_id);e.session_id,t.userid,t.imageUrl}else console.log("this Id has not been found in local system")},a.onInputChange=function(e){e.preventDefault();var t=e.target.value;a.setState(Object(v.a)({},e.target.name,t))},a.SetupIframe=function(){var e=Object(j.a)(f.a.mark((function e(t){var n,i;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=Object(pt.a)(a),void 0!==t&&null!==t){e.next=3;break}return e.abrupt("return");case 3:if(i=document.getElementById("video-iframe")){e.next=7;break}return setTimeout((function(){a.SetupIframe(t)}),500),e.abrupt("return");case 7:if(i){e.next=21;break}return e.abrupt("return");case 21:return a.callFrame=Xt.a.wrap(i,{customLayout:!0}),a.callFrame.on("joining-meeting",a.updateEvent).on("joined-meeting",a.updateEvent).on("left-meeting",a.updateEvent).on("participant-joined",a.updateEvent).on("participant-updated",a.updateEvent).on("participant-left",a.updateEvent).on("app-message",a.requestEvent).on("live-streaming-started",(function(){a.setState({stramStarted:!0})})).on("live-streaming-stopped",(function(){a.setState({stramStarted:!1})})).on("error",a.updateEvent),e.next=25,a.callFrame.join({url:"https://digitaljalebi.daily.co/".concat(n.roomName,"?t=").concat(t),cssFile:"assets/css/dailyco/demo-css-grid.css"});case 25:a.setState({hasJoinedCall:!0}),console.log(" You have joined meeting");case 27:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),a.startStream=function(){a.callFrame.startLiveStreaming({rtmpUrl:"".concat(a.props.rmtpURL)})},a.stopStream=function(){a.callFrame.stopLiveStreaming()},a.EndCallForEveryOne=Object(j.a)(f.a.mark((function e(){var t,n;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.callFrame.participants(),n=[],e.next=4,Be.collection(k).doc(a.docName).update({users:n,callStarted:!1});case 4:Object.keys(t).forEach((function(e){"local"!==e&&(a.ejectParticipant(e),a.pendingRequestIDs=[],a.accessAllowedIDs=[],a.showAccessControls=[],a.timerAccessControl.clear(),a.LiveParticipantListFromFirebase.clear(),a.LiveParticipantListFromDailyco.clear(),a.participants=[])})),a.callFrame.stopLiveStreaming();case 6:case"end":return e.stop()}}),e)}))),a.startCallForEveryOne=Object(j.a)(f.a.mark((function e(){var t;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t=[],e.next=4,Be.collection(k).doc(a.docName).update({users:t,callStarted:!0});case 4:console.log("video call started"),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),console.log(e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])}))),a.updateEvent=function(){var e=Object(j.a)(f.a.mark((function e(t){var n,i,s,o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=a.callFrame.participants(),!t){e.next=28;break}if(!t.action){e.next=28;break}e.t0=t.action,e.next="joining-meeting"===e.t0?6:"joined-meeting"===e.t0?7:"participant-joined"===e.t0?11:"participant-updated"===e.t0?14:"participant-left"===e.t0?20:"left-meeting"===e.t0?24:"error"===e.t0?26:27;break;case 6:return e.abrupt("break",28);case 7:return a.isAdmin&&a.joinedMeetingEvent(t),a.session_id=t.participants.local.session_id,a.getProgileImages&&a.saveSessionId(t.participants.local.session_id),e.abrupt("break",28);case 11:return a.addParticipant(t.participant),a.showNotification(t.participant.user_name," joined the Call",3e3,!0),e.abrupt("break",28);case 14:if(a.isParticipantUpdated(t.participant,t.participant.session_id)){e.next=16;break}return e.abrupt("return");case 16:return t.participant.screen?a.ScreenSharingParticipant.length>0||(a.ScreenSharingParticipant=t.participant.session_id,a.session_id===t.participant.session_id?a.showNotification("","You Started ScreenSharing",3e3,!0):a.showNotification(t.participant.user_name," Started ScreenSharing",3e3,!0)):a.ScreenSharingParticipant.length>0&&t.participant.session_id===a.ScreenSharingParticipant&&(a.ScreenSharingParticipant=""),t.participant.video,a.isAdmin&&a.changeOrder(t.participant),e.abrupt("break",28);case 20:return a.removeParticipant(t.participant),Object.keys(n).length>1?a.showNotification(t.participant.user_name," Left The Call",3e3,!0):a.showNotification(" ","EveryBody Left The Call",3e3,!0),e.abrupt("break",28);case 24:console.log("you have been disconnected from the call"),a.EndCall();case 26:t.errorMsg&&"Meeting has ended"===t.errorMsg&&(a.state.callEnded||a.setState({isVideoOn:!1,isAudioOn:!1,isScreenSharing:!1,hasAccess:!1,hasJoinedCall:!1,callEnded:!0}));case 27:return e.abrupt("break",28);case 28:i=!1,s=!1,o=!1,n.local&&(i=!(!n.local.screen||a.state.isScreenSharing)||!(!n.local.screen&&a.state.isScreenSharing)&&n.local.screen,s=!!a.callFrame.localVideo(),o=!!a.callFrame.localAudio(),a.setState({isScreenSharing:i,isVideoOn:s,isAudioOn:o}));case 30:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),a.requestEvent=function(){var e=Object(j.a)(f.a.mark((function e(t){var n,i,s,o,c;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!a.isAdmin){e.next=6;break}n=t.fromId,"access-request"===t.data.data&&(a.accessAllowedIDs.includes(n)?a.setAccess(n,!0):a.pendingRequestIDs.includes(n)?-1!==(o=a.pendingRequestIDs.indexOf(n))&&(a.pendingRequestIDs.splice(o,1),a.pendingRequestIDs.push(n),a.updateEvent(t),a.LiveParticipantListFromDailyco.has(n)&&(c=a.LiveParticipantListFromDailyco.get(n).user_name,a.showNotification(c," Has Requested Access",4e3,!1))):(a.pendingRequestIDs.push(n),a.updateEvent(t),a.LiveParticipantListFromDailyco.has(t.fromId)&&(i=a.LiveParticipantListFromDailyco.get(t.fromId).user_name,a.showNotification(i," Has Requested Access",4e3,!1)),s=Object(pt.a)(a),setTimeout((function(){var e=s.pendingRequestIDs.indexOf(n);-1!==e&&(a.pendingRequestIDs.splice(e,1),a.updateEvent(t))}),s.requestAccessTime))),e.next=22;break;case 6:if(!0!==t.data.allowed){e.next=11;break}ft()({title:"You Have Been Granted Access By The Host",icon:"success",className:"video-swal-modal",button:"Okay"}),a.setState({isVideoOn:!1,isAudioOn:!1,isScreenSharing:!1,hasAccess:!0,hasRequestedAccess:!1}),e.next=19;break;case 11:if(!1!==t.data.allowed){e.next=19;break}if(!a.state.hasAccess){e.next=18;break}
1if(ft()({title:"Your Access Request Has Been Revoked By Host",icon:"info",className:"video-swal-modal",button:"Okay"}),!a.state.isScreenSharing){e.next=18;break}return a.callFrame.stopScreenShare(),a.setState(Object(v.a)({isVideoOn:!1,isAudioOn:!1,isScreenSharing:!1,hasAccess:!1},"isScreenSharing",!1)),e.abrupt("return");case 18:a.setState({hasAccess:!1,hasRequestedAccess:!1});case 19:!0===t.data.video?ft()({title:"Host has requested you to turn on video",className:"video-swal-modal",buttons:{accept:"Turn On Video",reject:"Decline Request"}}).then((function(e){switch(e){case"accept":a.requestVideoAccess()}})):!1===t.data.video&&a.callFrame.localVideo()&&(a.callFrame.setLocalVideo(!1),a.setState({isVideoOn:!1})),!0===t.data.audio?ft()({title:"Host has requested you to turn on audio",className:"video-swal-modal",buttons:{accept:"Turn On Audio",reject:"Decline Request"}}).then((function(e){switch(e){case"accept":a.requestAudioAccess()}})):!1===t.data.audio&&a.callFrame.localAudio()&&(a.callFrame.setLocalAudio(!1),a.setState({isAudioOn:!1})),!0===t.data.screen?ft()({title:"Host has requested you to turn on screen sharing",className:"video-swal-modal",buttons:{accept:"Turn On Screen Sharing",reject:"Decline Request"}}).then((function(e){switch(e){case"accept":a.requestShareAccess()}})):!1===t.data.screen&&(a.callFrame.stopScreenShare(),a.setState({isScreenSharing:!1}));case 22:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),a.adminToggleShareScreen=Object(j.a)(f.a.mark((function e(){return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a.state.isScreenSharing?(a.callFrame.stopScreenShare(),a.setState({isScreenSharing:!1})):(a.callFrame.startScreenShare(),a.setState({isScreenSharing:!0}));case 1:case"end":return e.stop()}}),e)}))),a.showControls=function(e){if(e){if(e===a.session_id)return;if(a.timerAccessControl.has(e)){a.setState({update:!1});var t=a.timerAccessControl.get(e);clearTimeout(t),a.timerAccessControl.delete(e)}else{var n=Object(pt.a)(a),i=setTimeout((function(){e&&(n.timerAccessControl.has(e)&&n.timerAccessControl.delete(e),a.setState({update:!1}))}),8e3);a.timerAccessControl.set(e,i),a.setState({update:!1})}}else console.log("session id is not valid")},a.initAccess=function(){var e=Object(j.a)(f.a.mark((function e(t){var n;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=a.callFrame.participants(),Object.keys(n).forEach((function(e){"local"!==e&&(n[e].video||n[e].audio||n[e].screen||n[e].owner)&&(a.accessAllowedIDs.includes(e)||a.accessAllowedIDs.push(e))})),a.updateEvent(t);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),a.renderSingleParticipant=function(e,t,n){var i=a.getUserImageLink(e);i=i||"https://firebasestorage.googleapis.com/v0/b/djfarmademo.appspot.com/o/profileimages%2Fblank-avatar.png?alt=media&token=2af15226-9bd7-47ce-bc72-f3c1a12a0780";var s="",c="notification-hide";if(a.isAdmin)switch(n){case"allowed":t.video||t.audio||t.screen?(s="AccessAllow_On.png","Take Access Back",c="notification-green"):(s="AccessAllow_Off.png","Take Access Back",c="notification-blue");break;case"pending":s="AccessReq.png","Give Access",c="notification-yellow";break;case"default":s="AccessNeutral.png","Give Access"}var r=!1;return a.timerAccessControl.has(e)&&(r=!0),a.isAdmin?Object(o.jsxs)(o.Fragment,{children:[Object(o.jsx)("a",{"data-tip":!0,"data-for":e,className:"participantBadge",children:Object(o.jsxs)("div",{className:"participantBadge-user",id:"".concat(e),onClick:function(t){a.showControls(e)},children:[Object(o.jsx)("img",{src:"".concat(i),className:a.isAdmin?"participantImageAdmin":"participantImage"}),Object(o.jsx)("div",{className:"participantName",children:"".concat(t.user_name?"".concat("self"===n?"(ME)":""):"unknown"," ").concat(t.user_name)}),a.isAdmin&&e!==a.session_id&&Object(o.jsxs)("div",{id:"controls",className:"participantControls",children:["allowed"===n&&Object(o.jsxs)(o.Fragment,{children:[Object(o.jsx)("a",{"data-tip":!0,"data-for":"VideoInfo",children:Object(o.jsx)("img",{className:"control ",id:"video-button",onClick:function(n){return a.setParticipantVideo(e,t)},src:"".concat(tn).concat(t.video?"cameraButton.png":"cameraButtonClosed.png")})}),Object(o.jsx)(en.a,{id:"VideoInfo",children:Object(o.jsx)("span",{children:t.video?"Disable Video":"Request Video On"})}),Object(o.jsx)("a",{"data-tip":!0,"data-for":"AudioInfo",children:Object(o.jsx)("img",{className:"control ",id:"audio-button",onClick:function(n){return a.setParticipantAudio(e,t)},src:"".concat(tn).concat(t.audio?"Mic.png":"MicClosed.png")})}),Object(o.jsx)(en.a,{id:"AudioInfo",children:Object(o.jsx)("span",{children:t.audio?"Disable Audio":"Request Audio On"})}),Object(o.jsx)("a",{"data-tip":!0,"data-for":"ScreenInfo",children:Object(o.jsx)("img",{className:"control ",id:"screen-button",onClick:function(n){return a.setParticipantScreen(e,t)},src:"".concat(tn).concat(t.screen?"ScreenShareOn.png":"ScreenShare.png")})}),Object(o.jsx)(en.a,{id:"ScreenInfo",children:Object(o.jsx)("span",{children:t.screen?"Disable Screen Share":"Request Screen Share"})})]}),Object(o.jsx)("a",{"data-tip":!0,"data-for":"AccessInfo",children:Object(o.jsx)("img",{className:"control ",id:"access-button",onClick:function(n){return a.toggleParticipantAccess(e,t)},src:"".concat(tn).concat(s)})}),Object(o.jsx)(en.a,{id:"AccessInfo"}),Object(o.jsx)("a",{"data-tip":!0,"data-for":"KickOutInfo",children:Object(o.jsx)("img",{className:"control",id:"audio-button",onClick:function(t){return a.ejectParticipant(e)},src:tn+"Kick.png"})}),Object(o.jsx)(en.a,{id:"KickOutInfo",children:Object(o.jsx)("span",{children:"End Call For user"})})]}),Object(o.jsx)("span",{className:"notification ".concat(c)})]},"".concat(e))},"".concat(e)),!r&&Object(o.jsx)(en.a,{id:e,getContent:function(){return t.user_name}})]}):Object(o.jsxs)(o.Fragment,{children:[Object(o.jsx)("a",{"data-tip":!0,"data-for":e,className:"participantBadge",children:Object(o.jsxs)("div",{className:"participantBadge-user",id:"".concat(e),onClick:function(t){a.showControls(e)},children:[Object(o.jsx)("img",{src:"".concat(i),className:a.isAdmin?"participantImageAdmin":"participantImage"}),Object(o.jsx)("div",{className:"participantName",children:"".concat(t.user_name?"".concat("self"===n?"(ME)":""):"unknown"," ").concat(t.user_name.toUpperCase())})]},"".concat(e))},"".concat(e)),Object(o.jsx)(en.a,{id:e,getContent:function(){return t.user_name}})]})},a.asyncForEachReverse=function(e,t){for(var n=e.length-1;n>-1;n--)t(e[n],n,e)},a.renderParticipantList=function(){var e=[],t=Object(x.a)({},a.callFrame.participants());console.log(t);for(var n=Object.keys(t),i=n.length-1;i>=0;i--){var s=n[i];"local"!==s&&(null!=t[s].user_name&&t[s].user_name.toLowerCase().indexOf(a.state.searchTerm.toLowerCase())<=-1&&delete t[s])}if(e.push(a.renderSingleParticipant(t.local.session_id,t.local,"self")),a.isAdmin){var o=Object(pt.a)(a);a.asyncForEachReverse(a.accessAllowedIDs,(function(n){if(n in t){var a=t[n];e.push(o.renderSingleParticipant(n,a,"allowed"))}})),a.asyncForEachReverse(a.pendingRequestIDs,(function(n){if(n in t){var a=t[n];e.push(o.renderSingleParticipant(n,a,"pending"))}}))}return Object.keys(t).forEach((function(n){if("local"!==n&&!(a.accessAllowedIDs.indexOf(n)>
1-1)&&!(a.pendingRequestIDs.indexOf(n)>-1)){var i=t[n];e.push(a.renderSingleParticipant(n,i,"default"))}})),e},a.ToggleSidePanel=function(e){e&&e.preventDefault(),a.props.hideSidePanel&&a.props.hideSidePanel()},a.state={layout:"default",stramStarted:!1,isVideoOn:!1,isAudioOn:!1,isScreenSharing:!1,hasAccess:!1,hasRequestedAccess:!1,hasJoinedCall:!1,callEnded:!1,update:!1,show:!1,videoCallStillOn:!1,sidePanelOn:!0,searchTerm:""},a.name=a.props.name,a.isAdmin=a.props.isAdmin,a.roomName=a.props.room.roomName,a.docName=a.props.room.docName,a.getProgileImages=!1,a.serverlinkTesting="http://localhost:8080/generateToken",a.serverlinkProduction="https://vidconserver.virtualeventdemo.com/generateToken",a.LiveParticipantListFromDailyco=new Map,a.LiveParticipantListFromFirebase=new Map,a.ScreenSharingParticipant="",a.session_id="",a.pendingRequestIDs=[],a.accessAllowedIDs=[],a.showAccessControls=[],a.timerAccessControl=new Map,a.participants=[],a.isInit=!1,a.requestAccessTime=3e4,window.DailycoManager=Object(pt.a)(a),a}return Object(h.a)(n,[{key:"componentDidMount",value:function(){this.props.autoInitalize&&this.initializeDailyco()}},{key:"componentWillUnmount",value:function(){window.DailycoManager=null,console.log("unmounting call"),this.unsuscribeToUserCollection(),this.unsuscribeToVideoCallStatus();var e=document.getElementById("video-iframe");this.state.callEnded||e&&e.remove()}},{key:"goToLobby",value:function(e){var t=V[T.Lobby];this.props.goToLobby(e,t)}},{key:"getUserImageLink",value:function(e){if(this.LiveParticipantListFromFirebase.has(e))return this.LiveParticipantListFromFirebase.get(e).imageUrl}},{key:"getUserid",value:function(e){return!!this.LiveParticipantListFromFirebase.has(e)&&this.LiveParticipantListFromFirebase.get(e).userid}},{key:"addParticipant",value:function(e){e.local||this.LiveParticipantListFromDailyco.set(e.session_id,e)}},{key:"removeParticipant",value:function(e){e.local||(this.LiveParticipantListFromDailyco.delete(e.session_id),e.session_id===this.ScreenSharingParticipant&&(this.ScreenSharingParticipant=""),console.log(this.LiveParticipantListFromDailyco))}},{key:"changeOrder",value:function(e){var t=e.session_id,n=this.accessAllowedIDs.indexOf(t);-1!==n&&(e.video||e.audio||e.screen)&&(this.accessAllowedIDs.splice(n,1),this.accessAllowedIDs.push(t))}},{key:"isParticipantUpdated",value:function(e,t){if(this.LiveParticipantListFromDailyco.has(t)){var n=this.LiveParticipantListFromDailyco.get(t);return n.audio===e.audio&&n.screen===e.screen&&n.video===e.video?(console.log("Same Participant data is Duplicated!!"),!1):(console.log("Same Participant data is updated!!"),this.LiveParticipantListFromDailyco.set(t,e),!0)}return!1}},{key:"initializeDailyco",value:function(){console.log("Dailyco called "),this.suscribeToVideoCallStatus(),this.state.callEnded?this.setState({isVideoOn:!1,isAudioOn:!1,isScreenSharing:!1,hasAccess:!1,hasJoinedCall:!1,callEnded:!1,update:!1,show:!0}):this.setState({show:!0}),this.pendingRequestIDs=[],this.accessAllowedIDs=[],this.showAccessControls=[],this.timerAccessControl.clear(),this.LiveParticipantListFromFirebase.clear(),this.LiveParticipantListFromDailyco.clear(),this.participants=[];var e=this;console.log(e.name,e.isAdmin,e.roomName),Kt.a.get(this.serverlinkProduction,{params:{name:e.name,admin:e.isAdmin,roomName:e.roomName}}).then((function(t){console.log("getting response back"),console.log(t.data),e.SetupIframe(t.data)}))}},{key:"removeLisenters",value:function(){this.callFrame.off("joining-meeting",this.updateEvent).off("joined-meeting",this.updateEvent).off("left-meeting",this.updateEvent).off("participant-joined",this.updateEvent).off("participant-updated",this.updateEvent).off("participant-left",this.updateEvent).off("app-message",this.requestEvent).off("error",this.updateEvent)}},{key:"EndCall",value:function(){this.setState({isVideoOn:!1,isAudioOn:!1,isScreenSharing:!1,hasAccess:!1,hasJoinedCall:!1,callEnded:!0}),this.EndCallViaMenu()}},{key:"EndCallViaMenu",value:function(){this.removeLisenters(),this.callFrame.leave()}},{key:"showEvent",value:function(e){e.action&&(e.action,console.log(e.action+" : "))}},{key:"sendAccessRequest",value:function(){this.state.hasJoinedCall&&this.callFrame.sendAppMessage({data:"access-request"})}}
1,{key:"checkActiveCamerasLimit",value:function(){var e=this.callFrame.participants(),t=0;return Object.keys(e).forEach((function(n){e[n].video&&t++})),console.log(t),t<8}},{key:"requestVideoAccess",value:function(){if(this.state.hasJoinedCall)if(this.isAdmin)this.callFrame.localVideo()||this.checkActiveCamerasLimit()?(this.callFrame.setLocalVideo(!this.callFrame.localVideo()),this.setState({isVideoOn:!this.callFrame.localVideo()})):ft()({title:"Unable to turn on camera.",text:"Maximum limit of 8 active cameras has been reached. Please revoke camera access from an active participant to turn on camera.",icon:"warning",className:"video-swal-modal",button:"Okay"});else if(this.callFrame.localVideo())this.callFrame.setLocalVideo(!1),this.setState({isVideoOn:!1});else if(this.state.hasAccess)this.checkActiveCamerasLimit()?(this.callFrame.setLocalVideo(!0),this.setState({isVideoOn:!0})):ft()({title:"Unable to turn on camera.",text:"Maximum limit of 8 active cameras has been reached.",icon:"warning",className:"video-swal-modal",button:"Okay"});else if(!this.state.hasRequestedAccess){var e=this;setTimeout((function(){e.setState({hasRequestedAccess:!1})}),e.requestAccessTime),e.setState({hasRequestedAccess:!0}),this.sendAccessRequest()}}},{key:"requestAudioAccess",value:function(){var e=this;this.state.hasJoinedCall&&(this.isAdmin?(this.callFrame.setLocalAudio(!this.callFrame.localAudio()),this.setState({isAudioOn:!this.callFrame.localAudio()})):this.callFrame.localAudio()?(this.setState({isAudioOn:!1}),this.callFrame.setLocalAudio(!1)):this.state.hasAccess?(this.setState({isAudioOn:!0}),this.callFrame.setLocalAudio(!0)):ft()("Send Access Request!!","Want To Send Access Request To The Host","success").then((function(t){e.sendAccessRequest()})))}},{key:"requestShareAccess",value:function(e){if(this.state.hasJoinedCall)if(!this.state.isScreenSharing&&this.ScreenSharingParticipant.length>0)if(this.LiveParticipantListFromDailyco.has(this.ScreenSharingParticipant)){var t=this.LiveParticipantListFromDailyco.get(this.ScreenSharingParticipant);this.showNotification(t.user_name," Is Already Sharing The Screen",3e3,!0)}else this.showNotification(" ","Someone Is Already Sharing The Screen",3e3,!0);else this.isAdmin?this.adminToggleShareScreen():this.state.isScreenSharing?(this.setState({isScreenSharing:!1}),this.callFrame.stopScreenShare()):this.state.hasAccess?(this.setState({isScreenSharing:!0}),this.callFrame.startScreenShare()):window.confirm("Request host to turn on screen sharing?")&&this.sendAccessRequest()}},{key:"setAccess",value:function(e,t){var n,a;this.isAdmin&&(t?(-1==(n=this.accessAllowedIDs.indexOf(e))&&this.accessAllowedIDs.push(e),-1!==(a=this.pendingRequestIDs.indexOf(e))&&this.pendingRequestIDs.splice(a,1),this.callFrame.sendAppMessage({allowed:!0},e),this.updateEvent()):(-1!==(n=this.accessAllowedIDs.indexOf(e))&&this.accessAllowedIDs.splice(n,1),-1!==(a=this.pendingRequestIDs.indexOf(e))&&this.pendingRequestIDs.splice(a,1),this.callFrame.updateParticipant(e,{setVideo:!1,setAudio:!1}),this.callFrame.sendAppMessage({allowed:!1},e),this.setState({update:!1})))}},{key:"toggleParticipantAccess",value:function(e){-1==this.accessAllowedIDs.indexOf(e)?this.setAccess(e,!0):this.setAccess(e,!1)}},{key:"setParticipantVideo",value:function(e,t){this.isAdmin&&(-1!==this.accessAllowedIDs.indexOf(e)&&(t.video?this.callFrame.sendAppMessage({video:!1},e):this.callFrame.sendAppMessage({video:!0},e),this.updateEvent()))}},{key:"setParticipantAudio",value:function(e,t){this.isAdmin&&(-1!==this.accessAllowedIDs.indexOf(e)&&(t.audio?this.callFrame.sendAppMessage({audio:!1},e):this.callFrame.sendAppMessage({audio:!0},e),this.updateEvent()))}},{key:"setParticipantScreen",value:function(e,t){this.isAdmin&&(-1!==this.accessAllowedIDs.indexOf(e)&&(t.screen?this.callFrame.sendAppMessage({screen:!1},e):this.callFrame.sendAppMessage({screen:!0},e),this.updateEvent()))}},{key:"ejectParticipant",value:function(e){var t=this.accessAllowedIDs.indexOf(e);-1!=t&&this.accessAllowedIDs.splice(t,1),this.callFrame.updateParticipant(e,{eject:!0}),this.removeParticipant(e)}},{key:"cancelRequest",value:function(e){this.setAccess(e,!1)}},{key:"joinedMeetingEvent",value:function(e){!this.isInit&&this.isAdmin&&(this.isInit=!0,this.initAccess(e)),this.showEvent(e)}},{key:"renderVideoConferenceUI",value:function(){var e=this;if(this.state.hasJoinedCall){var t=this.callFrame.participants();return Object.keys(t).length>1?Object(o.jsx)("div",{className:"videoConference-section",children:this.renderParticipantList(
1)}):Object(o.jsx)("div",{className:"uiMessgaes",children:"Waiting For Others To Join...."})}return this.state.callEnded?Object(o.jsxs)(o.Fragment,{children:[Object(o.jsx)("div",{className:"uiMessgaes",children:this.state.videoCallStillOn?"You Have Been Disconnected":"Video Call Ended"}),Object(o.jsx)("div",{id:"controlsParent",children:this.state.videoCallStillOn?Object(o.jsxs)("button",{className:"rejoinButton",onClick:function(t){return e.initializeDailyco()},children:["Rejoin"," "]}):null})]}):Object(o.jsx)("div",{className:"uiMessgaes",children:"Please Wait. Joining Call.."})}},{key:"showNotification",value:function(e,t,n,a){var i;$t.c.dismiss(),i=window.screen.width<700?$t.c.POSITION.TOP_LEFT:$t.c.POSITION.BOTTOM_LEFT,this.toastId=Object($t.c)("".concat(e," ").concat(t),{position:i,autoClose:4e3,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!1,draggable:!1,progress:void 0,transition:$t.b})}},{key:"checkValue",value:function(){console.log("value : ",this.state.videoCallStillOn)}},{key:"render",value:function(){var e=this;return Object(o.jsx)(o.Fragment,{children:this.state.show?Object(o.jsx)(o.Fragment,{children:Object(o.jsx)("footer",{className:"footerBox dailyco",style:g.isMobileOnly?{position:"absolute",bottom:"4.5rem"}:{},children:Object(o.jsxs)("div",{className:"submenu-container ".concat(this.props.showSidePanel?"active expended":""),children:[Object(o.jsxs)("a",{onClick:this.ToggleSidePanel,style:{display:"flex",alignItems:"center",color:"white"},children:[Object(o.jsx)("img",{className:"menuCLoseButton",src:"assets/images/close.png"}),Object(o.jsxs)("h3",{className:"mg-l15",children:["Meeting (",this.callFrame&&this.callFrame.participants()?Object.keys(this.callFrame.participants()).length:0," ","attendees)"]})]}),Object(o.jsxs)("div",{className:"second-level-nav",children:[this.isAdmin&&this.state.hasJoinedCall&&Object(o.jsxs)(o.Fragment,{children:[Object(o.jsxs)("h3",{className:"second-level-nav__title has-icon titleButtonMenu DailycoTitleMenu",children:["Meeting",Object(o.jsx)("input",{type:"text",className:"blackBG whiteText",placeholder:"Search",style:{width:"80%",marginRight:"1rem",border:"1px solid rgb(255, 255, 255)",boxSizing:"border-box",borderRadius:"10px",padding:"0.5rem"},name:"searchTerm",value:this.state.searchTerm,onChange:this.onInputChange}),this.state.videoCallStillOn?Object(o.jsx)("button",{className:"EndAllCallButton",onClick:function(t){return e.EndCallForEveryOne(t)},children:"End Conference"}):Object(o.jsx)("button",{className:"EndAllCallButton",onClick:function(t){return e.startCallForEveryOne(t)},children:"Start Conference"})]}),Object(o.jsxs)("div",{style:{display:"flex",justifyContent:"center",padding:"1rem"},children:[!this.state.stramStarted&&Object(o.jsx)(o.Fragment,{children:Object(o.jsx)("button",{onClick:this.startStream,style:{padding:"0.5rem 1.5rem",backgroundColor:"#C60751",border:"0",outline:"0",borderRadius:"0.3rem",color:"#fff",cursor:"pointer"},children:"Start Stream"})}),this.state.stramStarted&&Object(o.jsx)(o.Fragment,{children:Object(o.jsx)("button",{onClick:this.stopStream,style:{padding:"0.5rem 1.5rem",backgroundColor:"#C60751",border:"0",outline:"0",borderRadius:"0.3rem",color:"#fff",cursor:"pointer",marginRight:"2rem"},children:"Stop Stream"})})]})]}),this.renderVideoConferenceUI(),this.state.hasJoinedCall?this.state.hasAccess||this.isAdmin?Object(o.jsx)("div",{id:"controlsParent",children:Object(o.jsxs)("div",{id:"controls",className:"contolBox",children:[Object(o.jsx)("a",{"data-tip":!0,"data-for":"CallEndInfo",children:Object(o.jsx)("img",{className:"control",id:"endCall-button",onClick:function(t){return e.EndCall()},src:tn+"EndCAll.png"})}),Object(o.jsx)(en.a,{id:"CallEndInfo",children:Object(o.jsx)("span",{children:"End Call"})}),Object(o.jsxs)("div",{id:"basicControls",children:[Object(o.jsx)("a",{"data-tip":!0,"data-for":"CameraInfo",children:Object(o.jsx)("img",{className:"control",src:"".concat(tn).concat(this.state.isVideoOn?"cameraButton.png":"cameraButtonClosed.png"),id:"video-button",onClick:function(t){return e.requestVideoAccess()}})}),Object(o.jsx)(en.a,{id:"CameraInfo",getContent:function(){return e.state.isVideoOn?"Turn Camera Off":"Turn Camera On"}}),Object(o.jsx)("a",{"data-tip":!0,"data-for":"MicInfo",children:Object(o.jsx)("img",{className:"control",src:"".concat(tn).concat(this.state.isAudioOn?"Mic.png":"MicClosed.png"),id:"audio-button",onClick:function(t){return e.requestAudioAccess()}})}),Object(o.jsx)(en.a,{id:"MicInfo",getContent:function(){return e.state.isAudioOn?"Turn Mic Off":"Turn Mic On"}}),!g.isMobileOnly&&Object(o.jsxs)(o.Fragment,{children:[Object(o.jsx)("a",{"data-tip":!0,"data-for":"SSInfo",children:Object(o.jsx)("img",{className:"control",src:"".concat(tn).concat(this.state.isScreenSharing?"ScreenShareOn.png":"ScreenShare.png"),id:"share-button",onClick:function(t){return e.requestShareAccess(t)}})}),Object(o.jsx)(en.a,{id:"SSInfo",getContent:function(){return e.state.isScreenSharing?"Turn ScreenShare Off":"Turn ScreenShare On"}})]})]})]})}):Object(o.jsx)("div",{id:"controlsParent",children:Object(o.jsxs)("div",{id:"controls",className:"contolBox",children:[Object(o.jsx)("a",{"data-tip":!0,"data-for":"CallEndInfo",children:Object(o.jsx)("img",{className:"control",id:"endCall-button",onClick:function(t){return e.EndCall()},src:tn+"EndCAll.png"})}),Object(o.jsx)(en.a,{id:"CallEndInfo",children:Object(o.jsx)("span",{children:"End Call"})}),Object(o.jsxs)("button",{className:this.state.hasRequestedAccess?"accessButton-requested":"accessButton",onClick:function(t){e.requestVideoAccess()},children:[this.state.hasRequestedAccess?"Request Sent":"Ask For Access"," "]})]})}):null]}),Object(o.jsx)($t.a,{})]})})}):null})}}]),n}(c.Component),an=n(95),sn=n.n(an),on=n.p+"static/media/free-nature-images.44b03ac3.jpg",cn=function(e){Object(m.a)(n,e);var t=Object(p.a)(n);function n(){var e;Object(u.a)(this,n);for(var a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];return(e=t.call.apply(t,[this].concat(i))).main3dContainer=r.a.createRef(),e.child3dContainer=r.a.createRef(),e.videoRef=r.a.createRef(),e.mouseInlineControlHover=!1,e.state={loading:!0,CurrentUrl:{mainVideo:e.props.initialVideo},UI:{showVideo:!0,showOverlay:!1,showGlobalBackButton:e.props.globalBackButton,showSkipButton:e.props.skipButton,showLid:!0,showTutComponenet:!1,canGoFullscreen:!1,mountDailyco:!1},child3dContainerStyle:{marginLeft:"0"},frameVideoStyle:{animation:"fadeOutEffect 1.25s ease-in-out",MozAnimation:"fadeOutEffect 1.25s ease-in-out",WebkitAnimation:"fadeOutEffect 1.25s ease-in-out"},player:{mute:!1,fullScreen:!1,playing:!0,mouted:!1},customFrame:{bgUrl:"https://storage.googleapis.com/diageo-video-call.appspot.com/Diageo_2021_Virtual_Screens_01.jpg",bgPosition:"50% 50%",frameWidth:e.props.framePlacementStyle.width,frameHeight:e.props.framePlacementStyle.height,frameMargin:e.props.framePlacementStyle.margin},allCustomFrames:{},forceUpdate:!1,nonVideoFrame:void 0!==e.props.videoInFrame&&!e.props.videoInFrame},e.forceUpdateRef=null,e.updateBG=function(t,n){if(t)console.log(t);else if(n){var a=n.currentBG;if(null===a)return;
1if(n.customBG&&n.customBG[a]){var i=e.state.customFrame,s=n.customBG[a];if(!s.bgUrl)return;i.bgUrl=s.bgUrl,s.bgPosition?i.bgPosition=s.bgPosition:i.bgPosition="50% 50%",s.frameWidth?i.frameWidth=s.frameWidth:i.frameWidth=e.props.framePlacementStyle.width,s.frameHeight?i.frameHeight=s.frameHeight:i.frameHeight=e.props.framePlacementStyle.height,s.frameMargin?i.frameMargin=s.frameMargin:i.frameMargin=e.props.framePlacementStyle.margin;var o=n.customBG;e.setState({customFrame:i,allCustomFrames:o})}}},e.checkForTut=function(){if(e.props.showTut){var t="home";if(e.props.sceneName?t=e.props.sceneName:console.error("NoSceneName is provided, for now it is set to home"),"visited"!==sessionStorage.getItem("".concat(t,"-tut")))return e.props.showingTutorialEvent&&e.props.showingTutorialEvent("start"),void e.setState((function(e){return{UI:Object(x.a)(Object(x.a)({},e.UI),{},{showTutComponenet:!0})}}))}},e.closeTut=function(){var t="home";e.props.sceneName&&(t=e.props.sceneName),sessionStorage.setItem("".concat(t,"-tut"),"visited"),e.setState((function(e){return{UI:Object(x.a)(Object(x.a)({},e.UI),{},{showTutComponenet:!1})}}))},e.doForceUpdate=function(){e.setState({forceUpdate:!0})},e.componentWillUnmount=function(){e.props.addAnalytics&&e.props.addAnalytics(!1),e.forceUpdateRef&&clearTimeout(e.forceUpdateRef),document.body.style.overflow=e.previousStyle_Overflow,window.removeEventListener("resize",e.doForceUpdate),document.removeEventListener("fullscreenchange",e.fullscreenEvent),lt()},e.updateChild3DContainerStyle=function(t){e.setState({child3dContainerStyle:Object(x.a)({},t)})},e.backToLobby=function(t){t&&t.preventDefault(),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(x.a)(Object(x.a)({},t.CurrentUrl),{},{mainVideo:H.LOBBYLOOP}),UI:Object(x.a)(Object(x.a)({},t.UI),{},{showVideo:!0,showImage:!1,showBackButton:!1}),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.LobbyHotspots}})),e.videoRef.current.load(),e.videoRef.current.loop=!0,e.videoRef.current.play(),setTimeout((function(){e.toggleHUDElement(!0,!0,!1)}),1250)},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 console.log(t),t?{width:"".concat(t.clientWidth,"px"),height:"".concat(t.clientHeight,"px")}:void 0},e.handleSkip=function(t){t.preventDefault(),e.props.skipVideo?e.props.skipVideo():console.error("No function is passed to skip the video, Please check")},e.handleBackButton=function(t){t.preventDefault(),e.props.changeComponenet?e.props.changeComponenet(t,V[T.Lobby]):console.error("No function is passed to change component, Please check")},e.handleVideoEnd=function(t){e.props.autoSkipOnCompeletion&&e.props.skipVideo&&e.props.skipVideo(),e.setState((function(e){return{UI:Object(x.a)(Object(x.a)({},e.UI),{},{showLid:!0})}}))},e.handleVideoPlay=function(t){e.setState((function(e){return{UI:Object(x.a)(Object(x.a)({},e.UI),{},{showLid:!1})}}))},e.handleVideoPause=function(){e.setState((function(e){return{UI:Object(x.a)(Object(x.a)({},e.UI),{},{showLid:!0})}}))},e.handleVideoPlayerClick=function(t){t&&t.preventDefault(),e.mouseInlineControlHover||e.setState((function(e){return{player:Object(x.a)(Object(x.a)({},e.player),{},{playing:!e.player.playing})}}))},e.handleInfoButton=function(){e.setState((function(e){return{UI:Object(x.a)(Object(x.a)({},e.UI),{},{showTutComponenet:!0})}}))},e.handleInlineMouseHover=function(t){e.mouseInlineControlHover=t},e.handleIframeLoad=function(){e.props.useDailyCo&&e.setState((function(e){return{UI:Object(x.a)(Object(x.a)({},e.UI),{},{mountDailyco:!0})}}))},e.toggleMaximized=function(){var t=e.state.player;t.maximized=!t.maximized,e.setState({player:t})},e.onCallDisconnect=function(){console.log("Call Disconnected!"),e.backToLobby()},e.checkForFullscreen=function(){var t=window.document,n=t.documentElement,a=n.requestFullscreen||n.mozRequestFullScreen||n.webkitRequestFullScreen||n.msRequestFullscreen;t.exitFullscreen||t.mozCancelFullScreen||t.webkitExitFullscreen||t.msExitFullscreen;t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement||(a?(console.log("can Full screem"),e.setState((function(e){return{UI:Object(x.a)(Object(x.a)({},e.UI),{},{canGoFullscreen:!0})}}))):(console.log("not possible"),e.setState((function(e){return{UI:Object(x.a)(Object(x.a)({},e.UI),{},{canGoFullscreen:!1})}}))))},e.handleFullscreenButton=function(t){t&&t.preventDefault();var n=window.document,a=n.documentElement,i=a.requestFullscreen||a.mozRequestFullScreen||a.webkitRequestFullScreen||a.msRequestFullscreen,s=n.exitFullscreen||n.mozCancelFullScreen||n.webkitExitFullscreen||n.msExitFullscreen;n.fullscreenElement||n.mozFullScreenElement||n.webkitFullscreenElement||n.msFullscreenElement?e.state.player.fullScreen?(s&&s.call(n),e.setState((function(e){return{player:Object(x.a)(Object(x.a)({},e.player),{},{fullScreen:!1})}}))):e.setState((function(e){return{player:Object(x.a)(Object(x.a)({},e.player),{},{fullScreen:!0})}})):i&&a?(console.log("can Full screem--handle"),console.log(i.call),i.call?i.call(a).then((function(){e.setState((function(e){return{player:Object(x.a)(Object(x.a)({},e.player),{},{fullScreen:!0})}}))})):e.setState((function(e){return{player:Object(x.a)(Object(x.a)({},e.player),{},{fullScreen:!0})}}))):(console.log("not possible"),e.setState((function(e){return{player:Object(x.a)(Object(x.a)({},e.player),{},{fullScreen:!0})}})))},e.fullscreenEvent=function(){document.fullscreenElement||e.setState((function(e){return{player:Object(x.a)(Object(x.a)({},e.player),{},{fullScreen:!1})}}))},e}
1return Object(h.a)(n,[{key:"componentDidMount",value:function(){var e;window.s=this,g.isMobileOnly&&this.setState({loading:!1}),this.checkForFullscreen(),this.props.addAnalytics&&this.props.addAnalytics(!0),this.previousStyle_Overflow=document.body.style.overflow,document.body.style.overflow="hidden",this.setState((function(e){return{UI:Object(x.a)(Object(x.a)({},e.UI),{},{showOverlay:!0})}})),window.addEventListener("resize",this.doForceUpdate),this.props.exceuteOnMount&&this.props.exceuteOnMount(),this.checkForTut(),document.addEventListener("fullscreenchange",this.fullscreenEvent),e=this.updateBG,window.bgListener=Be.collection(C).doc(L).onSnapshot((function(t){console.log("*********"),t.exists||e({code:"NoDataFound",message:"no such document exists."}),console.log(t.data()),e(null,t.data())}),(function(t){e(t)})),this.props.useDailyCo&&this.handleIframeLoad()}},{key:"makeid",value:function(e){for(var t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,i=0;i<e;i++)t+=n.charAt(Math.floor(Math.random()*a));return t}},{key:"render",value:function(){var e=this,t=this.props.DailyCoData;return Object(o.jsxs)(o.Fragment,{children:[this.state.loading&&Object(o.jsx)("section",{className:"",style:{height:"100vh",position:"absolute",zIndex:100,width:"100%",backgroundColor:"#000"},children:Object(o.jsx)("div",{className:"loaderContainer",style:{height:"100vh",position:"absolute"},children:Object(o.jsx)("img",{src:"/assets/images/spinnerA.svg",alt:"loader"})})}),this.state.UI.mountDailyco&&Object(o.jsx)(o.Fragment,{children:Object(o.jsx)(nn,{rmtpURL:this.props.rmtpURL,goToLobby:t.goToLobby,name:t.name,room:t.room,isAdmin:t.isAdmin,autoInitalize:t.autoInitalize,showSidePanel:t.showSidePanel,hideSidePanel:t.hideSidePanel})}),this.state.UI.showGlobalBackButton&&Object(o.jsx)("img",{src:Oe.BACKBUTTON,alt:"backButtonToLobby",className:"backButton",onClick:function(t){return e.handleBackButton(t)}}),Object(o.jsx)("div",{className:"main3DContainer",ref:this.main3dContainer,children:Object(o.jsxs)("div",{id:"child3DContainer",ref:this.child3dContainer,style:this.state.child3dContainerStyle,children:[!g.isMobileOnly&&Object(o.jsxs)("video",{id:"FrameVideo",onCanPlay:function(){e.setState({loading:!1})},width:"320",height:"240",loop:!0,autoPlay:!0,preload:"auto",ref:this.videoRef,style:this.state.frameVideoStyle,playsInline:!0,muted:!0,children:[Object(o.jsx)("source",{src:this.state.CurrentUrl.mainVideo,type:"video/mp4"}),"Your browser does not support HTML5 video."]}),this.state.UI.showOverlay&&Object(o.jsx)(o.Fragment,{children:Object(o.jsx)("div",{id:"overlayContent",style:g.isMobileOnly?g.isIOS?{width:"85%",height:"100%"}:{width:"100%",height:"100%"}:{height:"100%",width:"calc(233vh)"},className:"".concat(this.state.player.fullScreen?"unsetPos":""),children:Object(o.jsx)("div",{id:"audiVideoFrame",style:this.state.player.fullScreen?{width:"100%",height:"100%",position:"fixed",left:"0",zIndex:"44"}:g.isMobileOnly?{margin:"0",width:"100%",height:"".concat(this.props.subMenus?"35vh":g.isIOS?"100%":"calc(100% - 5rem)")}:{width:this.state.customFrame.frameWidth,height:this.state.customFrame.frameHeight,margin:this.state.customFrame.frameMargin,position:"relative"},children:this.state.nonVideoFrame?Object(o.jsxs)(o.Fragment,{children:[this.props.showImage?Object(o.jsx)(o.Fragment,{children:Object(o.jsx)("img",{src:this.props.imageLink?this.props.imageLink:on,id:"audiVideoPlayer",alt:"",width:"100%",height:"100%",style:{position:"absolute"}})}):"",Object(o.jsx)("iframe",{id:"video-iframe",allow:"camera; microphone; autoplay",width:"100%",height:"100%",frameBorder:"0",src:this.props.link,title:"video-iframe",style:{background:"black"}}),Object(o.jsx)("img",{className:"cursor-pointer videoControlsIcon",src:"/3dAssets/UI/".concat(this.state.player.fullScreen?"closeFullScreen_white.png":"FullScreen_white.png"),alt:"fullScreenButton",onClick:function(t){return e.handleFullscreenButton(t)},style:null==this.props.hiddeMute||this.props.hiddeMute?{}:{marginTop:"0",position:"absolute",bottom:"0.5rem",left:"0.5rem"}})]}):Object(o.jsxs)(o.Fragment,{children:[this.state.UI.canGoFullscreen&&Object(o.jsxs)(o.Fragment,{children:[Object(o.jsxs)("div",{className:"videoPlayerCover ".concat(this.state.UI.showLid?"blackTransparentColor":""),onClick:function(t){return e.handleVideoPlayerClick(t)},style:this.state.player.fullScreen?{width:"100%",height:"100%"}:g.isMobileOnly?{margin:"0",width:"100%",height:"".concat(this.props.subMenus?"35vh":"100%")}:{width:"100%",height:"100%",margin:0},children:[Object(o.jsx)("div",{className:"lid upperLid ".concat(this.state.UI.showLid?"":"animateLid")}),Object(o.jsx)("div",{className:"lid lowerLid ".concat(this.state.UI.showLid?"":"animateLid")}),Object(o.jsx)("div",{className:"fakePlaybutton-container",children:Object(o.jsx)("div",{className:"fakePlaybutton ".concat(this.state.UI.showLid?"":"animateLid-0")})})]}),Object(o.jsx)("div",{className:"videoPlayerCover ".concat(this.state.UI.showLid?"blackTransparentColor":""),style:this.state.player.fullScreen?{height:"100%"}:g.isMobileOnly?{margin:"0",width:"unset",height:"".concat(this.props.subMenus?"35vh":"100%")}:Object(x.a)(Object(x.a)({},this.props.framePlacementStyle),{},{margin:0,width:"unset"}),children:Object(o.jsx)("div",{className:"inlineVideoControlsContainer",children:Object(o.jsxs)("div",{className:"videoControlsContainer-fullscreen ".concat(this.state.player.fullScreen?"videoControlsContainer-b-1":""," ").concat(this.props.fromLab?"labController":""),onMouseEnter:function(t){return e.handleInlineMouseHover(!0)},onMouseLeave:function(t){return e.handleInlineMouseHover(!1)},children:[void 0===this.props.hiddeMute||!this.props.hiddeMute&&Object(o.jsx)("img",{className:"mg-b-2rem cursor-pointer videoControlsIcon",src:"/3dAssets/UI/".concat(this.state.player.mute?"mute_white.png":"unmute_white.png"),alt:"muteButton",onClick:function(t){return e.setState((function(e){return{player:Object(x.a)(Object(x.a)({},e.player),{},{mute:!e.player.mute})}}))}}),Object(o.jsx)("img",{className:"cursor-pointer videoControlsIcon",src:"/3dAssets/UI/".concat(this.state.player.fullScreen?"closeFullScreen_white.png":"FullScreen_white.png"),alt:"fullScreenButton",onClick:function(t){return e.handleFullscreenButton(t)},style:void 0===this.props.hiddeMute?{}:this.props.hiddeMute?{marginTop:"0"}:{}})]})})})]}),this.props.showImage?Object(o.jsx)(o.Fragment,{children:Object(o.jsx)("img",{src:this.props.imageLink?this.props.imageLink:on,id:"audiVideoPlayer",alt:"",width:"100%",height:"100%",style:{position:"absolute"}})}):"",Object(o.jsx)(vt.a,{style:{zIndex:-1},id:"audiVideoPlayer",url:this.props.link,playing:this.state.player.playing,controls:!1,loop:!0,playsinline:!0,width:"100%",height:"100%",volume:this.state.player.mute||this.props.showLiveIframe?0:1,onEnded:this.handleVideoEnd,onPlay:this.handleVideoPlay,onPause:this.handleVideoPause})]})})})}),this.state.UI.showSkipButton&&Object(o.jsx)("div",{className:"welcome-footer",children:Object(o.jsx)("button",{className:"btn btn-lg btn-dark",onClick:function(t){return e.handleSkip(t)},children:Object(o.jsxs)("span",{className:"d-flex justify-content-between",children:[this.props.skipButtonText?this.props.skipButtonText:"Skip this Show",Object(o.jsxs)("span",{className:"mg-l20",children:[Object(o.jsx)("i",{className:"icon-angle-right"}),Object(o.jsx)("i",{className:"icon-angle-right"})]})]})})}),this.state.UI.showTutComponenet&&this.props.tutComponent&&Object(o.jsx)(this.props.tutComponent,{ratio:this.ratio,skip:this.closeTut})]})}),Object(o.jsx)("div",{style:{position:"absolute",left:"0",top:"0",zIndex:"-100",opacity:"0"},children:Object.keys(this.state.allCustomFrames).map((function(t){return Object(o.jsx)("img",{src:e.state.allCustomFrames[t].bgUrl,style:{width:"1px",height:"1px",zIndex:"-100",opacity:"0"}},t)}))})]})}}]),n}(c.Component);cn.contextType=ht;n(115),n.p,n.p;var rn=n.p+"static/media/arrow.c8c1fb0a.svg",ln={introCard:0},dn={background:"url(/assets/images/bg-add.png)",backgroundPosition:"center",backgroundSize:"contain"},un=[{link:"/3dAssets/UI/Tut/arrows.jpg",header:"Arrows",description:" Tap the left and right arrows to view more."},{link:"/3dAssets/UI/Tut/hotspot.jpg",header:"Hotspots",description:"Tap on any hotspot to enter that section."},{link:"/3dAssets/UI/Tut/Menu.jpg",header:"Menu",description:"Use the menu icons for quick navigation"}],hn=function(e){Object(m.a)(n,e);var t=Object(p.a)(n);function n(){var e;Object(u.a)(this,n);for(var a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];return(e=t.call.apply(t,[this].concat(i))).state={currentState:ln.introCard},e.handleContinue=function(t){t&&t.preventDefault(),e.props.skip()},e.showNextCard=function(t){t&&t.preventDefault(),e.setState((function(e){return{currentState:e.currentState
1+1}}))},e}return Object(h.a)(n,[{key:"render",value:function(){var e=this;return Object(o.jsx)(o.Fragment,{children:Object(o.jsxs)("div",{className:"lobbyTutContainer",children:[this.state.currentState===ln.introCard&&Object(o.jsx)(o.Fragment,{children:Object(o.jsxs)("div",{className:"tut-box",children:[Object(o.jsx)("div",{className:"head",children:Object(o.jsx)("img",{src:"/assets/images/login/login-logo.png",alt:""})}),Object(o.jsxs)("div",{className:"content",children:[Object(o.jsx)("h2",{children:"Title Page"}),Object(o.jsx)("br",{}),Object(o.jsx)("p",{children:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Felis iaculis sit non id tellus. Cum at blandit semper viverra elementum nibh scelerisque diam risus. Laoreet felis eget vitae consectetur. Rhoncus orci, proin dignissim amet. Lorem ipsum dolor sit amet consectetur adipisicing elit. Debitis voluptatibus labore similique non obcaecati. Qui error reiciendis deleniti? Necessitatibus laboriosam quam a consectetur animi officia, ab vero facilis dolor est sunt"})]}),Object(o.jsx)("div",{className:"box-button",children:Object(o.jsx)("button",{onClick:function(t){return e.handleContinue(t)},children:"Explore"})})]})}),this.state.currentState===ln.tutCard&&Object(o.jsxs)("div",{className:"tutCardContainer tutCardContainer-sm",children:[Object(o.jsx)("div",{className:"tutCardContainer-header",children:Object(o.jsx)("div",{className:"whiteText",children:"Tutorial"})}),Object(o.jsx)("div",{className:"tutCardContainer-body",children:un.map((function(e){return Object(o.jsxs)("div",{className:"tutCardContainer-bodyItem",children:[Object(o.jsx)("img",{alt:e.header,src:e.link}),Object(o.jsxs)("div",{className:"bodyItem-text",children:[Object(o.jsx)("h2",{children:e.header}),Object(o.jsx)("div",{children:e.description})]})]},e.header)}))}),Object(o.jsx)("div",{className:"text-center",children:Object(o.jsx)("button",{className:"tutCardButton btn  btn-yellow mg-t30",onClick:function(t){return e.handleContinue(t)},children:"Continue"})})]}),this.state.currentState===ln.leaderboard&&Object(o.jsxs)("div",{className:"tutCardContainer width-cal",children:[Object(o.jsxs)("div",{className:"tutCardContainer-header ptb-extra justify-content-between bottom-border",style:dn,children:[Object(o.jsx)("img",{src:Oe.LOGOR1_old,alt:"logo1",className:"invi"}),Object(o.jsx)("img",{src:Oe.LOGOKOA,alt:"logo2",className:"invi"})]}),Object(o.jsx)("div",{className:"tutCardContainer-body tutCardContainer-body-extraPd",children:Object(o.jsxs)("div",{className:"tutCardContainer-body-textContainer",children:[Object(o.jsx)("strong",{children:Object(o.jsx)("h3",{children:"Overall Event Leaderboard"})}),Object(o.jsx)("br",{}),"Please visit all the zones of the the virtual event to gain points & be amongst the top of the leaderboard.",Object(o.jsx)("br",{}),"Please visit your profile section to know more.",Object(o.jsx)("br",{}),Object(o.jsx)("button",{className:"tutCardButton btn  btn-yellow mg-t30",onClick:function(t){return e.handleContinue(t)},children:"Continue"})]})})]})]})})}}]),n}(c.Component),mn=n(97),pn=n.n(mn),bn=(n(460),n.p+"static/media/cut.514a7d05.svg"),fn=n.p+"static/media/bell.a921a9f2.wav",jn=function(e){Object(m.a)(n,e);var t=Object(p.a)(n);function n(){var e;Object(u.a)(this,n);for(var a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];return(e=t.call.apply(t,[this].concat(i))).state={show:!1,message:""},e.bellRef=r.a.createRef(),e.notificationTimerRef=null,e.showNotification=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:15;"string"==typeof n&&(n=parseInt(n)),e.notificationTimerRef&&clearTimeout(e.notificationTimerRef),e.setState({show:!0,message:t},(function(){e.playBellSound()})),e.notificationTimerRef=setTimeout((function(){e.setState({show:!1})}),1e3*n)},e.closeNotification=function(t){t&&t.preventDefault(),e.notificationTimerRef&&clearTimeout(e.notificationTimerRef),e.setState({show:!1})},e.playBellSound=function(){e.bellRef.current.play()},e}return Object(h.a)(n,[{key:"componentDidMount",value:function(){var e=this;window.NotificationListener=this.props.firestore.collection("backStage").doc("notifications").onSnapshot((function(t){if(t.exists){var n=t.data();n.show&&e.showNotification(n.message,n.time)}}))}},{key:"componentWillUnmount",value:function(){window.NotificationListener&&window.NotificationListener()}},{key:"render",value:function(){return Object(o.jsxs)(o.Fragment,{children:[Object(o.jsx)("audio",{src:fn,ref:this.bellRef,autoPlay:!1}
1),Object(o.jsxs)("div",{className:"notificationContainer ".concat(this.state.show?"notification-show":"notification-hidden"),children:[Object(o.jsx)("div",{className:"closeButtonContainer",children:Object(o.jsx)("img",{src:bn,alt:"",className:"close-cut",onClick:this.closeNotification})}),this.state.message]})]})}}]),n}(c.Component),vn=[{link:"/3dAssets/UI/AudiTut/FullScreen.jpg",header:"Full Screen",description:"Tap on the icon to view the content on full screen."},{link:"/3dAssets/UI/AudiTut/ExitFullScreen.jpg",header:"Exit Full Screen",description:"Tap on the icon to exit full screen."},{link:"/3dAssets/UI/AudiTut/PlayButton.jpg",header:"Play Button",description:"Tap on the play icon to play the video."},{link:"/3dAssets/UI/AudiTut/Polls.jpg",header:"Polls",description:"Tap on the icon to participate in public poll."},{link:"/3dAssets/UI/AudiTut/Q&A.jpg",header:"Q&A",description:"Tap on the icon to submit your question and get answer to it."}],gn=function(e){Object(m.a)(n,e);var t=Object(p.a)(n);function n(){var e;Object(u.a)(this,n);for(var a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];return(e=t.call.apply(t,[this].concat(i))).handleContinue=function(t){t&&t.preventDefault(),e.props.skip()},e}return Object(h.a)(n,[{key:"render",value:function(){var e=this;return Object(o.jsx)(o.Fragment,{children:Object(o.jsx)("div",{className:"lobbyTutContainer",children:Object(o.jsxs)("div",{className:"tutCardContainer tutCardContainer-sm",children:[Object(o.jsx)("div",{className:"tutCardContainer-header",children:Object(o.jsx)("div",{className:"whiteText",children:"Tutorial"})}),Object(o.jsx)("div",{className:"tutCardContainer-body",children:vn.map((function(e){return Object(o.jsxs)("div",{className:"tutCardContainer-bodyItem",children:[Object(o.jsx)("img",{alt:e.header,src:e.link}),Object(o.jsxs)("div",{className:"bodyItem-text",children:[Object(o.jsx)("h2",{children:e.header}),Object(o.jsx)("div",{children:e.description})]})]},e.header)}))}),Object(o.jsx)("div",{className:"text-center",children:Object(o.jsx)("button",{className:"tutCardButton btn  btn-yellow mg-t30",onClick:function(t){return e.handleContinue(t)},children:"Continue"})})]})})})}}]),n}(c.Component),On=[{link:"/3dAssets/UI/NetworkingTut/Chat.png",header:"Chat",description:"Tap on the main icon to chat amongst the attendees."}],yn=function(e){Object(m.a)(n,e);var t=Object(p.a)(n);function n(){var e;Object(u.a)(this,n);for(var a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];return(e=t.call.apply(t,[this].concat(i))).handleContinue=function(t){t&&t.preventDefault(),e.props.skip()},e}return Object(h.a)(n,[{key:"render",value:function(){var e=this;return Object(o.jsx)(o.Fragment,{children:Object(o.jsx)("div",{className:"lobbyTutContainer",children:Object(o.jsxs)("div",{className:"tutCardContainer tutCardContainer-sm",children:[Object(o.jsx)("div",{className:"tutCardContainer-header",children:Object(o.jsx)("div",{className:"whiteText",children:"Tutorial"})}),Object(o.jsx)("div",{className:"tutCardContainer-body",children:On.map((function(e){return Object(o.jsxs)("div",{className:"tutCardContainer-bodyItem",children:[Object(o.jsx)("img",{alt:e.header,src:e.link}),Object(o.jsxs)("div",{className:"bodyItem-text",children:[Object(o.jsx)("h2",{children:e.header}),Object(o.jsx)("div",{children:e.description})]})]},e.header)}))}),Object(o.jsx)("div",{className:"text-center",children:Object(o.jsx)("button",{className:"tutCardButton btn  btn-yellow mg-t30",onClick:function(t){return e.handleContinue(t)},children:"Continue"})})]})})})}}]),n}(c.Component),xn=n(85),wn=(n(461),n(300)),kn=n.n(wn),Sn=function(e){Object(m.a)(n,e);var t=Object(p.a)(n);function n(e){var a;return Object(u.a)(this,n),(a=t.call(this,e)).state={error:null,isLoading:!0,messages:[],showDummyText:!1},a.handleError=function(e){console.error(e),a.setState({error:"Could not load chat."})},a.setupChatClient=function(e){a.client=e,a.client.getChannelByUniqueName(a.user.channel).then((function(e){return e})).catch((function(e){if(50300===e.body.code)return a.client.createChannel({uniqueName:a.user.channel,friendlyName:a.user.name,isPrivate:!0,attributes:{id:a.user.id,name:a.user.name}});a.handleError(e)})).then((function(e){return a.channel=e,a.channel.join().catch((function(){}))})).then((function(){a.setState({isLoading:!1}),a.channel.invite("HelpDesk-r1rcm").catch((function(e){return console.log(e)})),a.channel.getMessages().then(a.messagesLoaded),a.channel.on("messageAdded",a.messageAdded)})).catch(a.handleError)},a.twilioMessageToMessage=function(e){return console.log(e),{id:e.sid,text:e.body,user:e.attributes.user||{},timestamp:e.timestamp}},a.messagesLoaded=function(e){a.setState({messages:e.items.map(a.twilioMessageToMessage)}),a.scroll()},a.messageAdded=function(e){a.setState((function(t){return{messages:[].concat(Object(xn.a)(t.messages),[a.twilioMessageToMessage(e)])}})),a.scroll()}
1,a.sendMessage=function(e){a.message.current.value&&(a.channel.sendMessage(a.message.current.value,{user:a.user}),a.message.current.value="")},a.scroll=function(){if(a.messageDiv.current){var e=a.messageDiv.current.scrollHeight-a.messageDiv.current.clientHeight;a.messageDiv.current.scrollTop=e>0?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=r.a.createRef(),a.messageDiv=r.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 kn.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(o.jsxs)("p",{className:"popover-modal",children:[" ",this.state.error]}):Object(o.jsx)(o.Fragment,{children:Object(o.jsx)("div",{className:"publicChatBox ".concat(this.props.visibility?" ":"d-none"),children:Object(o.jsx)("section",{className:"chat-container",children:Object(o.jsxs)("div",{className:"chat-section",children:[Object(o.jsxs)("div",{className:"chat-section__header bottom-border",children:[Object(o.jsx)("div",{className:"chat-section__header__title light-color",children:"Helpdesk"}),!this.state.isLoading&&Object(o.jsx)("div",{className:"chat-section__header__close",onClick:function(t){return e.closeChat(t)}})]}),Object(o.jsxs)("div",{className:"chat-section__body",ref:this.messageDiv,children:[this.state.isLoading&&Object(o.jsx)(o.Fragment,{children:Object(o.jsx)("div",{className:"chat-loader",children:Object(o.jsx)("img",{src:"/assets/images/Loader.gif",alt:"Loader",width:"50"})})}),!this.state.isLoading&&this.state.messages.map((function(t){return Object(o.jsxs)(o.Fragment,{children:[e.user.id==t.user.id&&Object(o.jsxs)("div",{className:"chat-section__message chat-section__message--sent",children:[Object(o.jsxs)("span",{className:"chat-section__text",children:[" ",t.text," "]},"".concat(t.id,"-span")),Object(o.jsx)("span",{className:"chat-section__profile",children:Object(o.jsx)("img",{src:"assets/images/Profile-picture.png",alt:""})},"".concat(t.id,"-profile"))]},t.id),e.user.id!=t.user.id&&Object(o.jsxs)("div",{className:"chat-section__message chat-section__message--received",children:[Object(o.jsx)("span",{className:"chat-section__profile",children:Object(o.jsx)("img",{src:"assets/images/chatbot-s.png",alt:""})}),Object(o.jsxs)("span",{className:"chat-section__text",children:[" ",t.text," "]})]},t.id)]})}))]}),!this.state.isLoading&&Object(o.jsx)("div",{className:"chat-section__footer",children:Object(o.jsxs)("div",{className:"chat-section__form",children:[Object(o.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(o.jsx)("button",{onClick:function(t){return e.sendMessage(t)},className:"chat-section__btn",children:Object(o.jsx)("i",{className:"icon-send"})})]})})]})})})})}}]),n}(c.Component),Cn=function(e){Object(m.a)(n,e);var t=Object(p.a)(n);function n(){return Object(u.a)(this,n),t.apply(this,arguments)}return Object(h.a)(n,[{key:"componentDidMount",value:function(){this.props.addAnalytics&&this.props.addAnalytics(!0)}},{key:"componentWillUnmount",value:function(){this.props.addAnalytics&&this.props.addAnalytics(!1)}},{key:"render",value:function(){var e=this,t=this.props.data;return Object(o.jsx)(o.Fragment,{children:Object(o.jsx)("div",{className:"ListContainerParent",children:Object(o.jsxs)("div",{className:"ListContainer",children:[Object(o.jsxs)("div",{className:"ListContainerHeader bottom-border",children:[Object(o.jsx)("div",{children:"Team Building"}),Object(o.jsx)("div",{className:"listCloseButton",onClick:function(t){return e.props.hideOverlayMenu(t)}})]}),Object(o.jsx)("div",{className:"ListContainerBody whiteBG",children:Object.keys(t).map((function(n){return Object(o.jsxs)("div",{className:"listItem",children:[Object(o.jsxs)("div",{className:"listemItem-body blackText",children:[Object(o.jsx)("h3",{children:t[n].name}),Object(o.jsx)("div",{children:t[n].description})]}),Object(o.jsx)("div",{className:"listemItem-button",onClick:function(a){return e.props.handleTeamOptionSelection(a,t[n])},children:t[n].button?t[n].button:"Connect"})]},n)}))})]})})})}}]),n}(c.Component),In=function(e){Object(m.a)(n,e);var t=Object(p.a)(n);function n(e){var a;return Object(u.a)(this,n),(a=t.call(this,e)).handleItemSelection=function(e,t,n){e.preventDefault(),a.currentVideoIndex=n,a.setState({currentItemId:t})},a.onVideoFinish=function(){a.currentVideoIndex+=1,a.currentVideoIndex%=a.listLength,a.setState({currentItemId:a.ids[a.currentVideoIndex]})},a.close=function(e){e.preventDefault(),a.props.close()},a.ids=Object.keys(a.props.data),a.currentVideoIndex=0,a.listLength=a.ids.length,a.state={data:a.props.data,currentItemId:a.ids[0]},a}return Object(h.a)(n,[{key:"render",value:function(){var e=this;return Object(o.jsx)(o.Fragment,{children:Object(o.jsx)("div",{className:"popover-modal popover-modal--trasparent",style:{zIndex:"99"},children:Object(o.jsx)("div",{className:"popover-modal__inner",children:Object(o.jsx)("div",{className:"popover-modal__body popover-modal__body--xl",children:Object(o.jsxs)("div",{className:"video-player",children:[Object(o.jsx)("div",{className:"video-player__header",children:Object(o.jsx)("a",{href:"#",className:"video-player__close",onClick:function(t){return e.close(t)},children:Object(o.jsx)("i",{className:"icon-close"})})}),Object(o.jsxs)("div",{className:"video-player__body",children:[Object(o.jsxs)("div",{className:"video-player__left",children:[Object(o.jsx)("iframe",{title:"pdf",className:"video-player__video mg-b25",style:{height:"25rem"},src:"".concat(this.state.data[this.state.currentItemId].link,"?#zoom=20&scrollbar=1&toolbar=1&navpanes=1")}),Object(o.jsx)("h2",{className:"video-player__title",children:this.state.data[this.state.currentItemId].name}),Object(o.jsx)("p",{className:"video-player__desc",children:this.state.data[this.state.currentItemId].description})]}),Object(o.jsxs)("div",{className:"video-player__right",children:[Object(o.jsx)("h2",{className:"video-player__title",children:"PDF Catalog"}),Object(o.jsx)("div",{className:"video-player__list",children:this.ids.map((function(t,n){return Object(o.jsxs)("div",{className:"video-player__item cursor-pointer",style:t===e.state.currentItemId?{background:"#fff112",pointerEvents:"none"}:null,onClick:function(a){return e.handleItemSelection(a,t,n)},children:[Object(o.jsx)("div",{className:"video-player__item-pic-contain",style:{backgroundImage:"url(".concat(e.state.data[t].thumbnail?e.state.data[t].thumbnail:Oe.PDFLOGO,")")}}),Object(o.jsxs)("div",{className:"video-player__item-desc",children:[Object(o.jsx)("h4",{className:"video-player__item-title",children:e.state.data[t].name.length>90?e.state.data[t].name.substr(0,90)+"...":e.state.data[t].name}),Object(o.jsx)("p",{className:"video-player__item-text",children:e.state.data[t].description.length>40?e.state.data[t].description.substr(0,40)+"...":e.state.data[t].description})]})]})}))})]})]})]})})})})})}}]),n}(c.Component),Mn=function(e){Object(m.a)(n,e);var t=Object(p.a)(n);function n(e){var a;
1return Object(u.a)(this,n),(a=t.call(this,e)).disconnectAndShowPopup=function(){a.forceExit=!0,a.onCallDisconnect(),a.props.showBusyPopup()},a.checkSlotAvailable=function(){return!0},a.checkIfSlotAlreadyTaken=function(){return!0},a.checUserPresence=function(e){if(console.log("check User Presence",a.state.isSlotAvailable),console.log(a.state),!a.state.isSlotAvailable&&a.state.clientIdentity.length>0){var t=Object(pt.a)(a),n=!1;console.log("searching for "+t.state.clientIdentity),e.forEach((function(e){e.identity==t.state.clientIdentity&&(n=!0,console.log(e.identity))})),n?console.log("user is still here"):(console.log("user might me disconnected,"),console.log("ResetSlot"),t.state.isSlotAvailable?console.log("No need to show resetButton"):(t.setState({showRest:!0}),t.props.slotReset()))}},a.participantLeaveRoom=function(e){if(a.state.participants.length>0){var t=a.state.participants;t=t.filter((function(t){return t.sid!=e.sid})),a.props.isOfficial||0!=t.length||a.props.showPopup(),a.setState({participants:t})}if(a.props.isOfficial&&(console.log("Participant '"+e.identity+"' left the room"),console.log("Client id => '"+a.state.clientIdentity+" "),e.identity===a.state.clientIdentity)){var n=Object(pt.a)(a);setTimeout((function(){n.state.isSlotAvailable?console.log("No need to show resetButton"):(console.log("we should wait for 20 moreSeconds "),n.setState({showRest:!0}),n.props.slotReset())}),8e3)}document.getElementById(e.sid).remove()},a.participantDisconnected=function(e){if(a.state.participants.length>0){var t=a.state.participants;t=t.filter((function(t){return t.sid!=e.sid})),a.setState({participants:t})}console.log("Participant '"+e.identity+"' left the room"),console.log("Client id => '"+a.state.clientIdentity+" "),document.getElementById(e.sid).remove()},a.state={identity:null,roomId:e.room.roomId,roomName:e.room.roomName,roomIdErr:!1,previewTracks:null,localMediaAvailable:!1,hasJoinedRoom:!1,activeRoom:null,audioEnabled:!0,videoEnabled:!0,screenShared:!1,remoteScreenShared:!1,participants:[],remoteScreens:[],screenTrack:null,remoteScreenTrack:null,showNotification:!1,isSlotAvailable:!1,currentParticipant:null,clientIdentity:"",showRest:!1},a.localMedia=null,a.remoteMedia=null,a.timerRef=null,a.forceExit=!1,a.setLocalMediaRef=function(e){a.localMedia=e},a.setRemoteMediaRef=function(e){a.remoteMedia=e},a.joinRoom=a.joinRoom.bind(Object(pt.a)(a)),a.leaveRoom=a.leaveRoom.bind(Object(pt.a)(a)),a.roomJoined=a.roomJoined.bind(Object(pt.a)(a)),a.attachLocalParticipantTracks=a.attachLocalParticipantTracks.bind(Object(pt.a)(a)),a.onCameraButtonClick=a.onCameraButtonClick.bind(Object(pt.a)(a)),a.onAudioButtonClick=a.onAudioButtonClick.bind(Object(pt.a)(a)),a.shareScreen=a.shareScreen.bind(Object(pt.a)(a)),a.handleTrackEnabled=a.handleTrackEnabled.bind(Object(pt.a)(a)),a.participantConnected=a.participantConnected.bind(Object(pt.a)(a)),a.participantDisconnected=a.participantDisconnected.bind(Object(pt.a)(a)),a.trackSubscribed=a.trackSubscribed.bind(Object(pt.a)(a)),a.trackUnsubscribed=a.trackUnsubscribed.bind(Object(pt.a)(a)),a.handleParticipantTrackEnabled=a.handleParticipantTrackEnabled.bind(Object(pt.a)(a)),a.handleParticipantTrackDisabled=a.handleParticipantTrackDisabled.bind(Object(pt.a)(a)),a.stopLocalScreenShare=a.stopLocalScreenShare.bind(Object(pt.a)(a)),a.startScreenShare=a.startScreenShare.bind(Object(pt.a)(a)),a._startScreenCapture=a._startScreenCapture.bind(Object(pt.a)(a)),a.handleLocalSharedScreen=a.handleLocalSharedScreen.bind(Object(pt.a)(a)),a.handleRemoteSharedScreen=a.handleRemoteSharedScreen.bind(Object(pt.a)(a)),a.stopRemoteSharedScreen=a.stopRemoteSharedScreen.bind(Object(pt.a)(a)),a.openFullscreen=a.openFullscreen.bind(Object(pt.a)(a)),a.onCallDisconnect=a.onCallDisconnect.bind(Object(pt.a)(a)),a.showNotification=a.showNotification.bind(Object(pt.a)(a)),a}return Object(h.a)(n,[{key:"componentDidMount",value:function(){var e,t,n,a=this;this.props.isOfficial&&(e=this.props.room.roomId,t=this.props.stallId,n=function(e,t){if(e)console.log(e);else{var n=t.available,i=t.userId.split("@")[0];console.log(i),n?a.setState({isSlotAvailable:n,clientIdentity:i,showRest:!1}):a.setState({isSlotAvailable:n,clientIdentity:i})}},Be.collection(N).doc(t).onSnapshot((function(t){if(t.exists){console.log("Current data: ",t.data());var a=t.data().slots,i=null;a.forEach((function(t){t.id===e&&(i=t)})),console.log(i),n&&n(null,i)}}),(function(e){n&&n(e)}))),Kt.a.post("https://video-server-dot-vc-circle-cd367.el.r.appspot.com/api/token",{name:this.props.userName}).then((function(e){if(a.checkSlotAvailable()){var t=e.data,n=t.identity,i=t.token;return a.setState({identity:n,token:i}),void a.joinRoom()}}))}},{key:"componentWillUnmount",value:function(){}},{key:"onCallDisconnect",value:function(){this.props.onCallDisconnect&&this.props.onCallDisconnect(this.forceExit)}},{key:"showNotification",value:function(e){var t=this;this.setState({notification:e}),this.setState({showNotification:!0}
1),setTimeout((function(){t.setState({showNotification:!1}),t.setState({notification:null})}),e.timeout)}},{key:"joinRoom",value:function(){if(this.checkSlotAvailable())if(this.state.roomId.trim()){console.log("Joining room '"+this.state.roomId+"'...");var e={name:this.state.roomId};this.state.previewTracks&&(e.tracks=this.state.previewTracks);var t=this;sn.a.connect(this.state.token,e).then(this.roomJoined,(function(e){t.disconnectAndShowPopup()}))}else this.setState({roomIdErr:!0})}},{key:"roomJoined",value:function(e){var t=this;console.log("Joined as '"+this.state.identity+"'"),this.setState({activeRoom:e,localMediaAvailable:!0,hasJoinedRoom:!0});var n=this.localMedia;n.querySelector("video")||this.attachLocalParticipantTracks(e.localParticipant,n);if(e.participants.forEach((function(e){t.participantConnected(e)})),e.on("participantConnected",(function(e){return t.participantConnected(e)})),e.on("participantDisconnected",(function(e){return t.participantLeaveRoom(e)})),e.on("disconnected",(function(){t.state.previewTracks&&t.state.previewTracks.forEach((function(e){e.stop()})),e.localParticipant.tracks.forEach((function(e){e.track.stop(),e.track.detach().forEach((function(e){return e.remove()}))}
1)),e.participants.forEach((function(e){return t.participantDisconnected(e)})),t.state.activeRoom=null,t.setState({hasJoinedRoom:!1,localMediaAvailable:!1}),t.onCallDisconnect()})),this.checkIfSlotAlreadyTaken()){var a=this;setTimeout((function(){a.checkIfSlotAlreadyTaken()}),1500),this.props.isOfficial?this.checUserPresence(e.participants):0===e.participants.size&&this.props.showPopup()}}},{key:"participantConnected",value:function(e){var t=this;console.log(e);var n=this.state.participants;n.push(e),this.setState({participants:n});var a=document.createElement("div");a.id=e.sid,a.classList.add("callingBox__video");var i=document.createElement("div");i.classList.add("callingBox__video-container");var s=document.createElement("span");s.id="caller-name",s.classList.add("callingBox__nameTag"),s.innerText=e.identity,i.appendChild(s);var o=document.createElement("button");o.classList.add("icon-btn");var c=document.createElement("i");c.classList.add("icon-speaker"),o.appendChild(c),i.appendChild(o);var r=document.createElement("div");r.id="video",r.classList.add("callingBox__video-wrapper"),r.classList.add("has-video"),i.appendChild(r),a.appendChild(i),this.remoteMedia.appendChild(a),e.tracks.forEach((function(e){e.track&&t.trackSubscribed([e.track],r),e.on("subscribed",t.handleTrackEnabled)})),e.on("trackSubscribed",(function(e){"video"==e.kind?r.setAttribute("videoId",e.sid):r.setAttribute("audioId",e.sid),t.trackSubscribed([e],r)})),e.on("trackUnsubscribed",(function(e){t.stopRemoteSharedScreen([e])}))}},{key:"trackSubscribed",value:function(e,t){var n=this;e.forEach((function(e){"screen"!=e.name?(t.appendChild(e.attach()),e.isEnabled?n.handleParticipantTrackEnabled(e):n.handleParticipantTrackDisabled(e)):(n.handleRemoteSharedScreen([e]),n.stopLocalScreenShare())}))}},{key:"attachLocalParticipantTracks",value:function(e,t){Array.from(e.tracks.values()).forEach((function(e){t.appendChild(e.track.attach())}))}},{key:"leaveRoom",value:function(){this.state.activeRoom&&(this.state.activeRoom.disconnect(),this.setState({hasJoinedRoom:!1,localMediaAvailable:!1}))}},{key:"handleTrackEnabled",value:function(e){var t=this;e.on("enabled",(function(){return t.handleParticipantTrackEnabled(e)})),e.on("disabled",(function(){return t.handleParticipantTrackDisabled(e)}))}},{key:"handleParticipantTrackEnabled",value:function(e){if("video"==e.kind){var t=document.querySelector('[videoid="'.concat(e.sid,'"]'));t.parentElement.classList.remove("callingBox__video-container--audio"),t.classList.remove("d-none")}"audio"==e.kind&&(document.querySelector('[audioid="'.concat(e.sid,'"]')).parentElement.firstChild.classList.add("user-speaking"),document.querySelector('[audioid="'.concat(e.sid,'"]')).parentElement.childNodes[1].classList.add("active"))}},{key:"handleParticipantTrackDisabled",value:function(e){if("video"==e.kind){console.log(e.sid);var t=document.querySelector('[videoid="'.concat(e.sid,'"]'));t&&(t.parentElement.classList.add("callingBox__video-container--audio"),t.classList.add("d-none"))}if("audio"==e.kind){var n=document.querySelector('[audioid="'.concat(e.sid,'"]'));n&&(n=n.parentElement.firstChild).classList.remove("user-speaking");var a=document.querySelector('[audioid="'.concat(e.sid,'"]'));a&&(a=a.parentElement.childNodes[1]).classList.remove("active")}}},{key:"onCameraButtonClick",value:function(e){e.preventDefault(),this.state.activeRoom&&(this.state.videoEnabled?this.state.activeRoom.localParticipant.videoTracks.forEach((function(e){"screen"!=e.track.name&&e.track.disable()})):this.state.activeRoom.localParticipant.videoTracks.forEach((function(e){"screen"!=e.track.name&&e.track.enable()})),this.setState({videoEnabled:!this.state.videoEnabled}))}},{key:"onAudioButtonClick",value:function(e){e.preventDefault(),this.state.activeRoom&&(this.state.audioEnabled?this.state.activeRoom.localParticipant.audioTracks.forEach((function(e){e.track.disable()})):this.state.activeRoom.localParticipant.audioTracks.forEach((function(e){e.track.enable()})),this.setState({audioEnabled:!this.state.audioEnabled}))}},{key:"shareScreen",value:function(e){e.preventDefault(),this.state.activeRoom&&(null==this.state.screenTrack?this.startScreenShare():this.stopLocalScreenShare())}},{key:"_startScreenCapture",value:function(){return navigator.getDisplayMedia?navigator.getDisplayMedia({video:!0}):navigator.mediaDevices.getDisplayMedia?navigator.mediaDevices.getDisplayMedia({video:!0}):navigator.mediaDevices.getUserMedia({video:{mediaSource:"screen"}})}},{key:"startScreenShare",value:function(){var e=this;if(this.state.remoteScreens.length>0)return console.log("Already Shared"),void this.showNotification({line1:"You can't Share Screen right now.",line2:"Someone is already sharing.",timeout:1e4});this._startScreenCapture().then((function(t){var n=t.getAudioTracks().map((function(e){return new an.LocalAudioTrack(e)})),a=t.getVideoTracks().map((function(e){return new an.LocalVideoTrack(e,{name:"screen"})})),i=n.concat(a);e.handleLocalSharedScreen(i),t.getTracks()[0].onended=function(){return e.stopLocalScreenShare()}}))}},{key:"stopRemoteSharedScreen",value:function(e){var t=this.state.remoteScreens;
1e.forEach((function(e){e.detach().forEach((function(e){return e.remove()})),t=t.filter((function(t){return e.id!=t.id}))})),this.setState({remoteScreens:t})}},{key:"handleRemoteSharedScreen",value:function(e){var t=this.state.remoteScreens;e.forEach((function(e){document.getElementById("screen-share").appendChild(e.attach()),t.push(e)})),this.setState({remoteScreens:t})}},{key:"handleLocalSharedScreen",value:function(e){this.setState({screenTrack:e}),this.state.activeRoom.localParticipant.publishTracks(e),this.setState({screenShared:!0}),e.forEach((function(e){document.getElementById("screen-share").appendChild(e.attach())}))}},{key:"stopLocalScreenShare",value:function(){try{this.state.activeRoom&&this.state.screenTrack&&this.state.screenShared&&(this.state.activeRoom.localParticipant.unpublishTracks(this.state.screenTrack),this.state.screenTrack.forEach((function(e){e.stop(),e.detach().forEach((function(e){return e.remove()}))})),this.setState({screenTrack:null}),this.setState({screenShared:!1}))}catch(e){console.error(e)}}},{key:"trackUnsubscribed",value:function(e){e.detach().forEach((function(e){return e.remove()}))}},{key:"openFullscreen",value:function(){var e=document.getElementById("screen-share").children[1];e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()}},{key:"render",value:function(){var e=this,t=this.state.participants.length+1,n="auto";t<=1?n="auto":t<=4?n="auto auto":t<=6?n="auto auto auto":t<=8&&(n="auto auto auto auto");var a=this.state.remoteScreens.length>0;return Object(o.jsx)(o.Fragment,{children:Object(o.jsxs)("section",{className:"callingBox",children:[Object(o.jsx)("header",{className:"headerBox headerBox__gradient",children:Object(o.jsxs)("div",{className:"link-btn link-btn--left",children:[Object(o.jsx)("img",{src:Oe.LOGO,alt:""}),Object(o.jsx)("span",{children:this.state.roomName})]})}),this.state.showNotification&&Object(o.jsxs)("div",{className:"call-end-notification",children:[this.state.notification.line1,Object(o.jsx)("span",{children:this.state.notification.line2})]}),Object(o.jsx)("div",{className:"shared-screenBox has-video ".concat(this.state.screenShared||a?"active":""),id:"screen-share",children:Object(o.jsx)("button",{className:"full-screen-btn",onClick:this.openFullscreen,children:Object(o.jsx)("i",{className:"icon-full-screen"})})}),Object(o.jsx)("div",{className:"callingBox__video-wrapper ".concat(this.state.screenShared||a?"shared-active":""),style:{gridTemplateColumns:n},ref:this.setRemoteMediaRef,children:Object(o.jsx)("div",{className:"callingBox__video",children:Object(o.jsxs)("div",{className:"callingBox__video-container ".concat(this.state.videoEnabled?" ":" callingBox__video-container--audio "),children:[Object(o.jsx)("span",{className:"callingBox__nameTag ".concat(this.state.audioEnabled?" user-speaking ":""," "),children:this.props.userName}),Object(o.jsx)("div",{className:"callingBox__video-wrapper has-video ".concat(this.state.videoEnabled?"":"d-none"),id:"local-media",ref:this.setLocalMediaRef})]})})}),Object(o.jsxs)("div",{className:"callingBox__buttons callingBox__buttons__gradient",children:[Object(o.jsxs)("div",{className:"link-btn link-btn--left",children:[Object(o.jsx)("img",{src:Oe.LOGO,alt:""}),Object(o.jsx)("span",{children:this.state.roomName})]}),Object(o.jsxs)("ul",{className:"callingBox__buttons-list",children:[Object(o.jsx)("li",{children:Object(o.jsx)("button",{className:"icon-btn",onClick:this.onCameraButtonClick,children:Object(o.jsx)("i",{className:this.state.videoEnabled?"icon-video-btn":"icon-video-btn-mute"})})}),Object(o.jsx)("li",{children:Object(o.jsx)("button",{className:"icon-btn icon-btn--red",onClick:this.leaveRoom,children:Object(o.jsx)("i",{className:"icon-phone"})})}),Object(o.jsx)("li",{children:Object(o.jsx)("button",{className:"icon-btn",onClick:this.onAudioButtonClick,children:Object(o.jsx)("i",{className:this.state.audioEnabled?"icon-mic-btn":"icon-mic-btn-mute"})})})]}),!g.isMobileOnly&&Object(o.jsxs)("button",{onClick:this.shareScreen,className:"link-btn",children:[Object(o.jsx)("i",{className:"icon-external-link"}),Object(o.jsx)("span",{children:this.state.screenShared?"Stop sharing":"Share your screen"})]}),this.props.isOfficial&&this.state.showRest&&Object(o.jsx)("button",{onClick:function(){e.props.slotReset(),e.setState({showRest:!1})},className:"link-btn pos-right-18",children:Object(o.jsx)("span",{children:"ResetState"})})]})]})})}}]),n}(c.Component),Nn=[{link:"/3dAssets/UI/AudiTut/FullScreen.jpg",header:"Full Screen",description:"Tap on the icon to view the content on full screen."},{link:"/3dAssets/UI/AudiTut/ExitFullScreen.jpg",header:"Exit Full Screen",description:"Tap on the icon to exit full screen."},{link:"/3dAssets/UI/AudiTut/PlayButton.jpg",header:"Play Button",description:"Tap on the play icon to play the video."},{link:"/3dAssets/UI/AudiTut/Polls.jpg",header:"Polls",description:"Tap on the icon to participate in public poll."}
1,{link:"/3dAssets/UI/AudiTut/Q&A.jpg",header:"Q&A",description:"Tap on the icon to submit your question and get answer to it."}],Ln=function(e){Object(m.a)(n,e);var t=Object(p.a)(n);function n(){var e;Object(u.a)(this,n);for(var a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];return(e=t.call.apply(t,[this].concat(i))).state={stage:0},e.handleContinue=function(t){t&&t.preventDefault(),e.props.skip()},e.openDBRZoomLink=function(e,t){t&&t.preventDefault(),window.location.href=e},e}return Object(h.a)(n,[{key:"render",value:function(){var e=this;return Object(o.jsxs)(o.Fragment,{children:[0===this.state.stage&&Object(o.jsx)(o.Fragment,{children:Object(o.jsx)("div",{className:"lobbyTutContainer",children:Object(o.jsxs)("div",{className:"tutCardContainer tutCardContainer-sm",children:[Object(o.jsx)("div",{className:"tutCardContainer-header",children:Object(o.jsx)("div",{className:"whiteText",children:"Tutorial"})}),Object(o.jsx)("div",{className:"tutCardContainer-body",children:Nn.map((function(e){return Object(o.jsxs)("div",{className:"tutCardContainer-bodyItem",children:[Object(o.jsx)("img",{alt:e.header,src:e.link}),Object(o.jsxs)("div",{className:"bodyItem-text",children:[Object(o.jsx)("h2",{children:e.header}),Object(o.jsx)("div",{children:e.description})]})]},e.header)}))}),Object(o.jsx)("div",{className:"text-center",children:Object(o.jsx)("button",{className:"tutCardButton btn  btn-yellow mg-t30",onClick:function(t){return e.setState({stage:1})},children:"Continue"})})]})})}),1===this.state.stage&&Object(o.jsx)(o.Fragment,{children:Object(o.jsx)("div",{className:"lobbyTutContainer",children:Object(o.jsxs)("div",{className:"tutCardContainer tutCardContainer-sm pd-b-2",children:[Object(o.jsx)("div",{className:"tutCardContainer-header  bg-red",children:Object(o.jsx)("div",{children:"Zoom Call"})}),Object(o.jsx)("div",{className:"tutCardContainer-body",children:"Please click on the join button to enter Digital Board Room."}),Object(o.jsxs)("div",{className:"text-center",children:[Object(o.jsx)("button",{className:"tutCardButton btn  btn-yellow mg-t30",onClick:function(t){return e.handleContinue(t)},children:"CANCEL"}),Object(o.jsx)("button",{className:"tutCardButton btn  btn-yellow mg-t30",onClick:function(t){return e.openDBRZoomLink(window.zoomlink?window.zoomlink:Ne.zoomlink,t)},style:{marginLeft:"1rem"},children:"JOIN"})]})]})})})]})}}]),n}(c.Component),An=function(e){Object(m.a)(n,e);var t=Object(p.a)(n);function n(){var e;Object(u.a)(this,n);for(var a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];return(e=t.call.apply(t,[this].concat(i))).state={UI:{menuItems:V,activeMenu:V[0],activeSubMenu:null,lastMenu:V[0],overlayMenu:null,MenuVisible:!0,isInteractable:!1,showMediaModal:!1,clicked:!1,showHelpdeskChat:!1,showLeaderboard:!1,showLeaderboardButton:!0,showSurveyPopup:!1,surveyDetails:null,showDBRSidePanel:!0,showStallChat:!1,showGlobalChat:!1},HelpdeskChat:{showChat:!1,showButton:!0},MediaModalInfo:{link:"",type:null},DBRVideoCall:{roomOptions:{t1:{publicRoomName:"team3"}},room:null,showVideoCall:!1,roomAdmin:null},TwilioVideoCall:{slot:null,room:null,showVideoCall:!1},stallChat:{id:""},audiLnk:Ie.link,zoomlink:Ne.zoomlink},e.currentOverlayCallback=null,e.currentAudioRef=r.a.createRef(),e.AudioListenerRemoved=!1,e.componentDidMount=function(){window.c=Object(pt.a)(e),window.addEventListener("click",e.playIntroAudio),e.dailycoSetup(),e.gettingMeetingRoomErrMessage(),window.zoomlink=Ne.zoomlink,rt((function(t,n){t?console.log(t):(window.zoomlink=n.DBRData.zoomlink,e.setState({audiLnk:n.AudiData.link,zoomlink:n.DBRData.zoomlink}))}))},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(x.a)(Object(x.a)({},e.UI),{},{activeMenu:e.UI.lastMenu,overlayMenu:null})}}))},e.handleCustomHotspotClick=function(t,n){t&&t.preventDefault(),console.log(n.links),n.id===Te.Survey&&e.setState((function(e){return{UI:Object(x.a)(Object(x.a)({},e.UI),{},{showSurveyPopup:!0,surveyDetails:n.links})}}))},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!==A.MyProfile&&n.id!==A.TeamBuilding&&n.id!==A.bdr?(e.handleHelpdeskChatClose(),e.setState((function(e){return{UI:Object(x.a)(Object(x.a)({},e.UI),{},{activeMenu:n,overlayMenu:null,lastMenu:e.UI.activeMenu,activeSubMenu:null,showHelpdeskChat:!1,showDBRSidePanel:!0,showStallChat:!1})}}))):n.id===A.bdr?(e.handleHelpdeskChatClose(),e.handleVideoRoomSelection(t,n.room,(function(t){t||e.setState((function(e){return{UI:Object(x.a)(Object(x.a)({},e.UI),{},{activeMenu:n,overlayMenu:null,lastMenu:e.UI.activeMenu,activeSubMenu:n.subMenus[E],showHelpdeskChat:!1,showDBRSidePanel:!0,showStallChat:!1})}}))}))):e.setState((function(e){return{UI:Object(x.a)(Object(x.a)({},e.UI),{},{overlayMenu:n,lastMenu:e.UI.activeMenu})}}))},e.handleSubmenuItemClick=function(t,n){t&&t.preventDefault(),e.state.UI.activeSubMenu&&e.state.UI.activeSubMenu.id===n.id||(console.log(n),e.state.UI.activeMenu.id===A.bdr&&(n.id===B?e.setState((function(e){return{UI:Object(x.a)(Object(x.a)({},e.UI),{},{showDBRSidePanel:!0,activeSubMenu:n})}})):e.setState((function(e){return{UI:Object(x.a)(Object(x.a)({},e.UI),{},{activeSubMenu:n,showDBRSidePanel:!1})}}))),e.state.UI.activeMenu.id!==A.bdr&&e.setState((function(e){return{UI:Object(x.a)(Object(x.a)({},e.UI),{},{activeSubMenu:n,showDBRSidePanel:!1})}})))},e.closeSubMenu=function(t){t&&t.preventDefault(),e.setState((function(e){return{UI:Object(x.a)(Object(x.a)({},e.UI),{},{activeSubMenu:null,showMediaModal:!1}),MediaModalInfo:Object(x.a)(Object(x.a)({},e.MediaModalInfo),{},{link:"",type:null})}}))},e.hideOverlayMenu=function(t){t&&t.preventDefault(),e.state.UI.overlayMenu&&e.setState((function(e){return{UI:Object(x.a)(Object(x.a)({},e.UI),{},{overlayMenu:null,showAskExpertError:!1})}})),e.currentOverlayCallback&&(e.currentOverlayCallback(),e.currentOverlayCallback=null)},e.showMediaModal=function(t,n){if(t===X)return window.lastChatBotRef=n,n.enabled=!1,void e.handleHelpdeskChatbutton();e.setState((function(e){return{UI:Object(x.a)(Object(x.a)({},e.UI),{},{showMediaModal:!0}),MediaModalInfo:Object(x.a)(Object(x.a)({},e.MediaModalInfo),{},{link:n||"",type:t})}}))},e.handleMedialModalFromOverlay=function(t,n){e.hideOverlayMenu(),e.showMediaModal(t,n)},e.closeMediaModal=function(){e.setState((function(e){return{UI:Object(x.a)(Object(x.a)({},e.UI),{},{showMediaModal:!1}),MediaModalInfo:Object(x.a)(Object(x.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.activeMenu.id!==A.Networking||!e.state.UI.activeSubMenu||e.state.UI.activeSubMenu.id!==F.Sessions)&&(!e.state.UI.showMediaModal||e.state.MediaModalInfo.type===Y)},e.handleHelpdeskChatClose=function(){window.lastChatBotRef&&(window.lastChatBotRef.enabled=!0),e.state.HelpdeskChat.showChat&&e.setState({HelpdeskChat:{showChat:!1,showButton:!0}})},e.handleHelpdeskChatbutton=function(){e.state.HelpdeskChat.showButton&&e.setState({HelpdeskChat:{showChat:!0,showButton:!1}})},e.handleLobbyInternalState=function(t){switch(t){case"Infodesk":e.setState((function(e){return{UI:Object(x.a)(Object(x.a)({},e.UI),{},{showHelpdeskChat:!0})}}));break;default:e.setState((function(e){return{UI:Object(x.a)(Object(x.a)({},e.UI),{},{showHelpdeskChat:!1,showStallChat:!1}),HelpdeskChat:{showChat:!1,showButton:!0}}}))}},e.handleSceneTutorial=function(t){"end"===t&&e.setState((function(e){return{UI:Object(x.a)(Object(x.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&&$e(e.context,t)},e.addHotspotAnalytics=function(t){et(e.context,t)},e.addCustomHotspotAnalytics=function(t){tt(e.context,t)},e.handleVideoRoomSelection=function(){var t=Object(j.a)(f.a.mark((function t(n,a,i){return f.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n&&n.preventDefault(),t.prev=1,console.log(a),!e.state.DBRVideoCall.roomAdmin){t.next=9;break}if(console.log(e.state.DBRVideoCall.roomAdmin),e.state.DBRVideoCall.roomAdmin.roomName!==a.roomName){t.next=9;break}return e.setState((function(e){return{DBRVideoCall:Object(x.a)(Object(x.a)({},e.DBRVideoCall),{},{room:a})}})),i&&i(null),t.abrupt("return");case 9:return t.next=11,st(a.docName);case 11:t.sent?(e.setState((function(e){return{DBRVideoCall:Object(x.a)(Object(x.a)({},e.DBRVideoCall),{},{room:a})}})),i&&i(null)):(e.showInfoPopUp("Room is not live right now."),i&&i(!0)),t.next=19;break;case 15:t.prev=15,t.t0=t.catch(1),i&&i(!0),console.log(t.t0);case 19:case"end":return t.stop()}}),t,null,[[1,15]])})));return function(e,n,a){return t.apply(this,arguments)}}(),e.dailycoSetup=function(){at(e.context).then((function(t){e.setState((function(e){return{DBRVideoCall:Object(x.a)(Object(x.a)({},e.DBRVideoCall),{},{roomAdmin:t})}}))})).catch((function(e){"NoAdmin"!==e.code&&console.log(e)})),it().then((function(t){console.log(t),e.setState((function(e){return{DBRVideoCall:Object(x.a)(Object(x.a)({},e.DBRVideoCall),{},{roomOptions:t})}}))})).catch((function(e){console.log(e)}))},e.closeDBRVideoCallSidePanel=function(){e.setState((function(e){return{UI:Object(x.a)(Object(x.a)({},e.UI),{},{showDBRSidePanel:!1,activeSubMenu:null})}}))},e.openDBRZoomLink=function(e,t){t&&t.preventDefault(),window.location.href=e},e.gettingMeetingRoomErrMessage=Object(j.a)(f.a.mark((function t(){var n;return f.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Be.collection(S).doc(M).get();
1case 2:(n=t.sent).data&&(e.MeetingRoomMessage=n.data().meetingRoomMsg,e.busyRoomMessage=n.data().busyRoomMessage);case 4:case"end":return t.stop()}}),t)}))),e.checkAvailableVideoCallRoom=function(){var t=Object(j.a)(f.a.mark((function t(n,a){var i,s;return f.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n.preventDefault(),t.prev=1,console.log(e.context),t.next=5,ot(e.context.email,a);case 5:i=t.sent,s={roomId:i.id,roomName:i.name,roomParentId:"UltraTech",isAdmin:i.isAdmin},e.setState((function(e){return{TwilioVideoCall:Object(x.a)(Object(x.a)({},e.TwilioVideoCall),{},{room:s,showVideoCall:!0,slot:i,stallId:a})}})),console.log(s),t.next=16;break;case 11:t.prev=11,t.t0=t.catch(1),console.log(t.t0),"NoRoomAvaliable"===t.t0.code&&ft()({text:"Videocall rooms are occupied. Please come back later, Thanks."}),e.setState((function(e){return{UI:Object(x.a)(Object(x.a)({},e.UI),{},{showAskExpertError:!0})}}));case 16:case"end":return t.stop()}}),t,null,[[1,11]])})));return function(e,n){return t.apply(this,arguments)}}(),e.clearTwilioVideoCallRoom=Object(j.a)(f.a.mark((function t(){return f.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:try{e.setState((function(e){return{TwilioVideoCall:Object(x.a)(Object(x.a)({},e.TwilioVideoCall),{},{showVideoCall:!1}),UI:Object(x.a)(Object(x.a)({},e.UI),{},{overlayMenu:null,showAskExpertError:!1})}})),e.state.TwilioVideoCall.slot.id?setTimeout(Object(j.a)(f.a.mark((function t(){return f.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ct(e.state.TwilioVideoCall.slot.id,e.context.email,e.state.TwilioVideoCall.stallId);case 2:e.setState((function(e){return{TwilioVideoCall:Object(x.a)(Object(x.a)({},e.TwilioVideoCall),{},{slot:null,room:null})}}));case 3:case"end":return t.stop()}}),t)}))),3e3):console.error("No Room Id found for user")}catch(n){console.log(n)}case 1:case"end":return t.stop()}}),t)}))),e.currentSlotRest=function(){var t=Object(j.a)(f.a.mark((function t(n){return f.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n&&n.preventDefault(),t.prev=1,console.log(e.state.TwilioVideoCall.slot),!e.state.TwilioVideoCall.slot.id){t.next=8;break}return t.next=6,ct(e.state.TwilioVideoCall.slot.id,"-1",e.state.TwilioVideoCall.stallId);case 6:t.next=9;break;case 8:console.error("No Room Id found for user");case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),console.log(t.t0);case 14:case"end":return t.stop()}}),t,null,[[1,11]])})));return function(e){return t.apply(this,arguments)}}(),e.showInfoPopUp=function(e){ft()({title:e,className:"video-swal-modal",button:"continue"})},e.showMeetingRoomPopup=function(){e.showInfoPopUp(e.MeetingRoomMessage)},e.showMeetingRoomBusyPopup=function(){e.showInfoPopUp(e.busyRoomMessage)},e.handleStallCallHotspot=function(t,n){n.hotspotType===ee&&e.checkAvailableVideoCallRoom(t,n.roomDetails.id)},e.handleStallChatHotspot=function(t,n){n.hotspotType===te&&(n.roomDetails?e.setState((function(e){return{UI:Object(x.a)(Object(x.a)({},e.UI),{},{showStallChat:!0}),stallChat:{id:n.roomDetails.id}}})):e.showInfoPopUp("We are having some issue in opening chat for you. Please come back later"))},e.handleStallChatHotspotClose=function(t){t&&t.preventDefault(),e.setState((function(e){return{UI:Object(x.a)(Object(x.a)({},e.UI),{},{showStallChat:!1}),stallChat:{id:""}}}))},e}return Object(h.a)(n,[{key:"componentWillUnmount",value:function(){this.AudioListenerRemoved||(this.AudioListenerRemoved=!0,window.removeEventListener("click",this.playIntroAudio))}},{key:"showInfoPopUp",value:function(e){ft()({title:e,icon:"info",className:"video-swal-modal",button:"continue"})}},{key:"render",value:function(){var e,t=this;return Object(o.jsxs)(o.Fragment,{children:[this.state.TwilioVideoCall.showVideoCall&&this.context&&this.state.TwilioVideoCall.room&&Ob
1ject(o.jsx)(Mn,{userName:null!==(e=this.context.displayName)&&void 0!==e?e:this.context.email.split("@")[0],room:this.state.TwilioVideoCall.room,onCallDisconnect:this.clearTwilioVideoCallRoom,isOfficial:this.state.TwilioVideoCall.room.isAdmin,stallId:this.state.TwilioVideoCall.stallId,slotReset:this.currentSlotRest,showPopup:this.showMeetingRoomPopup,showBusyPopup:this.showMeetingRoomBusyPopup}),this.state.UI.showStallChat&&Object(o.jsx)(o.Fragment,{children:Object(o.jsxs)("div",{className:"stallChatContainer",children:[Object(o.jsx)("img",{src:Oe.CLOSEBUTTON,className:"closeButton-mediaModal",alt:"MediaModalCLoseButton",onClick:this.handleStallChatHotspotClose,style:{right:"auto"}}),Object(o.jsx)("iframe",{src:"".concat(fe,"?").concat(this.state.stallChat.id),title:"StallChatFrame"}),Object(o.jsx)("div",{className:"blocker ".concat(this.state.UI.fadeIntroImage?"d-none":""),style:{zIndex:"-1"},children:Object(o.jsx)("div",{className:"lds-dual-ring"})})]})}),Object(o.jsx)("div",{className:"wrapper",children:Object(o.jsxs)("section",{className:"loggedin-page has-right-menu min-height-full min-height-full image-bg",children:[Object(o.jsx)(jn,{firestore:Be}),this.state.UI.showMediaModal&&Object(o.jsx)(o.Fragment,{children:Object(o.jsx)("article",{className:"img-bg videoBox h-100 zIndex-16",id:"play",children:Object(o.jsxs)("div",{className:"media-modal",children:[this.state.MediaModalInfo.type===J&&Object(o.jsx)(Jt,{videoData:this.state.MediaModalInfo.link,close:function(){return t.closeMediaModal()}}),this.state.MediaModalInfo.type===Z&&Object(o.jsx)(In,{data:this.state.MediaModalInfo.link,close:function(){return t.closeMediaModal()}}),this.state.MediaModalInfo.type===Y&&Object(o.jsx)("iframe",{title:"pdf",className:"media-modal-content",src:this.state.MediaModalInfo.link}),this.state.MediaModalInfo.type===z&&Object(o.jsx)("iframe",{title:"iframe",className:"media-modal-content-iframe",src:this.state.MediaModalInfo.link}),this.state.MediaModalInfo.type===G&&Object(o.jsx)("div",{className:"media-modal-content",children:Object(o.jsx)(vt.a,{config:{youtube:{playerVars:{showinfo:1}}},playing:!0,url:this.state.MediaModalInfo.link,controls:!1,width:"100%",height:"100%"})}),this.state.MediaModalInfo.type===W&&Object(o.jsx)("img",{title:"image",className:"media-modal-content-image",src:this.state.MediaModalInfo.link,alt:"mediaModalImage"}),this.state.MediaModalInfo.type!==J&&this.state.MediaModalInfo.type!==Z&&Object(o.jsx)("img",{src:Oe.CLOSEBUTTON,className:"closeButton-mediaModal",alt:"MediaModalCLoseButton",onClick:this.closeMediaModal})]})})}),this.state.UI.activeMenu.id===A.Lobby&&Object(o.jsx)(o.Fragment,{children:this.state.UI.showHelpdeskChat&&Object(o.jsxs)(o.Fragment,{children:[this.context.email&&this.state.HelpdeskChat.showChat&&Object(o.jsx)(o.Fragment,{children:Object(o.jsx)(Sn,{channel:this.context.email,user:{id:this.context.email,name:this.context.displayName},closeChat:this.handleHelpdeskChatClose,visibility:!0})}),this.state.HelpdeskChat.showButton&&Object(o.jsx)(o.Fragment,{})]})}),this.state.UI.activeMenu.id===A.Audi&&Object(o.jsx)(cn,{changeComponenet:this.handleClick,ShowMediaModal:this.showMediaModal,initialVideo:Ie.introVideo,globalBackButton:!1,link:this.state.audiLnk,framePlacementStyle:Ie.placementStyle,hiddeMute:!1,sceneName:"audi",showTut:!0,tutComponent:gn,subMenus:this.state.UI.activeSubMenu,addAnalytics:function(e){t.addComponentAnalytics(de,e)}}),this.state.UI.activeMenu.id===A.Networking&&Object(o.jsx)(o.Fragment,{children:Object(o.jsx)(Tt,{ShowMediaModal:this.showMediaModal,initialVideo:H.BREAKOUTLOOP,firstVideoFrame:Oe.Breakout,initialHotspot:null,globalBackButton:!1,changeComponenet:this.handleClick,ratio:2.33,sceneName:"Networking",showTut:!0,tutComponent:yn,showingTutorialEvent:this.handleSceneTutorial,addAnalytics:function(e){return t.addComponentAnalytics(ue,e)}})}),this.state.UI.activeMenu.id===A.bdr&&this.state.DBRVideoCall.room&&Ob
1ject(o.jsx)(o.Fragment,{children:Object(o.jsx)(cn,{changeComponenet:this.handleClick,ShowMediaModal:this.showMediaModal,initialVideo:Ne.introVideo,globalBackButton:!1,link:"",framePlacementStyle:Ne.placementStyle,hiddeMute:!1,sceneName:"dbr",showTut:!0,tutComponent:Ln,subMenus:this.state.UI.activeSubMenu,addAnalytics:function(e){t.addComponentAnalytics(he,e)},useDailyCo:!0,DailyCoData:{goToLobby:this.handleClick,name:this.context.displayName?this.context.displayName:this.context.email.split("@")[0],room:this.state.DBRVideoCall.room,isAdmin:null!==this.state.DBRVideoCall.roomAdmin&&this.state.DBRVideoCall.roomAdmin.roomName===this.state.DBRVideoCall.room.roomName,autoInitalize:!0,showSidePanel:this.state.UI.showDBRSidePanel,hideSidePanel:this.closeDBRVideoCallSidePanel},videoInFrame:!1})}),this.state.UI.overlayMenu&&Object(o.jsx)(o.Fragment,{children:this.state.UI.overlayMenu.id===A.TeamBuilding&&Object(o.jsx)(o.Fragment,{children:Object(o.jsx)(Cn,{data:Ae,hideOverlayMenu:this.hideOverlayMenu,handleTeamOptionSelection:this.handleTeamOptionSelection})})}),this.state.UI.showSurveyPopup&&this.state.UI.surveyDetails&&Object(o.jsx)(o.Fragment,{children:Object(o.jsx)(Cn,{data:this.state.UI.surveyDetails,hideOverlayMenu:function(){t.setState((function(e){return{UI:Object(x.a)(Object(x.a)({},e.UI),{},{showSurveyPopup:!1,surveyDetails:null})}}))},handleTeamOptionSelection:function(e,n){t.showMediaModal(z,n.link)}})}),this.state.UI.activeMenu.id===A.Networking&&this.state.UI.activeSubMenu&&Object(o.jsx)(o.Fragment,{children:this.state.UI.activeSubMenu.id===F.Chat&&Object(o.jsxs)("div",{className:"stallChatContainer",children:[Object(o.jsx)("img",{src:Oe.CLOSEBUTTON,className:"closeButton-mediaModal",alt:"MediaModalCLoseButton",onClick:this.closeSubMenu,style:{right:"auto"}}),Object(o.jsx)("iframe",{src:"".concat(je,"?private"),title:"publicChat"}),Object(o.jsx)("div",{className:"blocker ".concat(this.state.UI.fadeIntroImage?"d-none":""),style:{zIndex:"-1"},children:Object(o.jsx)("div",{className:"lds-dual-ring"})})]})}),this.state.UI.activeSubMenu&&this.state.UI.activeMenu.id===A.bdr&&Object(o.jsx)(o.Fragment,{children:this.state.UI.activeSubMenu.id===D&&Object(o.jsx)(o.Fragment,{children:Object(o.jsx)("div",{className:"lobbyTutContainer",children:Object(o.jsxs)("div",{className:"tutCardContainer tutCardContainer-sm pd-b-2",children:[Object(o.jsx)("div",{className:"tutCardContainer-header  bg-red",children:Object(o.jsx)("div",{children:"Zoom Call"})}),Object(o.jsx)("div",{className:"tutCardContainer-body",children:"Please click on the join button to enter Digital Board Room."}),Object(o.jsxs)("div",{className:"text-center",children:[Object(o.jsx)("button",{className:"tutCardButton btn  btn-yellow mg-t30",onClick:function(e){return t.closeSubMenu(e)},children:"CANCEL"}),Object(o.jsx)("button",{className:"tutCardButton btn  btn-yellow mg-t30",onClick:function(e){return t.openDBRZoomLink(t.state.zoomlink,e)},style:{marginLeft:"1rem"},children:"JOIN"})]})]})})})}),!this.state.UI.showGlobalChat&&Object(o.jsx)("div",{className:"chatButton",onClick:function(){return t.setState((function(e){return{UI:Object(x.a)(Object(x.a)({},e.UI),{},{showGlobalChat:!0})}}))},children:"CHAT"}),this.state.UI.showGlobalChat&&Object(o.jsxs)("div",{className:"stallChatContainer stallChatContainer-global",children:[Object(o.jsx)("img",{src:Oe.CLOSEBUTTON,className:"closeButton-mediaModal",alt:"MediaModalCLoseButton",onClick:function(){return t.setState((function(e){return{UI:Object(x.a)(Object(x.a)({},e.UI),{},{showGlobalChat:!1})}}))}}),Object(o.jsx)("iframe",{src:"".concat(je,"?public"),title:"publicChat"}),Object(o.jsx)("div",{className:"blocker ".concat(this.state.UI.fadeIntroImage?"d-none":""),style:{zIndex:"-1"},children:Object(o.jsx)("div",{className:"lds-dual-ring"})})]}),Object(o.jsxs)("footer",{className:"footerBox",children:[this.state.UI.overlayMenu&&Object(o.jsx)(o.Fragment,{children:this.state.UI.overlayMenu.id===A.MyProfile&&Object(o.jsx)("div",{children:Object(o.jsx)(yt,{activeMenu:this.state.UI.activeMenu,close:this.hideOverlayMenu,ShowMediaModal:this.handleMedialModalFromOverlay})})}),this.state.UI.activeMenu&&!this.state.UI.activeMenu.subMenus&&Object(o.jsx)(gt,{items:this.state.UI.menuItems,mainMenu
1State:this.state.UI.overlayMenu?this.state.UI.overlayMenu.id:this.state.UI.activeMenu.id,onMenuItemClick:this.handleClick,canInteract:this.state.UI.isInteractable,activeMenu:this.state.UI.activeMenu}),this.state.UI.activeMenu.subMenus&&Object(o.jsx)(gt,{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(e){return t.handleClick(e,V[T.Lobby])},activeMenu:this.state.UI.activeMenu}),this.state.UI.activeSubMenu&&this.state.UI.activeMenu.id===A.Audi&&Object(o.jsx)(o.Fragment,{children:Object(o.jsxs)("div",{className:"submenu-container active expended",children:[this.state.UI.activeSubMenu.id===P&&Object(o.jsx)(qt,{headerName:"Q&A",onHeadingClick:this.closeSubMenu,QNACollection:"qnaAudi",QNAReplyCollection:"qnaAudiReply",canReply:!0,moderated:!0}),this.state.UI.activeSubMenu.id===R&&Object(o.jsx)(Qt,{onHeadingClick:this.closeSubMenu,PollAdmin_Col:"pollAdmin",PollAdmin_Doc:"adminAccess",Poll_Doc:"poll"})]})}),this.state.UI.activeSubMenu&&this.state.UI.activeMenu.id===A.bdr&&Object(o.jsxs)(o.Fragment,{children:[this.state.UI.activeSubMenu.id===P&&Object(o.jsx)("div",{className:"submenu-container active expended",children:Object(o.jsx)(qt,{headerName:"Q&A",onHeadingClick:this.closeSubMenu,QNACollection:"qna-dbr",QNAReplyCollection:"qnaReply-dbr",canReply:!0,moderated:!0})}),this.state.UI.activeSubMenu.id===R&&Object(o.jsx)("div",{className:"submenu-container active expended",children:Object(o.jsx)(Qt,{onHeadingClick:this.closeSubMenu,PollAdmin_Col:"pollAdmin-dbr",PollAdmin_Doc:"adminAccess",Poll_Doc:"poll-dbr"})})]})]})]})}),this.checkIfAudioCanPlayUnderMediaModal()&&this.state.UI.activeMenu.id!==A.bdr&&this.state.UI.activeMenu.id!==A.Audi&&!this.state.TwilioVideoCall.showVideoCall&&Object(o.jsx)(pn.a,{src:"/3dAssets/music/ambientMusic.mp3",autoPlay:!0,volume:.1,loop:!0,preload:"auto",ref:this.currentAudioRef})]})}}]),n}(c.Component);An.contextType=ht;var Tn=n(651),Un=n.p+"static/media/coins.2e00dece.wav",Pn=n(301),Rn=n(302),Dn=n(127),Bn=n.p+"static/media/add.53812f50.svg",Fn=n.p+"static/media/selected.250fcb64.svg",En=n.p+"static/media/right-wing.e0566f7e.svg",Vn=n.p+"static/media/bottom-wing.f39745c0.svg",_n=n.p+"static/media/delete.923a32a6.svg",Hn=n.p+"static/media/cut.6cc58e8b.svg",qn=n.p+"static/media/igFilter.7fecc770.jpg",zn=n.p+"static/media/igGame.90fa0ec3.jpg";n(630);var Gn=function(e){var t=e.scores,n=e.yScores,a=e.backToLobby,i=e.context;return Object(c.useEffect)((function(){$e(i,"Leaderboard"),et(i,"Leaderboard")}),[]),Object(o.jsxs)("div",{className:"score-card ".concat(g.isIOS?"ios-score":""),children:[Object(o.jsxs)("div",{className:"heading",children:[Object(o.jsx)("div",{className:"y-score",children:Object(o.jsxs)("div",{children:[Object(o.jsx)("img",{src:"/assets/images/login/user-img.png",alt:""}),Object(o.jsxs)("h2",{children:["Your ",Object(o.jsx)("br",{})," Points"]}),Object(o.jsx)("h1",{children:n})]})}),Object(o.jsx)("div",{className:"s-logo",children:Object(o.jsx)("img",{src:"/assets/images/login/game-logo.png",alt:""})}),Object(o.jsx)("div",{className:"close-i",children:Object(o.jsx)("img",{src:"/assets/images/login/close.png",alt:"",onClick:a})})]}),Object(o.jsx)("div",{className:"leader-text",children:Object(o.jsx)("h2",{children:"Leaderboard"})}),Object(o.jsx)("div",{className:"score-table",children:Object(o.jsxs)("div",{children:[Object(o.jsxs)("div",{className:"rank",children:[Object(o.jsx)("div",{children:Object(o.jsx)("p",{children:"Rank"})}),t.map((function(e,t){return Object(o.jsx)("div",{children:Object(o.jsx)("p",{children:t+1})},t)}))]}),Object(o.jsxs)("div",{className:"name",children:[Object(o.jsx)("div",{children:Object(o.jsx)("p",{children:"Name"})}),t.map((function(e,t){return Object(o.jsx)("div",{children:Object(o.jsx)("p",{children:e.name})},t)}))]}),Object(o.jsxs)("div",{className:"score",children:[Object(o.jsx)("div",{children:Object(o.jsx)("p",{children:"Score"})}),t.map((function(e,t){return Object(o.jsx)("div",{children:Object(o.jsx)("p",{children:e.score})},t)}))]})]})})]})},Wn=["treasure1","treasure2","treasure3","treasure4","treasure5","treasure6","treasure7","treasure8"];var Yn=function(e){var t=Object(c.useState)(120),n=Object(Ut.a)(t,2),a=n[0],i=n[1],s=Object(c.useRef)(),r=Object(c.useRef)();return Object(c.useEffect)((function(){return $e(e.context,"Treasurehunt"),et(e.context,"Treasurehunt"),function(){clearInterval(s.current),clearTimeout(r.current)}}),[]),Object(c.useEffect)((function(){e.endGameScreen&&(clearInterval(s.current),window.parent.addRemainingTime&&(window.parent.addRemainingTime(a),console.log(a)))}),[e.endGameScreen]),Object(o.jsxs)(o.Fragment,{children:[e.startGameScreen&&Object(o.jsx)("div",{className:"lobbyTutContainer",children:Object(o.jsxs)("div",{className:"tut-box game-inst",children:[!g.isIOS&&Object(o.jsx)("div",{className:"d-arrow",onClick:function(){document.querySelector(".scroll-div").scrollIntoView({behavior:"smooth"})},children:Object(o.jsx)(Dn.a,{})}),Object(o.jsx)("img",{src:Oe.CLOSEBUTTON,className:"closeButton-mediaModal",alt:"MediaModalCLoseButton",style:{position:"absolute",right:0,top:0,width:"3rem",margin:"1rem",boxShadow:"unset"},onClick:function(t){e.handleClick(t,V[T.Lobby])}}),Object(o.jsx)("div",{className:"head",children:Object(o.jsx)("img",{src:"/assets/images/login/game-logo.png",alt:""})}),Object(o.jsxs)("div",{className:"content",children:[Object(o.jsx)("h2",{children:"Game Instructions:"}),Object(o.jsx)("br",{}),Object(o.jsx)("p",{children:"( Scroll to view all the instructions )"}),Object(o.jsx)("br",{}),Object(o.jsxs)("div",{className:"inst",children:[Object(o.jsxs)("div",{children:[Object(o.jsx)("img",{src:"/assets/images/login/8hunt.png",alt:""}),Object(o.jsx)("p",{children:"There are 8 hidden treasures in the space."})]}),Object(o.jsxs)("div",{children:[Object(o.jsx)("img",{src:"/assets/images/login/40s.png",alt:""}),Object(o.jsx)("p",{children:"You have 120 seconds to collect the hidden treasures."})]}),Object(o.jsxs)("div",{children:[Object(o.jsx)("img",{src:"/assets/images/login/t-logo.png",alt:""}),Object(o.jsx)("p",{children:"Each treasure collected will add to the leaderboard."})]}),Object(o.jsxs)("div",{children:[Object(o.jsx)("img",{src:"/assets/images/login/gr-ring.png",alt:""}),Object(o.jsxs)("p",{children:["You have to look for this icon to gain 100 points. ",Object(o.jsx)("br",{})," Click around the area and find the hidden circles."]})]}),Object(o.jsxs)("div",{children:[Object(o.jsx)("img",{src:"/assets/images/login/g-ring.png",alt:""}),Object(o.jsxs)("p",{children:["You have to look for this icon to gain 200 points. ",Object(o.jsx)("br",{})," Click around the area and find the hidden circles."]})]}),Object(o.jsxs)("div",{children:[Object(o.jsx)("img",{src:"/assets/images/login/cut-off.png",alt:""}),Object(o.jsxs)("p",{children:[Object(o.jsx)("strong",{children:"Cut Off 8 PM "})," - Prizes to be given to the Top 5 players."]})]}),Object(o.jsx)("div",{className:"scroll-div"})]})]}),Object(o.jsx)("div",{className:"box-button",children:Object(o.jsx)("button",{onClick:function(){e.updatePlayedCount(),e.stratScreneState(!1),s.current=setInterval((function(){i((function(e){return e-1}))}),1e3),r.current=setTimeout((function(){e.endScreenState(!0),clearInterval(s.current)}),12e4)},children:"Let\u2019s Go"})})]})}),Object(o.jsx)("iframe",{id:"game-frame",src:"/hunt_game/index.htm",frameBorder:"0",style:{height:"100%",width:"100%",zIndex:2,position:"absolute",display:e.currentMenuItem===A.Game?"block":"none"},className:'"main-frame" '.concat(g.isIOS?"lobby-ios":"")}
1),e.endGameScreen&&Object(o.jsx)("div",{className:"lobbyTutContainer",children:Object(o.jsxs)("div",{className:"tut-box game-inst e-s-t",children:[Object(o.jsx)("div",{className:"head",children:Object(o.jsx)("img",{src:"/assets/images/login/game-logo.png",alt:""})}),Object(o.jsx)("div",{className:"content",children:Object(o.jsxs)("div",{className:"inst-l-s",children:[Object(o.jsxs)("h1",{children:["Your ",Object(o.jsx)("br",{})," Score"]}),Object(o.jsx)("h1",{children:e.myScore})]})}),Object(o.jsx)("div",{className:"box-button",children:Object(o.jsx)("button",{onClick:e.backButton,children:"Back to Lobby"})})]})}),Object(o.jsxs)("div",{className:"".concat(!e.startGameScreen&&"visible-g"," game-dashboard"),children:[Object(o.jsx)("img",{src:"/assets/images/login/d-logo.png",alt:"",className:"d-logo"}),Object(o.jsx)("div",{className:"timer-div",children:Object(o.jsx)("p",{children:function(e){var t=e%60,n=Math.floor(e/60);return"".concat(n,":").concat(t<10?"0"+t:t)}(a)})}),Object(o.jsx)("span",{className:"d-line"}),Object(o.jsx)("div",{className:"d-items",children:Wn.map((function(e,t){return Object(o.jsxs)("div",{id:e,children:[Object(o.jsx)("img",{src:"/assets/images/login/".concat(e,".png"),alt:""}),Object(o.jsxs)("div",{className:"details",children:[Object(o.jsx)("p",{children:ve["".concat(e)]}),Object(o.jsx)("img",{src:"/assets/images/login/collected.png",alt:""})]})]},e)}))})]})]})},Qn=(n(631),[{style:{margin:"12% 25%",width:"9%"},link:"https://vimeo.com/637463923/13c65fa4b7",img:"/assets/images/Memory/1.png"},{style:{margin:"12% 39%",width:"9%"},link:"https://vimeo.com/637463552/ad26082c54",img:"/assets/images/Memory/2.png"},{style:{margin:"12% 53%",width:"9%"},link:"https://vimeo.com/637463435/0652a17858",img:"/assets/images/Memory/3.png"},{style:{margin:"12% 67%",width:"9%"},link:"https://vimeo.com/637463994/734e099904",img:"/assets/images/Memory/4.png"},{style:{margin:"12% 81%",width:"9%"},link:"https://vimeo.com/637463770/2239cd3b2f",img:"/assets/images/Memory/5.png"},{style:{margin:"25% 21.5%",width:"9%"},link:"https://vimeo.com/637464164/5d2115d7c8",img:"/assets/images/Memory/6.png"},{style:{margin:"21% 32%",width:"9%"},link:"https://vimeo.com/637464936/585415e54b",img:"/assets/images/Memory/7.png"},{style:{margin:"25% 41.5%",width:"9%"},link:"https://vimeo.com/637465880/b84ff9cfdc",img:"/assets/images/Memory/8.png"},{style:{margin:"25% 81%",width:"9%"},link:"https://vimeo.com/637466019/407a0445b9",img:"/assets/images/Memory/9.png"},{style:{margin:"21% 51.5%",width:"9%"},link:"https://vimeo.com/637465516/b406b81859",img:"/assets/images/Memory/10.png"},{style:{margin:"25% 61%",width:"9%"},link:"https://vimeo.com/637465293/f0e71630e2",img:"/assets/images/Memory/11.png"},{style:{margin:"21% 71%",width:"9%"},link:"https://vimeo.com/637465128/9a0de1f307",img:"/assets/images/Memory/12.png"},{style:{margin:"19% 90%",width:"9%"},link:"https://vimeo.com/639028483/94ea780aae",img:"/assets/images/Memory/13.png"},{style:{margin:"34% 64%",width:"11%"},link:"https://vimeo.com/637464655/d4b32c2d15",img:"/assets/images/Memory/14.png"},{style:{margin:"34% 26%",width:"11%"},link:"https://vimeo.com/637464142/e0aaab5f89",img:"/assets/images/Memory/15.png"},{style:{margin:"34% 44%",width:"11%"},link:"https://vimeo.com/637464254/3358303c09",img:"/assets/images/Memory/16.png"}]);var Jn=function(e){var t=e.showMediaModal,n=e.hideMemoryLane;return Object(o.jsxs)("div",{className:"memory__lane",style:{background:"url(/assets/images/Memory/bg.png) #fff"},children:[Object(o.jsxs)("div",{className:"m-header",onClick:function(e){e.preventDefault(),n()},children:[Object(o.jsx)("span",{style:{background:"#E4CF0E"}}),Object(o.jsx)("span",{style:{background:"#FF7B00"}}),Object(o.jsx)("span",{style:{background:"#445DED"}}),Object(o.jsx)("img",{src:"/assets/images/Memory/close.svg",alt:"",className:"close-m"})]}),Object(o.jsxs)("div",{className:"logo-header",children:[Object(o.jsx)("img",{src:"/assets/images/Memory/drive.png",alt:""}),Object(o.jsx)("img",{src:"/assets/images/Memory/logo.png",alt:""}),Object(o.jsx)("img",{src:"/assets/images/Memory/game-i.png",alt:""})]}),Object(o.jsxs)("div",{className:"m-body",children:[Object(o.jsx)("div",{className:"m-left",children:Object(o.jsx)("img",{src:"/assets/images/Memory/body-l.png",alt:""})}),Object(o.jsxs)("div",{className:"m-right",children:[Object(o.jsx)("img",{src:"/assets/images/Memory/lines.png",alt:"",className:"right"}),Object(o.jsxs)("div",{className:"overlay-i",children:[Object(o.jsx)("img",{src:"/assets/images/Memory/click.png",alt:"",style:{margin:"2.5% 46%",width:"24%"}}),Object(o.jsx)("img",{src:"/assets/images/Memory/r-1.png",alt:"",style:{margin:"12.5% 4%",width:"19%"}}),Object(o.jsx)("img",{src:"/assets/images/Memory/r-2.png",alt:"",style:{margin:"23% 7%",width:"14%"}}),Object(o.jsx)("img",{src:"/assets/images/Memory/r-3.png",alt:"",style:{margin:"35% 5%",width:"13%"}}),Qn.map((function(e,n){return Object(o.jsx)("img",{style:Object(x.a)({},e.style),src:e.img,className:"thumnails",onClick:function(){t(G,e.link)}},n)}))]})]})]}),Object(o.jsxs)("div",{className:"footer-m",children:[Object(o.jsx)("img",{src:"/assets/images/Memory/f-1.png",alt:""}),Object(o.jsx)("img",{src:"/assets/images/Memory/f-2.png",alt:""})]})]})},Zn=function(e){Object(m.a)(n,e);var t=Object(p.a)(n);function n(){var e;Object(u.a)(this,n);for(var a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];return(e=t.call.apply(t,[this].concat(i))).state={playCurrentAudio:!0,gotoZoomLink:"",showGotoZoom:!1,instructionVideo:!1,instructionVideoLink:"",startGameScreen:!0,endGameScreen:!1,alreadyCollected:!1,myScore:0,showMemoryLane:!1,playedCount:0,introVideoMuted:!1,isLinkLoaded:!1,mute:!1,funzone:!0,funzoneLnk:"https://storage.googleapis.com/sephora-da876.appspot.com/Intro.mp4",showIntro:!0,introLink:"https://storage.googleapis.com/sephora-da876.appspot.com/funzone-1.mp4",showRotate:!0,showClosedPopup:!1,restrictedZ
1ones:{},loading:!1,overlayImages:[],showOverlayPopup:!1,showLiveIframe:!1,gamePoints:[],gameLeaderBoard:[],UI:{menuItems:V,activeMenu:V[T.Prelobby],activeSubMenu:null,lastMenu:V[0],overlayMenu:null,MenuVisible:!0,isInteractable:!0,showMediaModal:!1,clicked:!1,showHelpdeskChat:!1,showLeaderboard:!1,showLeaderboardButton:!0,showSurveyPopup:!1,surveyDetails:null,showDBRSidePanel:!0,showStallChat:!1,showGlobalChat:!0,hideGlobalChat:!0},HelpdeskChat:{showChat:!0,showButton:!1},MediaModalInfo:{link:"",type:null},DBRVideoCall:{roomOptions:{t1:{publicRoomName:"team3"}},room:null,showVideoCall:!1,roomAdmin:null},TwilioVideoCall:{slot:null,room:null,showVideoCall:!1},stallChat:{id:""},audiLnk:Ie.link,lablink:Me.link,zoomlink:Ne.zoomlink,rmtpURL:Ie.rmtpURL,showImage:Ie.showImage,imageLink:Ie.imageLink,streamLink:Ie.streamLink,infolink:"/assets/content/sample.pdf",pressroom:"/assets/content/sample.pdf",gamezone:"/assets/content/sample.pdf",faceyoga:"/assets/content/sample.pdf",igfilter:"/assets/content/sample.pdf"},e.currentOverlayCallback=null,e.currentAudioRef=r.a.createRef(),e.AudioListenerRemoved=!1,e.coinsound=r.a.createRef(),e.anyFunction=function(t){switch(t&&"treasurehunt"!==t&&e.addHotspotAnalytics(t),t){case"memorylane":e.setState({showMemoryLane:!0});break;case"iggamer":e.showMediaModal(ae,{for:"igGame",bg:zn}),window.parent.mute&&window.parent.mute();break;case"treasurehunt":e.handleClick(null,V[T.Game]);break;case"infodesk":e.showMediaModal(Y,e.state.infolink),window.parent.mute&&window.parent.mute();break;case"igfilter":e.showMediaModal(ae,{for:"igFilter",bg:qn}),window.parent.mute&&window.parent.mute();break;default:console.log(t)}},e.forcePush=function(){Be.collection("forcePush").doc("pushToAudi").onSnapshot((function(t){t.data().push&&e.state.UI.activeMenu.id!==A.Lobby&&e.handleClick(null,V[T.Lobby])})),Be.collection("forcePush").doc("pushToLabs").onSnapshot((function(t){t.data().push&&e.state.UI.activeMenu.id!==A.Game&&e.handleClick(null,V[T.Game])})),Be.collection("forcePush").doc("pushToLobby").onSnapshot((function(t){t.data().push&&e.state.UI.activeMenu.id!==A.Prelobby&&e.handleClick(null,V[T.Prelobby])})),Be.collection("forcePush").doc("restricted").onSnapshot((function(t){t.exists&&e.setState({restrictedZones:t.data()})}))},e.leaderBoardListener=function(){Be.collection("tresureHunt").orderBy("score","desc").limit(10).onSnapshot((function(t){var n=[];t.forEach((function(e){n.push(Object(x.a)(Object(x.a)({},e.data()),{},{id:e.id}))})),e.setState({gameLeaderBoard:n})}))},e.updateHSL=function(){Be.collection(C).doc("lobbyStream").onSnapshot((function(t){t.data()&&t.data().link&&(window.parent.updateHLS&&window.parent.updateHLS(t.data().link),window.parent.firebaseLiveLink=t.data().link,e.setState({isLinkLoaded:!0}))}))},e.gameFunc=function(t){e.state.gamePoints.includes(t)||(document.getElementById("".concat(t)).classList.add("collected"),e.coinsound.current.audioEl.current.play(),e.setState((function(e){return{gamePoints:[].concat(Object(xn.a)(e.gamePoints),[ve["".concat(t)]])}}),(function(){if(8===e.state.gamePoints.length){var t=0;e.state.gamePoints.forEach((function(e){t+=e})),e.setState({endGameScreen:!0,myScore:t})}})))},e.checkforGameStatus=function(){Be.collection("tresureHunt").doc(e.context.email).onSnapshot((function(t){t.exists&&e.setState({myScore:t.data().score,playedCount:t.data().playedCount})}))},e.updatePlayedCount=function(){Be.runTransaction(function(){var t=Object(j.a)(f.a.mark((function t(n){var a;return f.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=Be.collection("tresureHunt").doc(e.context.email),t.next=3,n.get(a);case 3:if(!t.sent.exists){t.next=10;break}return t.next=7,n.update(a,{playedCount:Re.firestore.FieldValue.increment(1)});case 7:return t.abrupt("return");case 10:return t.next=12,n.set(a,{playedCount:1,score:0,name:e.context.displayName?e.context.displayName:e.context.email.split("@")[0]});case 12:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())},e.updateUserScore=function(){var t=0;
18!==e.state.gamePoints.length?e.state.gamePoints.forEach((function(e){t+=e})):t=e.state.myScore,Be.runTransaction(function(){var n=Object(j.a)(f.a.mark((function n(a){var i,s;return f.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=Be.collection("tresureHunt").doc(e.context.email),n.next=3,a.get(i);case 3:(s=n.sent).exists&&(s.data().score<t?a.update(i,{score:t}):e.setState({myScore:s.data().score}));case 5:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}())},e.gotoZoomListener=function(){Be.collection(C).doc("gotoStage").onSnapshot((function(t){t.exists&&e.setState({showGotoZoom:t.data().show,gotoZoomLink:t.data().link})}))},e.addRemainingTime=function(t){e.setState((function(e){return{myScore:e.myScore+t}}))},e.currentCanvas=function(t){[13].includes(t)?e.setState({playCurrentAudio:!1}):e.setState({playCurrentAudio:!0})},e.instructionVideoListener=function(){Be.collection("showflowVideos").doc("data").onSnapshot((function(t){t.exists&&e.setState({instructionVideo:t.data().show,instructionVideoLink:t.data().link,funzoneLnk:t.data().funzone})}))},e.componentDidMount=function(){e.updateHSL(),e.forcePush(),e.leaderBoardListener(),e.checkforGameStatus(),e.gotoZoomListener(),e.instructionVideoListener(),window.parent.currentCanvas=e.currentCanvas,window.parent.addRemainingTime=e.addRemainingTime,window.parent.locationChange=e.anyFunction,window.parent.gameitem=e.gameFunc,window.c=Object(pt.a)(e),window.addEventListener("click",e.playIntroAudio),e.dailycoSetup(),e.gettingMeetingRoomErrMessage(),window.zoomlink=Ne.zoomlink,Be.collection("Admin").doc("overlay").onSnapshot((function(t){e.setState({overlayImages:t.data().images?t.data().images:[]})})),rt((function(t,n){t?console.log(t):(window.zoomlink=n.DBRData.zoomlink,e.setState({audiLnk:n.AudiData.link,zoomlink:n.DBRData.zoomlink,rmtpURL:n.AudiData.rmtpURL,showImage:n.AudiData.showImage,imageLink:n.AudiData.imageLink,streamLink:n.AudiData.streamyard,infolink:n.links.infodesk,pressroom:n.links.pressroom,gamezone:n.links.gamezone,igfilter:n.links.igfilter,faceyoga:n.links.faceyoga,lablink:n.LabData.link,introLink:n.AudiData.introVideoLink}))}))},e.playIntroAudio=function(){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(x.a)(Object(x.a)({},e.UI),{},{activeMenu:e.UI.lastMenu,overlayMenu:null})}}))},e.handleCustomHotspotClick=function(t,n){t&&t.preventDefault(),n.id===Te.Survey&&e.setState((function(e){return{UI:Object(x.a)(Object(x.a)({},e.UI),{},{showSurveyPopup:!0,surveyDetails:n.links})}}))},e.handleClick=function(t,n,a,i){if(window.parent.audioFunc&&window.parent.audioFunc(),n.id!==A.videoPlayList){if(t&&t.preventDefault(),e.closeMediaModal(),e.state.UI.activeMenu.id!==A.Game||n.id!==A.MyProfile){if(e.setState({playCurrentAudio:!0,startGameScreen:!0,endGameScreen:!1,gamePoints:[]}),n.id===A.PhotoBooth)return e.showMediaModal(z,"/photobooth/index.html"),void e.addHotspotAnalytics("PhotoBooth");if(n.id===A.Lobby&&e.addComponentAnalytics(le,!0),n.id===A.MyProfile?window.parent.mute&&window.parent.mute():e.state.mute||window.parent.unmute&&window.parent.unmute(),e.state.UI.overlayMenu){if(n.id===e.state.UI.overlayMenu.id)return}else if(n.id===e.state.UI.activeMenu.id)return;i&&(e.currentOverlayCallback=i),n.id!==A.MyProfile?e.setState((function(e){return{showMemoryLane:!1,UI:Object(x.a)(Object(x.a)({},e.UI),{},{activeMenu:n,overlayMenu:null,lastMenu:e.UI.activeMenu,activeSubMenu:null,showHelpdeskChat:!1,showDBRSidePanel:!0,showStallChat:!1})}}),(function(){})):n.id===A.bdr?(e.handleHelpdeskChatClose(),e.handleVideoRoomSelection(t,n.room,(function(t){t||e.setState((function(e){return{UI:Object(x.a)(Object(x.a)({},e.UI),{},{activeMenu:n,overlayMenu:null,lastMenu:e.UI.activeMenu,activeSubMenu:n.subMenus[E],showHelpdeskChat:!1,showDBRSidePanel:!0,showStallChat:!1})}}))}))):e.setState((function(e){return{UI:Object(x.a)(Object(x.a)({},e.UI),{},{overlayMenu:n,lastMenu:e.UI.activeMenu})}}))}}else e.showMediaModal(z,"/digitalRack/index.html")},e.handleSubmenuItemClick=function(t,n){if(t&&t.preventDefault(),!e.state.UI.activeSubMenu||e.state.UI.activeSubMenu.id!==n.id
1){if(e.state.UI.activeMenu.id!==A.Audi||n.id!==R)return 7===n.id?(e.setState({showLiveIframe:!0}),void e.showMediaModal(z,e.state.streamLink)):void(6!==n.id?(n.id===D&&qe(),e.state.UI.activeMenu.id===A.bdr&&(n.id===B?e.setState((function(e){return{UI:Object(x.a)(Object(x.a)({},e.UI),{},{showDBRSidePanel:!0,activeSubMenu:n})}})):e.setState((function(e){return{UI:Object(x.a)(Object(x.a)({},e.UI),{},{activeSubMenu:n,showDBRSidePanel:!1})}}))),e.state.UI.activeMenu.id!==A.bdr&&e.setState((function(e){return{UI:Object(x.a)(Object(x.a)({},e.UI),{},{activeSubMenu:n,showDBRSidePanel:!1})}}))):e.setState({showOverlayPopup:!0}));e.handleClick(t,V[T.bdr])}},e.closeSubMenu=function(t){t&&t.preventDefault(),e.setState((function(e){return{UI:Object(x.a)(Object(x.a)({},e.UI),{},{activeSubMenu:null,showMediaModal:!1}),MediaModalInfo:Object(x.a)(Object(x.a)({},e.MediaModalInfo),{},{link:"",type:null})}}))},e.hideOverlayMenu=function(t){t&&t.preventDefault(),e.state.UI.overlayMenu&&e.setState((function(e){return{UI:Object(x.a)(Object(x.a)({},e.UI),{},{overlayMenu:null,showAskExpertError:!1})}})),e.currentOverlayCallback&&(e.currentOverlayCallback(),e.currentOverlayCallback=null)},e.showMediaModal=function(t,n){if(t!==Q)return t===X?(window.lastChatBotRef=n,n.enabled=!1,void e.handleHelpdeskChatbutton()):void e.setState((function(e){return{UI:Object(x.a)(Object(x.a)({},e.UI),{},{showMediaModal:!0}),MediaModalInfo:Object(x.a)(Object(x.a)({},e.MediaModalInfo),{},{link:n||"",type:t})}}));window.open(n,"_blank")},e.handleMedialModalFromOverlay=function(t,n){e.hideOverlayMenu(),e.showMediaModal(t,n)},e.closeMediaModal=function(){e.setState({showRotate:!0}),e.state.mute||window.parent.unmute&&window.parent.unmute(),e.setState((function(e){return{showLiveIframe:!1,UI:Object(x.a)(Object(x.a)({},e.UI),{},{showMediaModal:!1}),MediaModalInfo:Object(x.a)(Object(x.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===Y},e.handleHelpdeskChatClose=function(){window.lastChatBotRef&&(window.lastChatBotRef.enabled=!0),e.state.HelpdeskChat.showChat&&e.setState({HelpdeskChat:{showChat:!1,showButton:!0}})},e.handleHelpdeskChatbutton=function(){e.state.HelpdeskChat.showButton&&e.setState({HelpdeskChat:{showChat:!0,showButton:!1}})},e.handleLobbyInternalState=function(t){switch(t){case"Infodesk":e.setState((function(e){return{UI:Object(x.a)(Object(x.a)({},e.UI),{},{showHelpdeskChat:!0})}}));break;default:e.setState((function(e){return{UI:Object(x.a)(Object(x.a)({},e.UI),{},{showHelpdeskChat:!1,showStallChat:!1}),HelpdeskChat:{showChat:!1,showButton:!0}}}))}},e.handleSceneTutorial=function(t){"end"===t&&e.setState((function(e){return{UI:Object(x.a)(Object(x.a)({},e.UI),{},{isInteractable:!0})}}))},e.handleHotspotAnalytics=function(t){e.addHotspotAnalytics(t.id)},e.addComponentAnalytics=function(t,n){n&&(e.addHotspotAnalytics(t),e.addLocationAnalytics(t,n))},e.addLocationAnalytics=function(t,n){n&&$e(e.context,t)},e.addHotspotAnalytics=function(t){et(e.context,t)},e.addCustomHotspotAnalytics=function(t){tt(e.context,t)},e.handleVideoRoomSelection=function(){var t=Object(j.a)(f.a.mark((function t(n,a,i){return f.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n&&n.preventDefault(),t.prev=1,!e.state.DBRVideoCall.roomAdmin){t.next=7;break}if(e.state.DBRVideoCall.roomAdmin.roomName!==a.roomName){t.next=7;break}return e.setState((function(e){return{DBRVideoCall:Object(x.a)(Object(x.a)({},e.DBRVideoCall),{},{room:a})}})),i&&i(null),t.abrupt("return");case 7:return t.next=9,st(a.docName);case 9:t.sent?(e.setState((function(e){return{DBRVideoCall:Object(x.a)(Object(x.a)({},e.DBRVideoCall),{},{room:a})}})),i&&i(null)):(e.showInfoPopUp("Call has not started yet, please wait"),i&&i(!0)),t.next=17;break;case 13:t.prev=13,t.t0=t.catch(1),i&&i(!0),console.log(t.t0);case 17:case"end":return t.stop()}}),t,null,[[1,13]])})));return function(e,n,a){return t.apply(this,arguments)}}(),e.dailycoSetup=function(){at(e.context).then((function(t){e.setState((function(e){return{DBRVideoCall:Object(x.a)(Object(x.a)({},e.DBRVideoCall),{},{roomAdmin:t})}}))})).catch((function(e){"NoAdmin"!==e.code&&console.log(e)})),it().then((function(t){e.handleVideoRoomSelection(null,t[Object.keys(t)[0]]),e.setState((function(e){return{DBRVideoCall:Object(x.a)(Object(x.a)({},e.DBRVideoCall),{},{roomOptions:t})}}))})).catch((function(e){}))},e.closeDBRVideoCallSidePanel=function(){e.setState((function(e){return{UI:Object(x.a)(Object(x.a)({},e.UI),{},{showDBRSidePanel:!1,activeSubMenu:null})}}))},e.openDBRZoomLink=function(e,t){t&&t.preventDefault(),window.location.href=e},e.gettingMeetingRoomErrMessage=Object(j.a)(f.a.mark((function t(){var n;return f.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Be.collection(S).doc(M).get();
1case 2:(n=t.sent).data&&(e.MeetingRoomMessage=n.data().meetingRoomMsg,e.busyRoomMessage=n.data().busyRoomMessage);case 4:case"end":return t.stop()}}),t)}))),e.deleteOneOverlayImage=function(t,n,a){if(a.enabled)ft()("Selected Image is in use!");else{e.setState({loading:!0});var i=e.state.overlayImages;delete i[n],i=i.filter((function(e){return null!==e})),Be.collection("Admin").doc("overlay").set({images:Object(xn.a)(i)}).then((function(){e.setState({loading:!1})})).catch((function(t){console.log(t),e.setState({loading:!1})}))}},e.checkAvailableVideoCallRoom=function(){var t=Object(j.a)(f.a.mark((function t(n,a){var i,s;return f.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n.preventDefault(),t.prev=1,t.next=4,ot(e.context.email,a);case 4:i=t.sent,s={roomId:i.id,roomName:i.name,roomParentId:"UltraTech",isAdmin:i.isAdmin},e.setState((function(e){return{TwilioVideoCall:Object(x.a)(Object(x.a)({},e.TwilioVideoCall),{},{room:s,showVideoCall:!0,slot:i,stallId:a})}})),t.next=14;break;case 9:t.prev=9,t.t0=t.catch(1),console.log(t.t0),"NoRoomAvaliable"===t.t0.code&&ft()({text:"Videocall rooms are occupied. Please come back later, Thanks."}),e.setState((function(e){return{UI:Object(x.a)(Object(x.a)({},e.UI),{},{showAskExpertError:!0})}}));case 14:case"end":return t.stop()}}),t,null,[[1,9]])})));return function(e,n){return t.apply(this,arguments)}}(),e.clearTwilioVideoCallRoom=Object(j.a)(f.a.mark((function t(){return f.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:try{e.setState((function(e){return{TwilioVideoCall:Object(x.a)(Object(x.a)({},e.TwilioVideoCall),{},{showVideoCall:!1}),UI:Object(x.a)(Object(x.a)({},e.UI),{},{overlayMenu:null,showAskExpertError:!1})}})),e.state.TwilioVideoCall.slot.id?setTimeout(Object(j.a)(f.a.mark((function t(){return f.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ct(e.state.TwilioVideoCall.slot.id,e.context.email,e.state.TwilioVideoCall.stallId);case 2:e.setState((function(e){return{TwilioVideoCall:Object(x.a)(Object(x.a)({},e.TwilioVideoCall),{},{slot:null,room:null})}}));case 3:case"end":return t.stop()}}),t)}))),3e3):console.error("No Room Id found for user")}catch(n){console.log(n)}case 1:case"end":return t.stop()}}),t)}))),e.currentSlotRest=function(){var t=Object(j.a)(f.a.mark((function t(n){return f.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n&&n.preventDefault(),t.prev=1,!e.state.TwilioVideoCall.slot.id){t.next=7;break}return t.next=5,ct(e.state.TwilioVideoCall.slot.id,"-1",e.state.TwilioVideoCall.stallId);case 5:t.next=8;break;case 7:console.error("No Room Id found for user");case 8:t.next=13;break;case 10:t.prev=10,t.t0=t.catch(1),console.log(t.t0);case 13:case"end":return t.stop()}}),t,null,[[1,10]])})));return function(e){return t.apply(this,arguments)}}(),e.showInfoPopUp=function(e){ft()({title:e,className:"video-swal-modal",button:"continue"})},e.showMeetingRoomPopup=function(){e.showInfoPopUp(e.MeetingRoomMessage)},e.showMeetingRoomBusyPopup=function(){e.showInfoPopUp(e.busyRoomMessage)},e.updateOverlayImage=function(t,n){e.setState({loading:!0}),Be.collection("backStage").doc("staticData").update({AudiData:{imageLink:t,link:e.state.audiLnk,showImage:e.state.showImage,rmtpURL:e.state.rmtpURL}}).then((function(){e.setState((function(a){var i=a.overlayImages.map((function(e){return Object(x.a)(Object(x.a)({},e),{},{enabled:!1})}));return i[n]={enabled:!0,link:t},Be.collection("Admin").doc("overlay").set({images:Object(xn.a)(i)}).then((function(){e.setState({loading:!1})})).catch((function(t){console.log(t),e.setState({loading:!1})})),e.setState({loading:!1}),i}))})).catch((function(){e.setState({loading:!1})}))},e.handleStallCallHotspot=function(t,n){n.hotspotType===ee&&e.checkAvailableVideoCallRoom(t,n.roomDetails.id)},e.handleStallChatHotspot=function(t,n){n.hotspotType===te&&(n.roomDetails?e.setState((function(e){return{UI:Object(x.a)(Object(x.a)({},e.UI),{},{showStallChat:!0}),stallChat:{id:n.roomDetails.id}}})):e.showInfoPopUp("We are having some issue in opening chat for you. Please come back later"))},e.uploadFile=function(t){e.setState({loading:!0}),Ee.ref("/images/".concat(t.target.files[0].name)).put(t.target.files[0]).on("state_changed",(function(e){}),(function(t){console.log(t),e.setState({loading:!1})}),(function(){Ee.ref("images").child(t.target.files[0].name).getDownloadURL().then((function(t){Be.collection("Admin").doc("overlay").update({images:[].concat(Object(xn.a)(e.state.overlayImages),[{enabled:!1,link:t}])}).then((function(){e.setState({loading:!1})}
1)).catch((function(){e.setState({loading:!1})}))}))}))},e.closePopup=function(){e.setState({showIntro:!1}),localStorage.setItem("introVisited",!0)},e.handleStallChatHotspotClose=function(t){t&&t.preventDefault(),e.setState((function(e){return{UI:Object(x.a)(Object(x.a)({},e.UI),{},{showStallChat:!1}),stallChat:{id:""}}}))},e.showOverlayOrNot=function(t){e.setState({loading:!0}),Be.collection("backStage").doc("staticData").update({AudiData:{imageLink:e.state.imageLink,link:e.state.audiLnk,showImage:t.target.checked,rmtpURL:e.state.rmtpURL}}).then((function(){e.setState({loading:!1})})).catch((function(){e.setState({loading:!1})}))},e}return Object(h.a)(n,[{key:"componentWillUnmount",value:function(){this.AudioListenerRemoved||(this.AudioListenerRemoved=!0,window.removeEventListener("click",this.playIntroAudio)),window.audiListener&&window.audiListener()}},{key:"showInfoPopUp",value:function(e){ft()({title:e,icon:"info",className:"video-swal-modal",button:"continue"})}},{key:"render",value:function(){var e=this;return Object(o.jsxs)(o.Fragment,{children:[Object(o.jsxs)("div",{className:"wrapper",children:[this.state.showClosedPopup&&Object(o.jsx)("div",{className:"closedPopup",children:Object(o.jsxs)("div",{children:[Object(o.jsx)("img",{src:Hn,alt:"",onClick:function(){e.setState({showClosedPopup:!1})}}),Object(o.jsx)("h2",{children:"Playing limit full"})]})}),this.state.alreadyCollected&&Object(o.jsx)("div",{className:"closedPopup",children:Object(o.jsxs)("div",{children:[Object(o.jsx)("img",{src:Hn,alt:"",onClick:function(){e.setState({alreadyCollected:!1})}}),Object(o.jsx)("h2",{children:"Already Collected"})]})}),this.state.showGotoZoom&&Object(o.jsx)("div",{className:"lobbyTutContainer",children:Object(o.jsxs)("div",{className:"tut-box zoom-p",children:[Object(o.jsx)("div",{className:"head",children:Object(o.jsx)("img",{src:"/assets/images/login/login-logo.png",alt:""})}),Object(o.jsxs)("div",{className:"content",style:{display:"flex",flexDirection:"column",alignItems:"center"},children:[Object(o.jsx)("p",{children:"Step: 1"}),Object(o.jsxs)("h2",{style:{display:"flex",alignItems:"center"},children:["Download Zoom Backgrounds"," ",Object(o.jsx)("div",{className:"d-arrow",style:{position:"relative",right:"unset",bottom:"unset",zIndex:"unset",marginLeft:"1rem"},onClick:function(e){e.preventDefault();var t=document.createElement("a"),n=document.createElement("a");t.setAttribute("download","Background1.jpg"),n.setAttribute("download","Background2.jpg"),t.setAttribute("href","/assets/images/zoom-bg-1.jpg"),n.setAttribute("href","/assets/images/zoom-bg-2.jpg"),t.click(),n.click()},children:Object(o.jsx)(Dn.a,{})})]}),Object(o.jsx)("br",{}),Object(o.jsx)("p",{children:"Step: 2"})]}),Object(o.jsx)("div",{className:"box-button",style:{display:"flex",flexDirection:"column",justifyContent:"center"},children:Object(o.jsx)("button",{onClick:function(){e.showMediaModal(Q,e.state.gotoZoomLink)},children:"Join Zoom Meeting"})})]})}),Object(o.jsxs)("section",{className:"loggedin-page has-right-menu min-height-full min-height-full image-bg ".concat(g.isIOS?"ios-page":""," ").concat(g.isIPad13?"on-ipad":""," ").concat(window.parent.ios_V&&15===window.parent.ios_V?"ios-15":""," ").concat(window.parent.ios_V?15!==window.parent.ios_V||g.isMobileSafari?"":"ios-15-ch":""," ").concat(window.parent.ios_V2&&window.Number(window.parent.ios_V2)>=window.Number("14.2")?"ios-14-2":""),children:[this.state.showMemoryLane&&Object(o.jsx)(Jn,{showMediaModal:this.showMediaModal,hideMemoryLane:function(){e.setState({showMemoryLane:!1})}}),!this.state.showMemoryLane&&this.state.UI.activeMenu.id!==A.Game&&this.state.UI.activeMenu.id!==A.LeaderBoard&&Object(o.jsx)(o.Fragment,{children:this.state.mute?Object(o.jsx)("div",{className:"mute ".concat(g.isIOS?"ios-mute":""),style:{right:g.isIOS?"16rem":"19rem"},onClick:function(){e.setState({mute:!1})},children:Object(o.jsx)(Pn.a,{color:"#fff"})}):Object(o.jsx)("div",{className:"mute ".concat(g.isIOS?"ios-mute":""),style:{right:g.isIOS?"16rem":"19rem"},onClick:function(){e.setState({mute:!0})},children:Object(o.jsx)(Rn.a,{color:"#fff"})})}),this.state.showOverlayPopup&&Object(o.jsx)("div",{className:"overlay__main",children:Object(o.jsxs)("div",{className:"upload__div",children:[Object(o.jsxs)("div",{className:"toggle",children:[Object(o.jsx)("h2",{children:"SHOW / HIDE"}),Object(o.jsxs)("label",{className:"switch",children:[Object(o.jsx)("input",{type:"checkbox",checked:this.state.showImage,onChange:function(t){e.showOverlayOrNot(t)}}),Object(o.jsx)("span",{className:"slider"})]})]}),Object(o.jsx)("img",{src:En,alt:"",className:"right__wing"}),Object(o.jsx)("img",{src:Vn,alt:"",className:"bottom__wing"}),this.state.loading?Object(o.jsx)("div",{className:"loading__cont",children:Object(o.jsx)("img",{src:dt,alt:"",style:{maxWidth:"5rem"}})}):"",Object(o.jsxs)("div",{className:"img__heading",children:[Object(o.jsx)("h1",{children:"UPLOAD"}),Object(o.jsx)("div",{className:"upload__line"})]}),Object(o.jsxs)("div",{className:"images__area",children:[this.state.overlayImages.map((function(t,n){return Object(o.jsxs)("div",{className:"image__cont",children:[Object(o.jsx)("div",{className:"delete__img",onClick:function(a){e.deleteOneOverlayImage(a,n,t)},children:Object(o.jsx)("img",{src:_n,alt:""})}),t.enabled&&Object(o.jsx)("div",{className:"tick",children:Object(o.jsx)("img",{src:Fn,alt:""})}),Object(o.jsx)("img",{src:t.link,onClick:function(){e.updateOverlayImage(t.link,n)}}),";"]},n)})),Object(o.jsxs)("div",{className:"file__upload",children:[Object(o.jsx)("label",{htmlFor:"overlay-upload",children:Object(o.jsxs)("div",{children:[Object(o.jsx)("img",{src:Bn,alt:""}),Object(o.jsx)("h1",{children:"Add Image"})]})}),Object(o.jsx)("input",{id:"overlay-upload",type:"file",onChange:function(t){e.uploadFile(t)}})]})]}
1),Object(o.jsx)("div",{className:"done__btn",children:Object(o.jsxs)(Tn.a,{variant:"contained",color:"secondary",className:"img__conti__btn",onClick:function(t){e.setState({showOverlayPopup:!1})},children:["DONE",Object(o.jsx)("img",{src:rn,alt:"",className:"arrow"})]})})]})}),Object(o.jsx)(jn,{firestore:Be}),this.state.showIntro&&Object(o.jsx)("article",{style:{zIndex:1e9,width:"100%",position:"absolute",top:0,left:0},className:"img-bg videoBox h-100 zIndex-16",id:"play",children:Object(o.jsx)("div",{className:"media-modal",children:Object(o.jsxs)(o.Fragment,{children:[Object(o.jsxs)("div",{className:"media-modal-content",children:[Object(o.jsx)(vt.a,{loop:!1,config:{youtube:{playerVars:{showinfo:1}}},playing:!0,style:{position:"relative",zIndex:"2"},url:"".concat(this.state.introLink),controls:!0,muted:this.state.introVideoMuted,playsinline:!0,width:"100%",height:"100%",onPlay:function(){window.parent.mute&&window.parent.mute()},onEnded:function(){e.closePopup()}}),Object(o.jsx)("div",{className:"blocker",style:{left:"0",pointerEvents:"none",zIndex:"1"},children:Object(o.jsx)("div",{className:"lds-dual-ring"})})]}),Object(o.jsx)("div",{style:{width:"3rem",height:"70%",position:"relative"},children:Object(o.jsx)("img",{src:Oe.CLOSEBUTTON,className:"closeButton-mediaModal",alt:"MediaModalCLoseButton",style:{position:"absolute",right:"-1rem",top:g.isIOS?"0":"-3rem",width:"3rem"},onClick:function(){e.setState({showIntro:!1}),e.closeMediaModal(),localStorage.setItem("introVisited",!0)}})})]})})}),this.state.funzone&&this.state.UI.activeMenu.id===A.Lobby&&Object(o.jsx)("article",{style:{zIndex:1e9,width:"100%",position:"absolute",top:0,left:0},className:"img-bg videoBox h-100 zIndex-16",id:"play",children:Object(o.jsx)("div",{className:"media-modal",children:Object(o.jsxs)(o.Fragment,{children:[Object(o.jsxs)("div",{className:"media-modal-content",children:[Object(o.jsx)(vt.a,{loop:!1,config:{youtube:{playerVars:{showinfo:1}}},playing:!0,style:{position:"relative",zIndex:"2"},url:"".concat(this.state.funzoneLnk),controls:!0,muted:this.state.introVideoMuted,playsinline:!0,width:"100%",height:"100%",onPlay:function(){window.parent.mute&&window.parent.mute()},onEnded:function(){e.closePopup(),e.setState({funzone:!1})}}),Object(o.jsx)("div",{className:"blocker",style:{left:"0",pointerEvents:"none",zIndex:"1"},children:Object(o.jsx)("div",{className:"lds-dual-ring"})})]}),Object(o.jsx)("div",{style:{width:"3rem",height:"70%",position:"relative"},children:Object(o.jsx)("img",{src:Oe.CLOSEBUTTON,className:"closeButton-mediaModal",alt:"MediaModalCLoseButton",style:{position:"absolute",right:"-1rem",top:g.isIOS?"0":"-3rem",width:"3rem"},onClick:function(){e.setState({funzone:!1}),e.closeMediaModal()}})})]})})}),this.state.instructionVideo&&this.state.UI.activeMenu.id===A.Lobby&&!this.state.showMemoryLane&&!this.state.funzone&&Object(o.jsx)("article",{style:{zIndex:1e9,width:"100%",position:"absolute",top:0,left:0},className:"img-bg videoBox h-100 zIndex-16",id:"play",children:Object(o.jsx)("div",{className:"media-modal",children:Object(o.jsxs)(o.Fragment,{children:[Object(o.jsxs)("div",{className:"media-modal-content",children:[Object(o.jsx)(vt.a,{loop:!1,config:{youtube:{playerVars:{showinfo:1}}},playing:!0,style:{position:"relative",zIndex:"2"},url:"".concat(this.state.instructionVideoLink),controls:!0,muted:this.state.introVideoMuted,playsinline:!0,width:"100%",height:"100%",onPlay:function(){window.parent.mute&&window.parent.mute()},onEnded:function(){e.closePopup(),e.setState({instructionVideo:!1})}}),Object(o.jsx)("div",{className:"blocker",style:{left:"0",pointerEvents:"none",zIndex:"1"},children:Object(o.jsx)("div",{className:"lds-dual-ring"})})]}),Object(o.jsx)("div",{style:{width:"3rem",height:"70%",position:"relative"},children:Object(o.jsx)("img",{src:Oe.CLOSEBUTTON,className:"closeButton-mediaModal",alt:"MediaModalCLoseButton",style:{position:"absolute",right:"-1rem",top:g.isIOS?"0":"-3rem",width:"3rem"},onClick:function(){e.setState({instructionVideo:!1}),e.closeMediaModal()}})})]})})}),this.state.UI.showMediaModal&&Object(o.jsx)(o.Fragment,{children:Object(o.jsx)("article",{style:{zIndex:1e10,width:"100%",position:"absolute",top:0,left:0},className:"img-bg videoBox h-100 zIndex-16",id:"play",children:Object(o.jsxs)("div",{className:"media-modal",children:[this.state.MediaModalInfo.type===J&&Object(o.jsx)(Jt,{videoData:ye,close:function(){return e.closeMediaModal()}}),this.state.MediaModalInfo.type===ie&&Object(o.jsxs)(o.Fragment,{children:[Object(o.jsx)("div",{className:"qr__popup",style:{height:"70vh",width:"calc(70vh * 0.5)",background:"#fff url
1(".concat(this.state.MediaModalInfo.link.bg,")"),backgroundPosition:"center",backgroundSize:"cover",backgroundRepeat:"no-repeat"}}),Object(o.jsx)("div",{style:{width:"3rem",height:"70vh",position:"relative"},children:Object(o.jsx)("img",{src:Oe.CLOSEBUTTON,className:"closeButton-mediaModal",alt:"MediaModalCLoseButton",style:{position:"absolute",right:"-1rem",top:g.isIOS?"0":"-3rem",width:"3rem"},onClick:this.closeMediaModal})})]}),this.state.MediaModalInfo.type===ae&&Object(o.jsx)(o.Fragment,{children:Object(o.jsx)("div",{className:"qr__popup",style:{height:"70vh",width:"calc(70vh * 1.77)",background:"#fff url(".concat(this.state.MediaModalInfo.link.bg,")"),backgroundPosition:"center",backgroundSize:"cover",backgroundRepeat:"no-repeat"}})}),this.state.MediaModalInfo.type===Z&&Object(o.jsx)(In,{data:this.state.MediaModalInfo.link,close:function(){return e.closeMediaModal()}}),this.state.MediaModalInfo.type===ne&&Object(o.jsxs)(o.Fragment,{children:[Object(o.jsxs)("div",{className:"qr__popup",children:[Object(o.jsx)("h2",{children:this.state.MediaModalInfo.link.text}),Object(o.jsx)("img",{src:this.state.MediaModalInfo.link.img,alt:""})]}),Object(o.jsx)("div",{style:{width:"3rem",height:"50%",position:"relative"},children:Object(o.jsx)("img",{src:Oe.CLOSEBUTTON,className:"closeButton-mediaModal",alt:"MediaModalCLoseButton",style:{position:"absolute",right:"-1rem",top:g.isIOS?"0":"-3rem",width:"3rem"},onClick:this.closeMediaModal})})]}),this.state.MediaModalInfo.type===Y&&Object(o.jsx)(o.Fragment,{children:Object(o.jsx)("iframe",{title:"pdf",className:"media-modal-content pdf-content",src:"".concat(this.state.MediaModalInfo.link,"?page=hsn#toolbar=1&view=FitH")})}),this.state.MediaModalInfo.type===z&&Object(o.jsxs)(o.Fragment,{children:[this.state.showLiveIframe&&Object(o.jsx)("div",{className:"stream__header"}),Object(o.jsx)("iframe",{allowvr:"yes",allowfullscreen:!0,mozallowfullscreen:"true",webkitallowfullscreen:"true",allow:"camera *;microphone * vr; xr; accelerometer; magnetometer; gyroscope; autoplay;",title:"iframe",className:"media-modal-content-iframe ".concat(this.state.showLiveIframe&&"fullscreen-iframe"),src:this.state.MediaModalInfo.link})]}),this.state.MediaModalInfo.type===G&&Object(o.jsxs)(o.Fragment,{children:[Object(o.jsxs)("div",{className:"media-modal-content",children:[Object(o.jsx)(vt.a,{config:{youtube:{playerVars:{showinfo:1}}},style:{position:"relative",zIndex:"2"},playing:!0,url:this.state.MediaModalInfo.link,controls:!0,width:"100%",height:"100%"}),Object(o.jsx)("div",{className:"blocker",style:{left:"0",pointerEvents:"none",zIndex:"1"},children:Object(o.jsx)("div",{className:"lds-dual-ring"})})]}),Object(o.jsx)("div",{style:{width:"3rem",height:"70%",position:"relative"},children:Object(o.jsx)("img",{src:Oe.CLOSEBUTTON,className:"closeButton-mediaModal",alt:"MediaModalCLoseButton",style:{position:"absolute",right:"-1rem",top:g.isIOS?"0":"-3rem",width:"3rem"},onClick:this.closeMediaModal})})]}),this.state.MediaModalInfo.type===W&&Object(o.jsx)("img",{title:"image",className:"media-modal-content-image",src:this.state.MediaModalInfo.link,alt:"mediaModalImage"}),this.state.MediaModalInfo.type!==J&&this.state.MediaModalInfo.type!==Z&&this.state.MediaModalInfo.type!==ne&&this.state.MediaModalInfo.type!==G&&this.state.MediaModalInfo.type!==ie&&Object(o.jsx)("img",{src:Oe.CLOSEBUTTON,className:"closeButton-mediaModal",alt:"MediaModalCLoseButton",onClick:this.closeMediaModal})]})})}),this.state.UI.activeMenu.id===A.Prelobby&&Object(o.jsx)(Tt,{isImageScene:g.isIOS||window.parent.isMac15,initalImage:Oe.LOBBYLOOP,ShowMediaModal:this.showMediaModal,initialVideo:H.LOBBYLOOP,firstVideoFrame:Oe.LOBBYLOOP,initialHotspot:Ue,globalBackButton:!1,changeComponenet:this.handleClick,ratio:2.33,sceneName:"PreLobby",showTut:!1,tutComponent:hn,showingTutorialEvent:this.handleSceneTutorial,addAnalytics:function(t){return e.addComponentAnalytics(me,t)}}),this.state.UI.activeMenu.id===A.Lobby&&Object(o.jsx)("iframe",{src:"/lastBuild/lastBuildn/index.htm",frameBorder:"0",style:{height:"100vh",width:"100%",zIndex:2,position:"relative"},className:'"main-frame" '.concat(g.isIOS?"lobby-ios":"")}
1),this.state.UI.activeMenu.id===A.LeaderBoard&&Object(o.jsx)(Gn,{context:this.context,scores:this.state.gameLeaderBoard,yScores:this.state.myScore,backToLobby:function(t){e.handleClick(t,V[T.Lobby])}}),this.state.UI.activeMenu.id===A.Game&&Object(o.jsx)(o.Fragment,{children:Object(o.jsx)(Yn,{handleClick:this.handleClick,context:this.context,updatePlayedCount:this.updatePlayedCount,startGameScreen:this.state.startGameScreen,stratScreneState:function(t){e.setState({startGameScreen:t})},endScreenState:function(t){var n=0;e.state.gamePoints.forEach((function(e){n+=e})),e.setState({endGameScreen:t,myScore:n})},myScore:this.state.myScore,currentMenuItem:this.state.UI.activeMenu.id,endGameScreen:this.state.endGameScreen,backButton:function(t){e.updateUserScore(),e.handleClick(t,V[T.Lobby])}})}),this.state.UI.activeMenu.id===A.Lobby&&Object(o.jsx)(o.Fragment,{children:this.state.UI.showHelpdeskChat&&Object(o.jsx)(o.Fragment,{children:this.context.email&&this.state.HelpdeskChat.showChat&&Object(o.jsx)(o.Fragment,{children:Object(o.jsx)(Sn,{channel:this.context.email,user:{id:this.context.email,name:this.context.displayName},closeChat:this.handleHelpdeskChatClose,visibility:!0})})})}),this.state.UI.activeSubMenu&&this.state.UI.activeMenu.id===A.bdr&&this.state.UI.activeSubMenu.id===U&&Object(o.jsxs)("div",{className:"stallChatContainer stallChatContainer-global",children:[Object(o.jsx)("img",{src:Oe.CLOSEBUTTON,className:"closeButton-mediaModal",alt:"MediaModalCLoseButton",onClick:function(){return e.setState((function(e){return{UI:Object(x.a)(Object(x.a)({},e.UI),{},{activeSubMenu:null})}}))}}),Object(o.jsx)("iframe",{src:"".concat(je),title:"publicChat"}),Object(o.jsx)("div",{className:"blocker ".concat(this.state.UI.fadeIntroImage?"d-none":""),style:{zIndex:"-1"},children:Object(o.jsx)("div",{className:"lds-dual-ring"})})]}),this.state.UI.showGlobalChat&&this.state.UI.hideGlobalChat&&this.state.UI.activeMenu.id!==A.Game&&Object(o.jsx)("div",{className:"chatButton",style:this.state.UI.activeMenu&&this.state.UI.activeMenu.id===A.Learning?{right:"auto",left:"0",zIndex:"2"}:{zIndex:"2",display:this.state.UI.activeMenu&&this.state.UI.activeMenu.id===A.Networking?"none":"flex"},onClick:function(){return e.setState((function(e){return{UI:Object(x.a)(Object(x.a)({},e.UI),{},{hideGlobalChat:!1})}}))},children:"CHAT"}),this.state.UI.showGlobalChat&&this.state.UI.activeMenu.id!==A.Game&&Object(o.jsxs)("div",{className:"stallChatContainer stallChatContainer-global",style:this.state.UI.activeMenu&&this.state.UI.activeMenu.id===A.Learning?{right:"auto",left:"0",pointerEvents:this.state.UI.hideGlobalChat?"none":"all"}:{right:"0",left:"auto",pointerEvents:this.state.UI.hideGlobalChat?"none":"all"},children:[Object(o.jsx)("img",{src:Oe.CLOSEBUTTON,className:"closeButton-mediaModal ".concat(this.state.UI.hideGlobalChat?"d-none":""," chat-img"),alt:"MediaModalCLoseButton",onClick:function(){return e.setState((function(e){return{UI:Object(x.a)(Object(x.a)({},e.UI),{},{hideGlobalChat:!0})}}))}}),Object(o.jsx)("iframe",{src:"".concat(je),className:"".concat(this.state.UI.hideGlobalChat?"d-none":""),title:"publicChat"}),Object(o.jsx)("div",{className:"blocker ".concat(this.state.UI.hideGlobalChat?"d-none":""," ").concat(this.state.UI.fadeIntroImage?"d-none":""),style:{zIndex:"-1"},children:Object(o.jsx)("div",{className:"lds-dual-ring ".concat(this.state.UI.hideGlobalChat?"d-none":"")})})]}),Object(o.jsxs)("footer",{className:"footerBox ".concat(g.isIOS?"footer-ios":""),children:[this.state.UI.overlayMenu&&Object(o.jsx)(o.Fragment,{children:this.state.UI.overlayMenu.id===A.MyProfile&&Object(o.jsx)("div",{children:Object(o.jsx)(yt,{mute:this.state.mute,activeMenu:this.state.UI.activeMenu,close:this.hideOverlayMenu,ShowMediaModal:this.handleMedialModalFromOverlay})})}),this.state.UI.activeMenu&&!this.state.UI.activeMenu.subMenus&&Object(o.jsx)(gt,{items:this.state.UI.menuItems,activeItemId: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(o.jsx)(gt,{items:this.state.UI.activeMenu.subMenus,activeItemId:this.state.UI.activeSubMenu?this.state.UI.activeSubMenu.id:-1,onMenuItemClick:this.handleSubmenuItemClick,canInteract:!0,backButton:!0,onBackButtonClick:function(t){e.state.UI.activeMenu.id!==A.Lobby&&e.state.UI.activeMenu.id!==A.Game||e.handleClick(t,V[T.Prelobby],!1)}}),this.state.UI.activeSubMenu&&(this.state.UI.activeMenu.id===A.Audi||this.state.UI.activeMenu.id===A.bdr)&&Object(o.jsxs)(o.Fragment,{children:[this.state.UI.activeSubMenu.id===P&&Object(o.jsx)("div",{className:"submenu-container active expended",children:Object(o.jsx)(qt,{headerName:"Q&A",onHeadingClick:this.closeSubMenu,QNACollection:"qna-dbr",QNAReplyCollection:"qnaReply-dbr",canReply:!1,moderated:!1})}),this.state.UI.activeSubMenu.id===R&&Object(o.jsx)("div",{className:"submenu-container active expended",children:Object(o.jsx)(Qt,{onHeadingClick:this.closeSubMenu,PollAdmin_Col:"pollAdmin",PollAdmin_Doc:"adminAccess",Poll_Doc:"poll-dbr"})})]})]})]})]}),g.isIOS&&this.state.mute?Object(o.jsx)(o.Fragment,{}):Object(o.jsx)(o.Fragment,{children:this.state.playCurrentAudio&&this.checkIfAudioCanPlayUnderMediaModal()&&this.state.UI.activeMenu.id!==A.Game&&!this.state.showMemoryLane&&!this.state.showIntro&&!this.state.instructionVideo&&!this.state.funzone&&Object(o.jsx)(pn.a,{src:"/3dAssets/music/ambientMusic.mp3",autoPlay:!0,volume:this.state.mute?0:.04,loop:!0,preload:"auto",ref:this.currentAudioRef})}),Object(o.jsx)(pn.a,{src:Un,autoPlay:!1,volume:(this.state.mute,.5),loop:!1,preload:"auto",ref:this.coinsound,onEnded:function(){e.coinsound.current.audioEl.current.load()}}),this.state.showRotate&&Object(o.jsxs)("div",{id:"rotate",children:[Object(o.jsx)("div",{className:"phone",children:" "}),Object(o.jsx)("div",{className:"message",children:"Please rotate your device! "})]})]})}}]),n}(c.Component);Zn.contextType=ht;var Kn=Zn,Xn=function(e){Object(m.a)(n,e);var t=Object(p.a)(n);function n(){var e,a;Object(u.a)(this,n);for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];return(a=t.call.apply(t,[this].concat(s))).state=(e={loading:!1,canEnter:!1,imageLoaded:!1},Object(v.a)(e,"loading",!0),Object(v.a)(e,"showIntro",!1),Object(v.a)(e,"live",!1),e),a.getLiveStatus=function(){Be.collection(C).doc("liveStatus").onSnapshot((function(e){e.exists&&(window.parent.eventLive=e.data().live,a.setState({live:e.data().live}))}))},a.getCurrentTimeStampV2=function(){return new Promise(function(){var e=Object(j.a)(f.a.mark((function e(t,n){return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t("".concat((new Date).getFullYear(),"-").concat((new Date).getMonth()+1,"-").concat((new Date).getDate()));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}())},a.getSpeakersUid=function(){return new Promise((function(e,t){try{Be.collection("Admin").doc("AdminUsers").get().then((function(t){t.exists&&(t.data().speakersUID.includes(a.context.uid
1)?window.isSpeaker=!0:window.isSpeaker=!1,e(""))}))}catch(n){console.log(n),t("")}}))},a.videoCallAdmin=function(){return new Promise((function(e,t){try{Be.collection("dailyco").doc("East&North").get().then((function(t){t.exists&&(t.data().admin.includes(a.context.uid)?(window.isSpeaker=!0,e(!0)):(window.isSpeaker=!1,e(!1)))}))}catch(n){t("")}}))},a.checkIfSpearker=function(){return new Promise((function(e,t){Be.collection("Admin").doc("speakers").onSnapshot((function(t){t.data().UID.includes(a.context.uid)?(window.isSpeaker=!0,a.setState({loading:!a.state.loading}),e()):(window.isSpeaker=!1,a.setState({loading:!a.state.loading}),e())}))}))},a.appConfig=function(){var e=Object(j.a)(f.a.mark((function e(t){var n,i;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a.setState({loading:!0}),e.prev=1,a.setState({canEnter:!1}),(n=new Image).src="https://storage.googleapis.com/diageo-video-call.appspot.com/No.1.png",n.onload=function(){a.setState({imageLoaded:!0})},e.next=8,a.getCurrentTimeStampV2();case 8:return i=e.sent,console.log(i),window.todaysDateTimestamp=i,e.next=13,ze();case 13:return e.next=15,a.checkIfSpearker();case 15:a.setState({canEnter:!0}),e.next=22;break;case 18:e.prev=18,e.t0=e.catch(1),console.log(e.t0),a.setState({loading:!1});case 22:case"end":return e.stop()}}),e,null,[[1,18]])})));return function(t){return e.apply(this,arguments)}}(),a}return Object(h.a)(n,[{key:"componentDidMount",value:function(){this.getLiveStatus();!function(){var e=window.navigator.userAgent;(e.includes("Mac")||e.includes("MAC")||e.includes("mac"))&&(e.includes("Version/15")?window.parent.isMac15=!0:window.parent.isMac15=!1)}();(function(){var e=window.navigator.userAgent,t=e.indexOf("OS");(e.indexOf("iPhone")>-1||e.indexOf("iPad")>-1)&&t>-1?(window.parent.ios_V=window.Number(e.substr(t+3,3).replace("_",".")),window.parent.ios_V):window.parent.ios_V=null})(),function(){var e=window.navigator.userAgent,t=e.indexOf("OS");(e.indexOf("iPhone")>-1||e.indexOf("iPad")>-1)&&t>-1?(window.parent.ios_V2=e.substr(t+3,4).replace("_","."),window.parent.ios_V2):window.parent.ios_V2=null}();g.isMobileOnly&&document.addEventListener("click",(function(){var e=document.body;e.requestFullscreen?e.requestFullscreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()})),localStorage.getItem("introVisited")?this.setState({showIntro:!1}):(this.setState({showIntro:!0}),window.parent.mute&&window.parent.mute()),window.app=this}},{key:"render",value:function(){var e=this.context;return Object(o.jsx)(o.Fragment,{children:e&&this.state.canEnter&&this.state.imageLoaded?Object(o.jsx)("div",{onContextMenu:function(e){return e.preventDefault()},children:Object(o.jsx)(O.a,{children:Object(o.jsx)(y.c,{children:Object(o.jsx)(y.a,{path:"/",children:Object(o.jsx)(Kn,{showIntro:this.state.showIntro})})})})}):Object(o.jsx)(O.a,{children:Object(o.jsx)(y.c,{children:Object(o.jsx)(y.a,{path:"/",children:Object(o.jsx)(ut,{webTimeDiff:this.state.webTimeDiff,showLoggingIn:!!e,loading:this.state.loading})})})})})}}]),n}(c.Component);Xn.contextType=ht;var $n=Xn,ea=(n(634),function(e){Object(m.a)(n,e);var t=Object(p.a)(n);function n(e){var a;return Object(u.a)(this,n),(a=t.call(this,e)).userClaims=null,a}return Object(h.a)(n,[{key:"componentDidMount",value:function(){}},{key:"render",value:function(){return Object(o.jsx)(mt,{children:Object(o.jsx)($n,{})})}}]),n}(r.a.Component)),ta=function(e){e&&e instanceof Function&&n.e(3).then(n.bind(null,652)).then((function(t){var n=t.getCLS,a=t.getFID,i=t.getFCP,s=t.getLCP,o=t.getTTFB;n(e),a(e),i(e),s(e),o(e)}))};d.a.render(Object(o.jsx)(r.a.StrictMode,{children:Object(o.jsx)(ea,{})}),document.getElementById("root")),ta()}},[[635,1,2]]]);
2//# sourceMappingURL=main.e313548d.chunk.js.map

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.