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":"living-1jpg-1776700170145.jpg","folder":"/users/zjZ8aC18j1Ney7c8OGLl8pdfRJ13/5855278807384064","gcs_filename":"/users/zjZ8aC18j1Ney7c8OGLl8pdfRJ13/5855278807384064/living-1jpg-1776700170145.jpg","image_url":"/users/zjZ8aC18j1Ney7c8OGLl8pdfRJ13/5855278807384064/living-1jpg-1776700170145.jpg","thumbnail_gcs_filename":"/users/zjZ8aC18j1Ney7c8OGLl8pdfRJ13/5855278807384064/thumb_living-1jpg-1776700170145.jpg","thumbnail_image_url":"/users/zjZ8aC18j1Ney7c8OGLl8pdfRJ13/5855278807384064/thumb_living-1jpg-1776700170145.jpg","rotation":91.21488098482666,"photo_type":"360_mono","is_stereo":false,"sort_order":5,"status":"active","created_date":"2026-04-20T15:49:30.146Z","updated_date":"2026-04-20T15:49:30.146Z","version":"v4","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FzjZ8aC18j1Ney7c8OGLl8pdfRJ13%2F5855278807384064%2Fliving-1jpg-1776700170145.jpg&uploadType=resumable&upload_id=AMNfjG1P16_UI5aPdHBOGU-pAHTZHl4rQVkulSwHFEbB50xtWso-jobD2TdS1ovZ--_IcxoqyeppxQo1IdmEcAzTy6nTta-jlpGCFLtC5PR8bg","id":"6487111144308736","title":"LIVING","has_anaglyph":false,"index":0},{"filename":"living-2jpg-1776700169894.jpg","folder":"/users/zjZ8aC18j1Ney7c8OGLl8pdfRJ13/5855278807384064","gcs_filename":"/users/zjZ8aC18j1Ney7c8OGLl8pdfRJ13/5855278807384064/living-2jpg-1776700169894.jpg","image_url":"/users/zjZ8aC18j1Ney7c8OGLl8pdfRJ13/5855278807384064/living-2jpg-1776700169894.jpg","thumbnail_gcs_filename":"/users/zjZ8aC18j1Ney7c8OGLl8pdfRJ13/5855278807384064/thumb_living-2jpg-1776700169894.jpg","thumbnail_image_url":"/users/zjZ8aC18j1Ney7c8OGLl8pdfRJ13/5855278807384064/thumb_living-2jpg-1776700169894.jpg","rotation":88.69386668625111,"photo_type":"360_mono","is_stereo":false,"sort_order":4,"status":"active","created_date":"2026-04-20T15:49:29.895Z","updated_date":"2026-04-20T15:49:29.895Z","version":"v4","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FzjZ8aC18j1Ney7c8OGLl8pdfRJ13%2F5855278807384064%2Fliving-2jpg-1776700169894.jpg&uploadType=resumable&upload_id=AMNfjG349LJ2Yp0WXjb7qhlcxhvxaZcizUhX0if37ZDFki-zPi0ppKUWSS8LwAnIQxCwKJ-gS845uGkSCeIUOx8ENR2Isf3JW7dqbkFquUWSOfg","id":"5391976356642816","title":"LIVING 2","has_anaglyph":false,"index":1},{"filename":"kamar-1jpg-1776700170047.jpg","folder":"/users/zjZ8aC18j1Ney7c8OGLl8pdfRJ13/5855278807384064","gcs_filename":"/users/zjZ8aC18j1Ney7c8OGLl8pdfRJ13/5855278807384064/kamar-1jpg-1776700170047.jpg","image_url":"/users/zjZ8aC18j1Ney7c8OGLl8pdfRJ13/5855278807384064/kamar-1jpg-1776700170047.jpg","thumbnail_gcs_filename":"/users/zjZ8aC18j1Ney7c8OGLl8pdfRJ13/5855278807384064/thumb_kamar-1jpg-1776700170047.jpg","thumbnail_image_url":"/users/zjZ8aC18j1Ney7c8OGLl8pdfRJ13/5855278807384064/thumb_kamar-1jpg-1776700170047.jpg","rotation":91.78783877995812,"photo_type":"360_mono","is_stereo":false,"sort_order":1,"status":"active","created_date":"2026-04-20T15:49:30.047Z","updated_date":"2026-04-20T15:49:30.047Z","version":"v4","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FzjZ8aC18j1Ney7c8OGLl8pdfRJ13%2F5855278807384064%2Fkamar-1jpg-1776700170047.jpg&uploadType=resumable&upload_id=AMNfjG3gqMTUiMzcdGCT_iUub4APHDC1LiOmgebF_NmPnaq0aDKeSzoD57pgFGRrkGhIiTJHyUO9GS83voVBicnfm8WAGPUFmu8g-NPpmriEJCE","id":"5353760006078464","title":"KAMAR 1","has_anaglyph":false,"index":2},{"filename":"kamar-2jpg-1776700170005.jpg","folder":"/users/zjZ8aC18j1Ney7c8OGLl8pdfRJ13/5855278807384064","gcs_filename":"/users/zjZ8aC18j1Ney7c8OGLl8pdfRJ13/5855278807384064/kamar-2jpg-1776700170005.jpg","image_url":"/users/zjZ8aC18j1Ney7c8OGLl8pdfRJ13/5855278807384064/kamar-2jpg-1776700170005.jpg","thumbnail_gcs_filename":"/users/zjZ8aC18j1Ney7c8OGLl8pdfRJ13/5855278807384064/thumb_kamar-2jpg-1776700170005.jpg","thumbnail_image_url":"/users/zjZ8aC18j1Ney7c8OGLl8pdfRJ13/5855278807384064/thumb_kamar-2jpg-1776700170005.jpg","rotation":87.66254265501618,"photo_type":"360_mono","is_stereo":false,"sort_order":2,"status":"active","created_date":"2026-04-20T15:49:30.006Z","updated_date":"2026-04-20T15:49:30.006Z","version":"v4","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FzjZ8aC18j1Ney7c8OGLl8pdfRJ13%2F5855278807384064%2Fkamar-2jpg-1776700170005.jpg&uploadType=resumable&upload_id=AMNfjG1s_QbRz1VtNlV2eqZyDIUHh0Sq2R60s-4CbiwA4-86_uYarXqkDwHlV8HcaueL2vcoO4NZUShsFKleS5--FaSD7F2ShRKH0rmI5KktCw","id":"6011096731222016","title":"KAMAR 2","has_anaglyph":false,"index":3},{"filename":"kamar-mandijpg-1776700170150.jpg","folder":"/users/zjZ8aC18j1Ney7c8OGLl8pdfRJ13/5855278807384064","gcs_filename":"/users/zjZ8aC18j1Ney7c8OGLl8pdfRJ13/5855278807384064/kamar-mandijpg-1776700170150.jpg","image_url":"/users/zjZ8aC18j1Ney7c8OGLl8pdfRJ13/5855278807384064/kamar-mandijpg-1776700170150.jpg","thumbnail_gcs_filename":"/users/zjZ8aC18j1Ney7c8OGLl8pdfRJ13/5855278807384064/thumb_kamar-mandijpg-1776700170150.jpg","thumbnail_image_url":"/users/zjZ8aC18j1Ney7c8OGLl8pdfRJ13/5855278807384064/thumb_kamar-mandijpg-1776700170150.jpg","rotation":91.78783877995681,"photo_type":"360_mono","is_stereo":false,"sort_order":3,"status":"active","created_date":"2026-04-20T15:49:30.151Z","updated_date":"2026-04-20T15:49:30.151Z","version":"v4","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FzjZ8aC18j1Ney7c8OGLl8pdfRJ13%2F5855278807384064%2Fkamar-mandijpg-1776700170150.jpg&uploadType=resumable&upload_id=AMNfjG040qZDbHTf3wsvhip4bOrDatGB7GWiiPABN9GpgIMRXXu_usEK0qlSc5MFpGbrXwjFvzaN-wNYeviUNdLSw3pGhbih5ZRAM_e2uX2-BFE","id":"6582936428085248","title":"KAMAR MANDI","has_anaglyph":false,"index":4}]; console.log('num photos: ' + window.photos.length); window.photosMap = {"5353760006078464":{"filename":"kamar-1jpg-1776700170047.jpg","folder":"/users/zjZ8aC18j1Ney7c8OGLl8pdfRJ13/5855278807384064","gcs_filename":"/users/zjZ8aC18j1Ney7c8OGLl8pdfRJ13/5855278807384064/kamar-1jpg-1776700170047.jpg","image_url":"/users/zjZ8aC18j1Ney7c8OGLl8pdfRJ13/5855278807384064/kamar-1jpg-1776700170047.jpg","thumbnail_gcs_filename":"/users/zjZ8aC18j1Ney7c8OGLl8pdfRJ13/5855278807384064/thumb_kamar-1jpg-1776700170047.jpg","thumbnail_image_url":"/users/zjZ8aC18j1Ney7c8OGLl8pdfRJ13/5855278807384064/thumb_kamar-1jpg-1776700170047.jpg","rotation":91.78783877995812,"photo_type":"360_mono","is_stereo":false,"sort_order":1,"status":"active","created_date":"2026-04-20T15:49:30.047Z","updated_date":"2026-04-20T15:49:30.047Z","version":"v4","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FzjZ8aC18j1Ney7c8OGLl8pdfRJ13%2F5855278807384064%2Fkamar-1jpg-1776700170047.jpg&uploadType=resumable&upload_id=AMNfjG3gqMTUiMzcdGCT_iUub4APHDC1LiOmgebF_NmPnaq0aDKeSzoD57pgFGRrkGhIiTJHyUO9GS83voVBicnfm8WAGPUFmu8g-NPpmriEJCE","id":"5353760006078464","title":"KAMAR 1","has_anaglyph":false,"index":2},"6011096731222016":{"filename":"kamar-2jpg-1776700170005.jpg","folder":"/users/zjZ8aC18j1Ney7c8OGLl8pdfRJ13/5855278807384064","gcs_filename":"/users/zjZ8aC18j1Ney7c8OGLl8pdfRJ13/5855278807384064/kamar-2jpg-1776700170005.jpg","image_url":"/users/zjZ8aC18j1Ney7c8OGLl8pdfRJ13/5855278807384064/kamar-2jpg-1776700170005.jpg","thumbnail_gcs_filename":"/users/zjZ8aC18j1Ney7c8OGLl8pdfRJ13/5855278807384064/thumb_kamar-2jpg-1776700170005.jpg","thumbnail_image_url":"/users/zjZ8aC18j1Ney7c8OGLl8pdfRJ13/5855278807384064/thumb_kamar-2jpg-1776700170005.jpg","rotation":87.66254265501618,"photo_type":"360_mono","is_stereo":false,"sort_order":2,"status":"active","created_date":"2026-04-20T15:49:30.006Z","updated_date":"2026-04-20T15:49:30.006Z","version":"v4","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FzjZ8aC18j1Ney7c8OGLl8pdfRJ13%2F5855278807384064%2Fkamar-2jpg-1776700170005.jpg&uploadType=resumable&upload_id=AMNfjG1s_QbRz1VtNlV2eqZyDIUHh0Sq2R60s-4CbiwA4-86_uYarXqkDwHlV8HcaueL2vcoO4NZUShsFKleS5--FaSD7F2ShRKH0rmI5KktCw","id":"6011096731222016","title":"KAMAR 2","has_anaglyph":false,"index":3},"6582936428085248":{"filename":"kamar-mandijpg-1776700170150.jpg","folder":"/users/zjZ8aC18j1Ney7c8OGLl8pdfRJ13/5855278807384064","gcs_filename":"/users/zjZ8aC18j1Ney7c8OGLl8pdfRJ13/5855278807384064/kamar-mandijpg-1776700170150.jpg","image_url":"/users/zjZ8aC18j1Ney7c8OGLl8pdfRJ13/5855278807384064/kamar-mandijpg-1776700170150.jpg","thumbnail_gcs_filename":"/users/zjZ8aC18j1Ney7c8OGLl8pdfRJ13/5855278807384064/thumb_kamar-mandijpg-1776700170150.jpg","thumbnail_image_url":"/users/zjZ8aC18j1Ney7c8OGLl8pdfRJ13/5855278807384064/thumb_kamar-mandijpg-1776700170150.jpg","rotation":91.78783877995681,"photo_type":"360_mono","is_stereo":false,"sort_order":3,"status":"active","created_date":"2026-04-20T15:49:30.151Z","updated_date":"2026-04-20T15:49:30.151Z","version":"v4","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FzjZ8aC18j1Ney7c8OGLl8pdfRJ13%2F5855278807384064%2Fkamar-mandijpg-1776700170150.jpg&uploadType=resumable&upload_id=AMNfjG040qZDbHTf3wsvhip4bOrDatGB7GWiiPABN9GpgIMRXXu_usEK0qlSc5MFpGbrXwjFvzaN-wNYeviUNdLSw3pGhbih5ZRAM_e2uX2-BFE","id":"6582936428085248","title":"KAMAR MANDI","has_anaglyph":false,"index":4},"5391976356642816":{"filename":"living-2jpg-1776700169894.jpg","folder":"/users/zjZ8aC18j1Ney7c8OGLl8pdfRJ13/5855278807384064","gcs_filename":"/users/zjZ8aC18j1Ney7c8OGLl8pdfRJ13/5855278807384064/living-2jpg-1776700169894.jpg","image_url":"/users/zjZ8aC18j1Ney7c8OGLl8pdfRJ13/5855278807384064/living-2jpg-1776700169894.jpg","thumbnail_gcs_filename":"/users/zjZ8aC18j1Ney7c8OGLl8pdfRJ13/5855278807384064/thumb_living-2jpg-1776700169894.jpg","thumbnail_image_url":"/users/zjZ8aC18j1Ney7c8OGLl8pdfRJ13/5855278807384064/thumb_living-2jpg-1776700169894.jpg","rotation":88.69386668625111,"photo_type":"360_mono","is_stereo":false,"sort_order":4,"status":"active","created_date":"2026-04-20T15:49:29.895Z","updated_date":"2026-04-20T15:49:29.895Z","version":"v4","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FzjZ8aC18j1Ney7c8OGLl8pdfRJ13%2F5855278807384064%2Fliving-2jpg-1776700169894.jpg&uploadType=resumable&upload_id=AMNfjG349LJ2Yp0WXjb7qhlcxhvxaZcizUhX0if37ZDFki-zPi0ppKUWSS8LwAnIQxCwKJ-gS845uGkSCeIUOx8ENR2Isf3JW7dqbkFquUWSOfg","id":"5391976356642816","title":"LIVING 2","has_anaglyph":false,"index":1},"6487111144308736":{"filename":"living-1jpg-1776700170145.jpg","folder":"/users/zjZ8aC18j1Ney7c8OGLl8pdfRJ13/5855278807384064","gcs_filename":"/users/zjZ8aC18j1Ney7c8OGLl8pdfRJ13/5855278807384064/living-1jpg-1776700170145.jpg","image_url":"/users/zjZ8aC18j1Ney7c8OGLl8pdfRJ13/5855278807384064/living-1jpg-1776700170145.jpg","thumbnail_gcs_filename":"/users/zjZ8aC18j1Ney7c8OGLl8pdfRJ13/5855278807384064/thumb_living-1jpg-1776700170145.jpg","thumbnail_image_url":"/users/zjZ8aC18j1Ney7c8OGLl8pdfRJ13/5855278807384064/thumb_living-1jpg-1776700170145.jpg","rotation":91.21488098482666,"photo_type":"360_mono","is_stereo":false,"sort_order":5,"status":"active","created_date":"2026-04-20T15:49:30.146Z","updated_date":"2026-04-20T15:49:30.146Z","version":"v4","resumable_upload_uri":"https://storage.googleapis.com/upload/storage/v1/b/orbix360-prod-images/o?name=users%2FzjZ8aC18j1Ney7c8OGLl8pdfRJ13%2F5855278807384064%2Fliving-1jpg-1776700170145.jpg&uploadType=resumable&upload_id=AMNfjG1P16_UI5aPdHBOGU-pAHTZHl4rQVkulSwHFEbB50xtWso-jobD2TdS1ovZ--_IcxoqyeppxQo1IdmEcAzTy6nTta-jlpGCFLtC5PR8bg","id":"6487111144308736","title":"LIVING","has_anaglyph":false,"index":0}}; if (window.is_static) { window.photosRoot = 'https://images.orbix360.com'; // TODO: after we create all the local schema/template folders, change this to empty string window.pluginsRoot = 'plugins/'; } else { window.photosRoot = 'https://images.orbix360.com'; window.pluginsRoot = 'https://storage.googleapis.com/orbix360-prod-plugins/'; } window.minterUrl = 'https://minter.orbix360.com'; window.tourId = "5855278807384064"; // 052: the tour sound's Loop / Play once choice (absent = loop). window.tourAudioLoop = true; window.tourUid = "zjZ8aC18j1Ney7c8OGLl8pdfRJ13"; window.isTourOwner = false; window.customUrl = "http://www.orbix360.com"; window.tourSlug = "cokelat-interior"; window.template = '360_mono'; window.template_category = '360'; window.tourShortCode = "N4BQ72vMI"; 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['6487111144308736'] = 0; window.current_image_index = 0; window.current_image_id = 6487111144308736 window.photo_indexes['5391976356642816'] = 1; window.photo_indexes['5353760006078464'] = 2; window.photo_indexes['6011096731222016'] = 3; window.photo_indexes['6582936428085248'] = 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/ACg8ocImiHJdKqKhqJ9N2EhQU3IKyvgwToqz4EMK62qTYy85sDeoeU9L=s96-c'; window.user_profile_name = 'Rizky Mohammad Pahlevi'; window.shortURLRoot = 'https://orbix360.com'; window.image_url = 'https://images.orbix360.com/users/zjZ8aC18j1Ney7c8OGLl8pdfRJ13/5855278807384064/thumb_living-1jpg-1776700170145.jpg.play.jpg'; window.image_url_root = 'https://images.orbix360.com'; window.cloudFunctionsRoot = 'https://us-central1-orbix360-prod.cloudfunctions.net'; window.timeSinceRestartRotation = 0; window.initialState = {"versionNumber":3,"autorotate":{"enabled":false},"orbs":[{"id":6487111144308736,"hotspots":[],"infoHotspots":[]},{"id":5391976356642816,"hotspots":[],"infoHotspots":[]},{"id":5353760006078464,"hotspots":[],"infoHotspots":[]},{"id":6011096731222016,"hotspots":[],"infoHotspots":[]},{"id":6582936428085248,"hotspots":[],"infoHotspots":[]}]}; window.brandingAllowed = false; window.isOwner = false; // 045: owner-only prompts route to the Premium Tour page window.upgradeCheckoutSessionStatus = ''; window.isUpgradeSubscriptionValid = false; window.isPro = (window.brandingAllowed || window.isUpgradeSubscriptionValid); // 029: free-plan limits from functions/common/plan_limits.js; read by // add_photos_dropzone.js (image cap, file size), which keeps fallbacks. window.planLimits = {"freeMaxMultiImageTours":2,"freeMaxSingleImageTours":-1,"freeMaxImagesPerTour":5,"freeMaxFileBytes":20000000,"multiImageLimitCutoffDate":"2026-10-11T00:00:00Z","freeMultiImageBonusPerUpgradedTour":2,"freeMultiImageBonusPerSharedTour":1,"freeMultiImageShareCreditVisitors":1,"freeMaxMultiImageToursWithBonus":10,"freeMultiImageShareBonusEnabled":true,"freeMultiImageLimitEnabled":true}; // 038: offer prices from functions/common/prices.js (display strings, cents); read by nothing yet. window.prices = {"currency":"usd","proMonthly":{"amount":999,"interval":"month","perMonth":999,"display":"$9.99","perMonthDisplay":"$9.99"},"proYearly":{"amount":9900,"interval":"year","perMonth":825,"display":"$99.00","perMonthDisplay":"$8.25"},"tourMonthly":{"amount":299,"interval":"month","perMonth":299,"display":"$2.99","perMonthDisplay":"$2.99"},"tourConversionCredit":{"amount":300,"display":"$3.00"},"tourComparison":{"count":4,"total":1196,"totalDisplay":"$11.96"}}; window.nadirLogoURL = (window.brandingAllowed || isUpgradeSubscriptionValid) ? '/images/powered-by-orbix_nadir.png' : '/images/orbix_nadir.png'; window.editMode = false; // #325 feature flag: screen-space nav hotspot dock. Environment default from // app_config.NAV_DOCK_ENABLED; overridable per page load with ?navdock=on|off // (this script runs in the viewer page's context, so location.search is the // tour page's query string). Flag off = pre-#325 world-anchored nav hotspots. window.navDockEnabled = false; (function () { try { var navdock = new URLSearchParams(window.location.search).get('navdock'); if (navdock === 'on' || navdock === 'yes') { window.navDockEnabled = true; } else if (navdock === 'off' || navdock === 'no') { window.navDockEnabled = false; } } catch (e) { /* keep the environment default */ } })();