window.firstImageLoaded = false; window.muted = true; // TODO: when change to javascript check URL param window.queryString = window.location.search; window.urlParams = new URLSearchParams(queryString); window.anaglyph = false; const anaglyphParam = urlParams.get('anaglyph'); if (anaglyphParam) { window.anaglyph = anaglyphParam === 'yes'; } window.photos = [{"resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FY4XTOoVr2oXFe20IQyu0XqxfDX23%2F5770312975122432%2F02-salajpg-1725460079289.jpg&uploadType=resumable&upload_id=AD-8ljuPJkvsjogAmIWPMnxM8Xu_Siqb9rcM88Fj-0LUBCl2VToDQaZkWgQgfKUe5fLUpjklkQh-Ytfw0ZEb1rLLFZOk4ABz43L4RvPEZPtD1Lob","image_url":"/users/Y4XTOoVr2oXFe20IQyu0XqxfDX23/5770312975122432/02-salajpg-1725460079289.jpg","rotation":79.00026262923609,"thumbnail_gcs_filename":"/users/Y4XTOoVr2oXFe20IQyu0XqxfDX23/5770312975122432/thumb_02-salajpg-1725460079289.jpg","title":"Sala","version":"v4","gcs_filename":"/users/Y4XTOoVr2oXFe20IQyu0XqxfDX23/5770312975122432/02-salajpg-1725460079289.jpg","filename":"02-salajpg-1725460079289.jpg","folder":"/users/Y4XTOoVr2oXFe20IQyu0XqxfDX23/5770312975122432","thumbnail_image_url":"/users/Y4XTOoVr2oXFe20IQyu0XqxfDX23/5770312975122432/thumb_02-salajpg-1725460079289.jpg","is_stereo":false,"photo_type":"360_mono","created_date":"2024-09-04T14:27:59.292Z","updated_date":"2024-09-04T14:27:59.292Z","id":"5154528372457472","sort_order":2,"status":"active","has_anaglyph":false,"index":0},{"resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FY4XTOoVr2oXFe20IQyu0XqxfDX23%2F5770312975122432%2F04-cama-principaljpg-1725460079429.jpg&uploadType=resumable&upload_id=AD-8ljvQJCmE6nfPzsIGMMtE-fMZiw4a3G-wly5eKUtSpX2ZONGynbpvYAImZkHn3KAPxSUqD3ehtr1_eRDO8EDNrmJFiLWr2nHzTByMChxficu0Sg","image_url":"/users/Y4XTOoVr2oXFe20IQyu0XqxfDX23/5770312975122432/04-cama-principaljpg-1725460079429.jpg","rotation":110.6742113806672,"thumbnail_gcs_filename":"/users/Y4XTOoVr2oXFe20IQyu0XqxfDX23/5770312975122432/thumb_04-cama-principaljpg-1725460079429.jpg","title":"Hab 1","version":"v4","gcs_filename":"/users/Y4XTOoVr2oXFe20IQyu0XqxfDX23/5770312975122432/04-cama-principaljpg-1725460079429.jpg","filename":"04-cama-principaljpg-1725460079429.jpg","folder":"/users/Y4XTOoVr2oXFe20IQyu0XqxfDX23/5770312975122432","thumbnail_image_url":"/users/Y4XTOoVr2oXFe20IQyu0XqxfDX23/5770312975122432/thumb_04-cama-principaljpg-1725460079429.jpg","is_stereo":false,"photo_type":"360_mono","created_date":"2024-09-04T14:27:59.430Z","updated_date":"2024-09-04T14:27:59.430Z","id":"4813963881611264","sort_order":4,"status":"active","has_anaglyph":false,"index":1},{"resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FY4XTOoVr2oXFe20IQyu0XqxfDX23%2F5770312975122432%2F01-cama-02jpg-1725460079287.jpg&uploadType=resumable&upload_id=AD-8ljuhLrpmaazJdeb1kzqolrOP66E6DOyzYWO_fTPfhvT5pmipMaM7_FdVntJABz8YZjafx7_AHbFxKKwjkzm5p75HA-2Mzp2_EcvD__zjbKdM","image_url":"/users/Y4XTOoVr2oXFe20IQyu0XqxfDX23/5770312975122432/01-cama-02jpg-1725460079287.jpg","rotation":92.36079657508876,"thumbnail_gcs_filename":"/users/Y4XTOoVr2oXFe20IQyu0XqxfDX23/5770312975122432/thumb_01-cama-02jpg-1725460079287.jpg","title":"Hab2","version":"v4","gcs_filename":"/users/Y4XTOoVr2oXFe20IQyu0XqxfDX23/5770312975122432/01-cama-02jpg-1725460079287.jpg","filename":"01-cama-02jpg-1725460079287.jpg","folder":"/users/Y4XTOoVr2oXFe20IQyu0XqxfDX23/5770312975122432","thumbnail_image_url":"/users/Y4XTOoVr2oXFe20IQyu0XqxfDX23/5770312975122432/thumb_01-cama-02jpg-1725460079287.jpg","is_stereo":false,"photo_type":"360_mono","created_date":"2024-09-04T14:27:59.287Z","updated_date":"2024-09-04T14:27:59.287Z","id":"5472784350183424","sort_order":1,"status":"active","has_anaglyph":false,"index":2},{"resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FY4XTOoVr2oXFe20IQyu0XqxfDX23%2F5770312975122432%2F03-bano-socialpng-1725460079300.png&uploadType=resumable&upload_id=AD-8ljs8dIfjDedN0LHbd2iLNh2D0MpptKaMXn1cvlkzRWxSxBgZ8f6wZz1m6WLi3Kwb0OVquWftrbpsM89m-vLDasRFvJca6JIJZZ2SHrnzK4Cf7A","image_url":"/users/Y4XTOoVr2oXFe20IQyu0XqxfDX23/5770312975122432/03-bano-socialpng-1725460079300.png","rotation":101.06975506107725,"thumbnail_gcs_filename":"/users/Y4XTOoVr2oXFe20IQyu0XqxfDX23/5770312975122432/thumb_03-bano-socialpng-1725460079300.png","title":"bathroom","version":"v4","gcs_filename":"/users/Y4XTOoVr2oXFe20IQyu0XqxfDX23/5770312975122432/03-bano-socialpng-1725460079300.png","filename":"03-bano-socialpng-1725460079300.png","folder":"/users/Y4XTOoVr2oXFe20IQyu0XqxfDX23/5770312975122432","thumbnail_image_url":"/users/Y4XTOoVr2oXFe20IQyu0XqxfDX23/5770312975122432/thumb_03-bano-socialpng-1725460079300.png","is_stereo":false,"photo_type":"360_mono","created_date":"2024-09-04T14:27:59.300Z","updated_date":"2024-09-04T14:27:59.300Z","id":"6359500439158784","sort_order":3,"status":"active","has_anaglyph":false,"index":3}]; console.log('num photos: ' + window.photos.length); window.photosMap = {"5472784350183424":{"resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FY4XTOoVr2oXFe20IQyu0XqxfDX23%2F5770312975122432%2F01-cama-02jpg-1725460079287.jpg&uploadType=resumable&upload_id=AD-8ljuhLrpmaazJdeb1kzqolrOP66E6DOyzYWO_fTPfhvT5pmipMaM7_FdVntJABz8YZjafx7_AHbFxKKwjkzm5p75HA-2Mzp2_EcvD__zjbKdM","image_url":"/users/Y4XTOoVr2oXFe20IQyu0XqxfDX23/5770312975122432/01-cama-02jpg-1725460079287.jpg","rotation":92.36079657508876,"thumbnail_gcs_filename":"/users/Y4XTOoVr2oXFe20IQyu0XqxfDX23/5770312975122432/thumb_01-cama-02jpg-1725460079287.jpg","title":"Hab2","version":"v4","gcs_filename":"/users/Y4XTOoVr2oXFe20IQyu0XqxfDX23/5770312975122432/01-cama-02jpg-1725460079287.jpg","filename":"01-cama-02jpg-1725460079287.jpg","folder":"/users/Y4XTOoVr2oXFe20IQyu0XqxfDX23/5770312975122432","thumbnail_image_url":"/users/Y4XTOoVr2oXFe20IQyu0XqxfDX23/5770312975122432/thumb_01-cama-02jpg-1725460079287.jpg","is_stereo":false,"photo_type":"360_mono","created_date":"2024-09-04T14:27:59.287Z","updated_date":"2024-09-04T14:27:59.287Z","id":"5472784350183424","sort_order":1,"status":"active","has_anaglyph":false,"index":2},"5154528372457472":{"resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FY4XTOoVr2oXFe20IQyu0XqxfDX23%2F5770312975122432%2F02-salajpg-1725460079289.jpg&uploadType=resumable&upload_id=AD-8ljuPJkvsjogAmIWPMnxM8Xu_Siqb9rcM88Fj-0LUBCl2VToDQaZkWgQgfKUe5fLUpjklkQh-Ytfw0ZEb1rLLFZOk4ABz43L4RvPEZPtD1Lob","image_url":"/users/Y4XTOoVr2oXFe20IQyu0XqxfDX23/5770312975122432/02-salajpg-1725460079289.jpg","rotation":79.00026262923609,"thumbnail_gcs_filename":"/users/Y4XTOoVr2oXFe20IQyu0XqxfDX23/5770312975122432/thumb_02-salajpg-1725460079289.jpg","title":"Sala","version":"v4","gcs_filename":"/users/Y4XTOoVr2oXFe20IQyu0XqxfDX23/5770312975122432/02-salajpg-1725460079289.jpg","filename":"02-salajpg-1725460079289.jpg","folder":"/users/Y4XTOoVr2oXFe20IQyu0XqxfDX23/5770312975122432","thumbnail_image_url":"/users/Y4XTOoVr2oXFe20IQyu0XqxfDX23/5770312975122432/thumb_02-salajpg-1725460079289.jpg","is_stereo":false,"photo_type":"360_mono","created_date":"2024-09-04T14:27:59.292Z","updated_date":"2024-09-04T14:27:59.292Z","id":"5154528372457472","sort_order":2,"status":"active","has_anaglyph":false,"index":0},"6359500439158784":{"resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FY4XTOoVr2oXFe20IQyu0XqxfDX23%2F5770312975122432%2F03-bano-socialpng-1725460079300.png&uploadType=resumable&upload_id=AD-8ljs8dIfjDedN0LHbd2iLNh2D0MpptKaMXn1cvlkzRWxSxBgZ8f6wZz1m6WLi3Kwb0OVquWftrbpsM89m-vLDasRFvJca6JIJZZ2SHrnzK4Cf7A","image_url":"/users/Y4XTOoVr2oXFe20IQyu0XqxfDX23/5770312975122432/03-bano-socialpng-1725460079300.png","rotation":101.06975506107725,"thumbnail_gcs_filename":"/users/Y4XTOoVr2oXFe20IQyu0XqxfDX23/5770312975122432/thumb_03-bano-socialpng-1725460079300.png","title":"bathroom","version":"v4","gcs_filename":"/users/Y4XTOoVr2oXFe20IQyu0XqxfDX23/5770312975122432/03-bano-socialpng-1725460079300.png","filename":"03-bano-socialpng-1725460079300.png","folder":"/users/Y4XTOoVr2oXFe20IQyu0XqxfDX23/5770312975122432","thumbnail_image_url":"/users/Y4XTOoVr2oXFe20IQyu0XqxfDX23/5770312975122432/thumb_03-bano-socialpng-1725460079300.png","is_stereo":false,"photo_type":"360_mono","created_date":"2024-09-04T14:27:59.300Z","updated_date":"2024-09-04T14:27:59.300Z","id":"6359500439158784","sort_order":3,"status":"active","has_anaglyph":false,"index":3},"4813963881611264":{"resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FY4XTOoVr2oXFe20IQyu0XqxfDX23%2F5770312975122432%2F04-cama-principaljpg-1725460079429.jpg&uploadType=resumable&upload_id=AD-8ljvQJCmE6nfPzsIGMMtE-fMZiw4a3G-wly5eKUtSpX2ZONGynbpvYAImZkHn3KAPxSUqD3ehtr1_eRDO8EDNrmJFiLWr2nHzTByMChxficu0Sg","image_url":"/users/Y4XTOoVr2oXFe20IQyu0XqxfDX23/5770312975122432/04-cama-principaljpg-1725460079429.jpg","rotation":110.6742113806672,"thumbnail_gcs_filename":"/users/Y4XTOoVr2oXFe20IQyu0XqxfDX23/5770312975122432/thumb_04-cama-principaljpg-1725460079429.jpg","title":"Hab 1","version":"v4","gcs_filename":"/users/Y4XTOoVr2oXFe20IQyu0XqxfDX23/5770312975122432/04-cama-principaljpg-1725460079429.jpg","filename":"04-cama-principaljpg-1725460079429.jpg","folder":"/users/Y4XTOoVr2oXFe20IQyu0XqxfDX23/5770312975122432","thumbnail_image_url":"/users/Y4XTOoVr2oXFe20IQyu0XqxfDX23/5770312975122432/thumb_04-cama-principaljpg-1725460079429.jpg","is_stereo":false,"photo_type":"360_mono","created_date":"2024-09-04T14:27:59.430Z","updated_date":"2024-09-04T14:27:59.430Z","id":"4813963881611264","sort_order":4,"status":"active","has_anaglyph":false,"index":1}}; if (window.is_static) { window.photosRoot = 'https://storage.googleapis.com/orbix360-prod-images'; // TODO: after we create all the local schema/template folders, change this to empty string window.pluginsRoot = 'plugins/'; } else { window.photosRoot = 'https://storage.googleapis.com/orbix360-prod-images'; window.pluginsRoot = 'https://storage.googleapis.com/orbix360-prod-plugins/'; } window.minterUrl = 'https://minter.orbix360.com'; window.tourId = "5770312975122432"; window.tourUid = "Y4XTOoVr2oXFe20IQyu0XqxfDX23"; window.customUrl = "http://www.orbix360.com"; window.tourSlug = "apto3"; window.template = '360_mono'; window.template_category = '360'; window.tourShortCode = "BEfLZgWo_"; window.room = ''; window.mask = ''; window.current_image_index = 0; // todo: use photo object instead of correlated arrays window.nextImageToLoad = 1; window.photo_indexes = {}; window.im = false; window.photo_indexes['5154528372457472'] = 0; window.current_image_index = 0; window.current_image_id = 5154528372457472 window.photo_indexes['4813963881611264'] = 1; window.photo_indexes['5472784350183424'] = 2; window.photo_indexes['6359500439158784'] = 3; window.current_info_hotspot = null; window.current_explore_page = 1; let savedCurrentExplorePage = window.localStorage.getItem('current_explore_page'); if (savedCurrentExplorePage) { window.current_explore_page = Number(savedCurrentExplorePage); } window.current_explore_filter = 'featured'; let savedCurrentExploreFilter = window.localStorage.getItem('current_explore_filter'); if (savedCurrentExploreFilter) { window.current_explore_filter = savedCurrentExploreFilter; } window.user_profile_image = 'https://lh3.googleusercontent.com/a/AEdFTp6qFN1u1rwFwlv7bTDi89fB0kLQ20QvOVos8ysY=s96-c'; window.user_profile_name = 'Raul Espinoza'; window.shortURLRoot = 'https://orbix360.com'; window.image_url = 'https://storage.googleapis.com/orbix360-prod-images/users/Y4XTOoVr2oXFe20IQyu0XqxfDX23/5770312975122432/thumb_02-salajpg-1725460079289.jpg.play.jpg'; window.image_url_root = 'https://storage.googleapis.com/orbix360-prod-images'; window.cloudFunctionsRoot = 'https://us-central1-orbix360-prod.cloudfunctions.net'; window.timeSinceRestartRotation = 0; window.initialState = {"orbs":[{"infoHotspots":[],"id":5154528372457472,"hotspots":[{"toTitle":"Hab2","from":5154528372457472,"id":"hotspot_5154528372457472_5472784350183424","to":5472784350183424,"position":{"x":0.8717280382963662,"y":-0.04518845746525924,"z":0.4879018657064957}},{"toTitle":"Hab 1","from":5154528372457472,"id":"hotspot_5154528372457472_4813963881611264","to":4813963881611264,"position":{"x":0.9983815171108797,"y":-0.03667743255507579,"z":0.0434639187435502}},{"toTitle":"bathroom","from":5154528372457472,"id":"hotspot_5154528372457472_6359500439158784","to":6359500439158784,"position":{"x":0.9729693477149853,"y":-0.05280701172237814,"z":-0.22481563095129425}}]},{"infoHotspots":[],"id":4813963881611264,"hotspots":[{"from":4813963881611264,"id":"hotspot_4813963881611264_5154528372457472","to":5154528372457472,"position":{"x":-0.7341826980102037,"y":0.022601395527705643,"z":-0.6785756721712459},"toTitle":"Sala"}]},{"infoHotspots":[],"id":5472784350183424,"hotspots":[{"from":5472784350183424,"id":"hotspot_5472784350183424_5154528372457472","to":5154528372457472,"position":{"x":-0.8011584286450582,"y":0.01766211601334464,"z":-0.5981916263781303},"toTitle":"Sala"}]},{"infoHotspots":[],"id":6359500439158784,"hotspots":[{"from":6359500439158784,"id":"hotspot_6359500439158784_5154528372457472","to":5154528372457472,"position":{"x":0.0009845943031833917,"y":-0.1252819612139823,"z":0.9921206886102297},"toTitle":"Sala"}]}],"autorotate":{"enabled":false},"versionNumber":3}; window.brandingAllowed = false; window.upgradeCheckoutSessionStatus = ''; window.isPro = (window.brandingAllowed || window.upgradeCheckoutSessionStatus == 'complete'); window.nadirLogoURL = (window.brandingAllowed || window.upgradeCheckoutSessionStatus == 'complete') ? '/images/powered-by-orbix_nadir.png' : '/images/orbix_nadir.png'; window.editMode = false;