(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/rune@northernvisual.no/a44ddf5f-493d-47b2-ba5e-4536e1b6da85/02cbca3e-e6e0-4eec-99c5-8a24afcbfecf?timestamp=2019-11-05T14:50:23.955Z'; this.galleryId = 'a44ddf5f-493d-47b2-ba5e-4536e1b6da85'; this.options = { isFullScreenAvailable : true, isThumbnailAvailable : false, isShareNativeAvailable : true, 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=a44ddf5f-493d-47b2-ba5e-4536e1b6da85&spaceId=615c2775-7e1c-4676-af56-d091fd33c3ed'; 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\":\"northern visual\",\"Description\":null,\"ContentUrl\":\"https:\/\/irl-sec-theviewer-stage-prod.s3-accelerate.amazonaws.com\/rune@northernvisual.no\/\",\"SpaceName\":\"rune@northernvisual.no\",\"SpaceType\":\"UserSpace\",\"Order\":null,\"Timestamp\":null,\"ThumbnailContent\":{\"Id\":\"02cbca3e-e6e0-4eec-99c5-8a24afcbfecf\",\"OrigId\":null,\"Type\":\"IMAGE\",\"Mime\":\"image\/jpeg\",\"VersionId\":\"GGO3AVzrodU7RClCVI1.gRIHaW3r00M7\",\"Timestamp\":\"2019-11-05T14:50:23.955Z\",\"OriginalName\":null,\"Name\":\"northern visual\",\"Size\":null},\"CustomSettings\":{\"ContentUrl\":\"https:\/\/irl-sec-theviewer-stage-prod.s3-accelerate.amazonaws.com\/rune@northernvisual.no\/\",\"Logo\":null,\"SplashScreen\":null,\"SplashScreenPortrait\":null,\"LandingPano\":null,\"Warp\":null,\"Warp2\":null,\"FloorplanSpot\":null,\"InfoSpot\":null,\"Watermark\":null,\"ImageSpot\":null,\"VideoSpot\":null,\"ViewerSettings\":{\"Fov\":null,\"FovMax\":null,\"FovMin\":null,\"Zoom\":null,\"Autorotate\":true,\"AutorotateDelay\":5,\"KeybRotateSpeed\":null,\"HeatmapActivated\":null,\"AnalyticsWebActivated\":null,\"AnalyticsNativeActivated\":null,\"SharedExpPerUser\":null,\"AllowVR\":null,\"SidePanel\":false,\"NavigatorAutoCenter\":null,\"FacebookName\":null,\"TransitionAnimation\":null,\"InfoSpotWidth\":null,\"LikesActivated\":null,\"ShareLinkProtected\":null},\"SidePanelSettings\":{\"ViewMode\":null},\"GeneralSpaceSettings\":{\"SortType\":null},\"Timestamp\":\"2023-01-26T13:56:34.884Z\"},\"ExtendedView\":false,\"Archived\":false,\"MiniMap\":null,\"Bgm\":null,\"Panos\":[{\"OrigId\":null,\"Name\":\"Kitchen_color_chooser_White.jpg\",\"LandingAngle\":-71.81539172278251,\"MultiresolutionData\":null,\"MultiresolutionPath\":null,\"Content\":{\"Id\":\"4f0aa1e0-e127-44aa-ba31-6d8e1bf1efb1\",\"OrigId\":null,\"Type\":null,\"Mime\":\"image\/jpeg\",\"VersionId\":\"j9ZcCMdYZA_AzyiGNR7MpaaASO7viCuq\",\"Timestamp\":\"2019-11-05T14:50:23.955Z\",\"OriginalName\":null,\"Name\":null,\"Size\":null},\"Type\":\"SphericalMonoStandard\",\"Resolution\":4096,\"Order\":null,\"Thumbnail\":{\"Id\":\"c99ef714-9f8c-4892-bc8d-4d9f2c1f86c6\",\"OrigId\":null,\"Type\":\"IMAGE\",\"Mime\":\"image\/jpeg\",\"VersionId\":\"8OvLuAhNnB9dZOUljFsUsKab7caRuM_m\",\"Timestamp\":\"2019-11-05T14:50:23.402Z\",\"OriginalName\":null,\"Name\":\"northern visual\",\"Size\":null},\"Preview\":{\"Id\":\"preview-4f0aa1e0-e127-44aa-ba31-6d8e1bf1efb1\",\"OrigId\":null,\"Type\":\"PANO\",\"Mime\":\"image\/jpeg\",\"VersionId\":\"Rk0axTSesbZJTbc5Z1J3UWNFKsa7OdOg\",\"Timestamp\":\"2019-11-05T14:50:22.310Z\",\"OriginalName\":null,\"Name\":\"Kitchen_color_chooser_White.jpg\",\"Size\":null},\"Depthmap\":null,\"Bgm\":null,\"Warps\":[{\"Id\":\"1eb60c1b-f2fb-44df-ab77-85e01bc00032\",\"OrigId\":null,\"Longitude\":-44.829735961233155,\"Latitude\":-4.073861584335013,\"Radius\":null,\"Size\":null,\"Icon\":null,\"Visible\":true,\"Rx\":null,\"Ry\":null,\"Rz\":null,\"Depth\":null,\"Name\":\"Animerte VR\/360 - med svarte kjokkendorer\",\"DestinationId\":\"ed4f734e-34e4-4c11-95f8-e83e3e05db5d\",\"DestinationType\":\"Video\",\"LandingAngle\":null,\"Style\":null},{\"Id\":\"47a888cf-29d0-4236-9190-7e9096123aed\",\"OrigId\":null,\"Longitude\":-87.48417144643344,\"Latitude\":-3.106367065383316,\"Radius\":null,\"Size\":null,\"Icon\":null,\"Visible\":true,\"Rx\":null,\"Ry\":null,\"Rz\":null,\"Depth\":null,\"Name\":\"Ta meg til soverommet\",\"DestinationId\":\"a6753a13-8f97-498b-b408-1aa2e846966a\",\"DestinationType\":\"Pano\",\"LandingAngle\":null,\"Style\":null},{\"Id\":\"9ddc4e32-8d34-4099-80be-28eb7dae964d\",\"OrigId\":null,\"Longitude\":-73.76080605000942,\"Latitude\":-3.615125881690381,\"Radius\":null,\"Size\":null,\"Icon\":null,\"Visible\":true,\"Rx\":null,\"Ry\":null,\"Rz\":null,\"Depth\":null,\"Name\":\"Ta meg til badet\",\"DestinationId\":\"3a99983a-d580-4589-84b3-0d55670cde68\",\"DestinationType\":\"Pano\",\"LandingAngle\":null,\"Style\":null}],\"InfoSpots\":[],\"SoundSpots\":[],\"MediaSpots\":[],\"AnimationSpots\":[],\"AnimationVideoSpots\":[],\"VideoSpots\":[],\"BoundingBoxes\":[],\"TransparentSpots\":[],\"TransparentPublicSpots\":[],\"DepthmapTransparentSpots\":[],\"CustomSettings\":null,\"AudioSettings\":{\"UseDefaults\":true,\"VideoAudio\":true,\"GalleryAudio\":true,\"PanoAudio\":true},\"Timestamp\":\"2019-11-05T14:50:23.955Z\",\"ContentVersionId\":\"j9ZcCMdYZA_AzyiGNR7MpaaASO7viCuq\",\"ContentMime\":\"image\/jpeg\",\"Multiresolution\":false,\"ContentId\":\"4f0aa1e0-e127-44aa-ba31-6d8e1bf1efb1\",\"Id\":\"e7a660f6-65d0-4f20-8a36-6befcf2015a7\"},{\"OrigId\":null,\"Name\":\"Interior_bedroom_360_4K.jpg\",\"LandingAngle\":-28.94623480024846,\"MultiresolutionData\":null,\"MultiresolutionPath\":null,\"Content\":{\"Id\":\"c05533b7-3b04-4148-835a-84f947da9cfa\",\"OrigId\":null,\"Type\":null,\"Mime\":\"image\/jpeg\",\"VersionId\":\"6Sa4q63JsOJTy93bkdJWllvevc2LaAb4\",\"Timestamp\":\"2019-11-05T14:54:53.015Z\",\"OriginalName\":null,\"Name\":null,\"Size\":null},\"Type\":\"SphericalMonoStandard\",\"Resolution\":4096,\"Order\":null,\"Thumbnail\":{\"Id\":\"8296ea5f-399e-4093-98cf-0cb93e5bba39\",\"OrigId\":null,\"Type\":\"IMAGE\",\"Mime\":\"image\/jpeg\",\"VersionId\":\"xG2E4EOyFnNUgR1eTxdszfBVFzaPWf_D\",\"Timestamp\":\"2019-11-05T14:54:53.015Z\",\"OriginalName\":null,\"Name\":\"northern visual\",\"Size\":null},\"Preview\":{\"Id\":\"preview-c05533b7-3b04-4148-835a-84f947da9cfa\",\"OrigId\":null,\"Type\":\"PANO\",\"Mime\":\"image\/jpeg\",\"VersionId\":\"kdLSIDjLDy3lGHHcx570zgqKurv.5ut2\",\"Timestamp\":\"2019-11-05T14:54:52.254Z\",\"OriginalName\":null,\"Name\":\"Interior_bedroom_360_4K.jpg\",\"Size\":null},\"Depthmap\":null,\"Bgm\":null,\"Warps\":[{\"Id\":\"12f9e2c8-3f17-44c2-a507-52d9c537c1f8\",\"OrigId\":null,\"Longitude\":-97.47220781152271,\"Latitude\":3.1274429038252145,\"Radius\":null,\"Size\":null,\"Icon\":null,\"Visible\":true,\"Rx\":null,\"Ry\":null,\"Rz\":null,\"Depth\":null,\"Name\":\"Ta meg tilbake til stuen\",\"DestinationId\":\"ed4f734e-34e4-4c11-95f8-e83e3e05db5d\",\"DestinationType\":\"Video\",\"LandingAngle\":null,\"Style\":null}],\"InfoSpots\":[],\"SoundSpots\":[],\"MediaSpots\":[],\"AnimationSpots\":[],\"AnimationVideoSpots\":[],\"VideoSpots\":[],\"BoundingBoxes\":[],\"TransparentSpots\":[],\"TransparentPublicSpots\":[],\"DepthmapTransparentSpots\":[],\"CustomSettings\":null,\"AudioSettings\":{\"UseDefaults\":true,\"VideoAudio\":true,\"GalleryAudio\":true,\"PanoAudio\":true},\"Timestamp\":\"2019-11-05T14:54:53.015Z\",\"ContentVersionId\":\"6Sa4q63JsOJTy93bkdJWllvevc2LaAb4\",\"ContentMime\":\"image\/jpeg\",\"Multiresolution\":false,\"ContentId\":\"c05533b7-3b04-4148-835a-84f947da9cfa\",\"Id\":\"a6753a13-8f97-498b-b408-1aa2e846966a\"},{\"OrigId\":null,\"Name\":\"nytt bad.jpg\",\"LandingAngle\":726.3805348635198,\"MultiresolutionData\":null,\"MultiresolutionPath\":null,\"Content\":{\"Id\":\"61ac6620-90ef-415e-97c1-738ad51c8ca3\",\"OrigId\":null,\"Type\":null,\"Mime\":\"image\/jpeg\",\"VersionId\":\"OMonXkxsmaWAZvC3OAMuoT3FjLwgAE6g\",\"Timestamp\":\"2019-11-05T14:54:55.158Z\",\"OriginalName\":null,\"Name\":null,\"Size\":null},\"Type\":\"SphericalMonoStandard\",\"Resolution\":4096,\"Order\":null,\"Thumbnail\":{\"Id\":\"3480d8c4-25d0-4e79-bd14-3ab63ff15c03\",\"OrigId\":null,\"Type\":\"IMAGE\",\"Mime\":\"image\/jpeg\",\"VersionId\":\"SGQubJ483Z89U.riodJWPPsYvU5eCXAg\",\"Timestamp\":\"2019-11-05T14:54:55.158Z\",\"OriginalName\":null,\"Name\":\"northern visual\",\"Size\":null},\"Preview\":{\"Id\":\"preview-61ac6620-90ef-415e-97c1-738ad51c8ca3\",\"OrigId\":null,\"Type\":\"PANO\",\"Mime\":\"image\/jpeg\",\"VersionId\":\"ssEYLDTML_6Pm7HkFHB8xwQ5AemsBS1.\",\"Timestamp\":\"2019-11-05T14:54:54.592Z\",\"OriginalName\":null,\"Name\":\"nytt bad.jpg\",\"Size\":null},\"Depthmap\":null,\"Bgm\":null,\"Warps\":[{\"Id\":\"ade48084-f09f-4ce5-909d-d989555995c7\",\"OrigId\":null,\"Longitude\":-140.82157040294527,\"Latitude\":-10.75034912278738,\"Radius\":null,\"Size\":null,\"Icon\":null,\"Visible\":true,\"Rx\":null,\"Ry\":null,\"Rz\":null,\"Depth\":null,\"Name\":\"Ta meg tilbake til stuen\",\"DestinationId\":\"ed4f734e-34e4-4c11-95f8-e83e3e05db5d\",\"DestinationType\":\"Video\",\"LandingAngle\":null,\"Style\":null}],\"InfoSpots\":[],\"SoundSpots\":[],\"MediaSpots\":[],\"AnimationSpots\":[],\"AnimationVideoSpots\":[],\"VideoSpots\":[],\"BoundingBoxes\":[],\"TransparentSpots\":[],\"TransparentPublicSpots\":[],\"DepthmapTransparentSpots\":[],\"CustomSettings\":null,\"AudioSettings\":{\"UseDefaults\":true,\"VideoAudio\":true,\"GalleryAudio\":true,\"PanoAudio\":true},\"Timestamp\":\"2019-11-05T14:54:55.158Z\",\"ContentVersionId\":\"OMonXkxsmaWAZvC3OAMuoT3FjLwgAE6g\",\"ContentMime\":\"image\/jpeg\",\"Multiresolution\":false,\"ContentId\":\"61ac6620-90ef-415e-97c1-738ad51c8ca3\",\"Id\":\"3a99983a-d580-4589-84b3-0d55670cde68\"}],\"Videos\":[{\"Id\":\"ed4f734e-34e4-4c11-95f8-e83e3e05db5d\",\"OrigId\":null,\"Name\":\"Animation_4k.mp4\",\"LandingAngle\":124.61947507043554,\"Content\":{\"Id\":\"2c3dcf17-8dfd-41e9-9bc9-ce857afc74ac\",\"OrigId\":null,\"Type\":\"VIDEO\",\"Mime\":\"video\/mp4\",\"VersionId\":\"02WuYxVZor.ZLHh3lsiUuc9TFUpqURIN\",\"Timestamp\":\"2019-11-05T14:42:53.002Z\",\"OriginalName\":\"Animation_4k.mp4\",\"Name\":\"uploadContent\",\"Size\":5149631},\"Thumbnail\":{\"Id\":\"7fcb8782-5abe-493a-9d2c-a50a1c361160\",\"OrigId\":null,\"Type\":\"IMAGE\",\"Mime\":\"image\/jpeg\",\"VersionId\":\"Kf4A.ob04g7lfJhAyoRVuwZKyzSjq0Uk\",\"Timestamp\":\"2019-11-05T14:42:53.225Z\",\"OriginalName\":\"Animation_4k.mp4\",\"Name\":\"uploadContent\",\"Size\":0},\"Type\":\"SphericalMonoStandard\",\"Settings\":{\"Loop\":null,\"Destination\":null,\"DelayTime\":null},\"Order\":null,\"Warps\":[{\"Id\":\"2df908e1-5f97-4b09-9c50-11c6d07fec27\",\"OrigId\":null,\"Longitude\":127.41085563310398,\"Latitude\":-4.620652676286034,\"Radius\":null,\"Size\":null,\"Icon\":null,\"Visible\":true,\"Rx\":null,\"Ry\":null,\"Rz\":null,\"Depth\":null,\"Name\":\"Endre til hvite kjokkendorer\",\"DestinationId\":\"e7a660f6-65d0-4f20-8a36-6befcf2015a7\",\"DestinationType\":\"Pano\",\"LandingAngle\":null,\"Style\":null},{\"Id\":\"f1e444fe-2b61-4d97-808a-57292f0a79a6\",\"OrigId\":null,\"Longitude\":86.13994679405175,\"Latitude\":-3.6194491438788825,\"Radius\":null,\"Size\":null,\"Icon\":null,\"Visible\":true,\"Rx\":null,\"Ry\":null,\"Rz\":null,\"Depth\":null,\"Name\":\"Ta meg tilsoverommet\",\"DestinationId\":\"a6753a13-8f97-498b-b408-1aa2e846966a\",\"DestinationType\":\"Pano\",\"LandingAngle\":null,\"Style\":null},{\"Id\":\"8c60a9c9-8ab1-46aa-9813-84cf4fd55dcd\",\"OrigId\":null,\"Longitude\":97.18692748935891,\"Latitude\":-4.379993102574002,\"Radius\":null,\"Size\":null,\"Icon\":null,\"Visible\":true,\"Rx\":null,\"Ry\":null,\"Rz\":null,\"Depth\":null,\"Name\":\"Ta meg til badet\",\"DestinationId\":\"3a99983a-d580-4589-84b3-0d55670cde68\",\"DestinationType\":\"Pano\",\"LandingAngle\":null,\"Style\":null}],\"InfoSpots\":[],\"MediaSpots\":[],\"AnimationSpots\":[],\"BoundingBoxes\":[],\"TransparentSpots\":[],\"TransparentPublicSpots\":[],\"Bgm\":null,\"AudioSettings\":{\"UseDefaults\":true,\"VideoAudio\":true,\"GalleryAudio\":true,\"PanoAudio\":true}}],\"ThumbnailVersionId\":\"GGO3AVzrodU7RClCVI1.gRIHaW3r00M7\",\"ThumbnailTimestamp\":\"2019-11-05T14:50:23.955Z\",\"ThumbnailId\":\"02cbca3e-e6e0-4eec-99c5-8a24afcbfecf\",\"ThumbnailMime\":\"image\/jpeg\",\"ShareableType\":\"GALLERY\",\"Id\":\"a44ddf5f-493d-47b2-ba5e-4536e1b6da85\"}],\"Projects\":[],\"ExtendedView\":null,\"CustomSettings\":null,\"StatusCode\":0,\"Tier\":\"studio\",\"UserInfo\":{\"Tier\":\"studio\",\"TierLevel\":\"2000\",\"Name\":\"rune@northernvisual.no\",\"Locale\":null,\"RootSpaceId\":\"792a7a74-7d6d-44b3-a43f-8f0e2d5b78a1\",\"PhotonRegion\":\"eu\",\"Hash\":null,\"ProfileInfo\":{\"Id\":\"6af366ba-c989-463c-8440-f724a40451d4\",\"ContentUrl\":\"https:\/\/irl-sec-theviewer-stage-prod.s3-accelerate.amazonaws.com\/rune@northernvisual.no\/\",\"Logo\":null,\"SplashScreen\":null,\"SplashScreenPortrait\":null,\"LandingPano\":null,\"Warp\":null,\"Warp2\":null,\"FloorplanSpot\":null,\"InfoSpot\":null,\"Watermark\":null,\"ImageSpot\":null,\"VideoSpot\":null,\"FovMin\":\"90\",\"FovMax\":\"90\",\"Fov\":\"90\",\"Zoom\":false,\"Autorotate\":false,\"HeatmapActivated\":null,\"AnalyticsNativeActivated\":null,\"AnalyticsWebActivated\":null,\"SharedExpPerUser\":false,\"AllowVR\":false,\"SidePanel\":true,\"NavigatorAutoCenter\":false,\"TransitionAnimation\":\"BLEND(1, easeInCubic)\",\"InfoSpotWidth\":null,\"AutorotateDelay\":12,\"KeybRotateSpeed\":null,\"LikesActivated\":null,\"GeneralSpaceSettings\":{\"SortType\":null},\"Trial\":false},\"UserStatus\":\"ACTIVE\",\"PublicId\":\"615c2775-7e1c-4676-af56-d091fd33c3ed\",\"Email\":\"rune@northernvisual.no\",\"Organization\":false,\"MainOrganization\":{\"Code\":\"rune@northernvisual.no\",\"Name\":\"rune@northernvisual.no\",\"SpaceId\":\"792a7a74-7d6d-44b3-a43f-8f0e2d5b78a1\"},\"AllUserOrganizations\":null,\"UserFullName\":\"Rune S\u00E6b\u00F8\",\"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 = '615c2775-7e1c-4676-af56-d091fd33c3ed'; } 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(); })();