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 = [{"image_url":"/users/cgtn3FyfNGNnHGrtgRiIS87A7nh2/4865852656582656/sala-junio-2024png-1718981478238.png","rotation":0,"thumbnail_gcs_filename":"/users/cgtn3FyfNGNnHGrtgRiIS87A7nh2/4865852656582656/thumb_sala-junio-2024png-1718981478238.png","title":"SALA","version":"v3","gcs_filename":"/users/cgtn3FyfNGNnHGrtgRiIS87A7nh2/4865852656582656/sala-junio-2024png-1718981478238.png","filename":"sala-2png-1714689991173.png","folder":"/users/cgtn3FyfNGNnHGrtgRiIS87A7nh2/4865852656582656","thumbnail_image_url":"/users/cgtn3FyfNGNnHGrtgRiIS87A7nh2/4865852656582656/thumb_sala-junio-2024png-1718981478238.png","is_stereo":true,"photo_type":"360_stereo","created_date":"2024-05-02T22:46:31.174Z","updated_date":"2024-05-02T22:46:31.174Z","id":"5939151293644800","sort_order":3,"status":"active","has_anaglyph":true,"index":0},{"image_url":"/users/cgtn3FyfNGNnHGrtgRiIS87A7nh2/4865852656582656/cocinajunio-2024png-1718988979018.png","rotation":0,"thumbnail_gcs_filename":"/users/cgtn3FyfNGNnHGrtgRiIS87A7nh2/4865852656582656/thumb_cocinajunio-2024png-1718988979018.png","title":"COCINA","version":"v3","gcs_filename":"/users/cgtn3FyfNGNnHGrtgRiIS87A7nh2/4865852656582656/cocinajunio-2024png-1718988979018.png","filename":"cocinapng-1714689991277.png","folder":"/users/cgtn3FyfNGNnHGrtgRiIS87A7nh2/4865852656582656","thumbnail_image_url":"/users/cgtn3FyfNGNnHGrtgRiIS87A7nh2/4865852656582656/thumb_cocinajunio-2024png-1718988979018.png","is_stereo":true,"photo_type":"360_stereo","created_date":"2024-05-02T22:46:31.278Z","updated_date":"2024-05-02T22:46:31.278Z","id":"5411556672143360","sort_order":1,"status":"active","has_anaglyph":true,"index":1},{"image_url":"/users/cgtn3FyfNGNnHGrtgRiIS87A7nh2/4865852656582656/habitacion-junio-2024png-1718983579787.png","rotation":0,"thumbnail_gcs_filename":"/users/cgtn3FyfNGNnHGrtgRiIS87A7nh2/4865852656582656/thumb_habitacion-junio-2024png-1718983579787.png","title":"HABITACION","version":"v3","gcs_filename":"/users/cgtn3FyfNGNnHGrtgRiIS87A7nh2/4865852656582656/habitacion-junio-2024png-1718983579787.png","filename":"habitacionpng-1714689991859.png","folder":"/users/cgtn3FyfNGNnHGrtgRiIS87A7nh2/4865852656582656","thumbnail_image_url":"/users/cgtn3FyfNGNnHGrtgRiIS87A7nh2/4865852656582656/thumb_habitacion-junio-2024png-1718983579787.png","is_stereo":true,"photo_type":"360_stereo","created_date":"2024-05-02T22:46:31.861Z","updated_date":"2024-05-02T22:46:31.861Z","id":"4651808397983744","sort_order":2,"status":"active","has_anaglyph":true,"index":2},{"image_url":"/users/cgtn3FyfNGNnHGrtgRiIS87A7nh2/4865852656582656/sshhpng-1714689991144.png","rotation":0,"thumbnail_gcs_filename":"/users/cgtn3FyfNGNnHGrtgRiIS87A7nh2/4865852656582656/thumb_sshhpng-1714689991144.png","title":"SS.HH.","version":"v3","gcs_filename":"/users/cgtn3FyfNGNnHGrtgRiIS87A7nh2/4865852656582656/sshhpng-1714689991144.png","filename":"sshhpng-1714689991144.png","folder":"/users/cgtn3FyfNGNnHGrtgRiIS87A7nh2/4865852656582656","thumbnail_image_url":"/users/cgtn3FyfNGNnHGrtgRiIS87A7nh2/4865852656582656/thumb_sshhpng-1714689991144.png","is_stereo":true,"photo_type":"360_stereo","created_date":"2024-05-02T22:46:31.145Z","updated_date":"2024-05-02T22:46:31.145Z","id":"6655049864314880","sort_order":5,"status":"active","has_anaglyph":true,"index":3}]; console.log('num photos: ' + window.photos.length); window.photosMap = {"5411556672143360":{"image_url":"/users/cgtn3FyfNGNnHGrtgRiIS87A7nh2/4865852656582656/cocinajunio-2024png-1718988979018.png","rotation":0,"thumbnail_gcs_filename":"/users/cgtn3FyfNGNnHGrtgRiIS87A7nh2/4865852656582656/thumb_cocinajunio-2024png-1718988979018.png","title":"COCINA","version":"v3","gcs_filename":"/users/cgtn3FyfNGNnHGrtgRiIS87A7nh2/4865852656582656/cocinajunio-2024png-1718988979018.png","filename":"cocinapng-1714689991277.png","folder":"/users/cgtn3FyfNGNnHGrtgRiIS87A7nh2/4865852656582656","thumbnail_image_url":"/users/cgtn3FyfNGNnHGrtgRiIS87A7nh2/4865852656582656/thumb_cocinajunio-2024png-1718988979018.png","is_stereo":true,"photo_type":"360_stereo","created_date":"2024-05-02T22:46:31.278Z","updated_date":"2024-05-02T22:46:31.278Z","id":"5411556672143360","sort_order":1,"status":"active","has_anaglyph":true,"index":1},"4651808397983744":{"image_url":"/users/cgtn3FyfNGNnHGrtgRiIS87A7nh2/4865852656582656/habitacion-junio-2024png-1718983579787.png","rotation":0,"thumbnail_gcs_filename":"/users/cgtn3FyfNGNnHGrtgRiIS87A7nh2/4865852656582656/thumb_habitacion-junio-2024png-1718983579787.png","title":"HABITACION","version":"v3","gcs_filename":"/users/cgtn3FyfNGNnHGrtgRiIS87A7nh2/4865852656582656/habitacion-junio-2024png-1718983579787.png","filename":"habitacionpng-1714689991859.png","folder":"/users/cgtn3FyfNGNnHGrtgRiIS87A7nh2/4865852656582656","thumbnail_image_url":"/users/cgtn3FyfNGNnHGrtgRiIS87A7nh2/4865852656582656/thumb_habitacion-junio-2024png-1718983579787.png","is_stereo":true,"photo_type":"360_stereo","created_date":"2024-05-02T22:46:31.861Z","updated_date":"2024-05-02T22:46:31.861Z","id":"4651808397983744","sort_order":2,"status":"active","has_anaglyph":true,"index":2},"5939151293644800":{"image_url":"/users/cgtn3FyfNGNnHGrtgRiIS87A7nh2/4865852656582656/sala-junio-2024png-1718981478238.png","rotation":0,"thumbnail_gcs_filename":"/users/cgtn3FyfNGNnHGrtgRiIS87A7nh2/4865852656582656/thumb_sala-junio-2024png-1718981478238.png","title":"SALA","version":"v3","gcs_filename":"/users/cgtn3FyfNGNnHGrtgRiIS87A7nh2/4865852656582656/sala-junio-2024png-1718981478238.png","filename":"sala-2png-1714689991173.png","folder":"/users/cgtn3FyfNGNnHGrtgRiIS87A7nh2/4865852656582656","thumbnail_image_url":"/users/cgtn3FyfNGNnHGrtgRiIS87A7nh2/4865852656582656/thumb_sala-junio-2024png-1718981478238.png","is_stereo":true,"photo_type":"360_stereo","created_date":"2024-05-02T22:46:31.174Z","updated_date":"2024-05-02T22:46:31.174Z","id":"5939151293644800","sort_order":3,"status":"active","has_anaglyph":true,"index":0},"6655049864314880":{"image_url":"/users/cgtn3FyfNGNnHGrtgRiIS87A7nh2/4865852656582656/sshhpng-1714689991144.png","rotation":0,"thumbnail_gcs_filename":"/users/cgtn3FyfNGNnHGrtgRiIS87A7nh2/4865852656582656/thumb_sshhpng-1714689991144.png","title":"SS.HH.","version":"v3","gcs_filename":"/users/cgtn3FyfNGNnHGrtgRiIS87A7nh2/4865852656582656/sshhpng-1714689991144.png","filename":"sshhpng-1714689991144.png","folder":"/users/cgtn3FyfNGNnHGrtgRiIS87A7nh2/4865852656582656","thumbnail_image_url":"/users/cgtn3FyfNGNnHGrtgRiIS87A7nh2/4865852656582656/thumb_sshhpng-1714689991144.png","is_stereo":true,"photo_type":"360_stereo","created_date":"2024-05-02T22:46:31.145Z","updated_date":"2024-05-02T22:46:31.145Z","id":"6655049864314880","sort_order":5,"status":"active","has_anaglyph":true,"index":3}}; 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 = "4865852656582656"; // 052: the tour sound's Loop / Play once choice (absent = loop). window.tourAudioLoop = true; window.tourUid = "cgtn3FyfNGNnHGrtgRiIS87A7nh2"; // 090: bandwidth usage reporter (frontend/js/usage_reporter.js); absent or disabled = no reports. window.usageReport = {"enabled":true,"roots":["https://images.orbix360.com/","https://storage.googleapis.com/orbix360-prod-images/","https://storage.googleapis.com/orbix360-prod-plugins/","https://storage.googleapis.com/orbix360-prod-assets/"],"externalHosts":["player.vimeo.com","vod-progressive.akamaized.net","vimeocdn.com"],"edit":false}; window.usageReport.viewer = 'legacy'; window.isTourOwner = false; window.customUrl = "http://www.orbix360.com"; window.tourSlug = "origendpto-4"; window.template = '360_stereo'; window.template_category = '360'; window.tourShortCode = "GNfbN4zvo"; 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['5939151293644800'] = 0; window.current_image_index = 0; window.current_image_id = 5939151293644800 window.photo_indexes['5411556672143360'] = 1; window.photo_indexes['4651808397983744'] = 2; window.photo_indexes['6655049864314880'] = 3; 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/AGNmyxYnphuWulMMTO239dgcEJIdqpSscUNDmf93QwzW=s96-c'; window.user_profile_name = 'TOURS VIRTUALES'; window.shortURLRoot = 'https://orbix360.com'; window.image_url = 'https://images.orbix360.com/users/cgtn3FyfNGNnHGrtgRiIS87A7nh2/4865852656582656/thumb_sala-junio-2024png-1718981478238.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 = {"orbs":[{"infoHotspots":[],"id":5939151293644800,"hotspots":[{"toTitle":"HABITACION","from":5939151293644800,"id":"hotspot_5939151293644800_4651808397983744","to":4651808397983744,"position":{"x":-0.976334550185358,"y":-0.0036289697151868873,"z":0.21623523462461167}},{"toTitle":"COCINA","from":5939151293644800,"id":"hotspot_5939151293644800_5411556672143360","to":5411556672143360,"position":{"x":-0.6834271212619975,"y":-0.12377766489653762,"z":0.7194487192262556}},{"from":5939151293644800,"id":"hotspot_5939151293644800_6655049864314880","to":6655049864314880,"position":{"x":-0.9381052885635136,"y":-0.014566939843878447,"z":0.3460437426579937},"toTitle":"SS.HH."}]},{"infoHotspots":[],"id":5411556672143360,"hotspots":[{"toTitle":"SALA","from":5411556672143360,"id":"hotspot_5411556672143360_5939151293644800","to":5939151293644800,"position":{"x":0.06007502970909559,"y":-0.16543359269316377,"z":-0.9843895149858535}},{"toTitle":"HABITACION","from":5411556672143360,"id":"hotspot_5411556672143360_4651808397983744","to":4651808397983744,"position":{"x":-0.9806517468903272,"y":-0.08897753577709745,"z":-0.1743707241711886}}]},{"infoHotspots":[],"id":4651808397983744,"hotspots":[{"toTitle":"SS.HH.","from":4651808397983744,"id":"hotspot_4651808397983744_6655049864314880","to":6655049864314880,"position":{"x":-0.9433191729761755,"y":0.03436248360039671,"z":-0.330103252962398}},{"from":4651808397983744,"id":"hotspot_4651808397983744_5411556672143360","to":5411556672143360,"position":{"x":-0.9973253355566754,"y":0.03155061528398446,"z":-0.06592976362741672},"toTitle":"COCINA"}]},{"infoHotspots":[],"id":6655049864314880,"hotspots":[{"toTitle":"SALA","from":6655049864314880,"id":"hotspot_6655049864314880_5939151293644800","to":5939151293644800,"position":{"x":0.7420231236351827,"y":-0.025271241155360415,"z":0.6698977894881831}}]}],"autorotate":{"enabled":false},"versionNumber":3}; window.brandingAllowed = false; window.preloadConfig = { small: false, throttled: false }; // 171: small-copy preloading (frontend/js/lib/preload_policy.js) window.isOwner = false; // 045: owner-only prompts route to the Premium Tour page window.upgradeCheckoutSessionStatus = ''; window.isUpgradeSubscriptionValid = false; window.isPro = false; // 072: the shared entitlement rule // 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,"freeMultiImageBonusForUseCase":1,"freeMaxMultiImageToursWithBonus":10,"freeMultiImageShareBonusEnabled":true,"freeMultiImageLimitEnabled":true,"freeMaxSplatFiles":1,"freeMaxSplatBytes":52428800,"proMaxSplatFiles":50,"proMaxSplatBytes":262144000,"freeMaxPublishedPages":1,"proMaxPublishedPages":25,"freeMaxConstructionProjects":1,"freeMaxConstructionWalks":4,"freeMaxConstructionPhotosPerWalk":15,"freeMaxDisplaySize":4096,"freeDisplayIntroDays":30,"freeDisplayIntroStartDate":null}; window.tourTemplates = {"vr":["blank-scene","environment-scene","home-scene","nft-gallery","nft-gallery-simple","nft-gallery-room","splat-scene"],"noUpload":["blank-scene","environment-scene","home-scene","nft-gallery","nft-gallery-simple","nft-gallery-room","splat-scene","spatial-video","real-estate"],"flat":["flat","flat_stereo","nft_flat_stereo"]}; // 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.isPro ? '/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 */ } })();