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 = [{"filename":"img20250320145635584jpg-1742474153680.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6642016827998208","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6642016827998208/img20250320145635584jpg-1742474153680.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6642016827998208/img20250320145635584jpg-1742474153680.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6642016827998208/thumb_img20250320145635584jpg-1742474153680.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6642016827998208/thumb_img20250320145635584jpg-1742474153680.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":1,"status":"active","created_date":"2025-03-20T12:35:53.680Z","updated_date":"2025-03-20T12:35:53.680Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F6642016827998208%2Fimg20250320145635584jpg-1742474153680.JPG&uploadType=resumable&upload_id=AKDAyIviuFI2kZs3Qpa_bhNDfVYMIrag4EB2PoqiZaxXWjqPyVcqufZrFIKtDc_B3W4rnWFjyakEZ2Gk9Wwr8KUEe01ofCCEPSs47bZN5HMGuA","id":"4886966623535104","title":"Music Room","has_anaglyph":false,"index":0},{"filename":"img20250320145640631jpg-1742474153690.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6642016827998208","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6642016827998208/img20250320145640631jpg-1742474153690.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6642016827998208/img20250320145640631jpg-1742474153690.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6642016827998208/thumb_img20250320145640631jpg-1742474153690.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6642016827998208/thumb_img20250320145640631jpg-1742474153690.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":3,"status":"active","created_date":"2025-03-20T12:35:53.690Z","updated_date":"2025-03-20T12:35:53.690Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F6642016827998208%2Fimg20250320145640631jpg-1742474153690.JPG&uploadType=resumable&upload_id=AKDAyItRoCKX0up581AbJmSp61QcoNQpyO_UD_Bmq_KfdaYwogUlSWLPA8SU6Klqyh-mlbQQDvHvvdPrDF1sPEwUgRIJBgihUbLKHcktx8bLyO8","id":"4724818605768704","title":"Atelier","has_anaglyph":false,"index":1}];
console.log('num photos: ' + window.photos.length);
window.photosMap = {"4886966623535104":{"filename":"img20250320145635584jpg-1742474153680.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6642016827998208","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6642016827998208/img20250320145635584jpg-1742474153680.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6642016827998208/img20250320145635584jpg-1742474153680.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6642016827998208/thumb_img20250320145635584jpg-1742474153680.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6642016827998208/thumb_img20250320145635584jpg-1742474153680.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":1,"status":"active","created_date":"2025-03-20T12:35:53.680Z","updated_date":"2025-03-20T12:35:53.680Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F6642016827998208%2Fimg20250320145635584jpg-1742474153680.JPG&uploadType=resumable&upload_id=AKDAyIviuFI2kZs3Qpa_bhNDfVYMIrag4EB2PoqiZaxXWjqPyVcqufZrFIKtDc_B3W4rnWFjyakEZ2Gk9Wwr8KUEe01ofCCEPSs47bZN5HMGuA","id":"4886966623535104","title":"Music Room","has_anaglyph":false,"index":0},"4724818605768704":{"filename":"img20250320145640631jpg-1742474153690.JPG","folder":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6642016827998208","gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6642016827998208/img20250320145640631jpg-1742474153690.JPG","image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6642016827998208/img20250320145640631jpg-1742474153690.JPG","thumbnail_gcs_filename":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6642016827998208/thumb_img20250320145640631jpg-1742474153690.JPG","thumbnail_image_url":"/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6642016827998208/thumb_img20250320145640631jpg-1742474153690.JPG","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":3,"status":"active","created_date":"2025-03-20T12:35:53.690Z","updated_date":"2025-03-20T12:35:53.690Z","version":"v3","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FStvQBn7UXrYdel0l2nQRHWnSKpf1%2F6642016827998208%2Fimg20250320145640631jpg-1742474153690.JPG&uploadType=resumable&upload_id=AKDAyItRoCKX0up581AbJmSp61QcoNQpyO_UD_Bmq_KfdaYwogUlSWLPA8SU6Klqyh-mlbQQDvHvvdPrDF1sPEwUgRIJBgihUbLKHcktx8bLyO8","id":"4724818605768704","title":"Atelier","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 = "6642016827998208";
window.tourUid = "StvQBn7UXrYdel0l2nQRHWnSKpf1";
window.customUrl = "https://kiddy123.com/";
window.tourSlug = "small-wonder-taman-sutera";
window.template = '360_mono';
window.template_category = '360';
window.tourShortCode = "Ch1dWWpWd";
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['4886966623535104'] = 0;
window.current_image_index = 0;
window.current_image_id = 4886966623535104
window.photo_indexes['4724818605768704'] = 1;
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 = '/images/profile-icon.png';
window.user_profile_name = 'Orbi-3310788280';
window.shortURLRoot = 'https://orbix360.com';
window.image_url = 'https://storage.googleapis.com/orbix360-prod-images/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6642016827998208/thumb_img20250320145635584jpg-1742474153680.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 = {"versionNumber":3,"autorotate":{"enabled":true},"orbs":[{"id":4886966623535104,"hotspots":[{"id":"hotspot_4886966623535104_4724818605768704","from":4886966623535104,"to":4724818605768704,"position":{"x":-0.9982838368286376,"y":0.05298964936550018,"z":-0.024929464230404576},"toTitle":"Atelier"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1742751279387","instanceName":"Image","templateFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/4826070998056960/v3/template.html","schemaFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/4826070998056960/v3/schema.json","scriptFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/4826070998056960/v3/script.js","position":{"x":"0.1","y":"-0.9","z":"0.01"},"rotation":{"x":"-100","y":"65","z":"0"},"scale":{"x":"1","y":"1","z":"1"},"src":"https://storage.googleapis.com/orbix360-prod-assets/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6642016827998208/4886966623535104/plugin_4826070998056960_1742751279387/logo.png","width":3,"height":"3","visible":true,"shader":"flat","transparent":true,"opacity":"1.0","side":"front","repeat":"1 1","additional_components":""}]},{"id":4724818605768704,"hotspots":[{"id":"hotspot_4724818605768704_4886966623535104","from":4724818605768704,"to":4886966623535104,"position":{"x":-0.5945768220633654,"y":-0.16120820316254703,"z":-0.7877120780451015},"toTitle":"Music Room"}],"infoHotspots":[],"plugins":[{"pluginId":"4826070998056960","instanceId":"plugin_4826070998056960_1742751542871","instanceName":"Image","templateFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/4826070998056960/v3/template.html","schemaFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/4826070998056960/v3/schema.json","scriptFilename":"users/sn4iLJyuI5Y6LMBmIQrqSelGxJK2/4826070998056960/v3/script.js","position":{"x":"0.1","y":"-0.9","z":"0.01"},"rotation":{"x":"-100","y":"65","z":"0"},"scale":{"x":"1","y":"1","z":"1"},"src":"https://storage.googleapis.com/orbix360-prod-assets/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/6642016827998208/4724818605768704/plugin_4826070998056960_1742751542871/logo.png","width":3,"height":"3","visible":true,"shader":"flat","transparent":true,"opacity":"1.0","side":"front","repeat":"1 1","additional_components":""}]}]};
window.brandingAllowed = true;
window.upgradeCheckoutSessionStatus = '';
window.isPro = (window.brandingAllowed || window.upgradeCheckoutSessionStatus == 'complete');
window.nadirLogoURL = (window.brandingAllowed || window.upgradeCheckoutSessionStatus == 'complete') ? 'https://storage.googleapis.com/orbix360-prod-images/users/StvQBn7UXrYdel0l2nQRHWnSKpf1/branding/nadir-1729253472432.png' : '/images/orbix_nadir.png';
window.editMode = false;