{"version":3,"sources":["webpack:///static/js/app.b245dd298227bc52b18a.js","webpack:///./src/App.vue","webpack:///./src/main.js","webpack:///./src/App.vue?0642","webpack:///./src/router/index.js","webpack:///./src/components/Alert.vue?e338","webpack:///./src/components lazy ^\\.\\/.*\\.vue$","webpack:///src/App.vue","webpack:///./src/components/Alert.vue","webpack:///src/components/Alert.vue"],"names":["webpackJsonp","7Spq","module","exports","M93x","__webpack_exports__","__webpack_require__","injectStyle","ssrContext","normalizeComponent","__vue_styles__","Component","NHnr","FullStory","orgId","Vue","prototype","$FullStory","config","productionTip","server","process","SERVER","loadPage","el","router","render","h","App","Cookies","get","axios","post","token","headers","then","response","data","status","window","location","href","pathname","views","link","map","view","indexOf","catch","error","console","log","R7cA","_vm","this","_h","$createElement","_c","_self","class","beta","attrs","isLoginPage","_e","staticClass","_l","_v","_s","label","creditsUsed","creditsTotal","on","logout","showAlert","alertHeader","alertMessage","updateAlertVisibility","showProductTags","updateCredit","shouldDisableSubmitBtn","staticRenderFns","esExports","YaEn","__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__","__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default","n","__WEBPACK_IMPORTED_MODULE_1_vue__","__WEBPACK_IMPORTED_MODULE_2_vue_router__","routerOptions","path","component","routes","route","use","Router","mode","eAn8","hide","header","message","mUJ2","webpackAsyncContext","req","ids","Promise","all","slice","e","reject","Error","keys","Object","id","xJD8","__WEBPACK_IMPORTED_MODULE_0_axios__","__WEBPACK_IMPORTED_MODULE_0_axios___default","__WEBPACK_IMPORTED_MODULE_1_js_cookie__","__WEBPACK_IMPORTED_MODULE_1_js_cookie___default","__WEBPACK_IMPORTED_MODULE_2__components_Alert__","components","mounted","a","creditsLeft","computed","methods","newStatus","name","yL53","zvUr","props","String","visible","Boolean","Function","updateVisibility"],"mappings":"AAAAA,cAAc,KAERC,OACA,SAAUC,EAAQC,KAMlBC,KACA,SAAUF,EAAQG,EAAqBC,GAE7C,YCZA,S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BAAoBC,UAEtBT,SACE3B,KADJ,WAEM3C,KAAKgF,kBAAiB,STwZzB","file":"static/js/app.b245dd298227bc52b18a.js","sourcesContent":["webpackJsonp([10],{\n\n/***/ \"7Spq\":\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n\n/***/ \"M93x\":\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_App_vue__ = __webpack_require__(\"xJD8\");\n/* unused harmony namespace reexport */\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_3bbab3e7_hasScoped_false_transformToRequire_video_src_source_src_img_src_image_xlink_href_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_App_vue__ = __webpack_require__(\"R7cA\");\nfunction injectStyle (ssrContext) {\n __webpack_require__(\"7Spq\")\n}\nvar normalizeComponent = __webpack_require__(\"VU/8\")\n/* script */\n\n\n/* template */\n\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = null\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_App_vue__[\"a\" /* default */],\n __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_3bbab3e7_hasScoped_false_transformToRequire_video_src_source_src_img_src_image_xlink_href_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_App_vue__[\"a\" /* default */],\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\n/* harmony default export */ __webpack_exports__[\"a\"] = (Component.exports);\n\n\n/***/ }),\n\n/***/ \"NHnr\":\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\nObject.defineProperty(__webpack_exports__, \"__esModule\", { value: true });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue__ = __webpack_require__(\"/5sW\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_js_cookie__ = __webpack_require__(\"lbHh\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_js_cookie___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_js_cookie__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_axios__ = __webpack_require__(\"mtWM\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_axios___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_axios__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__App__ = __webpack_require__(\"M93x\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__router__ = __webpack_require__(\"YaEn\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__fullstory_browser__ = __webpack_require__(\"K4wX\");\n\n\n\n\n\n\n\n__WEBPACK_IMPORTED_MODULE_5__fullstory_browser__[\"init\"]({ orgId: 'X1XZ9' });\n__WEBPACK_IMPORTED_MODULE_0_vue__[\"a\" /* default */].prototype.$FullStory = __WEBPACK_IMPORTED_MODULE_5__fullstory_browser__;\n\n__WEBPACK_IMPORTED_MODULE_0_vue__[\"a\" /* default */].config.productionTip = false;\n\nvar server = Object({\"NODE_ENV\":\"production\"}).SERVER || '';\n\nvar loadPage = function loadPage() {\n return new __WEBPACK_IMPORTED_MODULE_0_vue__[\"a\" /* default */]({\n el: '#app',\n router: __WEBPACK_IMPORTED_MODULE_4__router__[\"a\" /* default */],\n render: function render(h) {\n return h(__WEBPACK_IMPORTED_MODULE_3__App__[\"a\" /* default */]);\n }\n });\n};\n\nif (__WEBPACK_IMPORTED_MODULE_1_js_cookie___default.a.get('token')) {\n __WEBPACK_IMPORTED_MODULE_2_axios___default.a.post(server + '/token', {\n token: __WEBPACK_IMPORTED_MODULE_1_js_cookie___default.a.get('token')\n }, {\n headers: {\n 'Content-Type': 'application/json'\n }\n }).then(function (response) {\n if (response.data.status !== 'Success') {\n // If invalid token, redirect to login\n window.location.href = '/login';\n } else {\n if (window.location.pathname === '/login') {\n // Automatically redirect authorized user away from /login\n window.location.href = response.data.views[0].link;\n } else if (response.data.views.map(function (view) {\n return view.link;\n }).indexOf(window.location.pathname) === -1) {\n // User not authorized to view page\n // Redirect user to an authorized page\n window.location.href = response.data.views[0].link;\n } else {\n loadPage();\n }\n }\n }).catch(function (error) {\n console.log(error);\n if (window.location.pathname !== '/login') {\n window.location.href = '/login';\n } else {\n loadPage();\n }\n });\n} else {\n // Redirect to login page\n if (window.location.pathname !== '/login') {\n window.location.href = '/login';\n } else {\n loadPage();\n }\n}\n\n/***/ }),\n\n/***/ \"R7cA\":\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\nvar render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:{beta: _vm.beta},attrs:{\"id\":\"app\"}},[(!_vm.isLoginPage)?_c('div',{staticClass:\"ui attached menu\",attrs:{\"id\":\"top\"}},[_c('div',{staticClass:\"ui container\"},[_vm._l((_vm.views),function(view){return _c('a',{staticClass:\"item\",attrs:{\"href\":view.link}},[_vm._v(\"\\n \"+_vm._s(view.label)+\"\\n \")])}),_vm._v(\" \"),_c('a',{staticClass:\"right item\"},[_vm._v(\"\\n Credits used: \"+_vm._s(_vm.creditsUsed)+\" / \"+_vm._s(_vm.creditsTotal)+\"\\n \")]),_vm._v(\" \"),_c('a',{staticClass:\"item\",on:{\"click\":_vm.logout}},[_vm._v(\"\\n Logout\\n \")])],2)]):_vm._e(),_vm._v(\" \"),_c('alert-view',{attrs:{\"visible\":this.showAlert,\"header\":_vm.alertHeader,\"message\":_vm.alertMessage,\"update-visibility\":_vm.updateAlertVisibility}}),_vm._v(\" \"),_c('router-view',{attrs:{\"show-product-tags\":_vm.showProductTags,\"update-credit\":_vm.updateCredit,\"should-disable-submit-btn\":_vm.shouldDisableSubmitBtn}})],1)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\n/* harmony default export */ __webpack_exports__[\"a\"] = (esExports);\n\n/***/ }),\n\n/***/ \"YaEn\":\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(\"Dd8w\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_vue__ = __webpack_require__(\"/5sW\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_vue_router__ = __webpack_require__(\"/ocq\");\n\n\n\nvar routerOptions = [{ path: '/', component: 'Demo' }, { path: '/admin', component: 'Admin' }, { path: '/login', component: 'Login' }, { path: '/describe', component: 'Describe' }, { path: '/freeflow', component: 'Freeflow' }, { path: '/blog', component: 'Blog' }, { path: '*', component: 'NotFound' }];\nvar routes = routerOptions.map(function (route) {\n return __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, route, {\n component: function component() {\n return __webpack_require__(\"mUJ2\")(\"./\" + route.component + '.vue');\n }\n });\n});\n__WEBPACK_IMPORTED_MODULE_1_vue__[\"a\" /* default */].use(__WEBPACK_IMPORTED_MODULE_2_vue_router__[\"a\" /* default */]);\n/* harmony default export */ __webpack_exports__[\"a\"] = (new __WEBPACK_IMPORTED_MODULE_2_vue_router__[\"a\" /* default */]({\n routes: routes,\n mode: 'history'\n}));\n\n/***/ }),\n\n/***/ \"eAn8\":\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\nvar render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.visible)?_c('div',{staticClass:\"ui negative message\"},[_c('i',{staticClass:\"close icon\",on:{\"click\":_vm.hide}}),_vm._v(\" \"),_c('div',{staticClass:\"header\"},[_vm._v(_vm._s(_vm.header))]),_vm._v(\" \"),_c('p',[_vm._v(_vm._s(this.message))])]):_vm._e()}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\n/* harmony default export */ __webpack_exports__[\"a\"] = (esExports);\n\n/***/ }),\n\n/***/ \"mUJ2\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar map = {\n\t\"./About.vue\": [\n\t\t\"c27y\",\n\t\t8\n\t],\n\t\"./Admin.vue\": [\n\t\t\"qbhH\",\n\t\t0\n\t],\n\t\"./Alert.vue\": [\n\t\t\"yL53\"\n\t],\n\t\"./BackToTop.vue\": [\n\t\t\"Luyq\",\n\t\t6\n\t],\n\t\"./Blog.vue\": [\n\t\t\"SGec\",\n\t\t5\n\t],\n\t\"./Demo.vue\": [\n\t\t\"26cW\",\n\t\t2\n\t],\n\t\"./Describe.vue\": [\n\t\t\"xAj5\",\n\t\t4\n\t],\n\t\"./Freeflow.vue\": [\n\t\t\"Tytv\",\n\t\t3\n\t],\n\t\"./Login.vue\": [\n\t\t\"xJsL\",\n\t\t1\n\t],\n\t\"./NotFound.vue\": [\n\t\t\"YcJa\",\n\t\t7\n\t]\n};\nfunction webpackAsyncContext(req) {\n\tvar ids = map[req];\n\tif(!ids)\n\t\treturn Promise.reject(new Error(\"Cannot find module '\" + req + \"'.\"));\n\treturn Promise.all(ids.slice(1).map(__webpack_require__.e)).then(function() {\n\t\treturn __webpack_require__(ids[0]);\n\t});\n};\nwebpackAsyncContext.keys = function webpackAsyncContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackAsyncContext.id = \"mUJ2\";\nmodule.exports = webpackAsyncContext;\n\n/***/ }),\n\n/***/ \"xJD8\":\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_axios__ = __webpack_require__(\"mtWM\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_axios___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_axios__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_js_cookie__ = __webpack_require__(\"lbHh\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_js_cookie___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_js_cookie__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__components_Alert__ = __webpack_require__(\"yL53\");\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"a\"] = ({\n components: {\n 'alert-view': __WEBPACK_IMPORTED_MODULE_2__components_Alert__[\"default\"]\n },\n mounted: function mounted() {\n var _this = this;\n\n if (__WEBPACK_IMPORTED_MODULE_1_js_cookie___default.a.get('token')) {\n __WEBPACK_IMPORTED_MODULE_0_axios___default.a.post(this.server + '/token', {\n token: __WEBPACK_IMPORTED_MODULE_1_js_cookie___default.a.get('token')\n }, {\n headers: {\n 'Content-Type': 'application/json'\n }\n }).then(function (response) {\n _this.views = response.data.views;\n _this.beta = response.data.beta;\n _this.showProductTags = response.data.showProductTags;\n }).catch(function (error) {\n console.log(error);\n if (window.location.pathname !== '/login') window.location.href = '/login';\n });\n\n this.updateCredit();\n }\n },\n\n data: function data() {\n return {\n server: Object({\"NODE_ENV\":\"production\"}).SERVER || '',\n views: [],\n creditsLeft: '',\n creditsTotal: '',\n creditsUsed: '',\n showProductTags: false,\n beta: false,\n showAlert: false,\n alertHeader: '',\n alertMessage: ''\n };\n },\n computed: {\n isLoginPage: function isLoginPage() {\n return window.location.pathname === '/login';\n },\n shouldDisableSubmitBtn: function shouldDisableSubmitBtn() {\n return this.creditsLeft <= 0;\n }\n },\n methods: {\n logout: function logout() {\n __WEBPACK_IMPORTED_MODULE_1_js_cookie___default.a.set('token', 'token', { expires: 0 });\n window.location.href = '/login';\n },\n updateCredit: function updateCredit() {\n var _this2 = this;\n\n var creditPath = this.server + '/credits?token=' + __WEBPACK_IMPORTED_MODULE_1_js_cookie___default.a.get('token');\n __WEBPACK_IMPORTED_MODULE_0_axios___default.a.post(creditPath).then(function (response) {\n _this2.$FullStory.event('updateCredit', {\n creditsLeft: response.data.creditsLeft,\n creditsTotal: response.data.creditsTotal,\n creditsUsed: _this2.creditsTotal - _this2.creditsLeft\n });\n _this2.creditsLeft = response.data.creditsLeft;\n _this2.creditsTotal = response.data.creditsTotal;\n _this2.creditsUsed = _this2.creditsTotal - _this2.creditsLeft;\n if (_this2.creditsLeft <= 0) {\n _this2.alertHeader = 'Sorry!';\n _this2.alertMessage = 'You are out of credits, please email us at hello@hypotenuse.ai to top up your credits!';\n _this2.showAlert = true;\n }\n });\n },\n updateAlertVisibility: function updateAlertVisibility(newStatus) {\n this.showAlert = newStatus;\n }\n },\n name: 'app'\n});\n\n/***/ }),\n\n/***/ \"yL53\":\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\nObject.defineProperty(__webpack_exports__, \"__esModule\", { value: true });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Alert_vue__ = __webpack_require__(\"zvUr\");\n/* empty harmony namespace reexport */\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_09b3aced_hasScoped_false_transformToRequire_video_src_source_src_img_src_image_xlink_href_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_Alert_vue__ = __webpack_require__(\"eAn8\");\nvar normalizeComponent = __webpack_require__(\"VU/8\")\n/* script */\n\n\n/* template */\n\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = null\n/* scopeId */\nvar __vue_scopeId__ = null\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Alert_vue__[\"a\" /* default */],\n __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_09b3aced_hasScoped_false_transformToRequire_video_src_source_src_img_src_image_xlink_href_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_Alert_vue__[\"a\" /* default */],\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Component.exports);\n\n\n/***/ }),\n\n/***/ \"zvUr\":\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n//\n//\n//\n//\n//\n//\n//\n//\n\n/* harmony default export */ __webpack_exports__[\"a\"] = ({\n props: {\n header: String,\n message: String,\n visible: Boolean,\n 'updateVisibility': Function\n },\n methods: {\n hide: function hide() {\n this.updateVisibility(false);\n }\n }\n});\n\n/***/ })\n\n},[\"NHnr\"]);\n\n\n// WEBPACK FOOTER //\n// static/js/app.b245dd298227bc52b18a.js","function injectStyle (ssrContext) {\n require(\"!!../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true}!vue-style-loader!css-loader?{\\\"minimize\\\":true,\\\"sourceMap\\\":true}!../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-3bbab3e7\\\",\\\"scoped\\\":false,\\\"hasInlineConfig\\\":false}!../node_modules/vue-loader/lib/selector?type=styles&index=0!./App.vue\")\n}\nvar normalizeComponent = require(\"!../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../node_modules/vue-loader/lib/selector?type=script&index=0!./App.vue\"\nimport __vue_script__ from \"!!babel-loader!../node_modules/vue-loader/lib/selector?type=script&index=0!./App.vue\"\n/* template */\nimport __vue_template__ from \"!!../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-3bbab3e7\\\",\\\"hasScoped\\\":false,\\\"transformToRequire\\\":{\\\"video\\\":\\\"src\\\",\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../node_modules/vue-loader/lib/selector?type=template&index=0!./App.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = null\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/App.vue\n// module id = M93x\n// module chunks = 10","import Vue from 'vue'\nimport Cookies from 'js-cookie'\nimport axios from 'axios'\nimport App from './App'\nimport router from './router'\nimport * as FullStory from '@fullstory/browser'\n\nFullStory.init({ orgId: 'X1XZ9' })\nVue.prototype.$FullStory = FullStory\n\nVue.config.productionTip = false\n\nconst server = process.env.SERVER || ''\n\nconst loadPage = () => {\n return new Vue({\n el: '#app',\n router,\n render: h => h(App)\n })\n}\n\nif (Cookies.get('token')) {\n axios.post(server + '/token', {\n token: Cookies.get('token')\n }, {\n headers: {\n 'Content-Type': 'application/json'\n }\n })\n .then(response => {\n if (response.data.status !== 'Success') {\n // If invalid token, redirect to login\n window.location.href = '/login'\n } else {\n if (window.location.pathname === '/login') {\n // Automatically redirect authorized user away from /login\n window.location.href = response.data.views[0].link\n } else if (response.data.views.map(view => view.link).indexOf(window.location.pathname) === -1) {\n // User not authorized to view page\n // Redirect user to an authorized page\n window.location.href = response.data.views[0].link\n } else {\n loadPage()\n }\n }\n })\n .catch(error => {\n console.log(error)\n if (window.location.pathname !== '/login') {\n window.location.href = '/login'\n } else {\n loadPage()\n }\n })\n} else {\n // Redirect to login page\n if (window.location.pathname !== '/login') {\n window.location.href = '/login'\n } else {\n loadPage()\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/main.js","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:{beta: _vm.beta},attrs:{\"id\":\"app\"}},[(!_vm.isLoginPage)?_c('div',{staticClass:\"ui attached menu\",attrs:{\"id\":\"top\"}},[_c('div',{staticClass:\"ui container\"},[_vm._l((_vm.views),function(view){return _c('a',{staticClass:\"item\",attrs:{\"href\":view.link}},[_vm._v(\"\\n \"+_vm._s(view.label)+\"\\n \")])}),_vm._v(\" \"),_c('a',{staticClass:\"right item\"},[_vm._v(\"\\n Credits used: \"+_vm._s(_vm.creditsUsed)+\" / \"+_vm._s(_vm.creditsTotal)+\"\\n \")]),_vm._v(\" \"),_c('a',{staticClass:\"item\",on:{\"click\":_vm.logout}},[_vm._v(\"\\n Logout\\n \")])],2)]):_vm._e(),_vm._v(\" \"),_c('alert-view',{attrs:{\"visible\":this.showAlert,\"header\":_vm.alertHeader,\"message\":_vm.alertMessage,\"update-visibility\":_vm.updateAlertVisibility}}),_vm._v(\" \"),_c('router-view',{attrs:{\"show-product-tags\":_vm.showProductTags,\"update-credit\":_vm.updateCredit,\"should-disable-submit-btn\":_vm.shouldDisableSubmitBtn}})],1)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-3bbab3e7\",\"hasScoped\":false,\"transformToRequire\":{\"video\":\"src\",\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/App.vue\n// module id = R7cA\n// module chunks = 10","import Vue from 'vue'\nimport Router from 'vue-router'\nconst routerOptions = [\n { path: '/', component: 'Demo' },\n { path: '/admin', component: 'Admin' },\n { path: '/login', component: 'Login' },\n { path: '/describe', component: 'Describe' },\n { path: '/freeflow', component: 'Freeflow' },\n { path: '/blog', component: 'Blog' },\n { path: '*', component: 'NotFound' }\n]\nconst routes = routerOptions.map(route => {\n return {\n ...route,\n component: () => import(`@/components/${route.component}.vue`)\n }\n})\nVue.use(Router)\nexport default new Router({\n routes,\n mode: 'history'\n})\n\n\n\n// WEBPACK FOOTER //\n// ./src/router/index.js","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.visible)?_c('div',{staticClass:\"ui negative message\"},[_c('i',{staticClass:\"close icon\",on:{\"click\":_vm.hide}}),_vm._v(\" \"),_c('div',{staticClass:\"header\"},[_vm._v(_vm._s(_vm.header))]),_vm._v(\" \"),_c('p',[_vm._v(_vm._s(this.message))])]):_vm._e()}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-09b3aced\",\"hasScoped\":false,\"transformToRequire\":{\"video\":\"src\",\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/components/Alert.vue\n// module id = eAn8\n// module chunks = 10","var map = {\n\t\"./About.vue\": [\n\t\t\"c27y\",\n\t\t8\n\t],\n\t\"./Admin.vue\": [\n\t\t\"qbhH\",\n\t\t0\n\t],\n\t\"./Alert.vue\": [\n\t\t\"yL53\"\n\t],\n\t\"./BackToTop.vue\": [\n\t\t\"Luyq\",\n\t\t6\n\t],\n\t\"./Blog.vue\": [\n\t\t\"SGec\",\n\t\t5\n\t],\n\t\"./Demo.vue\": [\n\t\t\"26cW\",\n\t\t2\n\t],\n\t\"./Describe.vue\": [\n\t\t\"xAj5\",\n\t\t4\n\t],\n\t\"./Freeflow.vue\": [\n\t\t\"Tytv\",\n\t\t3\n\t],\n\t\"./Login.vue\": [\n\t\t\"xJsL\",\n\t\t1\n\t],\n\t\"./NotFound.vue\": [\n\t\t\"YcJa\",\n\t\t7\n\t]\n};\nfunction webpackAsyncContext(req) {\n\tvar ids = map[req];\n\tif(!ids)\n\t\treturn Promise.reject(new Error(\"Cannot find module '\" + req + \"'.\"));\n\treturn Promise.all(ids.slice(1).map(__webpack_require__.e)).then(function() {\n\t\treturn __webpack_require__(ids[0]);\n\t});\n};\nwebpackAsyncContext.keys = function webpackAsyncContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackAsyncContext.id = \"mUJ2\";\nmodule.exports = webpackAsyncContext;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/components lazy ^\\.\\/.*\\.vue$\n// module id = mUJ2\n// module chunks = 10","\n \n \n \n \n {{ view.label }}\n \n \n Credits used: {{ creditsUsed }} / {{ creditsTotal }}\n \n \n Logout\n \n \n \n \n \n \n\n\n\n\n\n\n\n\n// WEBPACK FOOTER //\n// src/App.vue","var normalizeComponent = require(\"!../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./Alert.vue\"\nimport __vue_script__ from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./Alert.vue\"\n/* template */\nimport __vue_template__ from \"!!../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-09b3aced\\\",\\\"hasScoped\\\":false,\\\"transformToRequire\\\":{\\\"video\\\":\\\"src\\\",\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../node_modules/vue-loader/lib/selector?type=template&index=0!./Alert.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = null\n/* scopeId */\nvar __vue_scopeId__ = null\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/components/Alert.vue\n// module id = yL53\n// module chunks = 10","\n \n \n {{ header }}\n {{ this.message }}\n \n\n\n\n\n\n\n// WEBPACK FOOTER //\n// src/components/Alert.vue"],"sourceRoot":""}
{{ this.message }}