(this["webpackJsonpbd-project"]=this["webpackJsonpbd-project"]||[]).push([[0],{107:function(e,t,n){},143:function(e,t){},147:function(e,t,n){},228:function(e,t,n){},242:function(e,t){},243:function(e,t){},264:function(e,t,n){},265:function(e,t,n){},266:function(e,t,n){},267:function(e,t,n){},356:function(e,t){},398:function(e,t){},438:function(e,t,n){"use strict";n.r(t);var a={};n.r(a),n.d(a,"PhotoboothHotspots",(function(){return be})),n.d(a,"GameHotspots",(function(){return fe})),n.d(a,"InfoHotspots",(function(){return je})),n.d(a,"MeetTheHeroHotspot",(function(){return ve})),n.d(a,"AudiData",(function(){return ge})),n.d(a,"TeamsData",(function(){return Oe})),n.d(a,"ResourceCenterHotspot",(function(){return ye})),n.d(a,"LobbyHotspots",(function(){return xe})),n.d(a,"NetworkingLounge",(function(){return we}));var i={};n.r(i),n.d(i,"VideoPlayerData",(function(){return Ie})),n.d(i,"PDFPlayerData",(function(){return ke}));var o=n(0),s=n(4),r=n.n(s),c=n(215),l=n.n(c),d=(n(228),n(10)),u=n(11),h=n(13),p=n(12),m=n(5),b=n.n(m),f=n(9),j=n(17),v=n(139),g=n(23),O=n(20),y=(n(75),n(3)),x=n(24),w=(n(231),n(233),n(235),n(439),n(440),"qna-bd"),I="qnaReply",k="pollAdmin",C="poll",S="adminAccess",T="backStage",N="staticData",M="specialUser",U="users",L="transition",_="iframe",A="video",P="image",R="pdf",D="anchor",B="videoPlayer",E="pdfPlayer",F="inlineVideo",V="chatbot",H=0,q=1,z=2,W="default",G="named",Y="lobby",Z="audi",K="resourceCenter",J="meetOurLeaders",Q="meetTheHero",$="youtube",X="vimeo",ee={InfoDesk:{value:50,oneTime:!0},Photobooth:{value:20,oneTime:!1},TeamBuilding:{value:100,oneTime:!0},Audi:{value:20,oneTime:!1},NetworkingConnect:{value:20,oneTime:!1},NetworkingSession:{value:20,oneTime:!1},NetworkingSpeakerProfile:{value:20,oneTime:!1},NetworkingChat:{value:20,oneTime:!1},Game:{value:20,oneTime:!1}},te={Lobby:1,Audi:2,TeamBuilding:3,Explore:4,Meet:5,MyProfile:6},ne=0,ae=[{id:te.Lobby,name:"Lobby",class:"icon-Home"},{id:te.Audi,name:"Auditorium",class:"icon-Audi",subMenus:[{id:1,name:"Comments",class:"icon-QNA"},{id:2,name:"Poll",class:"icon-Poll"},{id:3,name:"Vote For US!!",class:"icon-VoteForUs"}]},{id:te.TeamBuilding,name:"Meet the Jury",class:"icon-Leaders"},{id:te.Explore,name:"Resource Centre",class:"icon-resourceCenter icon-lg",subMenus:[]},{id:te.MyProfile,name:"Profile",class:"icon-MyProfile"}],ie=1,oe=2,se=3,re=1,ce=2,le=3,de=4,ue="/3dAssets/videos/",he={LOBBYLOOP:ue+"Lobby_Loop.mp4",LOOBYTOINFO:ue+"ToInfoBooth.mp4",LOBBYTOAudi:ue+"ToAuditorium.mp4",LOOBYTOPRODUCTSTALL:ue+"ToProductStall.mp4",LOBBYTOBREAKOUT:ue+"breakout.mp4",BREAKOUTLOOP:ue+"breakoutLoop.mp4",AUDITORIUM:ue+"Auditorium.mp4",Photobooth:ue+"ToPhotobooth.mp4",GameZone:ue+"ToGameZone.mp4"},pe="/3dAssets/UI/",me={ExhibitionImage:"/3dAssets/images/exhibitionArea.jpg",Black:"/3dAssets/images/black.jpg",Star:pe+"star.png",LOGOR1:"/assets/images/R1Logo.png",LOGOKOA:"/assets/images/koaLogo.png",IntoLogo:"/assets/images/menuLogo.png",LOGOSTRATETHON:"/assets/images/logo.png",LOGOSEASON2:"/assets/images/SEASON2.png",LOGO:"/assets/images/logo.png",LOGOLG:"/assets/images/logo-lg.png",LoginScreen:"/assets/images/login/login.jpg",LOGINSCREENSIDELOGO:"/assets/images/logo.png",MENULOGO:"/assets/images/logo.png",LOBBYLOOP:"/3dAssets/images/Lobby.jpg",Infodesk:"/3dAssets/images/Info.jpg",ProductStall:"/3dAssets/images/Product-Stall.jpg",Breakout:"/3dAssets/images/breakout.jpg",WELCOMEBACKGROUND:"assets/images/bg/all-stages.jpg",RIPPLE:"/3dAssets/gifs/Ripple-2.4s-128px.svg",BACKBUTTON:pe+"backButton.png",CLOSEBUTTON:pe+"closeButton.png",CROSS:pe+"cross.png",BUMPERPRIZEHEADER:"assets/images/banner-header.jpg",PDFLOGO:pe+"pdfIcon.png",INFOBUTTON:pe+"info/information.png",Game:"/3dAssets/images/GameZone.jpg",Photobooth:"/3dAssets/images/PhotoBooth.jpg"},be={PhotoBooth:{id:"PhotoBooth",enabled:!0,style:{margin:"4% -2.5%"},hotspotType:_,link:"/photobooth/index.html"}},fe={Game:{id:"Game",enabled:!0,style:{margin:"4% -6.5%"},hotspotType:_,link:"/game/index.html"}},je={"pdf-1":{id:"Agenda",enabled:!0,name:"Agenda",desk_style:{margin:"2.25% -10%"},mobile_style:{margin:"2.25% -10%"},get style(){return j.isMobileOnly?this.mobile_style:this.desk_style},hotspotType:R,buttonType:W,link:"/web/viewer.html?file=%2Fassets%2Fcontent%2FAgenda.pdf"},"pdf-2":{id:"ContactUs",enabled:!0,name:"Contact Us",desk_style:{margin:"2.25% 1.5%"},mobile_style:{margin:"2.25% 1.5%"},get style(){return j.isMobileOnly?this.mobile_style:this.desk_style},hotspotType:R,buttonType:W,link:"/web/viewer.html?file=%2Fassets%2Fcontent%2Fcontactus.pdf"},helpdesk:{id:"HelpdeskChat",enabled:!1,name:"Helpdesk",style:{margin:"7% 4.5%"},hotspotType:V,buttonType:W},quiz:{id:"quiz",enabled:!0,style:{margin:"-1% 19.5%"},hotspotType:_,link:"/wordScramble/index.html",name:"quiz"}},ve={MeetTheHeroVideo:{id:"MeetTheHeroVideo",enabled:!0,desk_style:{margin:"0% -6%"},mobile_style:{margin:"0% -6%"},get style(){return j.isMobileOnly?this.mobile_style:this.desk_style},hotspotType:A,link:"https://vimeo.com/497278291"}},ge={introVideo:he.AUDITORIUM,link:"https://vimeo.com/event/473964",placementStyle:{margin:"5.7% 27.45%",width:"44.7%",height:"58.8%"}},Oe={"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/"}},ye={"pdf-2":{id:"Annual_CSR_Report_2019-2020",enabled:!1,name:"Annual CSR Report 2019-2020",style:{margin:"6% 13.5%"},hotspotType:R,buttonType:W,link:"/web/viewer.html?file=%2Fassets%2Fcontent%2FAnnualCSRReport2019-2020-High.pdf"},"pdf-3":{id:"ANNUAL_REPORT_FY19-20",enabled:!1,name:"ANNUAL REPORT FY19-20",style:{margin:"2% 13.5%"},hotspotType:R,buttonType:W,link:"/web/viewer.html?file=%2Fassets%2Fcontent%2FANNUAL_REPORT_FY19-20.pdf"},"pdf-5":{id:"Hero_Campus_Recuitment_Program",enabled:!1,name:"Hero Campus Recuitment Program",style:{margin:"11% 13.5%"},hotspotType:R,buttonType:W,link:"/web/viewer.html?file=/assets/content/HeroCampusRecuitmentProgram.pdf"},videoPlayer:{id:"Videos",enabled:!1,name:"Videos",style:{margin:"6% -28%"},hotspotType:B,buttonType:W},AboutReliance:{id:"AboutReliance",enabled:!0,name:"About Reliance: Naye India Ka Naya Josh",style:{margin:"-11.8% -1.8%"},hotspotType:A,buttonType:W,link:"https://vimeo.com/515457697/c2444ebc7c"},AboutTUP_6:{id:"AboutTUP_6",enabled:!0,name:"About TUP 6.0 ",style:{margin:"-8.6% 3.2%"},hotspotType:A,buttonType:W,link:"https://vimeo.com/515457365/9492c712f0"},ThrowbackTUP_5:{id:"ThrowbackTUP_5",enabled:!0,name:"Throwback to TUP 5.0",style:{margin:"-5.4% -1.8%"},hotspotType:A,buttonType:W,link:"https://vimeo.com/515455717/bc2856f858"},Testimonials:{id:"Testimonials",enabled:!0,name:"Testimonials",style:{margin:"-2.2% 3.2%"},hotspotType:A,buttonType:W,link:"https://vimeo.com/515456661/bea78605f8"}},xe={PhotoBoothZone:{id:"PhotoBoothZone",enabled:!0,style:{margin:"0.5% 27%"},hotspotType:L,transitionVideo:he.Photobooth,transitionType:H,newItem:me.Photobooth,hotspot:be,name:"PhotoBoothZone"},Leader:{id:"Leader",enabled:!0,style:{margin:"-7% -25%"},hotspotType:L,transitionVideo:null,transitionType:z,newItem:ae[2]},Audi:{id:"Audi",enabled:!0,style:{margin:"-7% -4.6%"},hotspotType:L,transitionVideo:he.LOBBYTOAudi,transitionType:q,newItem:ae[1]},Explore:{id:"ResourceCenter",enabled:!0,style:{margin:"-7% 16.5%"},hotspotType:L,transitionVideo:he.LOBBYTOBREAKOUT,transitionType:q,newItem:ae[3],hotspot:ye},GameZone:{id:"GameZone",enabled:!0,style:{margin:"-0.5% -36%"},hotspotType:L,transitionVideo:he.GameZone,transitionType:H,newItem:me.Game,hotspot:fe,name:"GameZone"},Infodesk:{id:"Infodesk",enabled:!0,style:{margin:"1% -3.7%"},hotspotType:L,transitionVideo:he.LOOBYTOINFO,transitionType:H,newItem:me.Infodesk,hotspot:je,name:"Infodesk"},quiz:{id:"quiz",enabled:!0,style:{margin:"1% 4.5%"},hotspotType:_,link:"/wordScramble/index.html",name:"quiz"}},we={speakerPdf:"/web/viewer.html?file=%2Fassets%2Fcontent%2FSpeakers.pdf"},Ie={"video-4":{enabled:!0,type:X,id:"video-4",link:"https://vimeo.com/497278291",name:"Hero Xtreme 160R",videoCode:"1029115797",description:""},"video-1":{enabled:!0,type:X,id:"video-1",link:"https://vimeo.com/497282182",name:"Hum Mein Hai Hero",videoCode:"1029123383",description:""},"video-2":{enabled:!0,type:X,id:"video-2",link:"https://vimeo.com/497281609",name:"#HeroXtreme160RStreetKing",videoCode:"1029121804",description:""},"video-3":{enabled:!0,type:X,id:"video-3",link:"https://vimeo.com/497280648",name:"Hero Destini 125",videoCode:"1029120038",description:""}},ke={"optum-1":{id:"optum-1",link:"/web/viewer.html?file=%2Fassets%2Fcontent%2FOptum.pdf",name:"Optum Shell Sheet",thumbnail:"",description:""}};n(90);x.a.initializeApp({apiKey:"AIzaSyB31CWZzkAyp1w9nwYGt4W7UjSHwxvx-J8",authDomain:"reliance-ve.firebaseapp.com",databaseURL:"https://reliance-ve-default-rtdb.firebaseio.com",projectId:"reliance-ve",storageBucket:"reliance-ve.appspot.com",messagingSenderId:"798803863127",appId:"1:798803863127:web:cdb16be0484b9623c4a512",measurementId:"G-4D95CFP13Z"}),window.firebaseInstance=x.a;var Ce=x.a,Se=x.a.auth(),Te=x.a.firestore(),Ne=x.a.database(),Me=(x.a.analytics(),x.a.storage(),function(e,t){return new Promise(function(){var n=Object(f.a)(b.a.mark((function n(a,i){var o;return b.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,Se.signInWithEmailAndPassword(e,t);case 3:o=n.sent,console.log(o.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)}}())}),Ue=function(e,t,n){return new Promise(function(){var a=Object(f.a)(b.a.mark((function a(i,o){var s;return b.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,Se.createUserWithEmailAndPassword(e,t);case 3:return s=a.sent,console.log(s.user.email+" is signedUp in right now"),a.next=7,s.user.updateProfile({displayName:n,photoURL:"https://firebasestorage.googleapis.com/v0/b/djfarmademo.appspot.com/o/profileimages%2Fblank-avatar.png?alt=media&token=2af15226-9bd7-47ce-bc72-f3c1a12a0780"});case 7:i(),a.next=13;break;case 10:a.prev=10,a.t0=a.catch(0),o(a.t0);case 13:case"end":return a.stop()}}),a,null,[[0,10]])})));return function(e,t){return a.apply(this,arguments)}}())},Le=function(e){return new Promise(function(){var t=Object(f.a)(b.a.mark((function t(n,a){var i;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,i=Te.collection(U).doc(e.email),t.next=4,i.set(Object(y.a)(Object(y.a)({},e),{},{timestamp:x.a.firestore.FieldValue.serverTimestamp()}));case 4:n(),t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),a(t.t0);case 10:case"end":return t.stop()}}),t,null,[[0,7]])})));return function(e,n){return t.apply(this,arguments)}}())},_e=function(){var e=Object(f.a)(b.a.mark((function e(t,n,a){var i,o=arguments;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=o.length>3&&void 0!==o[3]&&o[3],e.abrupt("return",new Promise(function(){var e=Object(f.a)(b.a.mark((function e(o,s){return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,console.log(i),e.next=4,Me(t,n);case 4:o(),e.next=22;break;case 7:if(e.prev=7,e.t0=e.catch(0),"auth/user-not-found"!==e.t0.code||!i){e.next=20;break}return e.prev=10,console.log(e.t0),e.next=14,Ue(t,n,a);case 14:return e.abrupt("return");case 17:e.prev=17,e.t1=e.catch(10),"NoUserFound"===e.t1.code&&s(e.t1);case 20:console.log(e.t0),s({code:e.t0.code,message:e.t0.message});case 22:case"end":return e.stop()}}),e,null,[[0,7],[10,17]])})));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)}}(),Ae=function(e){Se.signOut().then((function(){e||(window.location.reload(),window.location.href="/")}))};!function(){var e="-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz",t=0,n=[]}();var Pe=function(e){return new Promise(function(){var t=Object(f.a)(b.a.mark((function t(n,a){var i,o;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,i=Te.collection(U).doc(e),t.next=4,i.get();case 4:(o=t.sent).exists?n(o.data()):n(null),t.next=11;break;case 8:t.prev=8,t.t0=t.catch(0),a(t.t0);case 11:case"end":return t.stop()}}),t,null,[[0,8]])})));return function(e,n){return t.apply(this,arguments)}}())},Re=function(e){window.audiListener=Te.collection(T).doc(N).onSnapshot((function(t){t.exists||e({code:"NoDataFound",message:"no such document exists."});var n=t.data().AudiData.link;e(null,n)}),(function(t){e(t)}))},De=function(){return new Promise(function(){var e=Object(f.a)(b.a.mark((function e(t,n){var i,o;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Te.collection(T).doc(N).get();case 3:(i=e.sent).exists||n({code:"NoDataFound",message:"no such document exists."}),o=i.data(),Object.keys(o).forEach((function(e){var t=o[e];Object.keys(t).forEach((function(n){a["".concat(e)].hasOwnProperty(n)?"object"!==typeof a["".concat(e)][n]?a["".concat(e)][n]=t[n]:a["".concat(e)][n]=Object(y.a)(Object(y.a)({},a["".concat(e)][n]),t[n]):"object"!==typeof t[n]?a["".concat(e)][n]=t[n]:a["".concat(e)][n]=Object(y.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)}}())},Be=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)}}))},Ee=function(){return new Promise(function(){var e=Object(f.a)(b.a.mark((function e(t,n){var a;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,void 0!==window.todaysDateTimestamp&&null!==window.todaysDateTimestamp){e.next=7;break}return e.next=4,Fe();case 4:return a=e.sent,window.todaysDateTimestamp=a.todaysDateTimestamp,e.abrupt("return");case 7:t(),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),n(e.t0);case 13:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(t,n){return e.apply(this,arguments)}}())},Fe=function(){return new Promise(function(){var e=Object(f.a)(b.a.mark((function e(t,n){var a,i,o,s,r,c;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("https://dj-timeserver.glitch.me");case 3:return a=e.sent,e.next=6,a.json();case 6:i=e.sent,o=new Date(i.epoch),s=new Date,r=o.getTime()-s.getTime(),c="".concat(o.getFullYear(),"-").concat(o.getMonth()+1,"-").concat(o.getDate()),t({currDateWeb:o,webTimeDiff:r,todaysDateTimestamp:c}),e.next=17;break;case 14:e.prev=14,e.t0=e.catch(0),n(e.t0);case 17:case"end":return e.stop()}}),e,null,[[0,14]])})));return function(t,n){return e.apply(this,arguments)}}())},Ve="tup6jury",He="tup6",qe=function(e){return new Promise(function(){var t=Object(f.a)(b.a.mark((function t(n,a){var i,o,s;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Ee();case 3:return t.next=5,Be(e);case 5:return i=t.sent,o="analytics/".concat(window.todaysDateTimestamp,"/").concat(i),s=Ne.ref(o),t.next=10,s.once("value");case 10:if(!t.sent.exists()){t.next=16;break}return t.next=14,s.update({email:e.email,name:e.displayName,passcode:"".concat(window.jry?Ve:He),lastLoginTime:x.a.database.ServerValue.TIMESTAMP});case 14:t.next=18;break;case 16:return t.next=18,s.set({email:e.email,name:e.displayName,passcode:"".concat(window.jry?Ve:He),firstLoginTime:x.a.database.ServerValue.TIMESTAMP,lastLoginTime:x.a.database.ServerValue.TIMESTAMP});case 18:n(),t.next=24;break;case 21:t.prev=21,t.t0=t.catch(0),a(t.t0);case 24:case"end":return t.stop()}}),t,null,[[0,21]])})));return function(e,n){return t.apply(this,arguments)}}())},ze=null,We=function(e){return new Promise(function(){var t=Object(f.a)(b.a.mark((function t(n,a){var i,o,s;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Ee();case 3:return t.next=5,Be(e);case 5:return i=t.sent,o="analytics/".concat(window.todaysDateTimestamp,"/").concat(i),s=Ne.ref(o),ze=s.onDisconnect(),t.next=11,ze.update({lastLogoutTime:x.a.database.ServerValue.TIMESTAMP});case 11:n(),t.next=17;break;case 14:t.prev=14,t.t0=t.catch(0),a(t.t0);case 17:case"end":return t.stop()}}),t,null,[[0,14]])})));return function(e,n){return t.apply(this,arguments)}}())},Ge=function(e){return new Promise(function(){var t=Object(f.a)(b.a.mark((function t(n,a){var i,o,s;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Ee();case 3:return t.next=5,Be(e);case 5:return i=t.sent,o="analytics/".concat(window.todaysDateTimestamp,"/").concat(i),s=Ne.ref(o),t.next=10,s.update({lastLogoutTime:x.a.database.ServerValue.TIMESTAMP});case 10:ze&&ze.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)}}())},Ye=function(e){return new Promise(function(){var t=Object(f.a)(b.a.mark((function t(n,a){var i,o;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,i=Ne.ref("loggedInUser/"+e),t.next=4,i.update({state:"online",lastChange:x.a.database.ServerValue.TIMESTAMP});case 4:return t.next=6,i.onDisconnect();case 6:return o=t.sent,t.next=9,o.update({state:"offline",lastChange:x.a.database.ServerValue.TIMESTAMP});case 9:n(),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)}}())},Ze=function(e,t){return new Promise(function(){var n=Object(f.a)(b.a.mark((function n(a,i){var o,s;return b.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,Be(e,!0);case 3:return o=n.sent,s=Ne.ref("loggedInUser/"+o),n.next=7,s.update({location:t});case 7:a(),n.next=13;break;case 10:n.prev=10,n.t0=n.catch(0),i(n.t0);case 13:case"end":return n.stop()}}),n,null,[[0,10]])})));return function(e,t){return n.apply(this,arguments)}}())},Ke=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return new Promise(function(){var a=Object(f.a)(b.a.mark((function a(i,o){var s,r,c;return b.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,Ee();case 3:return a.next=5,Be(e);case 5:if(s=a.sent,r="analytics/".concat(window.todaysDateTimestamp,"/").concat(s),c=Ne.ref(r),!n){a.next=13;break}return a.next=11,c.update(Object(O.a)({},t,!0));case 11:a.next=15;break;case 13:return a.next=15,c.update(Object(O.a)({},t,x.a.database.ServerValue.increment(1)));case 15:i(),a.next=21;break;case 18:a.prev=18,a.t0=a.catch(0),o(a.t0);case 21:case"end":return a.stop()}}),a,null,[[0,18]])})));return function(e,t){return a.apply(this,arguments)}}())},Je=function(e,t){return new Promise(function(){var n=Object(f.a)(b.a.mark((function n(a,i){var o,s,r,c,l,d,u,h,p,m,f;return b.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,o=(o=(o=e.email).replace(/[&\/\\#,+$~%.'":*?<>{}]/g,"")).toLowerCase(),s="/usersScore/"+o,r="/leaderboard/"+o,c=Ne.ref(s),l=Ne.ref(r),n.next=10,c.once("value");case 10:if(!(d=n.sent).exists()){n.next=25;break}return u=d.val(),console.log(u),u.hasOwnProperty(t)?u[t]+=1:u[t]=1,u.score&&delete u.score,h=Qe(u),console.log(u),console.log(h),n.next=21,c.update(Object(y.a)(Object(y.a)({},u),{},{score:h}));case 21:return n.next=23,l.update({name:e.displayName,email:e.email,score:h});case 23:n.next=31;break;case 25:return m=Object(O.a)({},"".concat(t),1),f=Qe(m),n.next=29,c.set((p={},Object(O.a)(p,"".concat(t),1),Object(O.a)(p,"score",f),p));case 29:return n.next=31,l.set({name:e.displayName,email:e.email,score:f});case 31:a(),n.next=37;break;case 34:n.prev=34,n.t0=n.catch(0),i(n.t0);case 37:case"end":return n.stop()}}),n,null,[[0,34]])})));return function(e,t){return n.apply(this,arguments)}}())},Qe=function(e){var t=0;return Object.keys(e).forEach((function(n){ee[n].oneTime?(t+=ee[n].value,console.log(n,1,ee[n].value,t)):(t+=e[n]*ee[n].value,console.log(n,e[n],ee[n].value,t))})),t},$e=function(){var e=Object(f.a)(b.a.mark((function e(t,n){return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Te.collection(T).doc(M).onSnapshot((function(e){e.exists||n({code:"NoDocFound",message:"noDocFound"});var t=e.data();window.jry?n(null,t.link):n({code:"notAdmin",message:"simpleUser"})}));case 2:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),Xe=(s.Component,n(217)),et=function(e){Object(h.a)(n,e);var t=Object(p.a)(n);function n(){var e;Object(d.a)(this,n);for(var a=arguments.length,i=new Array(a),o=0;o()\[\]\\.,;:\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.onRegSubmit=function(){var t=Object(f.a)(b.a.mark((function t(n){var a,i,o,s;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n.preventDefault(),t.prev=1,0!==e.state.name.length&&0!==e.state.email.length&&0!==e.state.institute.length&&0!==e.state.passcode.length){t.next=5;break}throw{code:"InvalidData",message:"Please provide correct data."};case 5:if(e.validateEmail(e.state.email)){t.next=8;break}throw{code:"InvalidData",message:"Please provide correct email Id."};case 8:if((a=e.state.passcode.toLowerCase())!==at){t.next=13;break}window.jry=!1,t.next=23;break;case 13:if(a!==nt){t.next=17;break}window.jry=!0,t.next=23;break;case 17:if(a!==it){t.next=21;break}window.leaderbord=!0,t.next=23;break;case 21:throw{code:"InvalidPasscode",message:"Please enter valid passcode"};case 23:return e.setState({error:!1,forceDisable:!0}),i=e.state.email.replace(/\s+/g,"").toLowerCase(),o=e.state.name.replace(/\s+/g,"").toLowerCase(),t.next=28,Le({name:o,email:e.state.email,institute:e.state.institute,passcode:a});case 28:return t.next=30,_e(i,i+a,o,!0);case 30:t.next=49;break;case 32:t.prev=32,t.t0=t.catch(1),e.setState({forceDisable:!1}),s="",t.t1=t.t0.code,t.next="auth/wrong-password"===t.t1?39:"auth/user-not-found"===t.t1?41:"auth/too-many-requests"===t.t1?43:"NoUserFound"===t.t1?45:47;break;case 39:return s="Invalid username and password.",t.abrupt("break",48);case 41:return s="User not registered",t.abrupt("break",48);case 43:return s="Too many invalid requests, please wait for 60 seconds before retrying",t.abrupt("break",48);case 45:return s="User not registered",t.abrupt("break",48);case 47:s=t.t0.message;case 48:e.setState({error:!0,errorMessage:s});case 49:case"end":return t.stop()}}),t,null,[[1,32]])})));return function(e){return t.apply(this,arguments)}}(),e.onFormSubmit=function(){var t=Object(f.a)(b.a.mark((function t(n){var a,i,o;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n.preventDefault(),t.prev=1,console.log("onFormSubmit"),e.setState({error:!1,forceDisable:!0}),(a=e.state.passcode.toLowerCase())!==at){t.next=9;break}window.jry=!1,t.next=19;break;case 9:if(a!==nt){t.next=13;break}window.jry=!0,t.next=19;break;case 13:if(a!==it){t.next=17;break}window.leaderbord=!0,t.next=19;break;case 17:throw{code:"InvalidPasscode",message:"Please enter valid passcode"};case 19:return i=e.state.email.replace(/\s+/g,"").toLowerCase(),t.next=22,_e(i,i+a,"",!1);case 22:t.next=41;break;case 24:t.prev=24,t.t0=t.catch(1),e.setState({forceDisable:!1}),o="",t.t1=t.t0.code,t.next="auth/wrong-password"===t.t1?31:"auth/user-not-found"===t.t1?33:"auth/too-many-requests"===t.t1?35:"NoUserFound"===t.t1?37:39;break;case 31:return o="Invalid username and password.",t.abrupt("break",40);case 33:return o="User not registered",t.abrupt("break",40);case 35:return o="Too many invalid requests, please wait for 60 seconds before retrying",t.abrupt("break",40);case 37:return o="User not registered",t.abrupt("break",40);case 39:o=t.t0.message;case 40:e.setState({error:!0,errorMessage:o});case 41:case"end":return t.stop()}}),t,null,[[1,24]])})));return function(e){return t.apply(this,arguments)}}(),e.checkUserStatus=function(){var e=Object(f.a)(b.a.mark((function e(t){return b.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"}),Ne.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.ToggleUI=function(t){t&&t.preventDefault(),e.setState((function(e){return Object(y.a)({showRegisteration:!e.showRegisteration},tt)}))},e}return Object(u.a)(n,[{key:"render",value:function(){var e=this;return this.state._loading?Object(o.jsx)("img",{alt:"loading",src:"/images/loader.gif"}):Object(o.jsx)(o.Fragment,{children:Object(o.jsxs)("section",{className:"landing-page min-height-full",children:[Object(o.jsx)("aside",{className:"landing-pageBox d-flex justify-content-between align-items-start min-height-full image-bg",style:{backgroundImage:"url(".concat(me.LoginScreen,")"),backgroundPosition:"top"},children:!j.isMobileOnly&&Object(o.jsx)("div",{className:"main3DContainer",children:Object(o.jsx)("div",{id:"child3DContainer",children:Object(o.jsxs)("video",{className:"TransitionVideo LoginScreenVideo",width:"320",height:"240",loop:!0,preload:"auto",autoPlay:!0,playsInline:!0,ref:this.videoRef,style:{opacity:1},children:[Object(o.jsx)("source",{src:"/3dAssets/videos/login.mp4",type:"video/mp4"}),"Your browser does not support HTML5 video."]})})})}),Object(o.jsxs)("aside",{className:"signinBox min-height-full",style:{zIndex:"5"},children:[this.props.showLoggingIn&&Object(o.jsxs)(o.Fragment,{children:[Object(o.jsx)("div",{className:"signinBox__heading__container",children:Object(o.jsx)("div",{className:"signinBox__heading"})}),Object(o.jsx)("br",{}),Object(o.jsxs)("div",{className:"loaderContainer",children:[Object(o.jsx)("img",{src:"/assets/images/Loader.gif",alt:"loader"}),Object(o.jsx)("div",{children:"Logging you in..."})]})]}),!this.props.showLoggingIn&&Object(o.jsx)(o.Fragment,{children:this.state.showRegisteration?Object(o.jsx)(o.Fragment,{children:Object(o.jsxs)("form",{onSubmit:this.onRegSubmit,children:[Object(o.jsx)("div",{className:"signinBox__heading__container",children:Object(o.jsx)("div",{className:"signinBox__heading"})}),Object(o.jsx)("br",{}),Object(o.jsxs)("div",{className:"signinBox__body ",children:[Object(o.jsx)("div",{className:"form-group ",children:Object(o.jsx)("input",{type:"text",className:"form-control",name:"name",value:this.state.name,placeholder:"ENTER YOUR NAME",onChange:this.onInputChange,required:!0})}),Object(o.jsx)("div",{className:"form-group ",children:Object(o.jsx)("input",{type:"text",className:"form-control",name:"email",value:this.state.email,placeholder:"ENTER YOUR EMAIL ID",onChange:this.onInputChange,required:!0})}),Object(o.jsx)("div",{className:"form-group ",children:Object(o.jsx)("input",{type:"text",className:"form-control",name:"institute",value:this.state.institute,placeholder:"ORGANISATION/INSTITUTE",onChange:this.onInputChange,required:!0})}),Object(o.jsx)("div",{className:"form-group",children:Object(o.jsx)("input",{type:"text",className:"form-control",name:"passcode",value:this.state.passcode,placeholder:"ENTER YOUR PASSCODE",onChange:this.onInputChange,required:!0})}),Object(o.jsx)("div",{className:"form-group ",style:{textTransform:"uppercase"},children:Object(o.jsxs)("label",{className:"container_checkbox",children:["I have read the ",Object(o.jsx)("a",{target:"_Blank",href:"/assets/disclaimer/Disclaimer.pdf",children:"disclaimer"}),".",Object(o.jsx)("input",{type:"checkbox",checked:this.state.terms,name:"terms",onChange:this.onInputChange,required:!0},"terms"),Object(o.jsx)("span",{className:"checkmark_checkbox"})]})}),this.state.error&&Object(o.jsx)("div",{className:"mg-b50",style:{color:"red",fontSize:"1.25rem"},children:this.state.errorMessage}),Object(o.jsx)("div",{className:"text-center ",children:Object(o.jsx)("button",{className:"btn btn-md btn-yellow",disabled:!!this.state.forceDisable||!this.state.terms,children:"REGISTER"})}),Object(o.jsxs)("div",{className:"form-group mg-t50 text-center",style:{fontSize:"1.15rem",cursor:"pointer"},onClick:function(t){return e.ToggleUI(t)},children:["Already a member? ",Object(o.jsxs)("b",{style:{color:"#090F62"},children:[" ",Object(o.jsx)("u",{children:"Sign in now"})]})]})]})]})}):Object(o.jsx)(o.Fragment,{children:Object(o.jsxs)("form",{onSubmit:this.onFormSubmit,children:[Object(o.jsx)("div",{className:"signinBox__heading__container",children:Object(o.jsx)("div",{className:"signinBox__heading"})}),Object(o.jsx)("br",{}),Object(o.jsxs)("div",{className:"signinBox__body pd-t70",children:[Object(o.jsx)("div",{className:"form-group mg-b50",children:Object(o.jsx)("input",{type:"text",className:"form-control",name:"email",value:this.state.email,placeholder:"ENTER YOUR EMAIL ID",onChange:this.onInputChange,required:!0})}),Object(o.jsx)("div",{className:"form-group mg-b50",children:Object(o.jsx)("input",{type:"text",className:"form-control",name:"passcode",value:this.state.passcode,placeholder:"ENTER YOUR PASSCODE",onChange:this.onInputChange,required:!0})}),this.state.error&&Object(o.jsx)("div",{className:"mg-b50",style:{color:"red",fontSize:"1.25rem"},children:this.state.errorMessage}),Object(o.jsx)("div",{className:"text-center ",children:Object(o.jsx)("button",{className:"btn btn-md btn-yellow",disabled:!!this.state.forceDisable,children:"SIGN IN"})}),Object(o.jsxs)("div",{className:"form-group mg-t50 text-center",style:{fontSize:"1.15rem",cursor:"pointer"},onClick:function(t){return e.ToggleUI(t)},children:["Not Register? ",Object(o.jsxs)("b",{style:{color:"#090F62"},children:[" ",Object(o.jsx)("u",{children:"Register now"})]})]})]})]})})}),Object(o.jsx)("div",{className:"signinBoxfooter"})]})]})})}}]),n}(s.Component),st=Object(s.createContext)({user:null}),rt=function(e){Object(h.a)(n,e);var t=Object(p.a)(n);function n(){var e;Object(d.a)(this,n);for(var a=arguments.length,i=new Array(a),o=0;o{}]/g,"")).toLowerCase(),t.next=10,Ye(a);case 10:qe(n).then((function(){})),We(n),localStorage.getItem("viewedIntroOnce")&&(n.secondTime=!0),t.next=19;break;case 15:localStorage.clear(),sessionStorage.clear(),window.jry=!1,e.setState({user:null});case 19: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(u.a)(n,[{key:"render",value:function(){var e=this.state.user;return Object(o.jsx)(st.Provider,{value:e,children:this.props.children})}}]),n}(s.Component),ct=n(50),lt=n(100),dt=n.n(lt),ut=n(61),ht=n.n(ut),pt=(n(264),function(e){Object(h.a)(n,e);var t=Object(p.a)(n);function n(e){var a;return Object(d.a)(this,n),(a=t.call(this,e)).state={items:a.props.items,activeItemId:a.props.mainMenuState},a.onMenuItemClick=a.onMenuItemClick.bind(Object(ct.a)(a)),a}return Object(u.a)(n,[{key:"componentWillReceiveProps",value:function(e){void 0!==e.mainMenuState&&this.setState({activeItemId:e.mainMenuState})}},{key:"onMenuItemClick",value:function(e,t){this.props.canInteract&&(this.setState({activeItemId:t.id}),this.props.onMenuItemClick(e,t))}},{key:"getPathRender",value:function(e){if(e>0){for(var t=[],n=0;nwindow.innerHeight*e.ratio)}),child3dContainerStyle:{marginLeft:"0"}}}));e.props.showingTutorialEvent&&e.props.showingTutorialEvent("end")}e.initiScene()},e.closeTut=function(){var t="home";e.props.sceneName&&(t=e.props.sceneName),sessionStorage.setItem("".concat(t,"-tut"),"visited"),setTimeout((function(){e.props.showingTutorialEvent&&e.props.showingTutorialEvent("end")}),250),e.state.UI.fadeIntroImage||e.videoRef.current.play(),e.initiScene()},e.initiScene=function(){e.initialForceUpdate=setTimeout((function(){e.setState((function(t){return{UI:Object(y.a)(Object(y.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(y.a)(Object(y.a)({},e.UI),{},{arrowsRequired:!1})}})):e.setState((function(e){return{UI:Object(y.a)(Object(y.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(y.a)({},t)})},e.toggleHUDElement=function(t,n,a){e.setState((function(e){return{UI:Object(y.a)(Object(y.a)({},e.UI),{},{showOverlay:t,showArrows:n,showBackButton:a})}}))},e.startTransition=function(t,n,a,i,o,s){null!==t&&t.preventDefault(),e.resetCamera(),e.currentTransitionType=a,e.afterTransitionItem=i,a!==z?(e.toggleHUDElement(!1,!1,!1),e.setState({currentHotspot:o}),null!=n?(e.newStateName=s,e.setState((function(e){return{UI:Object(y.a)(Object(y.a)({},e.UI),{},{showTutButton:!1}),CurrentUrl:Object(y.a)(Object(y.a)({},e.CurrentUrl),{},{transitionVideo:n})}})),e.transitionVideoRef.current.load(),e.transitionVideoRef.current.play(),e.transitionVideoRef.current.loop=!1):e.handleTransitionWithOutVideo()):e.handleTransitionWithOutVideo()},e.applyFadeInDuringTransition=function(){e.videoRef.current.removeEventListener("loadedmetadata",e.applyFadeInDuringTransition),setTimeout((function(){e.setState({frameVideoStyle:It})}),900*e.videoRef.current.duration)},e.handleTransitionVideoEnd=function(t){e.currentTransitionType===H?(e.toggleHUDElement(!1,!0,!0),e.updateChild3DContainerStyle({marginLeft:"0"}),e.setState((function(t){return{CurrentUrl:Object(y.a)(Object(y.a)({},t.CurrentUrl),{},{image:e.afterTransitionItem}),UI:Object(y.a)(Object(y.a)({},t.UI),{},{showVideo:!1,showImage:!0,showOverlay:!0}),frameVideoStyle:kt}})),e.props.changeInternalStateHandler&&e.props.changeInternalStateHandler(e.newStateName)):e.currentTransitionType===q&&e.props.changeComponenet(t,e.afterTransitionItem)},e.handleTransitionWithOutVideo=function(){if(e.currentTransitionType===H)e.setState({frameVideoStyle:It}),setTimeout((function(){e.setState((function(t){return{CurrentUrl:Object(y.a)(Object(y.a)({},t.CurrentUrl),{},{image:e.afterTransitionItem}),UI:Object(y.a)(Object(y.a)({},t.UI),{},{showVideo:!1,showImage:!0,showOverlay:!0,showBackButton:!0}),frameVideoStyle:kt}}))}),1125);else if(e.currentTransitionType===q)e.props.changeComponenet(null,e.afterTransitionItem);else if(e.currentTransitionType===z){var t=Object(ct.a)(e);e.props.changeComponenet(null,e.afterTransitionItem,(function(){t.toggleHUDElement(!0,!0,!1),t.setState((function(e){return{CurrentUrl:Object(y.a)(Object(y.a)({},e.CurrentUrl),{},{mainVideo:t.props.initialVideo}),UI:Object(y.a)(Object(y.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(y.a)(Object(y.a)({},t.CurrentUrl),{},{mainVideo:e.props.initialVideo}),UI:Object(y.a)(Object(y.a)({},t.UI),{},{showVideo:!0,showImage:!1,showBackButton:!1,showTransitionVideo:!1,showTutButton:!0}),frameImageClass:"fadeOut",frameVideoStyle:{visibility:"visible",animation:"fadeOutEffect 1.25s ease-in-out",MozAnimation:"fadeOutEffect 1.25s ease-in-out",WebkitAnimation:"fadeOutEffect 1.25s ease-in-out"},currentHotspot:e.props.initialHotspot}})),e.videoRef.current.load(),e.videoRef.current.loop=!0,e.videoRef.current.play(),setTimeout((function(){e.toggleHUDElement(!0,!0,!1)}),1250)},e.showMediaModal=function(t,n,a){t.preventDefault(),n!==D?e.props.ShowMediaModal(n,a):window.open(a,"_blank")},e.handleTransitionVideoStart=function(){e.setState((function(e){return{UI:Object(y.a)(Object(y.a)({},e.UI),{},{showTransitionVideo:!0})}}))},e.handleTransitionVideoTagEnd=function(){e.setState((function(e){return{UI:Object(y.a)(Object(y.a)({},e.UI),{},{showTransitionVideo:!1})}})),e.handleTransitionVideoEnd(null)},e.handleIntroVideoStart=function(){e.setState((function(e){return{UI:Object(y.a)(Object(y.a)({},e.UI),{},{fadeIntroImage:!0})}}))},e.handleHotspotCLick=function(t,n){n.hotspotType===L?(n.transitionType===H&&e.props.addHotspotAnalytics&&e.props.addHotspotAnalytics(n),e.startTransition(t,n.transitionVideo,n.transitionType,n.newItem,n.hotspot,n.name)):n.hotspotType===V?(e.props.addHotspotAnalytics&&e.props.addHotspotAnalytics(n),e.showMediaModal(t,n.hotspotType,n)):(e.props.addHotspotAnalytics&&e.props.addHotspotAnalytics(n),e.showMediaModal(t,n.hotspotType,n.link))},e.handleInlineVideoPlayerClick=function(t){t&&t.preventDefault(),e.mouseInlineControlHover||e.setState((function(e){return{InlinePlayer:Object(y.a)(Object(y.a)({},e.InlinePlayer),{},{playing:!e.InlinePlayer.playing})}}))},e.handleInlineVideoPlay=function(t){e.setState((function(e){return{InlinePlayer:Object(y.a)(Object(y.a)({},e.InlinePlayer),{},{showLid:!1})}}))},e.handleInlineVideoPause=function(t){e.setState((function(e){return{InlinePlayer:Object(y.a)(Object(y.a)({},e.InlinePlayer),{},{showLid:!0})}}))},e.checkToPlayVideo=function(){return void 0!=e.props.medialModalActive&&(!e.props.medialModalActive&&(!!e.state.InlinePlayer.playing||void 0))},e.handleInlineMouseHover=function(t){e.mouseInlineControlHover=t},e.handleInfoButton=function(){e.resetCamera(),e.setState((function(e){return{UI:Object(y.a)(Object(y.a)({},e.UI),{},{showTutComponenet:!0})}}))},e}return Object(u.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:me.BACKBUTTON,alt:"backButtonToLobby",className:"globalBackButton",onClick:function(t){return e.props.changeComponenet(t,ae[ne])}}),this.props.showTut&&this.state.UI.showTutButton&&Object(o.jsx)("img",{src:me.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:"FrameVideo",src:this.props.initalImage,style:Object(y.a)(Object(y.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:{width:"calc(100vh * ".concat(this.ratio,")"),height:"100vh",position:"absolute",display:"flex",justifyContent:"center",pointerEvents:"none"},children:[Object(o.jsx)("div",{className:"blocker ".concat(this.state.UI.fadeIntroImage?"d-none":""),children:Object(o.jsx)("div",{className:"lds-dual-ring"})}),Object(o.jsx)("img",{id:"introFrame",className:this.state.UI.fadeIntroImage?"IntroFadeImage":"",alt:"Introframe",src:this.props.firstVideoFrame,style:xt})]})}),Object(o.jsxs)("video",{id:"FrameVideo",width:"320",height:"240",loop:!0,muted:!0,autoPlay:!0,preload:"auto",playsInline:!0,ref:this.videoRef,style:this.state.frameVideoStyle,onPlay:this.handleIntroVideoStart,children:[Object(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:me.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",className:"overlayContent-size ".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===F)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:"44"}: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(y.a)(Object(y.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",children:Object(o.jsxs)("div",{className:"videoControlsContainer-fullscreen",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(y.a)(Object(y.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(y.a)(Object(y.a)({},e.InlinePlayer),{},{fullScreen:!e.InlinePlayer.fullScreen})}}))}})]})})]}),Object(o.jsx)(ht.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 G: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:me.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)(yt,{updateParent:this.updateChild3DContainerStyle,mainContainer:this.child3dContainer.current,mediaContainer:this.videoRef.current,ref:this.arrowRef})})]})}),Object(o.jsx)("div",{})]})}}]),n}(s.Component);Ct.contextType=st;var St=n(89);var Tt=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}),Object(o.jsxs)("span",{className:"time",children:[" ",e.time.toString()]})]})},Nt=[],Mt=-1;Te.collection(w).orderBy("timestamp","desc").where("status","==","1").get().then((function(e){e.forEach((function(e){Nt.push(e.id)}))})).catch((function(e){console.log("Error getting documents: ",e)}));var Ut,Lt,_t=function(e){var t=function(e){var t=Object(s.useState)([]),n=Object(St.a)(t,2),a=n[0],i=n[1];return Mt>=Nt.length-1&&(Mt=-1),Object(s.useEffect)((function(){return Mt++,Te.collection(I).orderBy("timestamp","desc").where("replytoid","==",e).onSnapshot((function(e){var t=e.docs.map((function(e){return Object(y.a)({id:e.id},e.data())}));i(t),console.log(a)})),function(){}}),[]),a}(e.id);return Object(o.jsx)("div",{children:t.map((function(e){return Object(o.jsx)(Tt,{id:e.id,replyby:e.replyby,rcontent:e.rcontent,time:e.time2},e.id)}))})},At=n(102),Pt=n.n(At);Se.onAuthStateChanged((function(e){e?(Ut=e.uid,Lt=e.displayName?e.displayName:e.email):Ut=null}));var Rt=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}),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"),o=Pt()().utcOffset("+05:30").format("hh:mm A DD-MM-YYYY");Te.collection(I).add({rcontent:i,replyby:Lt,replybyid:Ut,replytoid:e.id,time:new Date,time2:o,timestamp:Ce.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)(_t,{id:e.id})})]})},Dt=function(e){Object(h.a)(n,e);var t=Object(p.a)(n);function n(e){var a;return Object(d.a)(this,n),(a=t.call(this,e)).state={content:"",user:{}},a}return Object(u.a)(n,[{key:"componentDidMount",value:function(){this.authListener()}},{key:"authListener",value:function(){var e=this;Se.onAuthStateChanged((function(t){t?e.setState({user:t}):e.setState({user:null})}))}},{key:"onSubmit",value:function(e){var t=this;e.preventDefault();var n=Pt()().utcOffset("+05:30").format("hh:mm A DD-MM-YYYY");Te.collection(w).add({title:this.state.user.displayName?this.state.user.displayName:this.state.user.email,content:this.state.content,time:new Date,time2:n,timestamp:Ce.firestore.FieldValue.serverTimestamp(),status:"0"}).then((function(){t.setState({content:""}),dt()("Question Submitted!","Your Question is waiting for Approval.")}))}},{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);var Bt=function(){var e=function(){var e=Object(s.useState)([]),t=Object(St.a)(e,2),n=t[0],a=t[1],i=Object(s.useState)([]),o=Object(St.a)(i,2);return o[0],o[1],Object(s.useEffect)((function(){Te.collection(w).orderBy("timestamp","desc").where("status","==","1").onSnapshot((function(e){var t=e.docs.map((function(e){return Object(y.a)({id:e.id},e.data())}));a(t)}))}),[]),n}();return Object(o.jsxs)("div",{className:"qa-section scrollable-part",children:[Object(o.jsx)("div",{className:"qa-section__inner pd-b70 ",children:e.map((function(e){return Object(o.jsx)(Rt,{id:e.id,title:e.title,content:e.content,time:e.time2},e.id)}))}),Object(o.jsx)(Dt,{})]})},Et=function(e){Object(h.a)(n,e);var t=Object(p.a)(n);function n(){return Object(d.a)(this,n),t.apply(this,arguments)}return Object(u.a)(n,[{key:"onHeadingClick",value:function(e){this.props.onHeadingClick(e)}},{key:"render",value:function(){var e=this;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:["Comments",Object(o.jsx)("i",{className:"icon-close"})]}),Object(o.jsx)(Bt,{})]})}}]),n}(r.a.Component),Ft=0,Vt=1,Ht=2,qt=3,zt=function(e){Object(h.a)(n,e);var t=Object(p.a)(n);function n(e){var a;return Object(d.a)(this,n),(a=t.call(this,e)).suscribeToPollAdmin=function(){a.removeListener&&a.removeListener(),a.removeListener=Te.collection(k).doc(S).onSnapshot((function(e){console.log(e.data()),e.data().showPoll?a.getPolls():e.data().showResults?a.getResult():a.setState({pollCurrentState:qt})}),(function(e){console.log(e)}))},a.unsuscribeToPollAdmin=function(){a.removeListener&&a.removeListener()},a.getPolls=Object(f.a)(b.a.mark((function e(){var t;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,a.pollDocData=[],e.next=4,Te.collection(C).get();case 4:(t=e.sent).docs.length>0&&(t.docs.forEach((function(e){a.pollDocData.push(e)})),a.setState({pollCurrentState:Ft})),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:Ht})},a.sendPollFeedback=function(e,t){var n=Te.collection(C).doc(e);return Te.runTransaction((function(e){return e.get(n).then((function(a){if(!a.exists)throw"Document does not exist!";var i=a.data().totalResponse;i+=1;var o=a.data().optionResponse;return o[t]+=1,null!==o?(e.update(n,{totalResponse:i}),e.update(n,{optionResponse:o}),i):Promise.reject("Sorry! scoreArray is null")}))})).then((function(e){console.log("total response :",e)})).catch((function(e){console.error(e)}))},a.getResult=Object(f.a)(b.a.mark((function e(){var t;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a.pollResultData=[],e.prev=1,e.next=4,Te.collection(C).get();case 4:t=e.sent,t.docs.forEach((function(e){a.pollResultData.push(e)})),a.setState({pollCurrentState:Vt}),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 r=0;0!==e.totalResponse&&(r=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(r,"%")}}),Object(o.jsxs)("span",{className:"poll-custom-progress-bar__percent",children:[" ","".concat(r,"%")]})]})]},n.indexOf(s)))})),t},a.printPollResults=function(){if(a.pollResultData.length>0){var e=[];return a.pollResultData.forEach((function(t){var n=t.data();e.push(Object(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:qt},a.pollDocData=[],a.pollResultData=[],a}return Object(u.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===Ft?Object(o.jsx)("div",{className:"poll-section__inner",children:this.printPoll()}):null,this.state.pollCurrentState===Vt?Object(o.jsx)("div",{className:"poll-section__inner",children:this.printPollResults()}):null,this.state.pollCurrentState===Ht?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===qt?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}(s.Component),Wt=function(e){Object(h.a)(n,e);var t=Object(p.a)(n);function n(e){var a;return Object(d.a)(this,n),(a=t.call(this,e)).getFirstEnabledVideo=function(){for(var e=0;e90?e.props.videoData[t].name.substr(0,90)+"...":e.props.videoData[t].name}),Object(o.jsx)("p",{className:"video-player__item-text light-color",children:e.props.videoData[t].description.length>40?e.props.videoData[t].description.substr(0,40)+"...":e.props.videoData[t].description})]})]},t):null}))})})]})]})})})})})}}]),n}(s.Component),Gt=function(e){Object(h.a)(n,e);var t=Object(p.a)(n);function n(){var e;Object(d.a)(this,n);for(var a=arguments.length,i=new Array(a),o=0;o1&&void 0!==arguments[1]?arguments[1]:15;"string"==typeof n&&(n=parseInt(n)),e.notificationTimerRef&&clearTimeout(e.notificationTimerRef),e.setState({show:!0,message:t}),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}return Object(u.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.testShow&&e.showNotification(n.message,n.time)}}))}},{key:"componentWillUnmount",value:function(){window.NotificationListener&&window.NotificationListener()}},{key:"render",value:function(){return Object(o.jsx)(o.Fragment,{children: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)("div",{className:"closeButton-notification",onClick:this.closeNotification})}),this.state.message]})})}}]),n}(s.Component)),en=[{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."}],tn=0,nn=1,an=function(e){Object(h.a)(n,e);var t=Object(p.a)(n);function n(){var e;Object(d.a)(this,n);for(var a=arguments.length,i=new Array(a),o=0;o0?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(u.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 un.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}(s.Component),pn=function(e){Object(h.a)(n,e);var t=Object(p.a)(n);function n(e){var a;return Object(d.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(u.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:me.PDFLOGO,")")}}),Object(o.jsxs)("div",{className:"video-player__item-desc",children:[Object(o.jsx)("h4",{className:"video-player__item-title ".concat(t===e.state.currentItemId?"":"light-color"),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 ".concat(t===e.state.currentItemId?"":"light-color"),children:e.state.data[t].description.length>40?e.state.data[t].description.substr(0,40)+"...":e.state.data[t].description})]})]})}))})]})]})]})})})})})}}]),n}(s.Component),mn=2.33,bn=function(e){Object(h.a)(n,e);var t=Object(p.a)(n);function n(){var e;Object(d.a)(this,n);for(var a=arguments.length,i=new Array(a),o=0;o"+t),Je(e.context,t)},e.handleLeaderboardClose=function(){e.setState((function(e){return{UI:Object(y.a)(Object(y.a)({},e.UI),{},{showLeaderboard:!1,showLeaderboardButton:!0})}}))},e.handleLeaderboardButton=function(){e.setState((function(e){return{UI:Object(y.a)(Object(y.a)({},e.UI),{},{showLeaderboard:!0,showLeaderboardButton:!1})}}))},e.canShowLeaderboardInNet=function(){return e.state.UI.activeMenu.id===te.Networking&&!e.state.UI.activeSubMenu},e.closeIntro=function(){e.setState((function(e){return{UI:Object(y.a)(Object(y.a)({},e.UI),{},{showIntro:!1})}})),sessionStorage.setItem("playedIntro","true")},e}return Object(u.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){dt()({title:e,icon:"info",className:"video-swal-modal",button:"continue"})}},{key:"render",value:function(){var e=this;return Object(o.jsxs)(o.Fragment,{children:[this.state.UI.showIntro&&Object(o.jsx)(et,{close:this.closeIntro}),!this.state.UI.showIntro&&Object(o.jsx)(o.Fragment,{children: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",style:j.isMobileOnly||this.state.UI.activeMenu.id!==te.Audi?{}:{marginRight:"calc(100vw - 177vh)"},children:[Object(o.jsx)(Xt,{firestore:Te}),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===E&&Object(o.jsx)(pn,{data:ke,close:function(){return e.closeMediaModal()}}),this.state.MediaModalInfo.type===B&&Object(o.jsx)(Wt,{videoData:Ie,close:function(){return e.closeMediaModal()}}),this.state.MediaModalInfo.type===R&&Object(o.jsx)("iframe",{title:"pdf",className:"media-modal-content",src:this.state.MediaModalInfo.link}),this.state.MediaModalInfo.type===_&&Object(o.jsx)("iframe",{title:"iframe",allow:"camera *;microphone *",className:"media-modal-content-iframe",src:this.state.MediaModalInfo.link}),this.state.MediaModalInfo.type===A&&Object(o.jsxs)("div",{className:"media-modal-content",children:[Object(o.jsx)(ht.a,{config:{youtube:{playerVars:{showinfo:1}}},playing:!0,url:this.state.MediaModalInfo.link,volume:.85,controls:!0,width:"100%",height:"100%",onPlay:function(){e.setState((function(e){return{UI:Object(y.a)(Object(y.a)({},e.UI),{},{showMediaModalLoader:!1})}}))}}),Object(o.jsx)("div",{className:"blocker ".concat(this.state.UI.showMediaModalLoader?"":"d-none"),children:Object(o.jsx)("div",{className:"lds-dual-ring"})})]}),this.state.MediaModalInfo.type===P&&Object(o.jsx)("img",{title:"image",className:"media-modal-content-image",src:this.state.MediaModalInfo.link,alt:"mediaModalImage"}),this.state.MediaModalInfo.type!==B&&Object(o.jsx)("img",{src:me.CLOSEBUTTON,className:"closeButton-mediaModal",alt:"MediaModalCLoseButton",onClick:this.closeMediaModal})]})})}),this.state.UI.activeMenu.id===te.Lobby&&Object(o.jsxs)(o.Fragment,{children:[Object(o.jsx)(Ct,{ShowMediaModal:this.showMediaModal,initialVideo:he.LOBBYLOOP,firstVideoFrame:me.LOBBYLOOP,initialHotspot:xe,globalBackButton:!1,changeComponenet:this.handleClick,ratio:mn,sceneName:"Lobby",showTut:!0,tutComponent:Jt,showingTutorialEvent:this.handleSceneTutorial,changeInternalStateHandler:this.handleLobbyInternalState,addHotspotAnalytics:this.handleHotspotAnalytics,addAnalytics:function(t){return e.addComponentAnalytics(Y,t)}}),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)(hn,{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===te.Audi&&Object(o.jsx)(Gt,{withEnv:!1,changeComponenet:this.handleClick,ShowMediaModal:this.showMediaModal,initialVideo:ge.introVideo,globalBackButton:!1,link:this.state.audiLnk,framePlacementStyle:ge.placementStyle,hiddeMute:!1,toggleRotateScreen:this.props.toggleRotateScreen,showScreenCover:!1,showControl:!1,sceneName:"audi",showTut:!0,tutComponent:an,subMenus:this.state.UI.activeSubMenu,addAnalytics:function(t){e.addComponentAnalytics(Z,t)}}),this.state.UI.activeMenu.id===te.Explore&&Object(o.jsx)(o.Fragment,{children:Object(o.jsx)(Ct,{ShowMediaModal:this.showMediaModal,initialVideo:he.BREAKOUTLOOP,firstVideoFrame:me.Breakout,initialHotspot:ye,globalBackButton:!1,changeComponenet:this.handleClick,ratio:mn,sceneName:"Networking",showTut:!1,tutComponent:sn,showingTutorialEvent:this.handleSceneTutorial,addHotspotAnalytics:this.handleHotspotAnalytics,addAnalytics:function(t){return e.addComponentAnalytics(K,t)}})}),this.state.UI.activeMenu.id===te.Meet&&Object(o.jsx)(o.Fragment,{children:Object(o.jsx)(Ct,{isImageScene:!0,initalImage:me.ProductStall,ShowMediaModal:this.showMediaModal,initialHotspot:ve,globalBackButton:!0,changeComponenet:this.handleClick,ratio:mn,sceneName:"Networking",showTut:!1,tutComponent:sn,showingTutorialEvent:this.handleSceneTutorial,addHotspotAnalytics:this.handleHotspotAnalytics,addAnalytics:function(t){return e.addComponentAnalytics(Q,t)}})}),this.state.UI.overlayMenu&&Object(o.jsx)(o.Fragment,{children:this.state.UI.overlayMenu.id===te.TeamBuilding&&Object(o.jsx)(o.Fragment,{children:Object(o.jsx)(cn,{close:this.hideOverlayMenu,addAnalytics:function(t){return e.addComponentAnalytics(J,t)}})})}),this.state.UI.activeMenu.id===te.Explore&&this.state.UI.activeSubMenu&&Object(o.jsxs)(o.Fragment,{children:[this.state.UI.activeSubMenu.id===ce&&Object(o.jsx)("article",{className:"img-bg videoBox h-100 zIndex50",id:"play",children:Object(o.jsxs)("div",{className:"media-modal",children:[Object(o.jsx)("iframe",{title:"pdf",className:"media-modal-content",src:we.speakerPdf}),Object(o.jsx)("img",{src:me.CLOSEBUTTON,className:"closeButton-mediaModal",alt:"MediaModalCLoseButton",onClick:this.closeSubMenu})]})}),this.state.UI.activeSubMenu.id===le&&Object(o.jsx)(o.Fragment,{children:Object(o.jsx)(Wt,{videoData:Ie,close:function(){return e.closeSubMenu()}})}),this.state.UI.activeSubMenu.id===re&&Object(o.jsx)(cn,{close:this.closeSubMenu}),this.state.UI.activeSubMenu.id===de&&Object(o.jsx)("div",{className:"scrollableIframeParent",children:Object(o.jsx)("iframe",{className:"publicChatBox",src:"/Chat/index.html",title:"chatFrame"})})]}),Object(o.jsxs)("footer",{className:"footerBox",style:j.isMobileOnly||this.state.UI.activeMenu.id!==te.Audi?{}:{width:"calc(100vw - 177vh)"},children:[this.state.UI.overlayMenu&&Object(o.jsx)(o.Fragment,{children:this.state.UI.overlayMenu.id===te.MyProfile&&Object(o.jsx)("div",{children:Object(o.jsx)(bt,{close:this.hideOverlayMenu,ShowMediaModal:this.handleMedialModalFromOverlay})})}),this.state.UI.activeMenu&&!this.state.UI.activeMenu.subMenus&&Object(o.jsx)(pt,{items:this.state.UI.menuItems,mainMenuState:this.state.UI.overlayMenu?this.state.UI.overlayMenu.id:this.state.UI.activeMenu.id,onMenuItemClick:this.handleClick,canInteract:this.state.UI.isInteractable}),this.state.UI.activeMenu.subMenus&&Object(o.jsx)(pt,{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,parentMenu:this.state.UI.activeMenu,onBackButtonClick:function(t){return e.handleClick(t,ae[ne])}}),this.state.UI.activeSubMenu&&this.state.UI.activeMenu.id===te.Audi&&Object(o.jsx)(o.Fragment,{children:Object(o.jsxs)("div",{className:"submenu-container active expended",children:[this.state.UI.activeSubMenu.id===ie&&Object(o.jsx)(Et,{onHeadingClick:this.closeSubMenu}),this.state.UI.activeSubMenu.id===oe&&Object(o.jsx)(zt,{onHeadingClick:this.closeSubMenu})]})})]})]})})}),this.checkIfAudioCanPlayUnderMediaModal()&&this.state.UI.activeMenu.id!==te.Explore&&this.state.UI.activeMenu.id!==te.Audi&&this.state.UI.activeMenu.id!==te.product&&Object(o.jsx)($t.a,{src:"/3dAssets/music/ambientMusic.mp3",autoPlay:!0,volume:.1,loop:!0,preload:"auto",ref:this.currentAudioRef}),!j.isMobileOnly&&this.state.UI.activeMenu.id!==te.Audi&&Object(o.jsx)("div",{className:"leftBottom",children:Object(o.jsx)("img",{src:"/assets/images/D2C.png"})})]})}}]),n}(s.Component);bn.contextType=st;var fn=bn,jn="tup6jury",vn="tup6",gn="tup6leader",On=function(e){Object(h.a)(n,e);var t=Object(p.a)(n);function n(){var e;Object(d.a)(this,n);for(var a=arguments.length,i=new Array(a),o=0;o