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%2FpmlKQ8r8HTNs1T4EzuM3s5WOBLw1%2F6638225537892352%2F2342-panoramajpg-1714507442269.jpg&uploadType=resumable&upload_id=ABPtcPrrXAYZpINacRN7MhGNgKbXjh3jbDjKuYHR1xrFjQ4kTldn5Y9VbOBrSjeSsLzMSnecNKKr0bkWH-S08lIuBL364GeauO99HtmQcHku0zBq","image_url":"/users/pmlKQ8r8HTNs1T4EzuM3s5WOBLw1/6638225537892352/2342-panoramajpg-1714507442269.jpg","rotation":206.0823015892554,"thumbnail_gcs_filename":"/users/pmlKQ8r8HTNs1T4EzuM3s5WOBLw1/6638225537892352/thumb_2342-panoramajpg-1714507442269.jpg","title":"SALA COMEDOR","version":"v4","gcs_filename":"/users/pmlKQ8r8HTNs1T4EzuM3s5WOBLw1/6638225537892352/2342-panoramajpg-1714507442269.jpg","filename":"2342-panoramajpg-1714507442269.jpg","folder":"/users/pmlKQ8r8HTNs1T4EzuM3s5WOBLw1/6638225537892352","thumbnail_image_url":"/users/pmlKQ8r8HTNs1T4EzuM3s5WOBLw1/6638225537892352/thumb_2342-panoramajpg-1714507442269.jpg","is_stereo":false,"photo_type":"360_mono","created_date":"2024-04-30T20:04:02.274Z","updated_date":"2024-04-30T20:04:02.274Z","id":"6171173916246016","sort_order":5,"status":"active","has_anaglyph":false,"index":0},{"resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FpmlKQ8r8HTNs1T4EzuM3s5WOBLw1%2F6638225537892352%2F2343-panoramajpg-1714507442006.jpg&uploadType=resumable&upload_id=ABPtcPqhkuz-bH7InBAi-t9YqeCKVJh_RqYRu0_xIUyTaNz7YWkkFEfhky2GDvM7qaT044YWXnur3UCG_zbMrWvesIvqjJkKM9VjN-hVKr6CxnAp","image_url":"/users/pmlKQ8r8HTNs1T4EzuM3s5WOBLw1/6638225537892352/2343-panoramajpg-1714507442006.jpg","rotation":206.19689314828156,"thumbnail_gcs_filename":"/users/pmlKQ8r8HTNs1T4EzuM3s5WOBLw1/6638225537892352/thumb_2343-panoramajpg-1714507442006.jpg","title":"COCINA","version":"v4","gcs_filename":"/users/pmlKQ8r8HTNs1T4EzuM3s5WOBLw1/6638225537892352/2343-panoramajpg-1714507442006.jpg","filename":"2343-panoramajpg-1714507442006.jpg","folder":"/users/pmlKQ8r8HTNs1T4EzuM3s5WOBLw1/6638225537892352","thumbnail_image_url":"/users/pmlKQ8r8HTNs1T4EzuM3s5WOBLw1/6638225537892352/thumb_2343-panoramajpg-1714507442006.jpg","is_stereo":false,"photo_type":"360_mono","created_date":"2024-04-30T20:04:02.007Z","updated_date":"2024-04-30T20:04:02.007Z","id":"4663152883007488","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%2FpmlKQ8r8HTNs1T4EzuM3s5WOBLw1%2F6638225537892352%2F2345-panoramajpg-1714507442472.jpg&uploadType=resumable&upload_id=ABPtcPpxX5JlYtWcot1KCZEzJkCFYtH07oK_hXNWdLUAxZwlk9WI3GW_C-H13KTcM6CIDCKsSASEx0gy2US21YbcHUocndaspMQpFlEKRb5z-gCWLw","image_url":"/users/pmlKQ8r8HTNs1T4EzuM3s5WOBLw1/6638225537892352/2345-panoramajpg-1714507442472.jpg","rotation":0,"thumbnail_gcs_filename":"/users/pmlKQ8r8HTNs1T4EzuM3s5WOBLw1/6638225537892352/thumb_2345-panoramajpg-1714507442472.jpg","title":"DORMITORIO 1","version":"v3","gcs_filename":"/users/pmlKQ8r8HTNs1T4EzuM3s5WOBLw1/6638225537892352/2345-panoramajpg-1714507442472.jpg","filename":"2345-panoramajpg-1714507442472.jpg","folder":"/users/pmlKQ8r8HTNs1T4EzuM3s5WOBLw1/6638225537892352","thumbnail_image_url":"/users/pmlKQ8r8HTNs1T4EzuM3s5WOBLw1/6638225537892352/thumb_2345-panoramajpg-1714507442472.jpg","is_stereo":false,"photo_type":"360_mono","created_date":"2024-04-30T20:04:02.473Z","updated_date":"2024-04-30T20:04:02.473Z","id":"5789052789850112","sort_order":2,"status":"active","has_anaglyph":false,"index":2},{"resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FpmlKQ8r8HTNs1T4EzuM3s5WOBLw1%2F6638225537892352%2F2346-panoramajpg-1714507441854.jpg&uploadType=resumable&upload_id=ABPtcPo0w0PGIVVrUyXr7xjyGZjzv4K4ajTPrPggtk1DaKFOo74GRj4XDeK_0iVZ2glss4vaa77mXyWym2fnTqxTjIq1gmqijYU17owrI1wC6L1T","image_url":"/users/pmlKQ8r8HTNs1T4EzuM3s5WOBLw1/6638225537892352/2346-panoramajpg-1714507441854.jpg","rotation":0,"thumbnail_gcs_filename":"/users/pmlKQ8r8HTNs1T4EzuM3s5WOBLw1/6638225537892352/thumb_2346-panoramajpg-1714507441854.jpg","title":"DORMITORIO 2","version":"v3","gcs_filename":"/users/pmlKQ8r8HTNs1T4EzuM3s5WOBLw1/6638225537892352/2346-panoramajpg-1714507441854.jpg","filename":"2346-panoramajpg-1714507441854.jpg","folder":"/users/pmlKQ8r8HTNs1T4EzuM3s5WOBLw1/6638225537892352","thumbnail_image_url":"/users/pmlKQ8r8HTNs1T4EzuM3s5WOBLw1/6638225537892352/thumb_2346-panoramajpg-1714507441854.jpg","is_stereo":false,"photo_type":"360_mono","created_date":"2024-04-30T20:04:01.855Z","updated_date":"2024-04-30T20:04:01.855Z","id":"6493832663269376","sort_order":1,"status":"active","has_anaglyph":false,"index":3},{"resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FpmlKQ8r8HTNs1T4EzuM3s5WOBLw1%2F6638225537892352%2F2344-panoramajpg-1714507441856.jpg&uploadType=resumable&upload_id=ABPtcPo4XwTgv6_8czm-sCvfSg3OpLyew6l1yRwGkMQu4VR2CtD9VytaJyl8V4TBIyL0OnWCQrsi04UwYXSfTmu8Otc6q2av7lUcGwZ1wZy1zQz8","image_url":"/users/pmlKQ8r8HTNs1T4EzuM3s5WOBLw1/6638225537892352/2344-panoramajpg-1714507441856.jpg","rotation":0,"thumbnail_gcs_filename":"/users/pmlKQ8r8HTNs1T4EzuM3s5WOBLw1/6638225537892352/thumb_2344-panoramajpg-1714507441856.jpg","title":"BAÑO","version":"v3","gcs_filename":"/users/pmlKQ8r8HTNs1T4EzuM3s5WOBLw1/6638225537892352/2344-panoramajpg-1714507441856.jpg","filename":"2344-panoramajpg-1714507441856.jpg","folder":"/users/pmlKQ8r8HTNs1T4EzuM3s5WOBLw1/6638225537892352","thumbnail_image_url":"/users/pmlKQ8r8HTNs1T4EzuM3s5WOBLw1/6638225537892352/thumb_2344-panoramajpg-1714507441856.jpg","is_stereo":false,"photo_type":"360_mono","created_date":"2024-04-30T20:04:01.857Z","updated_date":"2024-04-30T20:04:01.857Z","id":"4717512807677952","sort_order":3,"status":"active","has_anaglyph":false,"index":4}]; console.log('num photos: ' + window.photos.length); window.photosMap = {"6493832663269376":{"resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FpmlKQ8r8HTNs1T4EzuM3s5WOBLw1%2F6638225537892352%2F2346-panoramajpg-1714507441854.jpg&uploadType=resumable&upload_id=ABPtcPo0w0PGIVVrUyXr7xjyGZjzv4K4ajTPrPggtk1DaKFOo74GRj4XDeK_0iVZ2glss4vaa77mXyWym2fnTqxTjIq1gmqijYU17owrI1wC6L1T","image_url":"/users/pmlKQ8r8HTNs1T4EzuM3s5WOBLw1/6638225537892352/2346-panoramajpg-1714507441854.jpg","rotation":0,"thumbnail_gcs_filename":"/users/pmlKQ8r8HTNs1T4EzuM3s5WOBLw1/6638225537892352/thumb_2346-panoramajpg-1714507441854.jpg","title":"DORMITORIO 2","version":"v3","gcs_filename":"/users/pmlKQ8r8HTNs1T4EzuM3s5WOBLw1/6638225537892352/2346-panoramajpg-1714507441854.jpg","filename":"2346-panoramajpg-1714507441854.jpg","folder":"/users/pmlKQ8r8HTNs1T4EzuM3s5WOBLw1/6638225537892352","thumbnail_image_url":"/users/pmlKQ8r8HTNs1T4EzuM3s5WOBLw1/6638225537892352/thumb_2346-panoramajpg-1714507441854.jpg","is_stereo":false,"photo_type":"360_mono","created_date":"2024-04-30T20:04:01.855Z","updated_date":"2024-04-30T20:04:01.855Z","id":"6493832663269376","sort_order":1,"status":"active","has_anaglyph":false,"index":3},"5789052789850112":{"resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FpmlKQ8r8HTNs1T4EzuM3s5WOBLw1%2F6638225537892352%2F2345-panoramajpg-1714507442472.jpg&uploadType=resumable&upload_id=ABPtcPpxX5JlYtWcot1KCZEzJkCFYtH07oK_hXNWdLUAxZwlk9WI3GW_C-H13KTcM6CIDCKsSASEx0gy2US21YbcHUocndaspMQpFlEKRb5z-gCWLw","image_url":"/users/pmlKQ8r8HTNs1T4EzuM3s5WOBLw1/6638225537892352/2345-panoramajpg-1714507442472.jpg","rotation":0,"thumbnail_gcs_filename":"/users/pmlKQ8r8HTNs1T4EzuM3s5WOBLw1/6638225537892352/thumb_2345-panoramajpg-1714507442472.jpg","title":"DORMITORIO 1","version":"v3","gcs_filename":"/users/pmlKQ8r8HTNs1T4EzuM3s5WOBLw1/6638225537892352/2345-panoramajpg-1714507442472.jpg","filename":"2345-panoramajpg-1714507442472.jpg","folder":"/users/pmlKQ8r8HTNs1T4EzuM3s5WOBLw1/6638225537892352","thumbnail_image_url":"/users/pmlKQ8r8HTNs1T4EzuM3s5WOBLw1/6638225537892352/thumb_2345-panoramajpg-1714507442472.jpg","is_stereo":false,"photo_type":"360_mono","created_date":"2024-04-30T20:04:02.473Z","updated_date":"2024-04-30T20:04:02.473Z","id":"5789052789850112","sort_order":2,"status":"active","has_anaglyph":false,"index":2},"4717512807677952":{"resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FpmlKQ8r8HTNs1T4EzuM3s5WOBLw1%2F6638225537892352%2F2344-panoramajpg-1714507441856.jpg&uploadType=resumable&upload_id=ABPtcPo4XwTgv6_8czm-sCvfSg3OpLyew6l1yRwGkMQu4VR2CtD9VytaJyl8V4TBIyL0OnWCQrsi04UwYXSfTmu8Otc6q2av7lUcGwZ1wZy1zQz8","image_url":"/users/pmlKQ8r8HTNs1T4EzuM3s5WOBLw1/6638225537892352/2344-panoramajpg-1714507441856.jpg","rotation":0,"thumbnail_gcs_filename":"/users/pmlKQ8r8HTNs1T4EzuM3s5WOBLw1/6638225537892352/thumb_2344-panoramajpg-1714507441856.jpg","title":"BAÑO","version":"v3","gcs_filename":"/users/pmlKQ8r8HTNs1T4EzuM3s5WOBLw1/6638225537892352/2344-panoramajpg-1714507441856.jpg","filename":"2344-panoramajpg-1714507441856.jpg","folder":"/users/pmlKQ8r8HTNs1T4EzuM3s5WOBLw1/6638225537892352","thumbnail_image_url":"/users/pmlKQ8r8HTNs1T4EzuM3s5WOBLw1/6638225537892352/thumb_2344-panoramajpg-1714507441856.jpg","is_stereo":false,"photo_type":"360_mono","created_date":"2024-04-30T20:04:01.857Z","updated_date":"2024-04-30T20:04:01.857Z","id":"4717512807677952","sort_order":3,"status":"active","has_anaglyph":false,"index":4},"4663152883007488":{"resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FpmlKQ8r8HTNs1T4EzuM3s5WOBLw1%2F6638225537892352%2F2343-panoramajpg-1714507442006.jpg&uploadType=resumable&upload_id=ABPtcPqhkuz-bH7InBAi-t9YqeCKVJh_RqYRu0_xIUyTaNz7YWkkFEfhky2GDvM7qaT044YWXnur3UCG_zbMrWvesIvqjJkKM9VjN-hVKr6CxnAp","image_url":"/users/pmlKQ8r8HTNs1T4EzuM3s5WOBLw1/6638225537892352/2343-panoramajpg-1714507442006.jpg","rotation":206.19689314828156,"thumbnail_gcs_filename":"/users/pmlKQ8r8HTNs1T4EzuM3s5WOBLw1/6638225537892352/thumb_2343-panoramajpg-1714507442006.jpg","title":"COCINA","version":"v4","gcs_filename":"/users/pmlKQ8r8HTNs1T4EzuM3s5WOBLw1/6638225537892352/2343-panoramajpg-1714507442006.jpg","filename":"2343-panoramajpg-1714507442006.jpg","folder":"/users/pmlKQ8r8HTNs1T4EzuM3s5WOBLw1/6638225537892352","thumbnail_image_url":"/users/pmlKQ8r8HTNs1T4EzuM3s5WOBLw1/6638225537892352/thumb_2343-panoramajpg-1714507442006.jpg","is_stereo":false,"photo_type":"360_mono","created_date":"2024-04-30T20:04:02.007Z","updated_date":"2024-04-30T20:04:02.007Z","id":"4663152883007488","sort_order":4,"status":"active","has_anaglyph":false,"index":1},"6171173916246016":{"resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FpmlKQ8r8HTNs1T4EzuM3s5WOBLw1%2F6638225537892352%2F2342-panoramajpg-1714507442269.jpg&uploadType=resumable&upload_id=ABPtcPrrXAYZpINacRN7MhGNgKbXjh3jbDjKuYHR1xrFjQ4kTldn5Y9VbOBrSjeSsLzMSnecNKKr0bkWH-S08lIuBL364GeauO99HtmQcHku0zBq","image_url":"/users/pmlKQ8r8HTNs1T4EzuM3s5WOBLw1/6638225537892352/2342-panoramajpg-1714507442269.jpg","rotation":206.0823015892554,"thumbnail_gcs_filename":"/users/pmlKQ8r8HTNs1T4EzuM3s5WOBLw1/6638225537892352/thumb_2342-panoramajpg-1714507442269.jpg","title":"SALA COMEDOR","version":"v4","gcs_filename":"/users/pmlKQ8r8HTNs1T4EzuM3s5WOBLw1/6638225537892352/2342-panoramajpg-1714507442269.jpg","filename":"2342-panoramajpg-1714507442269.jpg","folder":"/users/pmlKQ8r8HTNs1T4EzuM3s5WOBLw1/6638225537892352","thumbnail_image_url":"/users/pmlKQ8r8HTNs1T4EzuM3s5WOBLw1/6638225537892352/thumb_2342-panoramajpg-1714507442269.jpg","is_stereo":false,"photo_type":"360_mono","created_date":"2024-04-30T20:04:02.274Z","updated_date":"2024-04-30T20:04:02.274Z","id":"6171173916246016","sort_order":5,"status":"active","has_anaglyph":false,"index":0}}; 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 = "6638225537892352"; window.tourUid = "pmlKQ8r8HTNs1T4EzuM3s5WOBLw1"; window.customUrl = "http://www.orbix360.com"; window.tourSlug = "casa-valparaiso"; window.template = '360_mono'; window.template_category = '360'; window.tourShortCode = "jlU_ohqYY"; 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['6171173916246016'] = 0; window.current_image_index = 0; window.current_image_id = 6171173916246016 window.photo_indexes['4663152883007488'] = 1; window.photo_indexes['5789052789850112'] = 2; window.photo_indexes['6493832663269376'] = 3; window.photo_indexes['4717512807677952'] = 4; 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/ACg8ocLf2sVNoDZ2Sh2TXE_99QLTr24IcEL4w_5lPAPAuWIafAeA-w=s96-c'; window.user_profile_name = 'rosalinda toscano ramos'; window.shortURLRoot = 'https://orbix360.com'; window.image_url = 'https://storage.googleapis.com/orbix360-prod-images/users/pmlKQ8r8HTNs1T4EzuM3s5WOBLw1/6638225537892352/thumb_2342-panoramajpg-1714507442269.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":[],"flatImages":[{"src":"https://storage.googleapis.com/orbix360-prod-images/users/pmlKQ8r8HTNs1T4EzuM3s5WOBLw1/6638225537892352/VALPARAISO MARCA 2 turquesa.png","is_stereo":false,"rotation":{"x":0,"y":0,"z":0},"width":1231,"scale_multiplier":1.23,"id":"flat_image_6171173916246016_1714507945492","position":{"x":0.8595675108855428,"y":0.13289096497035557,"z":0.49344066072758924},"height":644}],"id":6171173916246016,"hotspots":[]},{"infoHotspots":[],"id":4663152883007488,"hotspots":[]},{"infoHotspots":[],"id":5789052789850112,"hotspots":[{"toTitle":"DORMITORIO 2","from":5789052789850112,"id":"hotspot_5789052789850112_6493832663269376","to":6493832663269376,"position":{"x":0.6043211711186064,"y":-0.793409376667131,"z":0.07278381107437797}},{"toTitle":"BAÑO","from":5789052789850112,"id":"hotspot_5789052789850112_4717512807677952","to":4717512807677952,"position":{"x":-0.06406027548679447,"y":-0.8485583822879481,"z":0.5252094372280611}}]},{"infoHotspots":[],"id":6493832663269376,"hotspots":[]},{"infoHotspots":[],"id":4717512807677952,"hotspots":[]}],"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;