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%2F4839584460439552%2F20240821-nuevo-bano-02jpg-1724301887173.jpg&uploadType=resumable&upload_id=AHxI1nPfl3JrCQn_xkPWpzLbUVOJM5O2q4yMPofCrNXXAi9v2Iv3IZ0oQpNwR01uL4wK9fo5fY27pGldm43abROKs1tJn4hHwhQg8TwYi6V0VMnXww","image_url":"/users/Y4XTOoVr2oXFe20IQyu0XqxfDX23/4839584460439552/20240821-nuevo-bano-02jpg-1724301887173.jpg","rotation":108.40361483875098,"thumbnail_gcs_filename":"/users/Y4XTOoVr2oXFe20IQyu0XqxfDX23/4839584460439552/thumb_20240821-nuevo-bano-02jpg-1724301887173.jpg","title":"apto","version":"v4","gcs_filename":"/users/Y4XTOoVr2oXFe20IQyu0XqxfDX23/4839584460439552/20240821-nuevo-bano-02jpg-1724301887173.jpg","filename":"bano-02jpg-1724261201731.jpg","folder":"/users/Y4XTOoVr2oXFe20IQyu0XqxfDX23/4839584460439552","thumbnail_image_url":"/users/Y4XTOoVr2oXFe20IQyu0XqxfDX23/4839584460439552/thumb_20240821-nuevo-bano-02jpg-1724301887173.jpg","is_stereo":false,"photo_type":"360_mono","created_date":"2024-08-21T17:26:41.732Z","updated_date":"2024-08-21T17:26:41.732Z","id":"5079106465038336","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%2F4839584460439552%2Fbano-01jpg-1724261201588.jpg&uploadType=resumable&upload_id=AHxI1nPfydk-nZs6eevxI_gNe6pAZQkVKn5ifxUrm5UagBM6Sl5W9no999ymt680MRUpptJNDUK2IFXWj-nOp27NPVesJnA2mIEqFtGu8CXnAVIsIg","image_url":"/users/Y4XTOoVr2oXFe20IQyu0XqxfDX23/4839584460439552/bano-01jpg-1724261201588.jpg","rotation":96.71527581808299,"thumbnail_gcs_filename":"/users/Y4XTOoVr2oXFe20IQyu0XqxfDX23/4839584460439552/thumb_bano-01jpg-1724261201588.jpg","title":"Bathroom","version":"v4","gcs_filename":"/users/Y4XTOoVr2oXFe20IQyu0XqxfDX23/4839584460439552/bano-01jpg-1724261201588.jpg","filename":"bano-01jpg-1724261201588.jpg","folder":"/users/Y4XTOoVr2oXFe20IQyu0XqxfDX23/4839584460439552","thumbnail_image_url":"/users/Y4XTOoVr2oXFe20IQyu0XqxfDX23/4839584460439552/thumb_bano-01jpg-1724261201588.jpg","is_stereo":false,"photo_type":"360_mono","created_date":"2024-08-21T17:26:41.588Z","updated_date":"2024-08-21T17:26:41.588Z","id":"5955048376893440","sort_order":1,"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%2F4839584460439552%2F20240821-cocinajpg-1724301784834.jpg&uploadType=resumable&upload_id=AHxI1nPdeLfc_gzHeo8qSBdPxnHCaWgjxA5fyiCRCPXr9OK6Yuoq3aDAcgBbXcf-ekuH7iwTVF8_vFQ-dO4OCMe-4b-swjrqmCOwMCLPh-kWiKl7","image_url":"/users/Y4XTOoVr2oXFe20IQyu0XqxfDX23/4839584460439552/20240821-cocinajpg-1724301784834.jpg","rotation":43.247696213073255,"thumbnail_gcs_filename":"/users/Y4XTOoVr2oXFe20IQyu0XqxfDX23/4839584460439552/thumb_20240821-cocinajpg-1724301784834.jpg","title":"Cocina","version":"v4","gcs_filename":"/users/Y4XTOoVr2oXFe20IQyu0XqxfDX23/4839584460439552/20240821-cocinajpg-1724301784834.jpg","filename":"20240821-cocinajpg-1724301784834.jpg","folder":"/users/Y4XTOoVr2oXFe20IQyu0XqxfDX23/4839584460439552","thumbnail_image_url":"/users/Y4XTOoVr2oXFe20IQyu0XqxfDX23/4839584460439552/thumb_20240821-cocinajpg-1724301784834.jpg","is_stereo":false,"photo_type":"360_mono","created_date":"2024-08-22T04:43:04.834Z","updated_date":"2024-08-22T04:43:04.834Z","id":"6500966905937920","sort_order":3,"status":"active","has_anaglyph":false,"index":2}]; console.log('num photos: ' + window.photos.length); window.photosMap = {"5955048376893440":{"resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FY4XTOoVr2oXFe20IQyu0XqxfDX23%2F4839584460439552%2Fbano-01jpg-1724261201588.jpg&uploadType=resumable&upload_id=AHxI1nPfydk-nZs6eevxI_gNe6pAZQkVKn5ifxUrm5UagBM6Sl5W9no999ymt680MRUpptJNDUK2IFXWj-nOp27NPVesJnA2mIEqFtGu8CXnAVIsIg","image_url":"/users/Y4XTOoVr2oXFe20IQyu0XqxfDX23/4839584460439552/bano-01jpg-1724261201588.jpg","rotation":96.71527581808299,"thumbnail_gcs_filename":"/users/Y4XTOoVr2oXFe20IQyu0XqxfDX23/4839584460439552/thumb_bano-01jpg-1724261201588.jpg","title":"Bathroom","version":"v4","gcs_filename":"/users/Y4XTOoVr2oXFe20IQyu0XqxfDX23/4839584460439552/bano-01jpg-1724261201588.jpg","filename":"bano-01jpg-1724261201588.jpg","folder":"/users/Y4XTOoVr2oXFe20IQyu0XqxfDX23/4839584460439552","thumbnail_image_url":"/users/Y4XTOoVr2oXFe20IQyu0XqxfDX23/4839584460439552/thumb_bano-01jpg-1724261201588.jpg","is_stereo":false,"photo_type":"360_mono","created_date":"2024-08-21T17:26:41.588Z","updated_date":"2024-08-21T17:26:41.588Z","id":"5955048376893440","sort_order":1,"status":"active","has_anaglyph":false,"index":1},"5079106465038336":{"resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FY4XTOoVr2oXFe20IQyu0XqxfDX23%2F4839584460439552%2F20240821-nuevo-bano-02jpg-1724301887173.jpg&uploadType=resumable&upload_id=AHxI1nPfl3JrCQn_xkPWpzLbUVOJM5O2q4yMPofCrNXXAi9v2Iv3IZ0oQpNwR01uL4wK9fo5fY27pGldm43abROKs1tJn4hHwhQg8TwYi6V0VMnXww","image_url":"/users/Y4XTOoVr2oXFe20IQyu0XqxfDX23/4839584460439552/20240821-nuevo-bano-02jpg-1724301887173.jpg","rotation":108.40361483875098,"thumbnail_gcs_filename":"/users/Y4XTOoVr2oXFe20IQyu0XqxfDX23/4839584460439552/thumb_20240821-nuevo-bano-02jpg-1724301887173.jpg","title":"apto","version":"v4","gcs_filename":"/users/Y4XTOoVr2oXFe20IQyu0XqxfDX23/4839584460439552/20240821-nuevo-bano-02jpg-1724301887173.jpg","filename":"bano-02jpg-1724261201731.jpg","folder":"/users/Y4XTOoVr2oXFe20IQyu0XqxfDX23/4839584460439552","thumbnail_image_url":"/users/Y4XTOoVr2oXFe20IQyu0XqxfDX23/4839584460439552/thumb_20240821-nuevo-bano-02jpg-1724301887173.jpg","is_stereo":false,"photo_type":"360_mono","created_date":"2024-08-21T17:26:41.732Z","updated_date":"2024-08-21T17:26:41.732Z","id":"5079106465038336","sort_order":2,"status":"active","has_anaglyph":false,"index":0},"6500966905937920":{"resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FY4XTOoVr2oXFe20IQyu0XqxfDX23%2F4839584460439552%2F20240821-cocinajpg-1724301784834.jpg&uploadType=resumable&upload_id=AHxI1nPdeLfc_gzHeo8qSBdPxnHCaWgjxA5fyiCRCPXr9OK6Yuoq3aDAcgBbXcf-ekuH7iwTVF8_vFQ-dO4OCMe-4b-swjrqmCOwMCLPh-kWiKl7","image_url":"/users/Y4XTOoVr2oXFe20IQyu0XqxfDX23/4839584460439552/20240821-cocinajpg-1724301784834.jpg","rotation":43.247696213073255,"thumbnail_gcs_filename":"/users/Y4XTOoVr2oXFe20IQyu0XqxfDX23/4839584460439552/thumb_20240821-cocinajpg-1724301784834.jpg","title":"Cocina","version":"v4","gcs_filename":"/users/Y4XTOoVr2oXFe20IQyu0XqxfDX23/4839584460439552/20240821-cocinajpg-1724301784834.jpg","filename":"20240821-cocinajpg-1724301784834.jpg","folder":"/users/Y4XTOoVr2oXFe20IQyu0XqxfDX23/4839584460439552","thumbnail_image_url":"/users/Y4XTOoVr2oXFe20IQyu0XqxfDX23/4839584460439552/thumb_20240821-cocinajpg-1724301784834.jpg","is_stereo":false,"photo_type":"360_mono","created_date":"2024-08-22T04:43:04.834Z","updated_date":"2024-08-22T04:43:04.834Z","id":"6500966905937920","sort_order":3,"status":"active","has_anaglyph":false,"index":2}}; 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 = "4839584460439552"; window.tourUid = "Y4XTOoVr2oXFe20IQyu0XqxfDX23"; window.customUrl = "http://www.orbix360.com"; window.tourSlug = "prueba02"; window.template = '360_mono'; window.template_category = '360'; window.tourShortCode = "SjrzWMLP3"; 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['5079106465038336'] = 0; window.current_image_index = 0; window.current_image_id = 5079106465038336 window.photo_indexes['5955048376893440'] = 1; window.photo_indexes['6500966905937920'] = 2; 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/4839584460439552/thumb_20240821-nuevo-bano-02jpg-1724301887173.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":5079106465038336,"hotspots":[{"toTitle":"Bathroom","from":5079106465038336,"id":"hotspot_5079106465038336_5955048376893440","to":5955048376893440,"position":{"x":0.5988586245684687,"y":-0.21801545882349657,"z":-0.7706085955230074}},{"from":5079106465038336,"id":"hotspot_5079106465038336_6500966905937920","to":6500966905937920,"position":{"x":-0.2552009062971635,"y":-0.18533905629094077,"z":-0.9489583403070391},"toTitle":"Cocina"}]},{"infoHotspots":[],"id":5955048376893440,"hotspots":[{"toTitle":"apto","from":5955048376893440,"id":"hotspot_5955048376893440_5079106465038336","to":5079106465038336,"position":{"x":0.02959915064740352,"y":-0.042316923543206736,"z":-0.9986656939450713}}]},{"infoHotspots":[],"id":6500966905937920,"hotspots":[{"toTitle":"apto","from":6500966905937920,"id":"hotspot_6500966905937920_5079106465038336","to":5079106465038336,"position":{"x":-0.990869806648004,"y":-0.091349664919553,"z":0.09915777827499302}}]}],"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;