{"version":3,"file":"js/single_page_app-cdcfef2c38674b14fc1a.js","mappings":"obAAA,IAAIA,EAAM,CACT,sCAAuC,CACtC,MACA,KACA,MAED,yCAA0C,CACzC,MACA,KACA,MAED,kBAAmB,CAClB,MACA,MAED,qBAAsB,CACrB,MACA,MAED,iCAAkC,CACjC,MACA,MAED,oCAAqC,CACpC,MACA,MAED,qCAAsC,CACrC,KACA,KACA,MAED,wCAAyC,CACxC,KACA,KACA,MAED,sBAAuB,CACtB,MACA,KAED,yBAA0B,CACzB,MACA,KAED,yBAA0B,CACzB,MACA,MAED,4BAA6B,CAC5B,MACA,MAED,+BAAgC,CAC/B,MACA,KAED,kCAAmC,CAClC,MACA,KAED,gCAAiC,CAChC,MACA,MAED,mCAAoC,CACnC,MACA,MAED,kCAAmC,CAClC,MACA,MAED,qCAAsC,CACrC,MACA,MAED,2BAA4B,CAC3B,MACA,MAED,8BAA+B,CAC9B,MACA,MAED,uBAAwB,CACvB,MACA,MAED,0BAA2B,CAC1B,MACA,MAED,sCAAuC,CACtC,MACA,KACA,MAED,yCAA0C,CACzC,MACA,KACA,MAED,0BAA2B,CAC1B,KACA,MAED,6BAA8B,CAC7B,KACA,MAED,yBAA0B,CACzB,MACA,KAED,4BAA6B,CAC5B,MACA,KAED,oBAAqB,CACpB,MACA,MAED,uBAAwB,CACvB,MACA,MAED,wBAAyB,CACxB,MACA,KACA,MAED,2BAA4B,CAC3B,MACA,KACA,MAED,gCAAiC,CAChC,MACA,KAED,mCAAoC,CACnC,MACA,KAED,8BAA+B,CAC9B,MACA,MAED,iCAAkC,CACjC,MACA,MAED,qBAAsB,CACrB,MACA,KAED,wBAAyB,CACxB,MACA,KAED,wBAAyB,CACxB,MACA,MAED,2BAA4B,CAC3B,MACA,MAED,gCAAiC,CAChC,MACA,MAED,mCAAoC,CACnC,MACA,MAED,0BAA2B,CAC1B,MACA,KAED,6BAA8B,CAC7B,MACA,KAED,2BAA4B,CAC3B,MACA,MAED,8BAA+B,CAC9B,MACA,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F,CAEA,SAAAQ,GACKtE,KAAK4D,MACN5D,KAAK+D,kBAAkBY,cAAc,gBAAgBK,UAAYhF,KAAK4D,MAEtE5D,KAAK+D,kBAAkBY,cAAc,gBAAgBlC,QAEzD,CAEA,SAAA8B,GACEvE,KAAK+D,kBAAkBY,cAAc,gBAAgBM,iBAAiB,QAASjF,KAAKyE,KAAKS,KAAKlF,MAChG,E,iJC9DFqB,OAAO8D,YAAc,IACrB9D,OAAO+D,gBAAkB,IACzB/D,OAAOgE,iBAAmB,IAC1BhE,OAAOiE,kBAAoB,G,qCCEpB,MAAMH,EAAc,IAnB3B,MAEQ,IAAAI,CAAKC,EAAgBC,GAAgB,O,EAAA,K,EAAA,K,EAAA,YAQzC,OANsB,SAIpB,KAAYD,KAEOxH,MAAMU,IACzB,MACMgH,EAAO,IAAIC,EADCjH,EAAOkH,SACEH,GAE3B,OADAC,EAAKH,OACEG,CAAI,GAEf,E,yMAAA,GAIF,K,oFCjBO,SAASJ,EAAkBO,GAChC,OAAI,EAAAC,4BACK,CAAE,oBAAqBD,GAEvB,CAAC,CAEZ,C,wBCTA,IAAIE,EAAW,EAAQ,OAGnBC,EAAY,EAwBhBtH,EAAOC,QALP,SAAkBsH,GAChB,IAAI5H,IAAO2H,EACX,OAAOD,EAASE,GAAU5H,CAC5B,C,iCCzBAK,EAAOC,QAAUuH,oB,iCCAjBxH,EAAOC,QAAUwH,M","sources":["webpack://nodalview/./app/javascript/bootable/ lazy ^\\.\\/.*$ include: \\.js$ chunkName: page__[request] namespace object","webpack://nodalview/./app/javascript/initializers/amplitude.js","webpack://nodalview/./app/javascript/initializers/toasts/settings.js","webpack://nodalview/./app/javascript/initializers/toasts/toasts_center.js","webpack://nodalview/./app/javascript/initializers/toasts/toast.js","webpack://nodalview/./app/javascript/packs/single_page_app.js","webpack://nodalview/./app/javascript/src/global/pages_helper.js","webpack://nodalview/./app/javascript/src/global/test_helper.js","webpack://nodalview/./node_modules/lodash/uniqueId.js","webpack://nodalview/external var \"NodalviewEnvironment\"","webpack://nodalview/external var \"jQuery\""],"sourcesContent":["var map = {\n\t\"./admin_addons_recompute_allowances\": [\n\t\t62869,\n\t\t8465,\n\t\t8328\n\t],\n\t\"./admin_addons_recompute_allowances.js\": [\n\t\t62869,\n\t\t8465,\n\t\t8328\n\t],\n\t\"./admin_devices\": [\n\t\t26410,\n\t\t8261\n\t],\n\t\"./admin_devices.js\": [\n\t\t26410,\n\t\t8261\n\t],\n\t\"./admin_plan_subscriptions_new\": [\n\t\t49110,\n\t\t7073\n\t],\n\t\"./admin_plan_subscriptions_new.js\": [\n\t\t49110,\n\t\t7073\n\t],\n\t\"./admin_plans_recompute_allowances\": [\n\t\t3333,\n\t\t8465,\n\t\t6471\n\t],\n\t\"./admin_plans_recompute_allowances.js\": [\n\t\t3333,\n\t\t8465,\n\t\t6471\n\t],\n\t\"./admin_tour_search\": [\n\t\t47925,\n\t\t353\n\t],\n\t\"./admin_tour_search.js\": [\n\t\t47925,\n\t\t353\n\t],\n\t\"./admin_tours_transfer\": [\n\t\t97161,\n\t\t9761\n\t],\n\t\"./admin_tours_transfer.js\": [\n\t\t97161,\n\t\t9761\n\t],\n\t\"./admin_users_add_demo_tours\": [\n\t\t83268,\n\t\t154\n\t],\n\t\"./admin_users_add_demo_tours.js\": [\n\t\t83268,\n\t\t154\n\t],\n\t\"./authentication_shopify_show\": [\n\t\t97688,\n\t\t5045\n\t],\n\t\"./authentication_shopify_show.js\": [\n\t\t97688,\n\t\t5045\n\t],\n\t\"./authentication_shopify_signup\": [\n\t\t52719,\n\t\t2030\n\t],\n\t\"./authentication_shopify_signup.js\": [\n\t\t52719,\n\t\t2030\n\t],\n\t\"./camera_comparison_show\": [\n\t\t69593,\n\t\t4945\n\t],\n\t\"./camera_comparison_show.js\": [\n\t\t69593,\n\t\t4945\n\t],\n\t\"./deal_checkout_page\": [\n\t\t52255,\n\t\t4405\n\t],\n\t\"./deal_checkout_page.js\": [\n\t\t52255,\n\t\t4405\n\t],\n\t\"./interactive_sessions_conversation\": [\n\t\t93651,\n\t\t4736,\n\t\t9934\n\t],\n\t\"./interactive_sessions_conversation.js\": [\n\t\t93651,\n\t\t4736,\n\t\t9934\n\t],\n\t\"./magellan_orders_index\": [\n\t\t7738,\n\t\t9604\n\t],\n\t\"./magellan_orders_index.js\": [\n\t\t7738,\n\t\t9604\n\t],\n\t\"./magellan_orders_show\": [\n\t\t94149,\n\t\t811\n\t],\n\t\"./magellan_orders_show.js\": [\n\t\t94149,\n\t\t811\n\t],\n\t\"./matterport_show\": [\n\t\t33061,\n\t\t5726\n\t],\n\t\"./matterport_show.js\": [\n\t\t33061,\n\t\t5726\n\t],\n\t\"./panoramas_edit_page\": [\n\t\t76194,\n\t\t3124,\n\t\t1687\n\t],\n\t\"./panoramas_edit_page.js\": [\n\t\t76194,\n\t\t3124,\n\t\t1687\n\t],\n\t\"./photos_photo_editor_tracker\": [\n\t\t74898,\n\t\t835\n\t],\n\t\"./photos_photo_editor_tracker.js\": [\n\t\t74898,\n\t\t835\n\t],\n\t\"./shared_book_virtual_visit\": [\n\t\t27220,\n\t\t5093\n\t],\n\t\"./shared_book_virtual_visit.js\": [\n\t\t27220,\n\t\t5093\n\t],\n\t\"./shared_clipboard\": [\n\t\t26662,\n\t\t132\n\t],\n\t\"./shared_clipboard.js\": [\n\t\t26662,\n\t\t132\n\t],\n\t\"./shared_contact_form\": [\n\t\t12457,\n\t\t6063\n\t],\n\t\"./shared_contact_form.js\": [\n\t\t12457,\n\t\t6063\n\t],\n\t\"./shared_create_new_tour_form\": [\n\t\t97371,\n\t\t1867\n\t],\n\t\"./shared_create_new_tour_form.js\": [\n\t\t97371,\n\t\t1867\n\t],\n\t\"./shared_events_manager\": [\n\t\t35844,\n\t\t757\n\t],\n\t\"./shared_events_manager.js\": [\n\t\t35844,\n\t\t757\n\t],\n\t\"./shared_expandable_list\": [\n\t\t78262,\n\t\t5861\n\t],\n\t\"./shared_expandable_list.js\": [\n\t\t78262,\n\t\t5861\n\t],\n\t\"./shared_feature_access_tracking\": [\n\t\t56336,\n\t\t2675\n\t],\n\t\"./shared_feature_access_tracking.js\": [\n\t\t56336,\n\t\t2675\n\t],\n\t\"./shared_popover\": [\n\t\t22236,\n\t\t5316,\n\t\t4217\n\t],\n\t\"./shared_popover.js\": [\n\t\t22236,\n\t\t5316,\n\t\t4217\n\t],\n\t\"./shared_reveal\": [\n\t\t89692,\n\t\t4501\n\t],\n\t\"./shared_reveal.js\": [\n\t\t89692,\n\t\t4501\n\t],\n\t\"./shared_select\": [\n\t\t35461,\n\t\t2494\n\t],\n\t\"./shared_select.js\": [\n\t\t35461,\n\t\t2494\n\t],\n\t\"./shared_sms_token_handlers\": [\n\t\t94576,\n\t\t476,\n\t\t97\n\t],\n\t\"./shared_sms_token_handlers.js\": [\n\t\t94576,\n\t\t476,\n\t\t97\n\t],\n\t\"./shared_tabs\": [\n\t\t64230,\n\t\t2514\n\t],\n\t\"./shared_tabs.js\": [\n\t\t64230,\n\t\t2514\n\t],\n\t\"./shared_toggle\": [\n\t\t44080,\n\t\t2078\n\t],\n\t\"./shared_toggle.js\": [\n\t\t44080,\n\t\t2078\n\t],\n\t\"./smartlinks_show_page\": [\n\t\t95486,\n\t\t9824\n\t],\n\t\"./smartlinks_show_page.js\": [\n\t\t95486,\n\t\t9824\n\t],\n\t\"./timeline_show\": [\n\t\t77844,\n\t\t8011\n\t],\n\t\"./timeline_show.js\": [\n\t\t77844,\n\t\t8011\n\t],\n\t\"./users_invitations_form\": [\n\t\t25736,\n\t\t2543,\n\t\t8334\n\t],\n\t\"./users_invitations_form.js\": [\n\t\t25736,\n\t\t2543,\n\t\t8334\n\t],\n\t\"./video_editor_main\": [\n\t\t8775,\n\t\t8912,\n\t\t4857\n\t],\n\t\"./video_editor_main.js\": [\n\t\t8775,\n\t\t8912,\n\t\t4857\n\t]\n};\nfunction webpackAsyncContext(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\treturn Promise.resolve().then(function() {\n\t\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\t\te.code = 'MODULE_NOT_FOUND';\n\t\t\tthrow e;\n\t\t});\n\t}\n\n\tvar ids = map[req], id = ids[0];\n\treturn Promise.all(ids.slice(1).map(__webpack_require__.e)).then(function() {\n\t\treturn __webpack_require__(id);\n\t});\n}\nwebpackAsyncContext.keys = function() { return Object.keys(map); };\nwebpackAsyncContext.id = 75295;\nmodule.exports = webpackAsyncContext;","(function(e,t){var n=e.amplitude||{_q:[],_iq:{}};var r=t.createElement(\"script\")\n;r.type=\"text/javascript\"\n;r.integrity=\"sha384-u0hlTAJ1tNefeBKwiBNwB4CkHZ1ck4ajx/pKmwWtc+IufKJiCQZ+WjJIi+7C6Ntm\"\n;r.crossOrigin=\"anonymous\";r.async=true\n;r.src=\"https://cdn.amplitude.com/libs/amplitude-8.1.0-min.gz.js\"\n;r.onload=function(){if(!e.amplitude.runQueuedFunctions){\n console.log(\"[Amplitude] Error: could not load SDK\")}}\n;var i=t.getElementsByTagName(\"script\")[0];i.parentNode.insertBefore(r,i)\n;function s(e,t){e.prototype[t]=function(){\n this._q.push([t].concat(Array.prototype.slice.call(arguments,0)));return this}}\n var o=function(){this._q=[];return this}\n ;var a=[\"add\",\"append\",\"clearAll\",\"prepend\",\"set\",\"setOnce\",\"unset\",\"preInsert\",\"postInsert\",\"remove\"]\n ;for(var c=0;c<a.length;c++){s(o,a[c])}n.Identify=o;var u=function(){this._q=[]\n ;return this}\n ;var l=[\"setProductId\",\"setQuantity\",\"setPrice\",\"setRevenueType\",\"setEventProperties\"]\n ;for(var p=0;p<l.length;p++){s(u,l[p])}n.Revenue=u\n ;var d=[\"init\",\"logEvent\",\"logRevenue\",\"setUserId\",\"setUserProperties\",\"setOptOut\",\"setVersionName\",\"setDomain\",\"setDeviceId\",\"enableTracking\",\"setGlobalUserProperties\",\"identify\",\"clearUserProperties\",\"setGroup\",\"logRevenueV2\",\"regenerateDeviceId\",\"groupIdentify\",\"onInit\",\"logEventWithTimestamp\",\"logEventWithGroups\",\"setSessionId\",\"resetSessionId\"]\n ;function v(e){function t(t){e[t]=function(){\n e._q.push([t].concat(Array.prototype.slice.call(arguments,0)))}}\n for(var n=0;n<d.length;n++){t(d[n])}}v(n);n.getInstance=function(e){\n e=(!e||e.length===0?\"$default_instance\":e).toLowerCase()\n ;if(!Object.prototype.hasOwnProperty.call(n._iq,e)){n._iq[e]={_q:[]};v(n._iq[e])\n }return n._iq[e]};e.amplitude=n})(window,document);","const TOAST_TYPES = {\n information: 'information',\n success: 'success',\n warning: 'warning',\n error: 'error',\n}\n\nconst TOAST_ICONS = {\n information: 'info-sign',\n success: 'ok-sign',\n warning: 'alert',\n error: 'alert'\n}\n\nconst TOAST_TIMER = 3500;\nconst TOAST_CONTAINER_ANIMATION_TIME = 500;\nconst TOAST_ANIMATION_TIME = 1000;\n\nexport { TOAST_TYPES, TOAST_ICONS, TOAST_TIMER, TOAST_ANIMATION_TIME, TOAST_CONTAINER_ANIMATION_TIME };","import {TOAST_ANIMATION_TIME, TOAST_CONTAINER_ANIMATION_TIME} from \"./settings\";\n\nclass ToastsCenter {\n constructor() {\n this.toastsStack = [];\n this.toastContainer = null;\n }\n\n init() {\n this.toastContainer = document.getElementById('toasts-container');\n }\n\n add(toast, toastId, displayTime) {\n const toastDisplayer = setTimeout(() => this.remove(toastId), displayTime)\n this.addToContainer(toastId, toast);\n this.addToStack(toastId, toastDisplayer)\n }\n\n remove(toastId) {\n const toastToRemove = this.toastsStack.find(toast => toast.id === toastId);\n const toastElement = document.getElementById(toastId);\n toastElement?.classList.add('fade-out');\n\n clearTimeout(toastToRemove.timer);\n setTimeout(() => {\n toastElement?.remove();\n }, TOAST_ANIMATION_TIME)\n\n this.toastsStack.filter(toast => toast.id === toastId);\n }\n\n addToContainer(toastId, toast) {\n this.toastContainer.prepend(toast);\n const {height} = document.getElementById(toastId).getBoundingClientRect();\n this._animateContainer(height)\n }\n\n addToStack(toastId, toastDisplayer) {\n this.toastsStack.push({\n id: toastId,\n timer: toastDisplayer,\n })\n }\n\n _animateContainer(height) {\n this.toastContainer.animate(\n [\n {transform: `translateY(-${height}px)`},\n {transform: 'translateY(0)'},\n ], {\n easing: 'ease-out',\n duration: TOAST_CONTAINER_ANIMATION_TIME,\n }\n );\n }\n}\n\nwindow.ToastsCenter = new ToastsCenter();","import uniqueId from 'lodash/uniqueId'\nimport { TOAST_TYPES, TOAST_ICONS, TOAST_TIMER } from './settings';\nclass Toast {\n constructor({\n type,\n title,\n message,\n icon,\n displayTime,\n }) {\n this.id = `toast-message-${uniqueId()}`;\n this.type = type || TOAST_TYPES.information;\n this.displayTime = displayTime || TOAST_TIMER;\n this.title = title;\n this.message = message;\n this.icon = icon || TOAST_ICONS[this.type];\n this.cloneNotification = null;\n this.build();\n }\n\n checkToastValidity() {\n if (!this.message) {\n console.error('You need to provide a message for your Toast message');\n return false;\n }\n return true;\n }\n\n build() {\n if (!this.checkToastValidity()) {\n return;\n }\n this._cloneNotification();\n this._setMetas();\n this._setMessage();\n this._setIcon();\n this._setTitle();\n this._setClose();\n }\n\n show() {\n ToastsCenter.add(this.cloneNotification, this.id, this.displayTime);\n }\n\n hide() {\n ToastsCenter.remove(this.id);\n }\n\n _cloneNotification() {\n const notificationTemplate = document.querySelector('template[id=\"toast\"]')\n this.cloneNotification = notificationTemplate.content.cloneNode(true);\n }\n\n _setMetas() {\n this.cloneNotification.querySelector('.toast').setAttribute('type', this.type);\n this.cloneNotification.querySelector('.toast').setAttribute(\"id\", this.id);\n }\n\n _setMessage() {\n this.cloneNotification.querySelector('.toast-message').innerHTML = this.message;\n }\n\n _setIcon() {\n this.cloneNotification.querySelector('.glyphicon').classList.add(`glyphicon-${this.icon}`);\n }\n\n _setTitle() {\n if(this.title) {\n this.cloneNotification.querySelector('.toast-title').innerText = this.title;\n } else {\n this.cloneNotification.querySelector('.toast-title').remove();\n }\n }\n\n _setClose() {\n this.cloneNotification.querySelector('.toast-close').addEventListener('click', this.hide.bind(this));\n }\n}\n\nwindow.Toast = Toast;","/* eslint no-console:0 */\nimport 'core-js/stable';\nimport 'regenerator-runtime/runtime';\nimport pagesHelper from 'src/global/pages_helper';\nimport { renderComponent, renderComponents } from 'src/global/react_helper';\nimport { purposeAttributes } from 'src/global/test_helper';\n// Initializers\nimport '../initializers/amplitude';\nimport '../initializers/authentification';\nimport '../initializers/i18n';\nimport '../initializers/react';\nimport '../initializers/sentry';\nimport '../initializers/toasts';\n\nwindow.pagesHelper = pagesHelper;\nwindow.renderComponent = renderComponent;\nwindow.renderComponents = renderComponents;\nwindow.purposeAttributes = purposeAttributes;\n","class PagesHelper {\n\n async boot(pageModuleName, pageAttributes) {\n // The include is critical to avoid loading the README.md file\n const modulePromise = import(\n /* webpackChunkName: \"page__[request]\" */\n /* webpackInclude: /\\.js$/ */\n /* webpackMode: \"lazy\" */\n `bootable/${pageModuleName}`\n );\n return modulePromise.then((module) => {\n const pageClass = module.default;\n const page = new pageClass(pageAttributes);\n page.boot();\n return page;\n });\n }\n}\n\nexport const pagesHelper = new PagesHelper();\nexport default pagesHelper;\n","// eslint-disable-next-line camelcase\nimport { enable_data_test_attributes } from 'NodalviewEnvironment';\n\nexport function purposeAttributes(purpose) {\n if (enable_data_test_attributes) {\n return { 'data-test-purpose': purpose };\n } else {\n return {};\n }\n}\n","var toString = require('./toString');\n\n/** Used to generate unique IDs. */\nvar idCounter = 0;\n\n/**\n * Generates a unique ID. If `prefix` is given, the ID is appended to it.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {string} [prefix=''] The value to prefix the ID with.\n * @returns {string} Returns the unique ID.\n * @example\n *\n * _.uniqueId('contact_');\n * // => 'contact_104'\n *\n * _.uniqueId();\n * // => '105'\n */\nfunction uniqueId(prefix) {\n var id = ++idCounter;\n return toString(prefix) + id;\n}\n\nmodule.exports = uniqueId;\n","module.exports = NodalviewEnvironment;","module.exports = jQuery;"],"names":["map","webpackAsyncContext","req","__webpack_require__","o","Promise","resolve","then","e","Error","code","ids","id","all","slice","keys","Object","module","exports","t","n","amplitude","_q","_iq","r","createElement","type","integrity","crossOrigin","async","src","onload","runQueuedFunctions","console","log","i","getElementsByTagName","s","prototype","this","push","concat","Array","call","arguments","parentNode","insertBefore","a","c","length","Identify","u","l","p","Revenue","d","v","getInstance","toLowerCase","hasOwnProperty","window","document","TOAST_TYPES","TOAST_ICONS","information","success","warning","error","ToastsCenter","constructor","toastsStack","toastContainer","init","getElementById","add","toast","toastId","displayTime","toastDisplayer","setTimeout","remove","addToContainer","addToStack","toastToRemove","find","toastElement","classList","clearTimeout","timer","filter","prepend","height","getBoundingClientRect","_animateContainer","animate","transform","easing","duration","Toast","title","message","icon","cloneNotification","build","checkToastValidity","_cloneNotification","_setMetas","_setMessage","_setIcon","_setTitle","_setClose","show","hide","notificationTemplate","querySelector","content","cloneNode","setAttribute","innerHTML","innerText","addEventListener","bind","pagesHelper","renderComponent","renderComponents","purposeAttributes","boot","pageModuleName","pageAttributes","page","pageClass","default","purpose","enable_data_test_attributes","toString","idCounter","prefix","NodalviewEnvironment","jQuery"],"sourceRoot":""}