(function() { var embededObj; var EmbeddedVR = function() { return new EmbeddedVR.init(); }; EmbeddedVR.init = function() { this.currentScriptUrl = null; this.thumbnailUrl = 'https://irl-sec-theviewer-stage-prod.s3-accelerate.amazonaws.com/zoastudio.vr@gmail.com/0ee29320-a1e1-45b9-a318-3f2a54d9882d/dbb2d5a4-7bd7-4dd5-80e0-6093c2b8f2a7?timestamp=2020-09-01T14:41:35.330Z'; this.galleryId = '0ee29320-a1e1-45b9-a318-3f2a54d9882d'; this.options = { isFullScreenAvailable : true, isThumbnailAvailable : false, isShareNativeAvailable : false, isVrModeAvailable : true, isFloorPlanAvailable : true, isSharedExperienceAvailable : false, }; window.addEventListener("load", appendExternalScripts); } EmbeddedVR.prototype = { resolveVrView : function() { return this; }, showViewer : function() { setTimeout(function(){ var krpanoDiv = document.getElementById('krpanoViewerId'); if (!krpanoDiv) { EmbeddedVR.prototype.showViewer(); } else { krpanoDiv.classList.add('krpanoViewerTransition'); } },700); }, createThumbnail : function() { var wrapperThumbnail = document.createElement('div'); wrapperThumbnail.className = 'wrapperThumbnail'; var thumbnailDiv = document.createElement('img'); thumbnailDiv.id = 'thumbnail'; thumbnailDiv.className = 'thumbnailDiv'; thumbnailDiv.src = this.thumbnailUrl; thumbnailDiv.onclick = onClickThumbnail.bind(thumbnailDiv); wrapperThumbnail.appendChild(thumbnailDiv); this.parentDiv.appendChild(wrapperThumbnail); return this; }, getCurrentScript : function() { return this.currentScriptUrl; }, resolveCurrentScriptUrl : function() { this.parentDiv = document.currentScript.parentElement; this.currentScriptUrl = document.currentScript.src; this.currentScriptUrl = this.currentScriptUrl.substr(0, this.currentScriptUrl.lastIndexOf("/") + 1); return this; }, appendGtmIframe : function() { var iframe = document.createElement('iframe'); iframe.src = this.getCurrentScript() + 'embedJS?galleryId=0ee29320-a1e1-45b9-a318-3f2a54d9882d&spaceId=17abbf73-6080-4fd5-a533-72bb8c69a5b3'; iframe.scrolling = "no"; iframe.frameborder = "0"; iframe.width = "1"; iframe.height = "1"; iframe.style.display = "none"; document.body.appendChild(iframe); } }; function onClickThumbnail(evt) { var krpanoDiv = document.getElementById('krpanoViewerId'); this.parentNode.removeChild(this); initializeViewer(); } function scriptExist(scriptId) { return !(!document.getElementById(scriptId)); } async function appendExternalScripts() { if (!scriptExist("theViewer-krpano")) { let krpanoScript = document.createElement('script'); krpanoScript.id = "theViewer-krpano"; krpanoScript.type = "text/javascript"; krpanoScript.async = true; krpanoScript.src = embededObj.getCurrentScript() +"html/theViewer/script/libs/krpano/krpano.js"; document.head.appendChild(krpanoScript); } if (!scriptExist("theViewer-shareEmbed")) { let requireScript = document.createElement('script'); requireScript.id = "theViewer-shareEmbed"; requireScript.type = "text/javascript"; requireScript.setAttribute('data-main', embededObj.getCurrentScript() + 'html/theViewer/script/req/shareEmbedRequires.js?timestamp=' + Date.now()); requireScript.async = true; requireScript.src = embededObj.getCurrentScript() + "html/theViewer/script/node_modules/requirejs/require.js?timestamp=" + Date.now(); document.head.appendChild(requireScript); } if (!scriptExist("theViewer-font")) { let link = document.createElement('link'); link.id = "theViewer-font"; link.rel = "stylesheet"; link.async = true; link.href = "https://fonts.googleapis.com/css?family=Roboto:100,300,400,700"; document.head.appendChild(link); } if (!scriptExist("theViewer-style")) { let link = document.createElement('link'); link.id = "theViewer-style"; link.rel = "stylesheet"; link.async = true; link.href = "https://fonts.googleapis.com/css?family=Roboto:100,300,400,700"; link.href = embededObj.getCurrentScript() + 'html/theViewer/css/embedViewer.css?timestamp=' + Date.now(); document.head.appendChild(link); } } if (!Array.isArray(window.mainShareFunction)) { window.mainShareFunction = []; } window.mainShareFunction.push((function(thev, thevProxy) { embededObj.krpanoViewer = thev; embededObj.theViewerProxy = thevProxy; if (!embededObj.options.isThumbnailAvailable) { initializeViewer(); } else { embededObj.createThumbnail(); } })); function initializeViewer() { requirejs(["app/utils"], function(utils) { utils.setUrlPrefix(embededObj.getCurrentScript()); requirejs(["app/shareEmbed", "social/socialCounters"], function(share, socialCounters) { window.theViewerAppVersion = 'v3.22'; var theViewerParams = window.theViewer || {}; theViewerParams.GalleryUnparsed = '{\"Id\":null,\"Name\":null,\"Description\":null,\"SpaceId\":null,\"ContentUrl\":null,\"ThumbnailId\":null,\"ThumbnailContentId\":null,\"ThumbnailMime\":null,\"ThumbnailTimestamp\":null,\"ThumbnailVersionId\":null,\"Galleries\":[{\"OrigId\":null,\"Name\":\"livingroom\",\"Description\":null,\"ContentUrl\":\"https:\/\/irl-sec-theviewer-stage-prod.s3-accelerate.amazonaws.com\/zoastudio.vr@gmail.com\/\",\"SpaceName\":\"zoastudio.vr@gmail.com\",\"SpaceType\":\"UserSpace\",\"Order\":null,\"Timestamp\":\"2020-10-08T11:29:41.373Z\",\"ThumbnailContent\":{\"Id\":\"dbb2d5a4-7bd7-4dd5-80e0-6093c2b8f2a7\",\"OrigId\":null,\"Type\":\"IMAGE\",\"Mime\":\"image\/jpeg\",\"VersionId\":\"wrmAKq7NchNbXxiL79vJ0yRJMQMY8cWw\",\"Timestamp\":\"2020-09-01T14:41:35.330Z\",\"OriginalName\":null,\"Name\":\"livingroom\",\"Size\":null},\"CustomSettings\":null,\"ExtendedView\":null,\"Archived\":false,\"MiniMap\":null,\"Bgm\":null,\"Panos\":[{\"OrigId\":null,\"Name\":\"7722_birch_ejendomme_helsted_interior_livingroom_VR_final_04.jpg\",\"LandingAngle\":null,\"MultiresolutionData\":null,\"MultiresolutionPath\":null,\"Content\":{\"Id\":\"add907b5-574d-4860-8e43-7fc8d4c50631\",\"OrigId\":null,\"Type\":null,\"Mime\":\"image\/jpeg\",\"VersionId\":\"UXXaPmoga8HC73jAn6ITMNhGwF1xa1ZV\",\"Timestamp\":\"2020-10-08T11:29:27.878Z\",\"OriginalName\":null,\"Name\":null,\"Size\":null},\"Type\":\"SphericalMonoStandard\",\"Resolution\":8192,\"Order\":null,\"Thumbnail\":{\"Id\":\"b697268e-70a7-4c84-a194-b75b58e580dd\",\"OrigId\":null,\"Type\":\"IMAGE\",\"Mime\":\"image\/jpeg\",\"VersionId\":\"aBCaT7AOVkAiR0jvPrRJ7BwIYS0S2EXO\",\"Timestamp\":\"2020-09-01T14:41:35.017Z\",\"OriginalName\":null,\"Name\":\"livingroom\",\"Size\":null},\"Preview\":{\"Id\":\"preview-add907b5-574d-4860-8e43-7fc8d4c50631\",\"OrigId\":null,\"Type\":\"PANO\",\"Mime\":\"image\/jpeg\",\"VersionId\":\"jznSM8NM03HAr8Xg2JyLRyjso6VGM8QY\",\"Timestamp\":\"2020-10-08T11:29:27.717Z\",\"OriginalName\":null,\"Name\":\"7722_birch_ejendomme_helsted_interior_livingroom_VR_final_04.jpg\",\"Size\":null},\"Depthmap\":null,\"Bgm\":null,\"Warps\":[],\"InfoSpots\":[],\"SoundSpots\":[],\"MediaSpots\":[],\"AnimationSpots\":[],\"AnimationVideoSpots\":[],\"VideoSpots\":[],\"BoundingBoxes\":[],\"TransparentSpots\":[],\"TransparentPublicSpots\":[],\"DepthmapTransparentSpots\":[],\"CustomSettings\":null,\"AudioSettings\":{\"UseDefaults\":true,\"VideoAudio\":true,\"GalleryAudio\":true,\"PanoAudio\":true},\"Timestamp\":\"2020-10-08T11:29:27.878Z\",\"ContentVersionId\":\"UXXaPmoga8HC73jAn6ITMNhGwF1xa1ZV\",\"ContentMime\":\"image\/jpeg\",\"Multiresolution\":false,\"ContentId\":\"add907b5-574d-4860-8e43-7fc8d4c50631\",\"Id\":\"b2ae752b-6c4a-4018-ae84-bebb77a859c0\"}],\"Videos\":[],\"ThumbnailVersionId\":\"wrmAKq7NchNbXxiL79vJ0yRJMQMY8cWw\",\"ThumbnailTimestamp\":\"2020-09-01T14:41:35.330Z\",\"ThumbnailId\":\"dbb2d5a4-7bd7-4dd5-80e0-6093c2b8f2a7\",\"ThumbnailMime\":\"image\/jpeg\",\"ShareableType\":\"GALLERY\",\"Id\":\"0ee29320-a1e1-45b9-a318-3f2a54d9882d\"}],\"Projects\":[],\"ExtendedView\":null,\"CustomSettings\":{\"ContentUrl\":\"https:\/\/irl-sec-theviewer-stage-prod.s3-accelerate.amazonaws.com\/zoastudio.vr@gmail.com\/\",\"Logo\":{\"Id\":\"c2bdffb8-4b5c-46d9-8237-fbf895b9d12a\",\"OrigId\":null,\"Type\":\"IMAGE\",\"Mime\":\"image\/jpeg\",\"VersionId\":\"o2REakDcNbBhkNLQrjdQlfnZyRUIF0_k\",\"Timestamp\":\"2024-02-19T12:54:26.836627367Z\",\"OriginalName\":\"cropped-channels4_profile.jpg\",\"Name\":\"uploadContent\",\"Size\":7111,\"BeanVersion\":2,\"CreationDate\":1708347266839,\"LastUpdateDate\":1708347266870},\"SplashScreen\":null,\"SplashScreenPortrait\":null,\"LandingPano\":null,\"Warp\":null,\"Warp2\":null,\"FloorplanSpot\":{\"Id\":\"ba6c0845-6ab7-4cf6-8059-dc3595d8c098\",\"OrigId\":null,\"Type\":\"IMAGE\",\"Mime\":\"image\/jpeg\",\"VersionId\":\"f3sTiB7rozyW5eyYrNfqSn027xxxJpyv\",\"Timestamp\":\"2022-08-09T09:34:57.020Z\",\"OriginalName\":\"floorplan_512.jpg\",\"Name\":\"uploadContent\",\"Size\":122283,\"BeanVersion\":2,\"CreationDate\":1660037697027,\"LastUpdateDate\":1660037697162},\"InfoSpot\":null,\"Watermark\":null,\"ImageSpot\":null,\"VideoSpot\":null,\"ViewerSettings\":{\"Fov\":\"90\",\"FovMax\":\"160\",\"FovMin\":\"30\",\"Zoom\":true,\"Autorotate\":false,\"AutorotateDelay\":12,\"KeybRotateSpeed\":10.0,\"HeatmapActivated\":null,\"AnalyticsWebActivated\":false,\"AnalyticsNativeActivated\":null,\"SharedExpPerUser\":false,\"AllowVR\":false,\"SidePanel\":false,\"NavigatorAutoCenter\":false,\"FacebookName\":null,\"TransitionAnimation\":\"BLEND(1, easeInCubic)\",\"InfoSpotWidth\":\"200\",\"LikesActivated\":false,\"ShareLinkProtected\":false},\"SidePanelSettings\":{\"ViewMode\":null},\"GeneralSpaceSettings\":{\"SortType\":\"DATE DESC\"},\"Timestamp\":null},\"StatusCode\":0,\"Tier\":\"premium\",\"UserInfo\":{\"Tier\":\"premium\",\"TierLevel\":\"1500\",\"Name\":\"zoastudio.vr@gmail.com\",\"Locale\":\"en\",\"RootSpaceId\":\"17abbf73-6080-4fd5-a533-72bb8c69a5b3\",\"PhotonRegion\":\"eu\",\"Hash\":null,\"ProfileInfo\":{\"Id\":\"fea4a810-648d-464f-8d8b-258dcc7c6bf5\",\"ContentUrl\":\"https:\/\/irl-sec-theviewer-stage-prod.s3-accelerate.amazonaws.com\/zoastudio.vr@gmail.com\/\",\"Logo\":{\"Id\":\"c2bdffb8-4b5c-46d9-8237-fbf895b9d12a\",\"OrigId\":null,\"Type\":\"IMAGE\",\"Mime\":\"image\/jpeg\",\"VersionId\":\"o2REakDcNbBhkNLQrjdQlfnZyRUIF0_k\",\"Timestamp\":\"2024-02-19T12:54:26.836627367Z\",\"OriginalName\":\"cropped-channels4_profile.jpg\",\"Name\":\"uploadContent\",\"Size\":7111,\"BeanVersion\":2,\"CreationDate\":1708347266839,\"LastUpdateDate\":1708347266870},\"SplashScreen\":null,\"SplashScreenPortrait\":null,\"LandingPano\":null,\"Warp\":null,\"Warp2\":null,\"FloorplanSpot\":{\"Id\":\"ba6c0845-6ab7-4cf6-8059-dc3595d8c098\",\"OrigId\":null,\"Type\":\"IMAGE\",\"Mime\":\"image\/jpeg\",\"VersionId\":\"f3sTiB7rozyW5eyYrNfqSn027xxxJpyv\",\"Timestamp\":\"2022-08-09T09:34:57.020Z\",\"OriginalName\":\"floorplan_512.jpg\",\"Name\":\"uploadContent\",\"Size\":122283,\"BeanVersion\":2,\"CreationDate\":1660037697027,\"LastUpdateDate\":1660037697162},\"InfoSpot\":null,\"Watermark\":null,\"ImageSpot\":null,\"VideoSpot\":null,\"FovMin\":\"30\",\"FovMax\":\"160\",\"Fov\":\"90\",\"Zoom\":true,\"Autorotate\":false,\"HeatmapActivated\":null,\"AnalyticsNativeActivated\":null,\"AnalyticsWebActivated\":false,\"SharedExpPerUser\":false,\"AllowVR\":false,\"SidePanel\":false,\"NavigatorAutoCenter\":false,\"TransitionAnimation\":\"BLEND(1, easeInCubic)\",\"InfoSpotWidth\":null,\"AutorotateDelay\":12,\"KeybRotateSpeed\":null,\"LikesActivated\":null,\"GeneralSpaceSettings\":{\"SortType\":\"DATE DESC\"},\"Trial\":false},\"UserStatus\":\"ACTIVE\",\"PublicId\":\"17abbf73-6080-4fd5-a533-72bb8c69a5b3\",\"Email\":\"zoastudio.vr@gmail.com\",\"Organization\":false,\"MainOrganization\":{\"Code\":\"zoastudio.vr@gmail.com\",\"Name\":\"zoastudio.vr@gmail.com\",\"SpaceId\":\"17abbf73-6080-4fd5-a533-72bb8c69a5b3\"},\"AllUserOrganizations\":null,\"UserFullName\":\"zoa vr\",\"Trial\":false},\"ShareableType\":\"PROJECT\"}'; theViewerParams.isSharedExperienceAvailable = embededObj.options.isSharedExperienceAvailable; theViewerParams.isFullScreenAvailable = embededObj.options.isFullScreenAvailable; theViewerParams.isVrModeAvailable = embededObj.options.isVrModeAvailable; if (embededObj.options.isShareNativeAvailable) { theViewerParams.SpaceId = '17abbf73-6080-4fd5-a533-72bb8c69a5b3'; } if (embededObj.parentDiv.id === "") { embededObj.parentDiv.id = embededObj.galleryId; } var krpanoViewerObj = new embededObj.krpanoViewer(embededObj.parentDiv.id, 'krpano-' + utils.generateId(), embededObj.options); var krpanoViewerProxyObj = new embededObj.theViewerProxy(krpanoViewerObj); registerProxy(krpanoViewerObj, krpanoViewerProxyObj); share.runShare(theViewerParams, krpanoViewerObj, krpanoViewerProxyObj); embededObj.appendGtmIframe(); socialCounters.increaseViewCount(embededObj.galleryId, embededObj.getCurrentScript()); }); }); } function registerProxy(krpanoViewer, theVProxy) { if (!window.theViewerProxy) { var map = {}; theVProxy.krpanoViewer = krpanoViewer; map[krpanoViewer.krpanoId] = theVProxy; window.theViewerProxy = { map : map, get : function(id) { return function(mp) { thev = mp[id].krpanoViewer; return mp[id]; }(map); }, set : function(key, value) { this.map[key] = value; } } } else { theVProxy.krpanoViewer = krpanoViewer; window.theViewerProxy.set(krpanoViewer.krpanoId, theVProxy); } } window.fireEventIfConsentGiven = function (eventType, eventData, callback){ if(window.theViewer && window.theViewer.event && window.theViewer.event.fireEvent){ window.theViewer.event.fireEvent(eventType, eventData, callback); } if (typeof callback !== 'undefined'){ callback(); } } window.initDeferredViewerAnalytics = function(callback){ let eventRequireScript = document.createElement('script'); eventRequireScript.id = "theViewer-analytics"; eventRequireScript.async = true; eventRequireScript.src = embededObj.getCurrentScript() + 'html/theViewer/script/req/eventRequiresDeferred.js?buildTimestamp=' + Date.now(); document.head.appendChild(eventRequireScript); if (typeof callback !== 'undefined'){ callback(); } } window.initDeferredViewerAnalytics = function(callback){ let eventRequireScript = document.createElement('script'); eventRequireScript.id = "theViewer-analytics"; eventRequireScript.async = true; eventRequireScript.src = embededObj.getCurrentScript() + 'html/theViewer/script/req/eventRequiresDeferred.js?buildTimestamp=' + Date.now(); document.head.appendChild(eventRequireScript); if (typeof callback !== 'undefined'){ callback(); } } EmbeddedVR.init.prototype = EmbeddedVR.prototype; embededObj = EmbeddedVR(); embededObj .resolveCurrentScriptUrl(); })();