(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/office@binyanstudios.com/e79b7fc8-0c0e-442a-a0c7-c726b27f1ff2/1f67b661-8f3b-4c54-b5c0-951b66632011?timestamp=2020-05-04T20:34:59.063Z'; this.galleryId = 'e79b7fc8-0c0e-442a-a0c7-c726b27f1ff2'; 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=e79b7fc8-0c0e-442a-a0c7-c726b27f1ff2&spaceId=4cbd2ae5-ec1e-471d-a7ad-2e63ec78e99e'; 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\":\"ROSS AVE PENTHOUSE + POOL \",\"Description\":null,\"ContentUrl\":\"https:\/\/irl-sec-theviewer-stage-prod.s3-accelerate.amazonaws.com\/office@binyanstudios.com\/\",\"SpaceName\":\"office@binyanstudios.com\",\"SpaceType\":\"UserSpace\",\"Order\":null,\"Timestamp\":null,\"ThumbnailContent\":{\"Id\":\"1f67b661-8f3b-4c54-b5c0-951b66632011\",\"OrigId\":null,\"Type\":\"IMAGE\",\"Mime\":\"image\/jpeg\",\"VersionId\":\"Fg9z94mld8SD7q2gfKhoJTQ_DfWbZpoT\",\"Timestamp\":\"2020-05-04T20:34:59.063Z\",\"OriginalName\":null,\"Name\":\"HLG0904_RossAve_S080_INT_PHLiving360a _FinalThumbnail.jpg\",\"Size\":null},\"CustomSettings\":null,\"ExtendedView\":null,\"Archived\":false,\"MiniMap\":null,\"Bgm\":null,\"Panos\":[{\"OrigId\":null,\"Name\":\"HLG0904_RossAve_S080_INT_PHLiving360a _Final5000.jpg\",\"LandingAngle\":null,\"MultiresolutionData\":null,\"MultiresolutionPath\":null,\"Content\":{\"Id\":\"85e148d0-5d69-4450-bf0b-534e82753ce6\",\"OrigId\":null,\"Type\":null,\"Mime\":\"image\/jpeg\",\"VersionId\":\"pmaqFSH9jKWztk0deOJL1GVUPivDkx.R\",\"Timestamp\":\"2020-05-04T21:14:25.856Z\",\"OriginalName\":null,\"Name\":null,\"Size\":null},\"Type\":\"SphericalMonoStandard\",\"Resolution\":8192,\"Order\":null,\"Thumbnail\":{\"Id\":\"e1404eea-6a92-4f7e-80d7-36e28cd6f00e\",\"OrigId\":null,\"Type\":\"IMAGE\",\"Mime\":\"image\/jpeg\",\"VersionId\":\"TTEwmdzdlmBWBRuHGWMVd.pYwsRNbV_.\",\"Timestamp\":\"2020-05-04T21:14:25.856Z\",\"OriginalName\":null,\"Name\":\"ROSS AVE PENTHOUSE + POOL \",\"Size\":null},\"Preview\":{\"Id\":\"preview-85e148d0-5d69-4450-bf0b-534e82753ce6\",\"OrigId\":null,\"Type\":\"PANO\",\"Mime\":\"image\/jpeg\",\"VersionId\":\"yGwdrZwgd13IQojKKsH3bre.7KUls9A9\",\"Timestamp\":\"2020-05-04T21:14:24.375Z\",\"OriginalName\":null,\"Name\":\"HLG0904_RossAve_S080_INT_PHLiving360a _Final5000.jpg\",\"Size\":null},\"Depthmap\":null,\"Bgm\":null,\"Warps\":[{\"Id\":\"1e5e0190-4bde-4cd2-9a39-a48fd612d836\",\"OrigId\":null,\"Longitude\":-59.50839895024484,\"Latitude\":7.545580613726304,\"Radius\":null,\"Size\":null,\"Icon\":null,\"Visible\":true,\"Rx\":null,\"Ry\":null,\"Rz\":null,\"Depth\":null,\"Name\":\"Penthouse Pool\",\"DestinationId\":\"2a8a4886-44f5-486f-b8ff-32f9d062fe9a\",\"DestinationType\":\"Pano\",\"LandingAngle\":null,\"Style\":null},{\"Id\":\"27c9d52a-8cf6-4b5a-9b9c-617d42717486\",\"OrigId\":null,\"Longitude\":-47.267483072047355,\"Latitude\":-2.605416757397685,\"Radius\":null,\"Size\":null,\"Icon\":null,\"Visible\":true,\"Rx\":null,\"Ry\":null,\"Rz\":null,\"Depth\":null,\"Name\":\"Penthouse Living 2\",\"DestinationId\":\"05bf3948-512c-49aa-a939-8dbb1465d687\",\"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\":\"2020-05-04T21:14:25.856Z\",\"ContentVersionId\":\"pmaqFSH9jKWztk0deOJL1GVUPivDkx.R\",\"ContentMime\":\"image\/jpeg\",\"Multiresolution\":false,\"ContentId\":\"85e148d0-5d69-4450-bf0b-534e82753ce6\",\"Id\":\"7303cf98-6519-4164-84dd-a5f0f238c1b8\"},{\"OrigId\":null,\"Name\":\"HLG0904_RossAve_S101_EXT_Pool360a_Final5000.jpg\",\"LandingAngle\":null,\"MultiresolutionData\":null,\"MultiresolutionPath\":null,\"Content\":{\"Id\":\"0fbfe1ae-3728-4a4a-aacd-fe5492a46e97\",\"OrigId\":null,\"Type\":null,\"Mime\":\"image\/jpeg\",\"VersionId\":\"awmNq8aGui7c2GqNeOYQoi6VDqrByAQj\",\"Timestamp\":\"2020-05-04T20:09:54.086Z\",\"OriginalName\":null,\"Name\":null,\"Size\":null},\"Type\":\"SphericalMonoStandard\",\"Resolution\":8192,\"Order\":null,\"Thumbnail\":{\"Id\":\"d37246a4-433b-490b-bb5b-2f775dbdc95b\",\"OrigId\":null,\"Type\":\"IMAGE\",\"Mime\":\"image\/jpeg\",\"VersionId\":\"0H.0nTARdTRVQ4h4eg7N5yC1IwPk09VS\",\"Timestamp\":\"2020-01-14T22:56:26.889Z\",\"OriginalName\":null,\"Name\":\"ROSS AVE PENTHOUSE + POOL \",\"Size\":null},\"Preview\":{\"Id\":\"preview-0fbfe1ae-3728-4a4a-aacd-fe5492a46e97\",\"OrigId\":null,\"Type\":\"PANO\",\"Mime\":\"image\/jpeg\",\"VersionId\":\"6ywoZA9vbHzBmia9aaMiqtWVdhnR06eU\",\"Timestamp\":\"2020-05-04T20:09:53.951Z\",\"OriginalName\":null,\"Name\":\"HLG0904_RossAve_S101_EXT_Pool360a_Final5000.jpg\",\"Size\":null},\"Depthmap\":null,\"Bgm\":null,\"Warps\":[{\"Id\":\"922ee0c3-bb55-4a45-bbca-c6f80a059438\",\"OrigId\":null,\"Longitude\":-0.5224736241301002,\"Latitude\":-2.531746460773994,\"Radius\":null,\"Size\":null,\"Icon\":null,\"Visible\":true,\"Rx\":null,\"Ry\":null,\"Rz\":null,\"Depth\":null,\"Name\":\"Penthouse Pool Terrace\",\"DestinationId\":\"2a8a4886-44f5-486f-b8ff-32f9d062fe9a\",\"DestinationType\":\"Pano\",\"LandingAngle\":null,\"Style\":null},{\"Id\":\"d3d583db-a503-460c-a0e1-5b67ec0a931d\",\"OrigId\":null,\"Longitude\":21.007055323330803,\"Latitude\":-1.4751747999207874,\"Radius\":null,\"Size\":null,\"Icon\":null,\"Visible\":true,\"Rx\":null,\"Ry\":null,\"Rz\":null,\"Depth\":null,\"Name\":\"Penthouse Living\",\"DestinationId\":\"7303cf98-6519-4164-84dd-a5f0f238c1b8\",\"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\":\"2020-05-04T20:09:54.086Z\",\"ContentVersionId\":\"awmNq8aGui7c2GqNeOYQoi6VDqrByAQj\",\"ContentMime\":\"image\/jpeg\",\"Multiresolution\":false,\"ContentId\":\"0fbfe1ae-3728-4a4a-aacd-fe5492a46e97\",\"Id\":\"cfbeb861-b244-4cca-a234-62140c2ee848\"},{\"OrigId\":null,\"Name\":\"HLG0904_RossAve_S090_INT_PHLiving360a _Final5000.jpg\",\"LandingAngle\":null,\"MultiresolutionData\":null,\"MultiresolutionPath\":null,\"Content\":{\"Id\":\"042d2e56-9f2f-4fbe-8d6d-d79876c6013d\",\"OrigId\":null,\"Type\":null,\"Mime\":\"image\/jpeg\",\"VersionId\":\"bu97P1jDNqHW8AnPXOrqNeCndiKnklim\",\"Timestamp\":\"2020-05-04T20:05:19.911Z\",\"OriginalName\":null,\"Name\":null,\"Size\":null},\"Type\":\"SphericalMonoStandard\",\"Resolution\":8192,\"Order\":null,\"Thumbnail\":{\"Id\":\"05c745c9-9eb6-4af4-8f17-09eeb940089b\",\"OrigId\":null,\"Type\":\"IMAGE\",\"Mime\":\"image\/jpeg\",\"VersionId\":\"g._Y8tGKLclL8BrJXNZG9YeBINfvJMid\",\"Timestamp\":\"2019-12-03T20:00:24.663Z\",\"OriginalName\":null,\"Name\":\"ROSS AVE PENTHOUSE + POOL \",\"Size\":null},\"Preview\":{\"Id\":\"preview-042d2e56-9f2f-4fbe-8d6d-d79876c6013d\",\"OrigId\":null,\"Type\":\"PANO\",\"Mime\":\"image\/jpeg\",\"VersionId\":\"UHcNeTehEl03CNCUWfkK5DtpsVE_jGT7\",\"Timestamp\":\"2020-05-04T20:05:19.810Z\",\"OriginalName\":null,\"Name\":\"HLG0904_RossAve_S090_INT_PHLiving360a _Final5000.jpg\",\"Size\":null},\"Depthmap\":null,\"Bgm\":null,\"Warps\":[{\"Id\":\"593582fd-1d17-4607-9b02-54b4afbf4564\",\"OrigId\":null,\"Longitude\":33.58413173172249,\"Latitude\":-6.036015872502334,\"Radius\":null,\"Size\":null,\"Icon\":null,\"Visible\":true,\"Rx\":null,\"Ry\":null,\"Rz\":null,\"Depth\":null,\"Name\":\"Penthouse View A\",\"DestinationId\":\"421b57b8-530e-443b-9738-4d995ad9cbf7\",\"DestinationType\":\"Pano\",\"LandingAngle\":null,\"Style\":null},{\"Id\":\"21a1097f-3920-4b87-a1e8-a5e978522b52\",\"OrigId\":null,\"Longitude\":-161.59315475251287,\"Latitude\":9.118961389596222,\"Radius\":null,\"Size\":null,\"Icon\":null,\"Visible\":true,\"Rx\":null,\"Ry\":null,\"Rz\":null,\"Depth\":null,\"Name\":\"Penthouse_Pool\",\"DestinationId\":\"2a8a4886-44f5-486f-b8ff-32f9d062fe9a\",\"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\":\"2020-05-04T20:05:19.911Z\",\"ContentVersionId\":\"bu97P1jDNqHW8AnPXOrqNeCndiKnklim\",\"ContentMime\":\"image\/jpeg\",\"Multiresolution\":false,\"ContentId\":\"042d2e56-9f2f-4fbe-8d6d-d79876c6013d\",\"Id\":\"05bf3948-512c-49aa-a939-8dbb1465d687\"},{\"OrigId\":null,\"Name\":\"HLG0904_RossAve_S100_EXT_Pool360_Final5000.jpg\",\"LandingAngle\":null,\"MultiresolutionData\":null,\"MultiresolutionPath\":null,\"Content\":{\"Id\":\"9dd5ea4a-3a90-4c88-ba23-6081f343ab74\",\"OrigId\":null,\"Type\":null,\"Mime\":\"image\/jpeg\",\"VersionId\":\"x9fOj1LF5WFcKcF1P9hd50nHD2bpReiq\",\"Timestamp\":\"2020-05-04T20:07:40.517Z\",\"OriginalName\":null,\"Name\":null,\"Size\":null},\"Type\":\"SphericalMonoStandard\",\"Resolution\":8192,\"Order\":null,\"Thumbnail\":{\"Id\":\"12c5a5ac-b46b-496a-b10f-74d8c74b3f50\",\"OrigId\":null,\"Type\":\"IMAGE\",\"Mime\":\"image\/jpeg\",\"VersionId\":\"MqAmXwOfKiiY64QQMdRu1CMuF_3bw1Nt\",\"Timestamp\":\"2019-12-03T19:49:25.618Z\",\"OriginalName\":null,\"Name\":\"ROSS AVE PENTHOUSE + POOL \",\"Size\":null},\"Preview\":{\"Id\":\"preview-9dd5ea4a-3a90-4c88-ba23-6081f343ab74\",\"OrigId\":null,\"Type\":\"PANO\",\"Mime\":\"image\/jpeg\",\"VersionId\":\"c5ZN2dzDHhSqCM.MKUdx132jPPPfoDOE\",\"Timestamp\":\"2020-05-04T20:07:40.440Z\",\"OriginalName\":null,\"Name\":\"HLG0904_RossAve_S100_EXT_Pool360_Final5000.jpg\",\"Size\":null},\"Depthmap\":null,\"Bgm\":null,\"Warps\":[{\"Id\":\"4d9520ec-97f8-4c81-907e-5565dca0ca8a\",\"OrigId\":null,\"Longitude\":-92.44628636466928,\"Latitude\":-0.10529210233519501,\"Radius\":null,\"Size\":null,\"Icon\":null,\"Visible\":true,\"Rx\":null,\"Ry\":null,\"Rz\":null,\"Depth\":null,\"Name\":\"Pool Terrace\",\"DestinationId\":\"cfbeb861-b244-4cca-a234-62140c2ee848\",\"DestinationType\":\"Pano\",\"LandingAngle\":null,\"Style\":null},{\"Id\":\"5051950d-d8c0-444b-afdb-5bfe9475487f\",\"OrigId\":null,\"Longitude\":-158.07905849100894,\"Latitude\":-1.5951547512811797,\"Radius\":null,\"Size\":null,\"Icon\":null,\"Visible\":true,\"Rx\":null,\"Ry\":null,\"Rz\":null,\"Depth\":null,\"Name\":\"Penthouse Living\",\"DestinationId\":\"7303cf98-6519-4164-84dd-a5f0f238c1b8\",\"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\":\"2020-05-04T20:07:40.517Z\",\"ContentVersionId\":\"x9fOj1LF5WFcKcF1P9hd50nHD2bpReiq\",\"ContentMime\":\"image\/jpeg\",\"Multiresolution\":false,\"ContentId\":\"9dd5ea4a-3a90-4c88-ba23-6081f343ab74\",\"Id\":\"2a8a4886-44f5-486f-b8ff-32f9d062fe9a\"}],\"Videos\":[],\"ThumbnailVersionId\":\"Fg9z94mld8SD7q2gfKhoJTQ_DfWbZpoT\",\"ThumbnailTimestamp\":\"2020-05-04T20:34:59.063Z\",\"ThumbnailId\":\"1f67b661-8f3b-4c54-b5c0-951b66632011\",\"ThumbnailMime\":\"image\/jpeg\",\"ShareableType\":\"GALLERY\",\"Id\":\"e79b7fc8-0c0e-442a-a0c7-c726b27f1ff2\"}],\"Projects\":[],\"ExtendedView\":null,\"CustomSettings\":null,\"StatusCode\":0,\"Tier\":\"studio\",\"UserInfo\":{\"Tier\":\"studio\",\"TierLevel\":\"2000\",\"Name\":\"office@binyanstudios.com\",\"Locale\":null,\"RootSpaceId\":\"a00a5179-4570-4a4e-a4a8-387a1dd65ceb\",\"PhotonRegion\":\"eu\",\"Hash\":null,\"ProfileInfo\":{\"Id\":\"07b5c8db-8106-4161-a9dd-52c0244eaa01\",\"ContentUrl\":\"https:\/\/irl-sec-theviewer-stage-prod.s3-accelerate.amazonaws.com\/office@binyanstudios.com\/\",\"Logo\":null,\"SplashScreen\":null,\"SplashScreenPortrait\":null,\"LandingPano\":null,\"Warp\":{\"Id\":\"439ca707-9f13-4d11-b185-4d74fd998847\",\"OrigId\":null,\"Type\":\"IMAGE\",\"Mime\":\"image\/png\",\"VersionId\":\"1C1wVRkDV4eQgAt3bc61ju_RLEp0Ywi1\",\"Timestamp\":\"2019-10-01T16:08:39.335Z\",\"OriginalName\":\"LOGO.png\",\"Name\":\"uploadContent\",\"Size\":49523,\"BeanVersion\":2,\"CreationDate\":1569946119429,\"LastUpdateDate\":1569946119810},\"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\":false,\"SharedExpPerUser\":false,\"AllowVR\":false,\"SidePanel\":false,\"NavigatorAutoCenter\":false,\"TransitionAnimation\":\"BLEND(1, easeInCubic)\",\"InfoSpotWidth\":null,\"AutorotateDelay\":12,\"KeybRotateSpeed\":null,\"LikesActivated\":null,\"GeneralSpaceSettings\":{\"SortType\":null},\"Trial\":false},\"UserStatus\":\"ACTIVE\",\"PublicId\":\"4cbd2ae5-ec1e-471d-a7ad-2e63ec78e99e\",\"Email\":\"office@binyanstudios.com\",\"Organization\":false,\"MainOrganization\":{\"Code\":\"office@binyanstudios.com\",\"Name\":\"office@binyanstudios.com\",\"SpaceId\":\"a00a5179-4570-4a4e-a4a8-387a1dd65ceb\"},\"AllUserOrganizations\":null,\"UserFullName\":\"Nina Butterworth\",\"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 = '4cbd2ae5-ec1e-471d-a7ad-2e63ec78e99e'; } 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(); })();