(this["webpackJsonpbgk-ultratech"]=this["webpackJsonpbgk-ultratech"]||[]).push([[0],{44:function(e,t,a){e.exports=a(84)},49:function(e,t,a){},80:function(e,t,a){},81:function(e,t,a){},84:function(e,t,a){"use strict";a.r(t);var n=a(0),i=a.n(n),o=a(40),r=a.n(o),s=(a(49),a(6)),c=a(7),l=a(9),u=a(8),d=a(3),m=a.n(d),h=a(4),p=a(29),f=a(10),g=a(23),v=a(27),y=a(1),w=Object(n.createContext)({user:null}),b=a(5),I=a(11),E=a.n(I);a(52),a(54),a(57),a(85),a(86);E.a.initializeApp({apiKey:"AIzaSyAOcWav85E95Lt6bHdJlVpL0DsQv_3GVfM",authDomain:"hitachi-virtual-event.firebaseapp.com",databaseURL:"https://hitachi-virtual-event.firebaseio.com",projectId:"hitachi-virtual-event",storageBucket:"hitachi-virtual-event.appspot.com",messagingSenderId:"100416178952",appId:"1:100416178952:web:999dbc4af2a2518dc47abd",measurementId:"G-3TPT4SQVRS"}),window.firebaseInstance=E.a;E.a;var O=E.a.auth(),S=E.a.firestore(),T=E.a.database(),k=(E.a.analytics(),E.a.storage(),function(e){return new Promise(function(){var t=Object(h.a)(m.a.mark((function t(a,n){var i,o;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,(void 0==e||""===e)&&n({code:"UserIDWasNull",message:"Please try again later"}),i=T.ref("loggedInUser/"+e),t.next=5,i.update({state:"online",lastChange:E.a.database.ServerValue.TIMESTAMP});case 5:return t.next=7,i.onDisconnect();case 7:return o=t.sent,t.next=10,o.update({state:"offline",lastChange:E.a.database.ServerValue.TIMESTAMP});case 10:a(),t.next=16;break;case 13:t.prev=13,t.t0=t.catch(0),n(t.t0);case 16:case"end":return t.stop()}}),t,null,[[0,13]])})));return function(e,a){return t.apply(this,arguments)}}())}),N="lobby",L="audi",j="standUp",A="photoBooth",M="quiz",C=function(e,t){return new Promise(function(){var a=Object(h.a)(m.a.mark((function a(n,i){var o;return m.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,(void 0==e||""===e)&&i({code:"UserIDWasNull",message:"Please try again later"}),o=T.ref("loggedInUser/"+e),a.next=5,o.update({location:t});case 5:return o=T.ref("locationCounter/"),a.next=8,o.update(Object(b.a)({},t,E.a.database.ServerValue.increment(1)));case 8:return a.next=10,o.onDisconnect();case 10:return window.locationDBRef=a.sent,a.next=13,window.locationDBRef.update(Object(b.a)({},t,E.a.database.ServerValue.increment(-1)));case 13:n(),a.next=19;break;case 16:a.prev=16,a.t0=a.catch(0),i(a.t0);case 19:case"end":return a.stop()}}),a,null,[[0,16]])})));return function(e,t){return a.apply(this,arguments)}}())},x=function(e,t){return new Promise(function(){var e=Object(h.a)(m.a.mark((function e(a,n){var i;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,window.locationDBRef&&window.locationDBRef.cancel(),i=T.ref("locationCounter/"),e.next=5,i.update(Object(b.a)({},t,E.a.database.ServerValue.increment(-1)));case 5:a(),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),n(e.t0);case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t,a){return e.apply(this,arguments)}}())},U=function(e,t){return new Promise(function(){var a=Object(h.a)(m.a.mark((function a(n,i){var o;return m.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,O.signInWithEmailAndPassword(e,t);case 3:o=a.sent,console.log(o.user.email+" is logged in right now"),n(),a.next=11;break;case 8:a.prev=8,a.t0=a.catch(0),i(a.t0);case 11:case"end":return a.stop()}}),a,null,[[0,8]])})));return function(e,t){return a.apply(this,arguments)}}())},R=function(e,t,a){return new Promise(function(){var n=Object(h.a)(m.a.mark((function n(i,o){var r;return m.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,O.createUserWithEmailAndPassword(e,t);case 3:return r=n.sent,console.log(r.user.email+" is signedUp in right now"),n.next=7,r.user.updateProfile({displayName:a});case 7:i(),n.next=13;break;case 10:n.prev=10,n.t0=n.catch(0),o(n.t0);case 13:case"end":return n.stop()}}),n,null,[[0,10]])})));return function(e,t){return n.apply(this,arguments)}}())},B=function(){var e=Object(h.a)(m.a.mark((function e(t,a,n){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(){var e=Object(h.a)(m.a.mark((function e(i,o){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,U(t,a);case 3:i(),e.next=14;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=13;break}return e.next=12,R(t,a,n);case 12:return e.abrupt("return");case 13:o(e.t0);case 14:case"end":return e.stop()}}),e,null,[[0,6]])})));return function(t,a){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)})));return function(t,a,n){return e.apply(this,arguments)}}(),D=function(e){O.signOut().then((function(){e||(window.location.reload(),window.location.href="/")}))};!function(){var e="-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz",t=0,a=[]}();var V=function e(t){return new Promise(function(){var a=Object(h.a)(m.a.mark((function a(n,i){var o,r,s,c;return m.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(a.prev=0,null!==t.displayName){a.next=4;break}return setTimeout((function(){e(t)}),1e3),a.abrupt("return");case 4:if(void 0!==window.todaysDateTimestamp&&null!==window.todaysDateTimestamp){a.next=7;break}return setTimeout((function(){e(t)}),1e3),a.abrupt("return");case 7:return o=(o=(o=t.email).replace(/[&\/\\#,+$~%.'":*?<>{}]/g,"")).toLowerCase(),r="analytics/".concat(window.todaysDateTimestamp,"/").concat(o),s=T.ref(r),a.next=14,s.once("value");case 14:if(!(c=a.sent).exists()){a.next=25;break}if(void 0!==c.val().email&&null!==c.val().email&&void 0!==c.val().name&&null!==c.val().name){a.next=21;break}return a.next=19,s.update({email:t.email,name:t.displayName,lastLoginTime:E.a.database.ServerValue.TIMESTAMP});case 19:a.next=23;break;case 21:return a.next=23,s.update({lastLoginTime:E.a.database.ServerValue.TIMESTAMP});case 23:a.next=27;break;case 25:return a.next=27,s.set({email:t.email,name:t.displayName,firstLoginTime:E.a.database.ServerValue.TIMESTAMP,lastLoginTime:E.a.database.ServerValue.TIMESTAMP});case 27:n(),a.next=33;break;case 30:a.prev=30,a.t0=a.catch(0),i(a.t0);case 33:case"end":return a.stop()}}),a,null,[[0,30]])})));return function(e,t){return a.apply(this,arguments)}}())},z=function(e){return new Promise(function(){var t=Object(h.a)(m.a.mark((function t(a,n){var i,o,r;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,null!==e.displayName){t.next=4;break}return setTimeout((function(){V(e)}),1e3),t.abrupt("return");case 4:if(void 0!==window.todaysDateTimestamp&&null!==window.todaysDateTimestamp){t.next=7;break}return setTimeout((function(){V(e)}),1e3),t.abrupt("return");case 7:i=(i=(i=e.email).replace(/[&\/\\#,+$~%.'":*?<>{}]/g,"")).toLowerCase(),o="analytics/".concat(window.todaysDateTimestamp,"/").concat(i),r=T.ref(o),r.onDisconnect().update({lastLogoutTime:E.a.database.ServerValue.TIMESTAMP}).then((function(){console.log("listnerAttached")})),a(),t.next=20;break;case 17:t.prev=17,t.t0=t.catch(0),n(t.t0);case 20:case"end":return t.stop()}}),t,null,[[0,17]])})));return function(e,a){return t.apply(this,arguments)}}())},q=function(e,t){return new Promise(function(){var a=Object(h.a)(m.a.mark((function a(n,i){var o,r,s;return m.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(a.prev=0,window.todaysDateTimestamp||e.email||e.displayName){a.next=4;break}return setTimeout((function(){V(e)}),500),a.abrupt("return");case 4:if(void 0!==window.todaysDateTimestamp&&null!==window.todaysDateTimestamp){a.next=7;break}return setTimeout((function(){V(e)}),500),a.abrupt("return");case 7:return o=(o=(o=e.email).replace(/[&\/\\#,+$~%.'":*?<>{}]/g,"")).toLowerCase(),r="analytics/".concat(window.todaysDateTimestamp,"/").concat(o),s=T.ref(r),a.next=14,s.update(Object(b.a)({},t,E.a.database.ServerValue.increment(1)));case 14:n(),a.next=20;break;case 17:a.prev=17,a.t0=a.catch(0),i(a.t0);case 20:case"end":return a.stop()}}),a,null,[[0,17]])})));return function(e,t){return a.apply(this,arguments)}}())},P=function(e){return new Promise((function(t,a){(void 0==(e=(e=e.replace(/[&\/\\#,+$~%.'":*?<>{}]/g,"")).toLowerCase())||""===e)&&a({code:"UserIDWasNull",message:"Please try again later"}),T.ref("quizData/"+e).once("value").then((function(e){if(e.exists()){var a=e.val();t({played:!0,score:a})}else t({played:!1})}),(function(e){a(e)}))}))},F=function(e,t){return new Promise(function(){var a=Object(h.a)(m.a.mark((function a(n,i){var o,r;return m.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return(void 0==(e=(e=e.replace(/[&\/\\#,+$~%.'":*?<>{}]/g,"")).toLowerCase())||""===e)&&i({code:"UserIDWasNull",message:"Please try again later"}),o=T.ref("quizData/"+e),a.next=6,P(e);case 6:(r=a.sent).played?r.score{}]/g,"")).toLowerCase(),t.next=8,k(n);case 8:null===sessionStorage.getItem("analyticsLogged")&&V(a).then((function(){sessionStorage.setItem("analyticsLogged","true")})),z(a),localStorage.getItem("viewedIntroOnce")&&(a.secondTime=!0),e.setState({user:a}),t.next=17;break;case 14:console.log("nouserLoggedIn"),window.app&&window.app.cleanMemory(),e.setState({user:null});case 17:t.next=22;break;case 19:t.prev=19,t.t0=t.catch(0),window.showLoginError(t.t0);case 22:case"end":return t.stop()}}),t,null,[[0,19]])})));return function(e){return t.apply(this,arguments)}}());case 1:case"end":return t.stop()}}),t)}))),e}return Object(c.a)(a,[{key:"render",value:function(){var e=this.state.user;return i.a.createElement(w.Provider,{value:e},this.props.children)}}]),a}(n.Component),Z=(a(59),a(22)),$=a.n(Z),J=a(42),X={IntroVideoFrame:"assets/images/bg/home-bg.jpg",LOGO:"assets/images/logo.png",MENULOGO:"assets/images/menuLogo.png",LOGINSCREEN:"assets/images/bg/home-bg.jpg",LOBBYBLUR:"hitachi_assets/images/lobby_blur.jpg",QUIZBG:"hitachi_assets/images/quizbg.png",LOGINSCREENSIDELOGO:"assets/images/side-pic.png",INFOSTILL:"hitachi_assets/images/InfoDesk_Moment.jpg",PHOTOSTILL:"hitachi_assets/images/PhotoBooth_Moment.jpg",STANDUPSTILL:"hitachi_assets/images/Audi.png",LOGINTOLOBBY:"hitachi_assets/images/loginToLobby.jpg",LOBBYLOOP:"hitachi_assets/images/lobbyLoop.jpg",RIPPLE:"/3dAssets/gifs/Ripple-2.4s-128px.svg",BACKBUTTON:"/3dAssets/UI/backButton.png",CLOSEBUTTON:"/3dAssets/UI/closeButton.png",INFODESKIMAGE:"/3dAssets/images/Info.jpg",AVZONEIMAGE:"/3dAssets/images/AV-Zone.jpg",LIBRARYIMAGE:"/3dAssets/images/Library.jpg",UBSZONEIMAGE:"/3dAssets/images/UBS-Zone.jpg",CHOOSINGLAND:"/3dAssets/images/ChoosingLand.jpg",BUDGETING:"/3dAssets/images/Budgeting.jpg",SELECTINGTEAM:"/3dAssets/images/SelectingTeam.jpg",SELECTINGMATERIAL:"/3dAssets/images/SelectingMaterial.jpg",SUPERVISIONWORK:"/3dAssets/images/SupervisionWork.jpg",MOVINGIN:"/3dAssets/images/MovingIn.jpg",PHOTOBOOTH:"/3dAssets/images/Photobooth.jpg"},ee=1,te=2,ae=3,ne=4,ie=5,oe=6,re=0,se=1,ce=2,le=3,ue=[{id:1,name:"Lobby",class:"icon-newhome"},{id:2,name:"STAND UP COMEDY",class:"icon-StandUp fnSize-2"},{id:3,name:"PHOTOBOOTH",class:"icon-photobooth"},{id:4,name:"SpecialAudi",class:"icon-call"},{id:6,name:"KAUN BANEGA VIJEYTA",isImage:!0,class:"icon-kbv"}],de="transition",me="iframe",he="video",pe="image",fe="pdf",ge="anchor",ve=0,ye=1,we=function(e){Object(l.a)(a,e);var t=Object(u.a)(a);function a(e){var n;return Object(s.a)(this,a),(n=t.call(this,e)).state={items:n.props.items,activeItemId:n.props.mainMenuState},n.onMenuItemClick=n.onMenuItemClick.bind(Object(v.a)(n)),n}return Object(c.a)(a,[{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=[],a=0;a0?e.state.questionTimer-e.timeDecrementValue:0;e.setState({questionTimer:t}),0===t&&(clearInterval(e.questionTimerRef),setTimeout((function(){var t=e.state.answerRecord;t.push(0),e.setState({answerRecord:t}),e.updateToNextQuestion()}),500))}),e.timeDecrementValue)},e.renderFooter=function(){for(var t=[],a=0;ae.currentQuestionIndex&&i.a.createElement("span",{className:"quiz-progress--growth",style:{width:"0%"}}))));return t},e.handleAudioFinish=function(){if(console.log("audioFInished"),e.state.quizState===Me)e.setState((function(e){return{Audio:Object(y.a)(Object(y.a)({},e.Audio),{},{introFinsih:!0,audioSeek:0})}}));else if(e.state.quizState===Ce)e.setState((function(e){return{Audio:Object(y.a)(Object(y.a)({},e.Audio),{},{howToPlayFinish:!0,audioSeek:0})}}));else if(e.state.quizState===Ue)e.setState((function(e){return{Audio:Object(y.a)(Object(y.a)({},e.Audio),{},{thanksFinish:!0,audioSeek:0})}}));else if(e.state.quizState===xe)if(e.state.answered)if(clearInterval(e.questionTimerRef),e.state.succefulyAttempt)setTimeout((function(){e.updateToNextQuestion()}),500);else{for(var t=0,a=e.props.quizData[e.state.currentQuestionKey].option,n=0;n2.33*window.innerHeight?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.forceUpdate&&clearTimeout(e.forceUpdate),e.initialForceUpdate&&clearTimeout(e.initialForceUpdate),document.body.style.overflow=e.previousStyle_Overflow,window.removeEventListener("resize",e.hadnleResize),e.props.addLocationAnalytics&&e.props.addLocationAnalytics(!1)},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.updateChild3DContainerStyle=function(t){e.setState({child3dContainerStyle:Object(y.a)({},t)})},e.toggleHUDElement=function(t,a,n){e.setState((function(e){return{UI:Object(y.a)(Object(y.a)({},e.UI),{},{showOverlay:t,showArrows:a,showBackButton:n})}}))},e.startTransition=function(t,a,n,i,o){null!==t&&t.preventDefault(),e.currentTransitionType=n,e.afterTransitionItem=i,e.toggleHUDElement(!1,!1,!1),e.setState({currentHotspot:o}),null!=a?(e.setState((function(e){return{CurrentUrl:Object(y.a)(Object(y.a)({},e.CurrentUrl),{},{transitionVideo:a})}})),e.transitionVideoRef.current.load(),e.transitionVideoRef.current.play(),e.transitionVideoRef.current.loop=!1):e.handleTransitionWithOutVideo()},e.applyFadeInDuringTransition=function(){e.videoRef.current.removeEventListener("loadedmetadata",e.applyFadeInDuringTransition),setTimeout((function(){e.setState({frameVideoStyle:Ge})}),900*e.videoRef.current.duration)},e.handleTransitionVideoEnd=function(t){e.toggleHUDElement(!1,!1,!0),e.updateChild3DContainerStyle({marginLeft:"0"}),e.currentTransitionType===ve?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:Ke}})):e.currentTransitionType===ye&&e.props.changeComponenet(t,e.afterTransitionItem)},e.handleTransitionWithOutVideo=function(){e.setState({frameVideoStyle:Ge}),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:Ke}}))}),1125)},e.backToLobby=function(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(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}),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,a,n){t.preventDefault(),a!==ge?e.props.ShowMediaModal(a,n):window.open(n,"_blank")},e.handleTransitionVideoStart=function(){console.log("transition Plat"),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}return Object(c.a)(a,[{key:"componentDidMount",value:function(){var e=this;this.props.addAnalytics&&this.props.addAnalytics(),this.previousStyle_Overflow=document.body.style.overflow,document.body.style.overflow="hidden",this.initialForceUpdate=setTimeout((function(){e.setState((function(e){return{UI:Object(y.a)(Object(y.a)({},e.UI),{},{showOverlay:!0,showArrows:!0,arrowsRequired:!(window.innerWidth>2.33*window.innerHeight)}),child3dContainerStyle:{marginLeft:"0"}}}))}),250),this.props.addLocationAnalytics&&this.props.addLocationAnalytics(!0),window.addEventListener("resize",this.hadnleResize)}},{key:"render",value:function(){var e=this;return i.a.createElement(i.a.Fragment,null,this.state.UI.showGlobalBackButton&&i.a.createElement("img",{src:X.BACKBUTTON,alt:"backButtonToLobby",className:"globalBackButton",onClick:function(t){return e.props.changeComponenet(t,ue[re])}}),i.a.createElement("div",{className:"main3DContainer",ref:this.main3dContainer},i.a.createElement("div",{id:"child3DContainer",ref:this.child3dContainer,style:this.state.child3dContainerStyle},this.props.isImageScene&&i.a.createElement("img",{ref:this.videoRef,id:"FrameVideo",src:this.props.initalImage,style:Object(y.a)(Object(y.a)({},this.state.frameVideoStyle),{},{maxWidth:"none"}),alt:"MainSceneImage"}),!this.props.isImageScene&&i.a.createElement(i.a.Fragment,null,!this.state.UI.fadeIntroImage&&i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{style:{width:"calc(100vh * 2.33)",height:"100%",position:"absolute",display:"flex",justifyContent:"center",pointerEvents:"none"}},i.a.createElement("div",{className:"blocker ".concat(this.state.UI.fadeIntroImage?"d-none":"")},i.a.createElement("div",{className:"lds-dual-ring"})),i.a.createElement("img",{id:"introFrame",className:this.state.UI.fadeIntroImage?"IntroFadeImage":"",alt:"Introframe",src:X.LOBBYLOOP,style:He}))),i.a.createElement("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},i.a.createElement("source",{src:this.state.CurrentUrl.mainVideo,type:"video/mp4"}),"Your browser does not support HTML5 video."),i.a.createElement("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.frameVideoStyle,onPlay:this.handleTransitionVideoStart,onEnded:this.handleTransitionVideoTagEnd},i.a.createElement("source",{src:this.state.CurrentUrl.transitionVideo,type:"video/mp4"}),"Your browser does not support HTML5 video.")),this.state.UI.showBackButton&&i.a.createElement("img",{src:X.BACKBUTTON,alt:"backButtonToLobby",className:"backButton",onClick:function(t){return e.backToLobby(t)}}),this.state.UI.showImage&&i.a.createElement("img",{id:"FrameImage",className:this.state.frameImageClass,src:this.state.CurrentUrl.image,alt:"LobbyImage",ref:this.frameImageRef}),this.state.UI.showOverlay&&i.a.createElement("div",{id:"overlayContent",style:{height:"100%",width:"calc(100vh * 2.33)"}},i.a.createElement("div",{id:"lobbyScreen"},Object.keys(this.state.currentHotspot).map((function(t){return e.state.currentHotspot[t].enabled?e.state.currentHotspot[t].hotspotType===de?i.a.createElement("img",{key:t,id:t,src:X.RIPPLE,className:"hotspot",onClick:function(a){return e.startTransition(a,e.state.currentHotspot[t].transitionVideo,e.state.currentHotspot[t].transitionType,e.state.currentHotspot[t].newItem,e.state.currentHotspot[t].hotspot)},style:e.state.currentHotspot[t].style,alt:"hotspot"}):i.a.createElement("img",{key:t,id:t,src:X.RIPPLE,className:"hotspot",onClick:function(a){return e.showMediaModal(a,e.state.currentHotspot[t].hotspotType,e.state.currentHotspot[t].link)},style:e.state.currentHotspot[t].style,alt:"hotspot"}):null})))),this.state.UI.showArrows&&this.state.UI.arrowsRequired&&i.a.createElement(i.a.Fragment,null,i.a.createElement(Qe,{updateParent:this.updateChild3DContainerStyle,mainContainer:this.child3dContainer.current,mediaContainer:this.videoRef.current})))),i.a.createElement("div",null))}}]),a}(n.Component);Ye.contextType=w;var Ze=function(e){Object(l.a)(a,e);var t=Object(u.a)(a);function a(){var e;Object(s.a)(this,a);for(var n=arguments.length,o=new Array(n),r=0;r1&&void 0!==arguments[1])||arguments[1];e.setState((function(e){return{Timer:Object(y.a)(Object(y.a)({},e.Timer),{},{timeLeft:t,show:a})}}))},e.handleLink=function(e){console.log(Xe),e.audi!==Xe.audiLink&&(Xe.audiLink=e.audi),e.entertainmentZone!==Xe.entertainmentLink&&(Xe.entertainmentLink=e.entertainmentZone),e.photobooth!==$e.game.link&&($e.game.link=e.photobooth),console.log(Xe)},e.handleAudiStatus=function(t){if(t.isGoingLive){var a=new Date(t.startTime).getTime()-((new Date).getTime()+e.props.webTimeDiff);if(a>0){new Date(a).toISOString().substr(11,8).split(":");e.showNotification(t.message,t.notificationTime),e.setTimerTime(a/1e3),e.notificationTimer&&clearInterval(e.notificationTimer)}else e.notFirstTime?(console.log("Event is Live, you should be in Audi right now"),e.state.activeMenu&&(e.state.activeMenu.id,e.moveToSpecialAudi())):(e.notFirstTime=!0,console.log("directly open that lobby, skip quiz"),e.moveToSpecialAudi())}else e.state.Timer.show&&(e.setTimerTime(0,!1),e.state.Notification.show&&e.setState({Notification:{show:!1,message:""}}))},e.moveToSpecialAudi=function(){e.state.UI.introVideoEnded?e.lobbyRef?e.handleClick(null,ue[le]):e.setState((function(e){return{UI:Object(y.a)(Object(y.a)({},e.UI),{},{introVideoEnded:!0,menuItems:ue,activeMenu:ue[le],overlayMenu:null,MenuVisible:!0,isInteractable:!0,showMediaModal:!1,showQuiz:!1})}})):e.setState((function(e){return{UI:Object(y.a)(Object(y.a)({},e.UI),{},{activeMenu:ue[le]}),skipQuiz:!0}}))},e.flowFirstTime=!0,e.handleEventFlow=function(t){e.flowFirstTime?e.flowFirstTime=!1:t.moveToLobby&&(console.log("check if not in lobby, move to lobby"),e.setState((function(e){return{UI:Object(y.a)(Object(y.a)({},e.UI),{},{introVideoEnded:!0,menuItems:ue,activeMenu:ue[0],overlayMenu:null,MenuVisible:!0,isInteractable:!0,showMediaModal:!1,showQuiz:!1})}})))},e.notificationTimerRef=null,e.showNotification=function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:15;"string"==typeof a&&(a=parseInt(a)),e.notificationTimerRef&&clearTimeout(e.notificationTimerRef),e.setState({Notification:{show:!0,message:t}}),e.notificationTimerRef=setTimeout((function(){e.setState({Notification:{show:!1,message:""}})}),1e3*a)},e.handleNotifications=function(t){t.show&&e.showNotification(t.message,t.time)},e.TimerTotalTime=60,e.getClock=function(){for(var t=[],a=0;aa?"#ffffff":"rgba(225, 225, 225, .5)")}}));return t},e.addAnalytics=function(t){q(e.context,t)},e.addLocationAnalytics=function(t,a){var n=e.context.email;n=(n=n.replace(/[&\/\\#,+$~%.'":*?<>{}]/g,"")).toLowerCase(),a?C(n,t):x(0,t)},e.getMnSFormat=function(e){if(e>=59)return i.a.createElement("div",{className:"timer-waitText"},"TIME TO LAUNCH");var t=e%60;return i.a.createElement("div",{className:"timer-text"},"".concat(t<10?"0".concat(t):t))},e.handleTimerFinish=function(){console.log("Finished"),e.setTimerTime(0,0,!1),e.moveToSpecialAudi()},e.handleMenuToggleButton=function(t){t&&t.preventDefault(),e.setState((function(e){return{UI:Object(y.a)(Object(y.a)({},e.UI),{},{footerVisible:!e.UI.footerVisible})}}))},e}return Object(c.a)(a,[{key:"componentWillUnmount",value:function(){window.flowListener&&window.flowListener(),window.NotificationListener&&window.NotificationListener(),window.linkListener&&window.linkListener(),this.notificationTimerRef&&clearTimeout(this.notificationTimerRef),window.removeEventListener("click",this.playIntroAudio)}},{key:"render",value:function(){var e=this;return i.a.createElement(i.a.Fragment,null,this.state.UI.overlayMenu&&this.state.UI.showQuiz&&i.a.createElement(i.a.Fragment,null,this.state.UI.overlayMenu.id===oe&&i.a.createElement(Be,{addLocationAnalytics:function(t){return e.addLocationAnalytics(M,t)},updateScore:this.updateQuizScore,continue:this.handleQuizFinish,quizData:Le,questionTime:3e4,fastTimerOnWrongAnser:!0,lockAfterAnswer:!0})),!this.state.UI.showQuiz&&i.a.createElement("div",{className:"wrapper"},i.a.createElement("section",{className:"loggedin-page has-right-menu min-height-full min-height-full image-bg"},!this.state.UI.introVideoEnded&&i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"main3DContainer"},i.a.createElement("div",{id:"child3DContainer"},i.a.createElement("div",{style:{width:"calc(100vh * 2.33)",height:"100vh",position:"absolute",display:"flex",justifyContent:"center"}},i.a.createElement("div",{className:"blocker ".concat(this.state.UI.fadeIntroImage?"d-none":"")},i.a.createElement("div",{className:"lds-dual-ring"})),i.a.createElement("img",{id:"introFrame",className:this.state.UI.fadeIntroImage?"IntroFadeImage":"",alt:"Introframe",src:X.LOGINTOLOBBY,style:et}),i.a.createElement($.a,{id:"FrameVideo",url:"https://player.vimeo.com/video/476617941",playing:!0,controls:!1,width:"100%",height:"100%",playsinline:!0,style:this.state.UI.fadeIntroImage?at:tt,onEnded:function(t){return e.handleIntroVideoEnd()},onPlay:this.handleIntroVideoStart,onReady:this.handleIntroVideoStart,ref:this.introVideoPlayerRef})))),this.state.UI.showIntroVideoSkipButton&&i.a.createElement("div",{className:"welcome-footer"},i.a.createElement("button",{className:"skipButton",onClick:function(t){return e.handleIntroVideoEnd(t)}},"Skip"))),this.state.UI.introVideoEnded&&!this.state.UI.showQuiz&&i.a.createElement(i.a.Fragment,null,i.a.createElement("article",{className:"img-bg videoBox h-100",id:"play"},this.state.UI.showMediaModal&&i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"media-modal"},this.state.MediaModalInfo.type===fe&&i.a.createElement("iframe",{title:"pdf",className:"media-modal-content",src:this.state.MediaModalInfo.link}),this.state.MediaModalInfo.type===me&&i.a.createElement("iframe",{title:"iframe",allow:"camera *;microphone *",className:"media-modal-content-iframe",src:this.state.MediaModalInfo.link}),this.state.MediaModalInfo.type===he&&i.a.createElement("div",{className:"media-modal-content"},i.a.createElement($.a,{config:{youtube:{playerVars:{showinfo:0}}},playing:!0,url:this.state.MediaModalInfo.link,controls:!1,width:"100%",height:"100%"})),this.state.MediaModalInfo.type===pe&&i.a.createElement("img",{title:"image",className:"media-modal-content-image",src:this.state.MediaModalInfo.link,alt:"mediaModalImage"}),i.a.createElement("img",{src:X.CLOSEBUTTON,className:"closeButton-mediaModal",alt:"MediaModalCLoseButton",onClick:this.closeMediaModal}))),this.state.UI.activeMenu.id===ee&&i.a.createElement(Ye,{ref:this.lobbyRef,changeComponenet:this.changeAcitveMenuItem,ShowMediaModal:this.showMediaModal,initialVideo:Ve.LOBBYLOOP,initialHotspot:Je,globalBackButton:!1,addLocationAnalytics:function(t){return e.addLocationAnalytics(N,t)}}),this.state.UI.activeMenu.id===te&&i.a.createElement(i.a.Fragment,null,i.a.createElement(Ze,{changeComponenet:this.changeAcitveMenuItem,ShowMediaModal:this.showMediaModal,initialVideo:Ve.AUDITORIUM,globalBackButton:!0,videolink:Xe.entertainmentLink,videoPlacementStyle:Xe.placementStyle,addAnalytics:function(){return e.addAnalytics("Entertainment")},addLocationAnalytics:function(t){return e.addLocationAnalytics(j,t)}})),this.state.UI.activeMenu.id===ae&&i.a.createElement(i.a.Fragment,null,i.a.createElement(Ye,{isImageScene:!0,initalImage:X.PHOTOSTILL,changeComponenet:this.changeAcitveMenuItem,ShowMediaModal:this.showMediaModal,initialHotspot:$e,globalBackButton:!0,addAnalytics:function(){return e.addAnalytics("Photobooth")},addLocationAnalytics:function(t){return e.addLocationAnalytics(A,t)}})),this.state.UI.activeMenu.id===ne&&i.a.createElement(i.a.Fragment,null,i.a.createElement(Ze,{changeComponenet:this.changeAcitveMenuItem,ShowMediaModal:this.showMediaModal,initialVideo:Ve.AUDITORIUM,globalBackButton:!1,videolink:Xe.audiLink,videoPlacementStyle:{width:"100%",height:"100%",position:"absolute",zIndex:"44"},noBackground:!0,addAnalytics:function(){return e.addAnalytics("Audi")},addLocationAnalytics:function(t){return e.addLocationAnalytics(L,t)}})),this.state.Notification.show&&this.state.UI.introVideoEnded&&i.a.createElement("div",{className:"notificationContainer light-color "},this.state.Notification.message),this.state.UI.introVideoEnded&&this.state.Timer.show&&i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"timerContainerParent"},i.a.createElement("div",{id:"timer_container",className:"white-text",style:g.isMobileOnly?{width:"".concat(this.state.Timer.parentRingRadius,"px"),height:"".concat(this.state.Timer.parentRingRadius,"px")}:{width:"".concat(2*this.state.Timer.parentRingRadius,"px"),height:"".concat(2*this.state.Timer.parentRingRadius,"px")}},i.a.createElement("div",{className:"timerText light-color"}),i.a.createElement(J.CountdownCircleTimer,{id:"timer",isPlaying:!0,duration:this.state.Timer.timeLeft,colors:"#B32435",size:g.isMobileOnly?this.state.Timer.parentRingRadius:2*this.state.Timer.parentRingRadius,strokeLinecap:"square",strokeWidth:g.isMobileOnly?5:11,onComplete:this.handleTimerFinish,trailColor:"#534d54"},(function(t){var a=t.remainingTime;return e.getMnSFormat(a)})))))),i.a.createElement("div",{className:"mobileMenuButton ".concat(this.state.UI.footerVisible?"mobileMenuButton-down":"mobileMenuButton-up"),onClick:function(t){return e.handleMenuToggleButton(t)}}),i.a.createElement("footer",{className:"footerBox ".concat(this.state.UI.footerVisible?"":"minizeFooter")},i.a.createElement(we,{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.overlayMenu&&i.a.createElement(i.a.Fragment,null,this.state.UI.overlayMenu.id===ie&&i.a.createElement("div",{className:"submenu-container active submenu-container--profile"},i.a.createElement(Te,{close:function(t){return e.hideOverlayMenu(t)}}))))))),this.state.UI.introVideoEnded&&this.state.UI.activeMenu.id!==ne&&this.state.UI.activeMenu.id!==te&&!this.state.UI.showQuiz&&i.a.createElement(Ne.a,{src:"/hitachi_assets/music/ambientMusic.mp3",autoPlay:!0,volume:.1,loop:!0,preload:"auto",ref:this.currentAudioRef}))}}]),a}(n.Component);nt.contextType=w;var it=nt,ot=(a(80),{height:"100%",width:"100%",maxWidth:"none",position:"absolute"}),rt=function(e){Object(l.a)(a,e);var t=Object(u.a)(a);function a(){var e;Object(s.a)(this,a);for(var n=arguments.length,o=new Array(n),r=0;rn){var i=(a-n)/2;i>n&&(i=n/2),console.log(i,2.33*window.innerHeight,window.innerWidth,t),e.setState({newStyle:{marginLeft:"-".concat(i,"px")}})}},e.playVideo=function(e){},e.onInputChange=function(t){t.preventDefault();var a=t.target.value;e.setState(Object(b.a)({},t.target.name,a))},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(h.a)(m.a.mark((function t(a){var n,i,o;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:a.preventDefault();try{e.setState({error:!1,forceDisable:!0}),n=e.state.email.toLowerCase(),i=e.state.name,o="".concat(n,"123456"),n.replace(/[&\/\\#,+$~%.'":*?<>{}]/g,"").toLowerCase(),B(n,o,i)}catch(r){e.setState({forceDisable:!1}),console.log(r),r.message?e.setState({error:!0,errorMessage:r.message}):e.setState({error:!0,errorMessage:r})}case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),e.handleIntroVideoStart=function(){console.log("LoginIntroVideoStart"),e.state.fadeIntroImage||e.setState({fadeIntroImage:!0})},e}return Object(c.a)(a,[{key:"componentWillUnmount",value:function(){this.listnerRemoved||window.removeEventListener("click",this.handleWindowClick),window.removeEventListener("orientationchange",this.hadnleResize),window.removeEventListener("resize",this.hadnleResize)}},{key:"render",value:function(){return this.state._loading?i.a.createElement("img",{alt:"loading",src:"/images/loader.gif"}):i.a.createElement("section",{className:"landing-page min-height-full"},i.a.createElement("div",{style:{width:"calc(100vh * 2.33)",height:"100vh",position:"absolute",display:"flex",justifyContent:"center"}},i.a.createElement("img",{id:"introFrame",className:this.state.fadeIntroImage?"IntroFadeImage":"",alt:"Introframe",src:X.LOGINTOLOBBY,style:ot}),i.a.createElement($.a,{id:"loginLoop",autoPlay:!0,url:Ve.LOGINLOOP,playing:!0,loop:!0,muted:!0,controls:!1,width:"100%",height:"100%",playsinline:!0,style:Object(y.a)(Object(y.a)({},this.state.newStyle),{},{width:"100%",height:"100%"}),onPlay:this.handleIntroVideoStart,onReady:this.handleIntroVideoStart})),i.a.createElement("div",{id:"loginBGParent"},i.a.createElement("div",{className:"loginContainerParent"},i.a.createElement("div",{className:"v-line "},i.a.createElement("div",{className:"v-line-text"},i.a.createElement("img",{alt:"",src:"/hitachi_assets/images/textures/sideBanner.png"}))),i.a.createElement("div",{className:"loginContainerPadding"},i.a.createElement("div",{className:"loginHeader"},i.a.createElement("div",{className:"leftAlignedImage"},i.a.createElement("img",{src:"/hitachi_assets/images/login/hitachi.png",alt:"hitachi logo"})),i.a.createElement("div",{className:"centerAlignedImage"},i.a.createElement("img",{src:"/hitachi_assets/images/login/mini.png",alt:"Mini logo"}))),i.a.createElement("div",{className:"loginBodyContainer"},i.a.createElement("form",{onSubmit:this.onFormSubmit},i.a.createElement("div",{className:"loginBody"},i.a.createElement("div",{className:"form-group mg-b25"},i.a.createElement("input",{type:"text",className:"loginFields",name:"name",value:this.state.name,placeholder:"Enter your Name",onClick:this.playVideo,onChange:this.onInputChange,required:!0})),i.a.createElement("div",{className:"form-group mg-b40"},i.a.createElement("input",{type:"email",className:"loginFields",name:"email",value:this.state.email,placeholder:"Enter your email id.",onChange:this.onInputChange,required:!1})),this.state.error&&i.a.createElement("div",{style:{color:"red",fontSize:"1.25rem"}},this.state.errorMessage),i.a.createElement("div",{className:"text-center flex-center"},i.a.createElement("button",{className:"loginBtn",disabled:!!this.state.forceDisable||!(this.validateEmail(this.state.email)&&this.state.name.length>2)},i.a.createElement("span",{className:"d-flex justify-content-between"},"Sign In ",i.a.createElement("i",{className:"icon-angle-right"})))))))))),i.a.createElement(Ne.a,{src:"/hitachi_assets/music/ambientMusic.mp3",autoPlay:!0,volume:.1,loop:!0,preload:"auto",ref:this.currentAudioRef}))}}]),a}(n.Component),st=(a(81),{height:"100%",width:"100%",maxWidth:"none",position:"absolute"}),ct=function(e){Object(l.a)(a,e);var t=Object(u.a)(a);function a(){var e;Object(s.a)(this,a);for(var n=arguments.length,o=new Array(n),r=0;rn){var i=(a-n)/2;i>n&&(i=n/2),console.log(i,2.33*window.innerHeight,window.innerWidth,t),e.setState({newStyle:{marginLeft:"-".concat(i,"px")}})}},e.playVideo=function(e){},e.onInputChange=function(t){t.preventDefault();var a=t.target.value;e.setState(Object(b.a)({},t.target.name,a))},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(h.a)(m.a.mark((function t(a){var n,i,o;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:a.preventDefault();try{e.setState({error:!1,forceDisable:!0}),n=e.state.email.toLowerCase(),i=e.state.name,o="".concat(n,"123456"),n.replace(/[&\/\\#,+$~%.'":*?<>{}]/g,"").toLowerCase(),B(n,o,i)}catch(r){e.setState({forceDisable:!1}),console.log(r),r.message?e.setState({error:!0,errorMessage:r.message}):e.setState({error:!0,errorMessage:r})}case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),e.handleIntroVideoStart=function(){console.log("LoginIntroVideoStart"),e.state.fadeIntroImage||e.setState({fadeIntroImage:!0})},e}return Object(c.a)(a,[{key:"componentWillUnmount",value:function(){this.listnerRemoved||window.removeEventListener("click",this.handleWindowClick),window.removeEventListener("orientationchange",this.hadnleResize),window.removeEventListener("resize",this.hadnleResize)}},{key:"render",value:function(){var e=this;return this.state._loading?i.a.createElement("img",{alt:"loading",src:"/images/loader.gif"}):i.a.createElement("section",{className:"landing-page min-height-full"},i.a.createElement("div",{style:{width:"calc(100vh * 2.33)",height:"100vh",position:"absolute",display:"flex",justifyContent:"center"}},i.a.createElement("img",{id:"introFrame",className:this.state.fadeIntroImage?"IntroFadeImage":"",alt:"Introframe",src:X.LOGINTOLOBBY,style:st}),i.a.createElement($.a,{id:"loginLoop",autoPlay:!0,url:Ve.LOGINLOOP,playing:!0,loop:!0,muted:!0,controls:!1,width:"100%",height:"100%",playsinline:!0,style:Object(y.a)(Object(y.a)({},this.state.newStyle),{},{width:"100%",height:"100%"}),onPlay:this.handleIntroVideoStart,onReady:this.handleIntroVideoStart})),i.a.createElement("div",{id:"loginBGParent"},i.a.createElement("div",{className:"loginContainerParent"},i.a.createElement("div",{className:"v-line "},i.a.createElement("div",{className:"v-line-text"},i.a.createElement("img",{alt:"",src:"/hitachi_assets/images/textures/sideBanner.png"}))),i.a.createElement("div",{className:"loginContainerPadding"},i.a.createElement("div",{className:"loginHeader"},i.a.createElement("div",{className:"leftAlignedImage"},i.a.createElement("img",{src:"/hitachi_assets/images/login/hitachi.png",alt:"hitachi logo"})),i.a.createElement("div",{className:"centerAlignedImage"},i.a.createElement("img",{src:"/hitachi_assets/images/login/mini.png",alt:"Mini logo"}))),i.a.createElement("div",{className:"loginBodyContainer"},i.a.createElement("div",{className:"loginBody"},i.a.createElement("div",{className:"loginBody-divText"},"Please press continue to start your journey."),i.a.createElement("div",{className:"text-center flex-center"},i.a.createElement("button",{className:"loginBtn",onClick:function(t){return e.props.continue(t)}},i.a.createElement("span",{className:"d-flex justify-content-between"},"Continue",i.a.createElement("i",{className:"icon-angle-right"}))))))))),i.a.createElement(Ne.a,{src:"/hitachi_assets/music/ambientMusic.mp3",autoPlay:!0,volume:.1,loop:!0,preload:"auto",ref:this.currentAudioRef}))}}]),a}(n.Component),lt=function(e){Object(l.a)(a,e);var t=Object(u.a)(a);function a(){var e;Object(s.a)(this,a);for(var n=arguments.length,i=new Array(n),o=0;o