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":"81png-1735238202996.png","folder":"/users/6kJyt8OVcudlsyy1mDIi6tKyS1x1/6002407093829632","gcs_filename":"/users/6kJyt8OVcudlsyy1mDIi6tKyS1x1/6002407093829632/panorama-2-8kpng-1735238309972.png","image_url":"/users/6kJyt8OVcudlsyy1mDIi6tKyS1x1/6002407093829632/panorama-2-8kpng-1735238309972.png","thumbnail_gcs_filename":"/users/6kJyt8OVcudlsyy1mDIi6tKyS1x1/6002407093829632/thumb_panorama-2-8kpng-1735238309972.png","thumbnail_image_url":"/users/6kJyt8OVcudlsyy1mDIi6tKyS1x1/6002407093829632/thumb_panorama-2-8kpng-1735238309972.png","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":1,"status":"active","created_date":"2024-12-26T18:36:42.997Z","updated_date":"2024-12-26T18:36:42.997Z","version":"v3","id":"6222982621954048","title":"Great Room","has_anaglyph":false,"index":0},{"filename":"8k-entryway-1png-1735239005442.png","folder":"/users/6kJyt8OVcudlsyy1mDIi6tKyS1x1/6002407093829632","gcs_filename":"/users/6kJyt8OVcudlsyy1mDIi6tKyS1x1/6002407093829632/8k-entryway-1png-1735239005442.png","image_url":"/users/6kJyt8OVcudlsyy1mDIi6tKyS1x1/6002407093829632/8k-entryway-1png-1735239005442.png","thumbnail_gcs_filename":"/users/6kJyt8OVcudlsyy1mDIi6tKyS1x1/6002407093829632/thumb_8k-entryway-1png-1735239005442.png","thumbnail_image_url":"/users/6kJyt8OVcudlsyy1mDIi6tKyS1x1/6002407093829632/thumb_8k-entryway-1png-1735239005442.png","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":2,"status":"active","created_date":"2024-12-26T18:50:05.444Z","updated_date":"2024-12-26T18:50:05.444Z","version":"v3","id":"6235790726135808","title":"Entryway","has_anaglyph":false,"index":1},{"filename":"panorama-4kpng-1735239067049.png","folder":"/users/6kJyt8OVcudlsyy1mDIi6tKyS1x1/6002407093829632","gcs_filename":"/users/6kJyt8OVcudlsyy1mDIi6tKyS1x1/6002407093829632/panorama-4kpng-1735239067049.png","image_url":"/users/6kJyt8OVcudlsyy1mDIi6tKyS1x1/6002407093829632/panorama-4kpng-1735239067049.png","thumbnail_gcs_filename":"/users/6kJyt8OVcudlsyy1mDIi6tKyS1x1/6002407093829632/thumb_panorama-4kpng-1735239067049.png","thumbnail_image_url":"/users/6kJyt8OVcudlsyy1mDIi6tKyS1x1/6002407093829632/thumb_panorama-4kpng-1735239067049.png","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":3,"status":"active","created_date":"2024-12-26T18:51:07.049Z","updated_date":"2024-12-26T18:51:07.049Z","version":"v3","id":"4790607908175872","title":"Breakfast Area","has_anaglyph":false,"index":2},{"filename":"1png-1735239108230.png","folder":"/users/6kJyt8OVcudlsyy1mDIi6tKyS1x1/6002407093829632","gcs_filename":"/users/6kJyt8OVcudlsyy1mDIi6tKyS1x1/6002407093829632/1png-1735239108230.png","image_url":"/users/6kJyt8OVcudlsyy1mDIi6tKyS1x1/6002407093829632/1png-1735239108230.png","thumbnail_gcs_filename":"/users/6kJyt8OVcudlsyy1mDIi6tKyS1x1/6002407093829632/thumb_1png-1735239108230.png","thumbnail_image_url":"/users/6kJyt8OVcudlsyy1mDIi6tKyS1x1/6002407093829632/thumb_1png-1735239108230.png","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":4,"status":"active","created_date":"2024-12-26T18:51:48.230Z","updated_date":"2024-12-26T18:51:48.230Z","version":"v3","id":"6677770904010752","title":"Kid´s Room","has_anaglyph":false,"index":3},{"filename":"panorama-8k-gameroompng-1735239262984.png","folder":"/users/6kJyt8OVcudlsyy1mDIi6tKyS1x1/6002407093829632","gcs_filename":"/users/6kJyt8OVcudlsyy1mDIi6tKyS1x1/6002407093829632/panorama-8k-gameroompng-1735239262984.png","image_url":"/users/6kJyt8OVcudlsyy1mDIi6tKyS1x1/6002407093829632/panorama-8k-gameroompng-1735239262984.png","thumbnail_gcs_filename":"/users/6kJyt8OVcudlsyy1mDIi6tKyS1x1/6002407093829632/thumb_panorama-8k-gameroompng-1735239262984.png","thumbnail_image_url":"/users/6kJyt8OVcudlsyy1mDIi6tKyS1x1/6002407093829632/thumb_panorama-8k-gameroompng-1735239262984.png","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":5,"status":"active","created_date":"2024-12-26T18:54:22.985Z","updated_date":"2024-12-26T18:54:22.985Z","version":"v3","id":"5916043186798592","title":"Loft - Game Room","has_anaglyph":false,"index":4},{"filename":"panorama-8k-master-bedroompng-1735239443839.png","folder":"/users/6kJyt8OVcudlsyy1mDIi6tKyS1x1/6002407093829632","gcs_filename":"/users/6kJyt8OVcudlsyy1mDIi6tKyS1x1/6002407093829632/panorama-8k-master-bedroompng-1735239443839.png","image_url":"/users/6kJyt8OVcudlsyy1mDIi6tKyS1x1/6002407093829632/panorama-8k-master-bedroompng-1735239443839.png","thumbnail_gcs_filename":"/users/6kJyt8OVcudlsyy1mDIi6tKyS1x1/6002407093829632/thumb_panorama-8k-master-bedroompng-1735239443839.png","thumbnail_image_url":"/users/6kJyt8OVcudlsyy1mDIi6tKyS1x1/6002407093829632/thumb_panorama-8k-master-bedroompng-1735239443839.png","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":6,"status":"active","created_date":"2024-12-26T18:57:23.840Z","updated_date":"2024-12-26T18:57:23.840Z","version":"v3","id":"6565357047250944","title":"Master Suite","has_anaglyph":false,"index":5}]; console.log('num photos: ' + window.photos.length); window.photosMap = {"6222982621954048":{"filename":"81png-1735238202996.png","folder":"/users/6kJyt8OVcudlsyy1mDIi6tKyS1x1/6002407093829632","gcs_filename":"/users/6kJyt8OVcudlsyy1mDIi6tKyS1x1/6002407093829632/panorama-2-8kpng-1735238309972.png","image_url":"/users/6kJyt8OVcudlsyy1mDIi6tKyS1x1/6002407093829632/panorama-2-8kpng-1735238309972.png","thumbnail_gcs_filename":"/users/6kJyt8OVcudlsyy1mDIi6tKyS1x1/6002407093829632/thumb_panorama-2-8kpng-1735238309972.png","thumbnail_image_url":"/users/6kJyt8OVcudlsyy1mDIi6tKyS1x1/6002407093829632/thumb_panorama-2-8kpng-1735238309972.png","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":1,"status":"active","created_date":"2024-12-26T18:36:42.997Z","updated_date":"2024-12-26T18:36:42.997Z","version":"v3","id":"6222982621954048","title":"Great Room","has_anaglyph":false,"index":0},"6235790726135808":{"filename":"8k-entryway-1png-1735239005442.png","folder":"/users/6kJyt8OVcudlsyy1mDIi6tKyS1x1/6002407093829632","gcs_filename":"/users/6kJyt8OVcudlsyy1mDIi6tKyS1x1/6002407093829632/8k-entryway-1png-1735239005442.png","image_url":"/users/6kJyt8OVcudlsyy1mDIi6tKyS1x1/6002407093829632/8k-entryway-1png-1735239005442.png","thumbnail_gcs_filename":"/users/6kJyt8OVcudlsyy1mDIi6tKyS1x1/6002407093829632/thumb_8k-entryway-1png-1735239005442.png","thumbnail_image_url":"/users/6kJyt8OVcudlsyy1mDIi6tKyS1x1/6002407093829632/thumb_8k-entryway-1png-1735239005442.png","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":2,"status":"active","created_date":"2024-12-26T18:50:05.444Z","updated_date":"2024-12-26T18:50:05.444Z","version":"v3","id":"6235790726135808","title":"Entryway","has_anaglyph":false,"index":1},"4790607908175872":{"filename":"panorama-4kpng-1735239067049.png","folder":"/users/6kJyt8OVcudlsyy1mDIi6tKyS1x1/6002407093829632","gcs_filename":"/users/6kJyt8OVcudlsyy1mDIi6tKyS1x1/6002407093829632/panorama-4kpng-1735239067049.png","image_url":"/users/6kJyt8OVcudlsyy1mDIi6tKyS1x1/6002407093829632/panorama-4kpng-1735239067049.png","thumbnail_gcs_filename":"/users/6kJyt8OVcudlsyy1mDIi6tKyS1x1/6002407093829632/thumb_panorama-4kpng-1735239067049.png","thumbnail_image_url":"/users/6kJyt8OVcudlsyy1mDIi6tKyS1x1/6002407093829632/thumb_panorama-4kpng-1735239067049.png","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":3,"status":"active","created_date":"2024-12-26T18:51:07.049Z","updated_date":"2024-12-26T18:51:07.049Z","version":"v3","id":"4790607908175872","title":"Breakfast Area","has_anaglyph":false,"index":2},"6677770904010752":{"filename":"1png-1735239108230.png","folder":"/users/6kJyt8OVcudlsyy1mDIi6tKyS1x1/6002407093829632","gcs_filename":"/users/6kJyt8OVcudlsyy1mDIi6tKyS1x1/6002407093829632/1png-1735239108230.png","image_url":"/users/6kJyt8OVcudlsyy1mDIi6tKyS1x1/6002407093829632/1png-1735239108230.png","thumbnail_gcs_filename":"/users/6kJyt8OVcudlsyy1mDIi6tKyS1x1/6002407093829632/thumb_1png-1735239108230.png","thumbnail_image_url":"/users/6kJyt8OVcudlsyy1mDIi6tKyS1x1/6002407093829632/thumb_1png-1735239108230.png","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":4,"status":"active","created_date":"2024-12-26T18:51:48.230Z","updated_date":"2024-12-26T18:51:48.230Z","version":"v3","id":"6677770904010752","title":"Kid´s Room","has_anaglyph":false,"index":3},"5916043186798592":{"filename":"panorama-8k-gameroompng-1735239262984.png","folder":"/users/6kJyt8OVcudlsyy1mDIi6tKyS1x1/6002407093829632","gcs_filename":"/users/6kJyt8OVcudlsyy1mDIi6tKyS1x1/6002407093829632/panorama-8k-gameroompng-1735239262984.png","image_url":"/users/6kJyt8OVcudlsyy1mDIi6tKyS1x1/6002407093829632/panorama-8k-gameroompng-1735239262984.png","thumbnail_gcs_filename":"/users/6kJyt8OVcudlsyy1mDIi6tKyS1x1/6002407093829632/thumb_panorama-8k-gameroompng-1735239262984.png","thumbnail_image_url":"/users/6kJyt8OVcudlsyy1mDIi6tKyS1x1/6002407093829632/thumb_panorama-8k-gameroompng-1735239262984.png","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":5,"status":"active","created_date":"2024-12-26T18:54:22.985Z","updated_date":"2024-12-26T18:54:22.985Z","version":"v3","id":"5916043186798592","title":"Loft - Game Room","has_anaglyph":false,"index":4},"6565357047250944":{"filename":"panorama-8k-master-bedroompng-1735239443839.png","folder":"/users/6kJyt8OVcudlsyy1mDIi6tKyS1x1/6002407093829632","gcs_filename":"/users/6kJyt8OVcudlsyy1mDIi6tKyS1x1/6002407093829632/panorama-8k-master-bedroompng-1735239443839.png","image_url":"/users/6kJyt8OVcudlsyy1mDIi6tKyS1x1/6002407093829632/panorama-8k-master-bedroompng-1735239443839.png","thumbnail_gcs_filename":"/users/6kJyt8OVcudlsyy1mDIi6tKyS1x1/6002407093829632/thumb_panorama-8k-master-bedroompng-1735239443839.png","thumbnail_image_url":"/users/6kJyt8OVcudlsyy1mDIi6tKyS1x1/6002407093829632/thumb_panorama-8k-master-bedroompng-1735239443839.png","rotation":0,"photo_type":"360_mono","is_stereo":false,"sort_order":6,"status":"active","created_date":"2024-12-26T18:57:23.840Z","updated_date":"2024-12-26T18:57:23.840Z","version":"v3","id":"6565357047250944","title":"Master Suite","has_anaglyph":false,"index":5}}; 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 = "6002407093829632"; // 052: the tour sound's Loop / Play once choice (absent = loop). window.tourAudioLoop = true; window.tourUid = "6kJyt8OVcudlsyy1mDIi6tKyS1x1"; window.isTourOwner = false; window.customUrl = "http://www.orbix360.com"; window.tourSlug = "tokeneke-trail-home"; window.template = '360_mono'; window.template_category = '360'; window.tourShortCode = "rC_PCghfw"; 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['6222982621954048'] = 0; window.current_image_index = 0; window.current_image_id = 6222982621954048 window.photo_indexes['6235790726135808'] = 1; window.photo_indexes['4790607908175872'] = 2; window.photo_indexes['6677770904010752'] = 3; window.photo_indexes['5916043186798592'] = 4; window.photo_indexes['6565357047250944'] = 5; 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/ACg8ocLs1VCGimnzzNcpSuNRZP0euGHEy9ERXixn80eKhbEGiA=s96-c'; window.user_profile_name = 'Jeronimo Arias Gomez'; window.shortURLRoot = 'https://orbix360.com'; window.image_url = 'https://images.orbix360.com/users/6kJyt8OVcudlsyy1mDIi6tKyS1x1/6002407093829632/thumb_panorama-2-8kpng-1735238309972.png.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":6222982621954048,"hotspots":[{"id":"hotspot_6222982621954048_6235790726135808","from":6222982621954048,"to":6235790726135808,"position":{"x":-0.9828922773298427,"y":-0.0743970868474383,"z":-0.1684869271901245},"toTitle":"Entryway"},{"id":"hotspot_6222982621954048_4790607908175872","from":6222982621954048,"to":4790607908175872,"position":{"x":0.21006604510098598,"y":-0.04132381554740914,"z":0.9768134924151254},"toTitle":"Breakfast Area"},{"id":"hotspot_6222982621954048_6677770904010752","from":6222982621954048,"to":6677770904010752,"position":{"x":0.3613112681293312,"y":0.00808490814488968,"z":0.9324102111104657},"toTitle":"Kid´s Room"}],"infoHotspots":[]},{"id":6235790726135808,"hotspots":[{"id":"hotspot_6235790726135808_6565357047250944","from":6235790726135808,"to":6565357047250944,"position":{"x":-0.7564499905517837,"y":-0.005783491547549959,"z":-0.6540259650959781},"toTitle":"Master Suite"},{"id":"hotspot_6235790726135808_6222982621954048","from":6235790726135808,"to":6222982621954048,"position":{"x":-0.004306116812515114,"y":-0.01981435981155767,"z":-0.9997944031165884},"toTitle":"Great Room"},{"id":"hotspot_6235790726135808_4790607908175872","from":6235790726135808,"to":4790607908175872,"position":{"x":0.6293179344048364,"y":-0.0352848642883808,"z":-0.77634651785693},"toTitle":"Breakfast Area"},{"id":"hotspot_6235790726135808_5916043186798592","from":6235790726135808,"to":5916043186798592,"position":{"x":-0.35777238896656793,"y":0.5978527956242444,"z":-0.7173360108466813},"toTitle":"Loft - Game Room"}],"infoHotspots":[]},{"id":4790607908175872,"hotspots":[{"id":"hotspot_4790607908175872_6677770904010752","from":4790607908175872,"to":6677770904010752,"position":{"x":0.8435065998045083,"y":0.0036832172733302364,"z":-0.5371061813056657},"toTitle":"Kid´s Room"},{"id":"hotspot_4790607908175872_6222982621954048","from":4790607908175872,"to":6222982621954048,"position":{"x":-0.9983513838074001,"y":-0.035120747945573946,"z":-0.045398761146014155},"toTitle":"Great Room"},{"id":"hotspot_4790607908175872_6235790726135808","from":4790607908175872,"to":6235790726135808,"position":{"x":-0.7414295338424342,"y":-0.02871562679572855,"z":0.6704160343577108},"toTitle":"Entryway"}],"infoHotspots":[]},{"id":6677770904010752,"hotspots":[{"id":"hotspot_6677770904010752_4790607908175872","from":6677770904010752,"to":4790607908175872,"position":{"x":-0.3585877750931462,"y":-0.006048729828889968,"z":0.9334764166390087},"toTitle":"Breakfast Area"}],"infoHotspots":[]},{"id":5916043186798592,"hotspots":[{"id":"hotspot_5916043186798592_6235790726135808","from":5916043186798592,"to":6235790726135808,"position":{"x":0.9513613339332507,"y":-0.006212326274132223,"z":0.3080146413711687},"toTitle":"Entryway"}],"infoHotspots":[]},{"id":6565357047250944,"hotspots":[{"id":"hotspot_6565357047250944_6235790726135808","from":6565357047250944,"to":6235790726135808,"position":{"x":-0.9839874198114719,"y":0.0558826603592231,"z":0.16925095545945337},"toTitle":"Entryway"}],"infoHotspots":[]}]}; window.brandingAllowed = false; window.isOwner = false; // 045: owner-only prompts route to the Premium Tour page window.upgradeCheckoutSessionStatus = 'complete'; window.isUpgradeSubscriptionValid = true; 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) ? 'https://images.orbix360.com/users/6kJyt8OVcudlsyy1mDIi6tKyS1x1/branding/nadir-1759234928847.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 */ } })();