{"version":3,"sources":["webpack:///static/js/app.9dc25b49152da103dd77.js","webpack:///./src/components/Toaster.vue","webpack:///./src/App.vue?2c3c","webpack:///./src/App.vue","webpack:///./src/main.js","webpack:///./src/utility.js","webpack:///src/components/Toaster.vue","webpack:///src/components/LnbNav.vue","webpack:///./src/router.js","webpack:///./src/broadcast.js","webpack:///./src/app.js","webpack:///./src/components/LnbNav.vue?07fb","webpack:///./src/components/Toaster.vue?5d7c","webpack:///./src/components/LnbNav.vue","webpack:///src/App.vue"],"names":["webpackJsonp","4cpB","module","__webpack_exports__","__webpack_require__","__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Toaster_vue__","__WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_6e7c3ab2_hasScoped_false_transformToRequire_video_src_source_src_img_src_image_xlink_href_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_Toaster_vue__","normalizeComponent","Component","KM+u","render","_vm","this","_h","$createElement","_c","_self","staticClass","class","app_tall","isTall","_v","attrs","enter-active-class","leave-active-class","directives","name","rawName","value","expression","xmlns","version","id","stdDeviation","staticRenderFns","esExports","M93x","injectStyle","ssrContext","__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_App_vue__","__WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_27fcad9d_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__","__vue_styles__","NHnr","Object","defineProperty","__WEBPACK_IMPORTED_MODULE_0_vue__","__WEBPACK_IMPORTED_MODULE_1_vue_router__","__WEBPACK_IMPORTED_MODULE_2_vue_youtube_embed__","__WEBPACK_IMPORTED_MODULE_2_vue_youtube_embed___default","n","__WEBPACK_IMPORTED_MODULE_3_vue_rx__","__WEBPACK_IMPORTED_MODULE_3_vue_rx___default","__WEBPACK_IMPORTED_MODULE_4_rxjs_Observable__","__WEBPACK_IMPORTED_MODULE_5_rxjs_Subscription__","__WEBPACK_IMPORTED_MODULE_6_rxjs_Subject__","__WEBPACK_IMPORTED_MODULE_7_rxjs_add_observable_combineLatest__","__WEBPACK_IMPORTED_MODULE_8_rxjs_add_observable_fromEvent__","__WEBPACK_IMPORTED_MODULE_9_rxjs_add_operator_map__","__WEBPACK_IMPORTED_MODULE_10_rxjs_add_operator_first__","__WEBPACK_IMPORTED_MODULE_11__App__","__WEBPACK_IMPORTED_MODULE_12__router__","use","a","Observable","Subscription","Subject","config","productionTip","el","h","router","O9Uj","secondsToString","totalSeconds","minutes","Math","floor","seconds","length","stringToSeconds","string","parts","split","parseInt","buildMeta","track","arguments","undefined","artist","title","release","episode","replace","debounce","func","wait","immediate","timeout","_len","args","Array","_key","context","later","apply","callNow","clearTimeout","setTimeout","getSource","url","indexOf","shuffle","playlist","indexOfCurrentSong","shuffledPlaylist","JSON","parse","__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_json_stringify___default","counter","temp","index","random","songToAdd","splice","unshift","toggleFullScreen","document","fullscreenElement","exitFullscreen","documentElement","requestFullscreen","__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_json_stringify__","Q1TO","__WEBPACK_IMPORTED_MODULE_0__broadcast__","data","iconMap","success","error","messages","methods","startTimeout","message","_this","$set","filter","m","stopTimeout","toasterClass","res","type","closeButtonClass","toaster__close_running","deleteMessage","$delete","mounted","_this2","on","Date","now","toString","push","i","shift","RX/U","exports","XJ0i","__WEBPACK_IMPORTED_MODULE_0_rxjs_ReplaySubject__","__WEBPACK_IMPORTED_MODULE_1_rxjs_Observable__","__WEBPACK_IMPORTED_MODULE_2__app__","components","subscriptions","routeChange$","next","$route","showApLink","combineLatest","user","map","streams","route","$router","afterEach","to","cHtD","authGuard","from","__WEBPACK_IMPORTED_MODULE_3__app__","subscribe","params","redirect","fullPath","d","__WEBPACK_IMPORTED_MODULE_0_vue_router__","__WEBPACK_IMPORTED_MODULE_2__utility__","routes","path","component","e","then","bind","beforeEnter","children","redirectTo","tracks","latestEpisode","reduce","prev","curr","mode","beforeEach","latestTrack","t","default","dpSC","__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_toConsumableArray__","__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_toConsumableArray___default","Broadcaster","listeners","callback","isArray","emit","cb","eslX","request","method","body","fetch","headers","Accept","Content-Type","credentials","json","Error","getTracks","state","addTrack","updateTrack","publishTrack","claimTrack","deleteTrack","getUsers","users","addUser","updateUser","first","currUser","getFbRedirectURL","getFbAccess","setFbUserAccessToken","userAccessToken","setFbPage","accessToken","getFbPages","clearFbData","getConfig","setConfig","login","password","remember","logout","__WEBPACK_IMPORTED_MODULE_1_rxjs_ReplaySubject__","theme","catch","mQZ+","nav_hidden","role","nav__title_hidden","_e","roIO","tag","_l","key","mouseenter","$event","mouseleave","click","width","height","cx","cy","r","transform","_s","text","x8E5","__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_LnbNav_vue__","__WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_14a056b2_hasScoped_false_transformToRequire_video_src_source_src_img_src_image_xlink_href_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_LnbNav_vue__","xJD8","__WEBPACK_IMPORTED_MODULE_0__components_LnbNav__","__WEBPACK_IMPORTED_MODULE_1__components_Toaster__","LnbNav","Toaster","computed","classList","add"],"mappings":"AAAAA,cAAc,IAERC,OACA,SAAUC,EAAQC,EAAqBC,GAE7C,YACqB,IAAIC,GAAmHD,EAAoB,QCNhKE,EAAAF,EAAA,QAAAG,EAAAH,EAAA,QAaAI,EAAAD,EACAF,EAAA,EACAC,EAAA,GATA,EAEA,KAEA,KAEA,KAUAH,GAAA,EAAAK,EAAA,SDaMC,OACA,SAAUP,EAAQC,EAAqBC,GAE7C,YEtCA,IAAAM,GA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EA,KAEA,KAUA3R,GAAA,EAAAK,EAAA,Sbs1BMuR,KACA,SAAU7R,EAAQC,EAAqBC,GAE7C,YACqB,IAAI4R,GAAmD5R,EAAoB,QACvE6R,EAAoD7R,EAAoB,Oc72BjGD,GAAA,Gdm3BEuB,Kcj3BF,Mdk3BE+I,Ych3BFyH,OAAAF,EAAA,EAEAG,QAAAF,EAAA,Gdk3BEG,UACEhR,OAAQ,WACN,MAA4B,WAArBR,KAAKiK,OAAOnJ,MAA0C,UAArBd,KAAKiK,OAAOnJ,Mcj3B1D,Wdi3B8Ed,KAAKiK,OAAOnJ,OAIxFgI,QAAS,WACP/C,WAAW,WACT,MAAOmB,UAASmG,KAAKoE,UAAUC,IAAI,uBcl3BzC,Udy3BG","file":"static/js/app.9dc25b49152da103dd77.js","sourcesContent":["webpackJsonp([8],{\n\n/***/ \"4cpB\":\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_Toaster_vue__ = __webpack_require__(\"Q1TO\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_6e7c3ab2_hasScoped_false_transformToRequire_video_src_source_src_img_src_image_xlink_href_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_Toaster_vue__ = __webpack_require__(\"roIO\");\nvar normalizeComponent = __webpack_require__(\"VU/8\")\n/* script */\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_Toaster_vue__[\"a\" /* default */],\n __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_6e7c3ab2_hasScoped_false_transformToRequire_video_src_source_src_img_src_image_xlink_href_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_Toaster_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/***/ \"KM+u\":\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('main',{staticClass:\"app\",class:{ 'app_tall': _vm.isTall }},[_c('toaster'),_vm._v(\" \"),_c('lnb-nav'),_vm._v(\" \"),_c('transition',{attrs:{\"enter-active-class\":\"animated fadeInDown\",\"leave-active-class\":\"animated fadeOutDown\"}},[_c('router-view')],1),_vm._v(\" \"),_c('svg',{directives:[{name:\"show\",rawName:\"v-show\",value:(false),expression:\"false\"}],attrs:{\"xmlns\":\"http://www.w3.org/2000/svg\",\"version\":\"1.1\"}},[_c('defs',[_c('filter',{attrs:{\"id\":\"blur\"}},[_c('feGaussianBlur',{attrs:{\"stdDeviation\":\"5\"}})],1)])])],1)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\n/* harmony default export */ __webpack_exports__[\"a\"] = (esExports);\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/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_27fcad9d_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__(\"KM+u\");\nfunction injectStyle (ssrContext) {\n __webpack_require__(\"RX/U\")\n}\nvar normalizeComponent = __webpack_require__(\"VU/8\")\n/* script */\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_27fcad9d_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_vue_router__ = __webpack_require__(\"/ocq\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_vue_youtube_embed__ = __webpack_require__(\"5/be\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_vue_youtube_embed___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_vue_youtube_embed__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_vue_rx__ = __webpack_require__(\"aK3Z\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_vue_rx___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_vue_rx__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rxjs_Observable__ = __webpack_require__(\"rCTf\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rxjs_Observable___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_rxjs_Observable__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_rxjs_Subscription__ = __webpack_require__(\"B00U\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_rxjs_Subscription___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_rxjs_Subscription__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_rxjs_Subject__ = __webpack_require__(\"EEr4\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_rxjs_Subject___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_rxjs_Subject__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_rxjs_add_observable_combineLatest__ = __webpack_require__(\"XlOA\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_rxjs_add_observable_combineLatest___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_rxjs_add_observable_combineLatest__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_rxjs_add_observable_fromEvent__ = __webpack_require__(\"E7Yq\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_rxjs_add_observable_fromEvent___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_rxjs_add_observable_fromEvent__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_rxjs_add_operator_map__ = __webpack_require__(\"+pb+\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_rxjs_add_operator_map___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9_rxjs_add_operator_map__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_rxjs_add_operator_first__ = __webpack_require__(\"okk1\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_rxjs_add_operator_first___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10_rxjs_add_operator_first__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__App__ = __webpack_require__(\"M93x\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__router__ = __webpack_require__(\"cHtD\");\n\n\n\n\n\n // Disposable if using RxJS4\n // required for domStreams option\n\n// statics\n\n\n\n// methods\n\n\n\n\n\n\n__WEBPACK_IMPORTED_MODULE_0_vue__[\"a\" /* default */].use(__WEBPACK_IMPORTED_MODULE_1_vue_router__[\"a\" /* default */]);\n__WEBPACK_IMPORTED_MODULE_0_vue__[\"a\" /* default */].use(__WEBPACK_IMPORTED_MODULE_2_vue_youtube_embed___default.a);\n__WEBPACK_IMPORTED_MODULE_0_vue__[\"a\" /* default */].use(__WEBPACK_IMPORTED_MODULE_3_vue_rx___default.a, {\n Observable: __WEBPACK_IMPORTED_MODULE_4_rxjs_Observable__[\"Observable\"],\n Subscription: __WEBPACK_IMPORTED_MODULE_5_rxjs_Subscription__[\"Subscription\"],\n Subject: __WEBPACK_IMPORTED_MODULE_6_rxjs_Subject__[\"Subject\"]\n});\n\n__WEBPACK_IMPORTED_MODULE_0_vue__[\"a\" /* default */].config.productionTip = false;\n\n/* eslint-disable no-new */\nnew __WEBPACK_IMPORTED_MODULE_0_vue__[\"a\" /* default */]({\n el: '#app',\n render: function render(h) {\n return h(__WEBPACK_IMPORTED_MODULE_11__App__[\"a\" /* default */]);\n },\n router: __WEBPACK_IMPORTED_MODULE_12__router__[\"a\" /* router */]\n});\n\n/***/ }),\n\n/***/ \"O9Uj\":\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (immutable) */ __webpack_exports__[\"d\"] = secondsToString;\n/* harmony export (immutable) */ __webpack_exports__[\"f\"] = stringToSeconds;\n/* harmony export (immutable) */ __webpack_exports__[\"a\"] = buildMeta;\n/* harmony export (immutable) */ __webpack_exports__[\"b\"] = debounce;\n/* harmony export (immutable) */ __webpack_exports__[\"c\"] = getSource;\n/* harmony export (immutable) */ __webpack_exports__[\"e\"] = shuffle;\n/* harmony export (immutable) */ __webpack_exports__[\"g\"] = toggleFullScreen;\n/* unused harmony export defaultColors */\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_json_stringify__ = __webpack_require__(\"mvHQ\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_json_stringify___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_json_stringify__);\n\nfunction secondsToString(totalSeconds) {\n if (totalSeconds === -1) {\n return '';\n }\n\n var minutes = '' + Math.floor(totalSeconds / 60);\n var seconds = '' + Math.floor(totalSeconds - minutes * 60);\n if (seconds.length < 2) {\n seconds = '0' + seconds;\n }\n if (minutes.length < 2) {\n minutes = '0' + minutes;\n }\n return minutes + ':' + seconds;\n}\n\nfunction stringToSeconds(string) {\n if (string === '') {\n return -1;\n }\n\n var parts = string.split(':');\n var minutes = parseInt(parts[0], 10);\n var seconds = parseInt(parts[1], 10);\n\n return minutes * 60 + seconds;\n}\n\nfunction buildMeta(string) {\n var track = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : { artist: '', title: '', release: '', episode: -1 };\n\n return string.replace('$$ARTIST', track.artist).replace('$$TITLE', track.title).replace('$$RELEASE', track.release).replace('$$EPISODE', track.episode);\n}\n\nfunction debounce(func, wait, immediate) {\n var timeout = void 0;\n return function debouncedFn() {\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n var context = this;\n var later = function applyDebounce() {\n timeout = null;\n if (!immediate) func.apply(context, args);\n };\n var callNow = immediate && !timeout;\n clearTimeout(timeout);\n timeout = setTimeout(later, wait);\n if (callNow) func.apply(context, args);\n };\n}\n\nfunction getSource(url) {\n if (url.indexOf('youtube') > -1 || url.indexOf('youtu.be/') > -1) {\n return 'youtube';\n } else if (url.indexOf('soundcloud.com/') > -1) {\n return 'soundcloud';\n }\n return false;\n}\n\nfunction shuffle(playlist, indexOfCurrentSong) {\n var shuffledPlaylist = JSON.parse(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_json_stringify___default()(playlist));\n var counter = playlist.length;\n var temp = void 0;\n var index = void 0;\n\n // While there are elements in the array\n while (counter > 0) {\n // Pick a random index\n index = Math.floor(Math.random() * counter);\n\n // Decrease counter by 1\n counter -= 1;\n\n // And swap the last element with it\n temp = shuffledPlaylist[counter];\n shuffledPlaylist[counter] = shuffledPlaylist[index];\n shuffledPlaylist[index] = temp;\n }\n\n var songToAdd = shuffledPlaylist.splice(indexOfCurrentSong, 1);\n shuffledPlaylist.unshift(songToAdd[0]);\n\n return shuffledPlaylist;\n}\n\nfunction toggleFullScreen() {\n if (!document.fullscreenElement) {\n document.documentElement.requestFullscreen();\n } else if (document.exitFullscreen) {\n document.exitFullscreen();\n }\n}\n\nvar defaultColors = {\n primary: {\n hsl: {\n h: 219.99999999999997,\n s: 0.13043478260869565,\n l: 0.1803921568627451,\n a: 1\n },\n hex: '#282C34',\n rgba: {\n r: 40,\n g: 44,\n b: 52,\n a: 1\n },\n hsv: {\n h: 219.99999999999997,\n s: 0.23076923076923078,\n v: 0.20392156862745098,\n a: 1\n },\n oldHue: 219.99999999999997,\n source: 'hex',\n a: 1\n },\n secondary: {\n hsl: {\n h: 0,\n s: 0,\n l: 1,\n a: 1\n },\n hex: '#FFFFFF',\n rgba: {\n r: 255,\n g: 255,\n b: 255,\n a: 1\n },\n hsv: {\n h: 0,\n s: 0,\n v: 1,\n a: 1\n },\n oldHue: 0,\n source: 'hex',\n a: 1\n },\n accent: {\n hsl: {\n h: 0,\n s: 0,\n l: 0,\n a: 1\n },\n hex: '#000000',\n rgba: {\n r: 0,\n g: 0,\n b: 0,\n a: 1\n },\n hsv: {\n h: 0,\n s: 0,\n v: 0,\n a: 1\n },\n oldHue: 0,\n source: 'hex',\n a: 1\n }\n};\n\n/***/ }),\n\n/***/ \"Q1TO\":\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__broadcast__ = __webpack_require__(\"dpSC\");\n\n\n\n/* harmony default export */ __webpack_exports__[\"a\"] = ({\n data: function data() {\n return {\n iconMap: {\n success: 'iconicstroke-check',\n error: 'iconicstroke-x-alt'\n },\n messages: []\n };\n },\n methods: {\n startTimeout: function startTimeout(message) {\n var _this = this;\n\n this.$set(message, 'timeout', setTimeout(function () {\n _this.messages = _this.messages.filter(function (m) {\n return m.id !== message.id;\n });\n }, 3000));\n },\n stopTimeout: function stopTimeout(message) {\n clearTimeout(message.timeout);\n this.$set(message, 'timeout', null);\n },\n toasterClass: function toasterClass(message) {\n var res = {};\n res['toaster_' + message.type] = true;\n return res;\n },\n closeButtonClass: function closeButtonClass(message) {\n var res = {\n toaster__close_running: !!message.timeout\n };\n return res;\n },\n deleteMessage: function deleteMessage(index) {\n this.stopTimeout(this.messages[index]);\n this.$delete(this.messages, index);\n }\n },\n mounted: function mounted() {\n var _this2 = this;\n\n __WEBPACK_IMPORTED_MODULE_0__broadcast__[\"a\" /* default */].on('toaster', function (message) {\n var id = (+Date.now()).toString();\n message.id = id;\n _this2.messages.push(message);\n _this2.startTimeout(message);\n\n if (_this2.messages.length > 3) {\n for (var i = _this2.messages.length - 4; i >= 0; i -= 1) {\n _this2.messages.shift();\n }\n }\n });\n }\n});\n\n/***/ }),\n\n/***/ \"RX/U\":\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n\n/***/ \"XJ0i\":\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_rxjs_ReplaySubject__ = __webpack_require__(\"MQMf\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_rxjs_ReplaySubject___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_rxjs_ReplaySubject__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_rxjs_Observable__ = __webpack_require__(\"rCTf\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_rxjs_Observable___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_rxjs_Observable__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__app__ = __webpack_require__(\"eslX\");\n\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"a\"] = ({\n components: {},\n data: function data() {\n return {\n title: 'latenight.blue'\n };\n },\n subscriptions: function subscriptions() {\n this.routeChange$ = new __WEBPACK_IMPORTED_MODULE_0_rxjs_ReplaySubject__[\"ReplaySubject\"]();\n this.routeChange$.next(this.$route);\n\n return {\n showApLink: __WEBPACK_IMPORTED_MODULE_1_rxjs_Observable__[\"Observable\"].combineLatest(__WEBPACK_IMPORTED_MODULE_2__app__[\"o\" /* state */].user, this.routeChange$).map(function (streams) {\n var user = streams[0];\n var route = streams[1];\n return user !== null && route && route.name === 'player';\n }),\n user: __WEBPACK_IMPORTED_MODULE_2__app__[\"o\" /* state */].user\n };\n },\n mounted: function mounted() {\n var _this = this;\n\n this.$router.afterEach(function (to) {\n _this.routeChange$.next(to);\n });\n }\n});\n\n/***/ }),\n\n/***/ \"cHtD\":\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* unused harmony export authGuard */\n/* unused harmony export usersExist */\n/* unused harmony export routes */\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return router; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue_router__ = __webpack_require__(\"/ocq\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_rxjs_Observable__ = __webpack_require__(\"rCTf\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_rxjs_Observable___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_rxjs_Observable__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__utility__ = __webpack_require__(\"O9Uj\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__app__ = __webpack_require__(\"eslX\");\n\n\n\n\n\nfunction authGuard(to, from, next) {\n __WEBPACK_IMPORTED_MODULE_3__app__[\"o\" /* state */].user.subscribe(function (user) {\n if (user === null) {\n next({ name: 'login', params: { redirect: to.fullPath } });\n } else {\n next();\n }\n });\n}\n\nfunction usersExist(to, from, next) {\n __WEBPACK_IMPORTED_MODULE_3__app__[\"o\" /* state */].users.subscribe(function (users) {\n if (users.length === 0) {\n next({ name: 'install' });\n } else {\n next();\n }\n }, next({ name: 'error' }));\n}\nvar routes = [{\n name: 'ap',\n path: '/ap',\n component: function component() {\n return __webpack_require__.e/* import() */(5).then(__webpack_require__.bind(null, \"xsBR\"));\n },\n beforeEnter: authGuard,\n redirect: '/ap/tracks',\n children: [{\n name: 'tracks',\n path: 'tracks',\n component: function component() {\n return __webpack_require__.e/* import() */(0).then(__webpack_require__.bind(null, \"LhqL\"));\n }\n }, {\n name: 'users',\n path: 'users',\n component: function component() {\n return __webpack_require__.e/* import() */(2).then(__webpack_require__.bind(null, \"ouwW\"));\n }\n }, {\n name: 'config',\n path: 'config',\n component: function component() {\n return __webpack_require__.e/* import() */(3).then(__webpack_require__.bind(null, \"9zBI\"));\n }\n }, {\n name: 'fb-connect',\n path: 'config/fb-connect',\n component: function component() {\n return __webpack_require__.e/* import() */(4).then(__webpack_require__.bind(null, \"VWSz\"));\n }\n }, { path: '*', redirectTo: { name: 'tracks' } }]\n}, {\n name: 'login',\n path: '/login',\n component: function component() {\n return __webpack_require__.e/* import() */(6).then(__webpack_require__.bind(null, \"xJsL\"));\n }\n}, {\n name: 'logout',\n path: '/ap/logout',\n beforeEnter: function beforeEnter(to, from, next) {\n return Object(__WEBPACK_IMPORTED_MODULE_3__app__[\"j\" /* logout */])().then(function () {\n return next({ name: 'main' });\n });\n }\n}, {\n name: 'player',\n path: '/:episode',\n component: function component() {\n return __webpack_require__.e/* import() */(1).then(__webpack_require__.bind(null, \"Ag/t\"));\n }\n}, {\n name: 'main',\n path: '/',\n beforeEnter: function beforeEnter(to, from, next) {\n __WEBPACK_IMPORTED_MODULE_3__app__[\"o\" /* state */].tracks.subscribe(function (tracks) {\n var latestEpisode = tracks.reduce(function (prev, curr) {\n var isLarger = curr.episode !== null && curr.episode > prev;\n return isLarger ? curr.episode : prev;\n }, -1);\n next({ name: 'player', params: { episode: latestEpisode } });\n });\n }\n}, { path: '*', redirectTo: { name: 'main' } }];\n\nvar router = new __WEBPACK_IMPORTED_MODULE_0_vue_router__[\"a\" /* default */]({\n mode: 'history',\n routes: routes\n});\n\nrouter.beforeEach(function (to, from, next) {\n __WEBPACK_IMPORTED_MODULE_1_rxjs_Observable__[\"Observable\"].combineLatest(__WEBPACK_IMPORTED_MODULE_3__app__[\"o\" /* state */].config, __WEBPACK_IMPORTED_MODULE_3__app__[\"o\" /* state */].tracks).subscribe(function (data) {\n var config = data[0];\n var tracks = data[1];\n\n if (to.name === 'player') {\n var latestTrack = tracks.filter(function (t) {\n return t.episode === parseInt(to.params.episode, 10);\n })[0];\n document.title = Object(__WEBPACK_IMPORTED_MODULE_2__utility__[\"a\" /* buildMeta */])(config.title.episode, latestTrack);\n } else {\n document.title = config.title.default;\n }\n\n next();\n });\n});\n\n/***/ }),\n\n/***/ \"dpSC\":\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_toConsumableArray__ = __webpack_require__(\"Gu7T\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_toConsumableArray___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_toConsumableArray__);\n\nvar Broadcaster = {\n listeners: {},\n on: function on(name, callback) {\n if (!Array.isArray(this.listeners[name])) {\n this.listeners[name] = [];\n }\n return this.listeners[name].push(callback) - 1;\n },\n emit: function emit(name) {\n if (Array.isArray(this.listeners[name])) {\n for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n for (var i = 0; i < this.listeners[name].length; i += 1) {\n var cb = this.listeners[name][i];\n if (cb && typeof cb === 'function') {\n cb.apply(undefined, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_toConsumableArray___default()(args));\n }\n }\n }\n }\n};\n\n/* harmony default export */ __webpack_exports__[\"a\"] = (Broadcaster);\n\n/***/ }),\n\n/***/ \"eslX\":\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"o\", function() { return state; });\n/* unused harmony export getTracks */\n/* harmony export (immutable) */ __webpack_exports__[\"a\"] = addTrack;\n/* harmony export (immutable) */ __webpack_exports__[\"p\"] = updateTrack;\n/* harmony export (immutable) */ __webpack_exports__[\"k\"] = publishTrack;\n/* harmony export (immutable) */ __webpack_exports__[\"c\"] = claimTrack;\n/* harmony export (immutable) */ __webpack_exports__[\"e\"] = deleteTrack;\n/* unused harmony export getUsers */\n/* harmony export (immutable) */ __webpack_exports__[\"b\"] = addUser;\n/* harmony export (immutable) */ __webpack_exports__[\"q\"] = updateUser;\n/* harmony export (immutable) */ __webpack_exports__[\"h\"] = getFbRedirectURL;\n/* harmony export (immutable) */ __webpack_exports__[\"f\"] = getFbAccess;\n/* harmony export (immutable) */ __webpack_exports__[\"n\"] = setFbUserAccessToken;\n/* harmony export (immutable) */ __webpack_exports__[\"m\"] = setFbPage;\n/* harmony export (immutable) */ __webpack_exports__[\"g\"] = getFbPages;\n/* harmony export (immutable) */ __webpack_exports__[\"d\"] = clearFbData;\n/* unused harmony export install */\n/* unused harmony export getConfig */\n/* harmony export (immutable) */ __webpack_exports__[\"l\"] = setConfig;\n/* harmony export (immutable) */ __webpack_exports__[\"i\"] = login;\n/* harmony export (immutable) */ __webpack_exports__[\"j\"] = logout;\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_json_stringify__ = __webpack_require__(\"mvHQ\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_json_stringify___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_json_stringify__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_rxjs_ReplaySubject__ = __webpack_require__(\"MQMf\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_rxjs_ReplaySubject___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_rxjs_ReplaySubject__);\n\n\n\nvar state = {\n user: new __WEBPACK_IMPORTED_MODULE_1_rxjs_ReplaySubject__[\"ReplaySubject\"](1),\n users: new __WEBPACK_IMPORTED_MODULE_1_rxjs_ReplaySubject__[\"ReplaySubject\"](1),\n tracks: new __WEBPACK_IMPORTED_MODULE_1_rxjs_ReplaySubject__[\"ReplaySubject\"](1),\n config: new __WEBPACK_IMPORTED_MODULE_1_rxjs_ReplaySubject__[\"ReplaySubject\"](1),\n theme: new __WEBPACK_IMPORTED_MODULE_1_rxjs_ReplaySubject__[\"ReplaySubject\"](1)\n};\n\nfunction request(method, route, body) {\n return fetch('/api/' + route, {\n headers: {\n Accept: 'application/json',\n 'Content-Type': 'application/json'\n },\n credentials: 'include',\n body: body ? __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_json_stringify___default()(body) : null,\n method: method\n }).then(function (res) {\n return res.json();\n }).then(function (res) {\n if (res.error) {\n throw new Error(res.error);\n }\n return res;\n });\n}\n\n/* tracks */\n\nfunction getTracks() {\n request('GET', 'tracks/').then(function (tracks) {\n return state.tracks.next(tracks);\n });\n}\n\nfunction addTrack(track) {\n return request('POST', 'tracks/', track).then(function (res) {\n getTracks();\n return res;\n });\n}\nfunction updateTrack(track) {\n return request('POST', 'tracks/' + track.id, track).then(function (res) {\n getTracks();\n return res;\n });\n}\nfunction publishTrack(id) {\n var message = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n\n return request('POST', 'tracks/' + id + '/publish', { message: message }).then(function (res) {\n getTracks();\n return res;\n });\n}\nfunction claimTrack(id) {\n return request('POST', 'tracks/' + id + '/claim').then(function (res) {\n getTracks();\n return res;\n });\n}\nfunction deleteTrack(id) {\n return request('DELETE', 'tracks/' + id).then(function (res) {\n getTracks();\n return res;\n });\n}\n\n/* users */\n\nfunction getUsers() {\n request('GET', 'users/').then(function (users) {\n state.users.next(users);\n });\n}\nfunction addUser(user) {\n return request('POST', 'users/', user).then(function (res) {\n getUsers();\n return res;\n });\n}\nfunction updateUser(user) {\n return request('POST', 'users/' + user.id, user).then(function (res) {\n getUsers();\n state.user.first().subscribe(function (currUser) {\n if (currUser.id === res.id) {\n state.user.next(res);\n }\n });\n return res;\n });\n}\n\n/* facebook */\n\nfunction getFbRedirectURL() {\n return request('GET', 'fb/getRedirectURL');\n}\n\nfunction getFbAccess() {\n return request('GET', 'fb/access');\n}\n\nfunction setFbUserAccessToken(userAccessToken) {\n return request('POST', 'fb/setUserAccessToken', { userAccessToken: userAccessToken });\n}\nfunction setFbPage(id, name, accessToken) {\n return request('POST', 'fb/setPage', { id: id, name: name, accessToken: accessToken });\n}\nfunction getFbPages() {\n return request('GET', 'fb/pages');\n}\nfunction clearFbData() {\n return request('DELETE', 'fb');\n}\n\n/* misc */\n\nfunction install(user) {\n return request('POST', 'install', user).then(function (res) {\n getUsers();\n return res;\n });\n}\n\nfunction getConfig() {\n return request('GET', 'config').then(function (config) {\n return state.config.next(config);\n });\n}\n\nfunction setConfig(config) {\n return request('POST', 'config', config).then(function () {\n return getConfig();\n });\n}\n\n/* authentication */\n\nfunction login(name, password, remember) {\n return request('POST', 'login', { name: name, password: password, remember: remember }).then(function (user) {\n return state.user.next(user);\n });\n}\n\nfunction logout() {\n return request('POST', 'logout').then(function () {\n return state.user.next(null);\n });\n}\n\nstate.user.subscribe(function () {\n getConfig();\n getTracks();\n});\n\nstate.users.next([]);\nstate.tracks.next([]);\n\nlogin().catch(function () {\n return state.user.next(null);\n});\ngetTracks();\ngetUsers();\ngetConfig();\n\n/***/ }),\n\n/***/ \"mQZ+\":\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('nav',{staticClass:\"nav\",class:{ 'nav_hidden': !_vm.user },attrs:{\"role\":\"navigation\"}},[_c('router-link',{staticClass:\"nav__title\",class:{ nav__title_hidden: _vm.$route.name === 'player' },attrs:{\"to\":{ name: 'main' },\"title\":\"11:30am\"}},[_vm._v(\"\\n 11:30am\\n \")]),_vm._v(\" \"),_c('router-link',{attrs:{\"to\":{ name: 'tracks' }}},[_vm._v(\"\\n Tracks\\n \")]),_vm._v(\" \"),_c('router-link',{attrs:{\"to\":{ name: 'users' }}},[_vm._v(\"\\n Users\\n \")]),_vm._v(\" \"),(_vm.user && _vm.user.role === 'admin')?_c('router-link',{attrs:{\"to\":{ name: 'config' }}},[_vm._v(\"\\n Config\\n \")]):_vm._e(),_vm._v(\" \"),_c('router-link',{attrs:{\"to\":{ name: 'logout' }}},[_vm._v(\"\\n Logout\\n \")])],1)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\n/* harmony default export */ __webpack_exports__[\"a\"] = (esExports);\n\n/***/ }),\n\n/***/ \"roIO\":\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('transition-group',{staticClass:\"toaster__wrapper\",attrs:{\"name\":\"toaster-list\",\"tag\":\"div\"}},_vm._l((_vm.messages),function(message,index){return _c('div',{key:message.id,staticClass:\"toaster\",class:_vm.toasterClass(message),on:{\"mouseenter\":function($event){_vm.stopTimeout(message)},\"mouseleave\":function($event){_vm.startTimeout(message)}}},[_c('button',{staticClass:\"toaster__close\",class:_vm.closeButtonClass(message),on:{\"click\":function($event){_vm.deleteMessage(index)}}},[_c('svg',{attrs:{\"width\":\"40\",\"height\":\"40\"}},[_c('circle',{staticClass:\"outer\",attrs:{\"cx\":\"20\",\"cy\":\"20\",\"r\":\"16\",\"transform\":\"rotate(-90, 20, 20)\"}})]),_vm._v(\" \"),_c('span',{class:_vm.iconMap[message.type]})]),_vm._v(\" \"),_c('div',{staticClass:\"toaster__message\"},[_c('h4',[_vm._v(_vm._s(message.title))]),_vm._v(\" \"),(message.text)?_c('p',[_vm._v(_vm._s(message.text))]):_vm._e()])])}))}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\n/* harmony default export */ __webpack_exports__[\"a\"] = (esExports);\n\n/***/ }),\n\n/***/ \"x8E5\":\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_LnbNav_vue__ = __webpack_require__(\"XJ0i\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_14a056b2_hasScoped_false_transformToRequire_video_src_source_src_img_src_image_xlink_href_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_LnbNav_vue__ = __webpack_require__(\"mQZ+\");\nvar normalizeComponent = __webpack_require__(\"VU/8\")\n/* script */\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_LnbNav_vue__[\"a\" /* default */],\n __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_14a056b2_hasScoped_false_transformToRequire_video_src_source_src_img_src_image_xlink_href_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_LnbNav_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/***/ \"xJD8\":\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__components_LnbNav__ = __webpack_require__(\"x8E5\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__components_Toaster__ = __webpack_require__(\"4cpB\");\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"a\"] = ({\n name: 'app',\n components: {\n LnbNav: __WEBPACK_IMPORTED_MODULE_0__components_LnbNav__[\"a\" /* default */],\n Toaster: __WEBPACK_IMPORTED_MODULE_1__components_Toaster__[\"a\" /* default */]\n },\n computed: {\n isTall: function isTall() {\n return this.$route.name === 'tracks' || this.$route.name === 'users' || this.$route.name === 'config';\n }\n },\n\n mounted: function mounted() {\n setTimeout(function () {\n return document.body.classList.add('transitions-active');\n }, 200);\n }\n});\n\n/***/ })\n\n},[\"NHnr\"]);\n\n\n// WEBPACK FOOTER //\n// static/js/app.9dc25b49152da103dd77.js","var normalizeComponent = require(\"!../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nimport __vue_script__ from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./Toaster.vue\"\n/* template */\nimport __vue_template__ from \"!!../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-6e7c3ab2\\\",\\\"hasScoped\\\":false,\\\"transformToRequire\\\":{\\\"video\\\":\\\"src\\\",\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../node_modules/vue-loader/lib/selector?type=template&index=0!./Toaster.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/Toaster.vue\n// module id = 4cpB\n// module chunks = 8","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('main',{staticClass:\"app\",class:{ 'app_tall': _vm.isTall }},[_c('toaster'),_vm._v(\" \"),_c('lnb-nav'),_vm._v(\" \"),_c('transition',{attrs:{\"enter-active-class\":\"animated fadeInDown\",\"leave-active-class\":\"animated fadeOutDown\"}},[_c('router-view')],1),_vm._v(\" \"),_c('svg',{directives:[{name:\"show\",rawName:\"v-show\",value:(false),expression:\"false\"}],attrs:{\"xmlns\":\"http://www.w3.org/2000/svg\",\"version\":\"1.1\"}},[_c('defs',[_c('filter',{attrs:{\"id\":\"blur\"}},[_c('feGaussianBlur',{attrs:{\"stdDeviation\":\"5\"}})],1)])])],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-27fcad9d\",\"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 = KM+u\n// module chunks = 8","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-27fcad9d\\\",\\\"scoped\\\":false,\\\"hasInlineConfig\\\":false}!sass-loader?{\\\"sourceMap\\\":true}!./assets/scss/global.scss\")\n}\nvar normalizeComponent = require(\"!../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\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-27fcad9d\\\",\\\"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 = 8","import Vue from 'vue';\nimport VueRouter from 'vue-router';\nimport VueYouTubeEmbed from 'vue-youtube-embed';\nimport VueRx from 'vue-rx';\nimport { Observable } from 'rxjs/Observable';\nimport { Subscription } from 'rxjs/Subscription'; // Disposable if using RxJS4\nimport { Subject } from 'rxjs/Subject'; // required for domStreams option\n\n// statics\nimport 'rxjs/add/observable/combineLatest';\nimport 'rxjs/add/observable/fromEvent';\n\n// methods\nimport 'rxjs/add/operator/map';\nimport 'rxjs/add/operator/first';\n\nimport App from './App';\nimport { router } from './router';\n\nVue.use(VueRouter);\nVue.use(VueYouTubeEmbed);\nVue.use(VueRx, {\n Observable,\n Subscription,\n Subject,\n});\n\nVue.config.productionTip = false;\n\n/* eslint-disable no-new */\nnew Vue({\n el: '#app',\n render: h => h(App),\n router,\n});\n\n\n\n// WEBPACK FOOTER //\n// ./src/main.js","export function secondsToString(totalSeconds) {\n if (totalSeconds === -1) {\n return '';\n }\n\n let minutes = `${Math.floor(totalSeconds / 60)}`;\n let seconds = `${Math.floor(totalSeconds - (minutes * 60))}`;\n if (seconds.length < 2) {\n seconds = `0${seconds}`;\n }\n if (minutes.length < 2) {\n minutes = `0${minutes}`;\n }\n return `${minutes}:${seconds}`;\n}\n\nexport function stringToSeconds(string) {\n if (string === '') {\n return -1;\n }\n\n const parts = string.split(':');\n const minutes = parseInt(parts[0], 10);\n const seconds = parseInt(parts[1], 10);\n\n return ((minutes * 60) + seconds);\n}\n\nexport function buildMeta(string, track = { artist: '', title: '', release: '', episode: -1 }) {\n return string\n .replace('$$ARTIST', track.artist)\n .replace('$$TITLE', track.title)\n .replace('$$RELEASE', track.release)\n .replace('$$EPISODE', track.episode);\n}\n\nexport function debounce(func, wait, immediate) {\n let timeout;\n return function debouncedFn(...args) {\n const context = this;\n const later = function applyDebounce() {\n timeout = null;\n if (!immediate) func.apply(context, args);\n };\n const callNow = immediate && !timeout;\n clearTimeout(timeout);\n timeout = setTimeout(later, wait);\n if (callNow) func.apply(context, args);\n };\n}\n\nexport function getSource(url) {\n if (url.indexOf('youtube') > -1 || url.indexOf('youtu.be/') > -1) {\n return 'youtube';\n } else if (url.indexOf('soundcloud.com/') > -1) {\n return 'soundcloud';\n }\n return false;\n}\n\nexport function shuffle(playlist, indexOfCurrentSong) {\n const shuffledPlaylist = JSON.parse(JSON.stringify(playlist));\n let counter = playlist.length;\n let temp;\n let index;\n\n // While there are elements in the array\n while (counter > 0) {\n // Pick a random index\n index = Math.floor(Math.random() * counter);\n\n // Decrease counter by 1\n counter -= 1;\n\n // And swap the last element with it\n temp = shuffledPlaylist[counter];\n shuffledPlaylist[counter] = shuffledPlaylist[index];\n shuffledPlaylist[index] = temp;\n }\n\n const songToAdd = shuffledPlaylist.splice(indexOfCurrentSong, 1);\n shuffledPlaylist.unshift(songToAdd[0]);\n\n return shuffledPlaylist;\n}\n\nexport function toggleFullScreen() {\n if (!document.fullscreenElement) {\n document.documentElement.requestFullscreen();\n } else if (document.exitFullscreen) {\n document.exitFullscreen();\n }\n}\n\nexport const defaultColors = {\n primary: {\n hsl: {\n h: 219.99999999999997,\n s: 0.13043478260869565,\n l: 0.1803921568627451,\n a: 1,\n },\n hex: '#282C34',\n rgba: {\n r: 40,\n g: 44,\n b: 52,\n a: 1,\n },\n hsv: {\n h: 219.99999999999997,\n s: 0.23076923076923078,\n v: 0.20392156862745098,\n a: 1,\n },\n oldHue: 219.99999999999997,\n source: 'hex',\n a: 1,\n },\n secondary: {\n hsl: {\n h: 0,\n s: 0,\n l: 1,\n a: 1,\n },\n hex: '#FFFFFF',\n rgba: {\n r: 255,\n g: 255,\n b: 255,\n a: 1,\n },\n hsv: {\n h: 0,\n s: 0,\n v: 1,\n a: 1,\n },\n oldHue: 0,\n source: 'hex',\n a: 1,\n },\n accent: {\n hsl: {\n h: 0,\n s: 0,\n l: 0,\n a: 1,\n },\n hex: '#000000',\n rgba: {\n r: 0,\n g: 0,\n b: 0,\n a: 1,\n },\n hsv: {\n h: 0,\n s: 0,\n v: 0,\n a: 1,\n },\n oldHue: 0,\n source: 'hex',\n a: 1,\n },\n};\n\n\n\n// WEBPACK FOOTER //\n// ./src/utility.js","\n\n\n\n\n// WEBPACK FOOTER //\n// src/components/Toaster.vue","\n\n\n\n\n\n// WEBPACK FOOTER //\n// src/components/LnbNav.vue","import VueRouter from 'vue-router';\nimport { Observable } from 'rxjs/Observable';\nimport { buildMeta } from './utility';\nimport { state, logout } from './app';\n\nexport function authGuard(to, from, next) {\n state.user.subscribe((user) => {\n if (user === null) {\n next({ name: 'login', params: { redirect: to.fullPath } });\n } else {\n next();\n }\n });\n}\n\nexport function usersExist(to, from, next) {\n state.users.subscribe((users) => {\n if (users.length === 0) {\n next({ name: 'install' });\n } else {\n next();\n }\n }, next({ name: 'error' }));\n}\nexport const routes = [\n {\n name: 'ap',\n path: '/ap',\n component: () => import('./components/ap/AdminPanel.vue'),\n beforeEnter: authGuard,\n redirect: '/ap/tracks',\n children: [\n {\n name: 'tracks',\n path: 'tracks',\n component: () => import('./components/ap/tracks/Index.vue'),\n },\n {\n name: 'users',\n path: 'users',\n component: () => import('./components/ap/users/Index.vue'),\n },\n {\n name: 'config',\n path: 'config',\n component: () => import('./components/ap/config/Index.vue'),\n },\n {\n name: 'fb-connect',\n path: 'config/fb-connect',\n component: () => import('./components/ap/config/FbConnect.vue'),\n },\n { path: '*', redirectTo: { name: 'tracks' } },\n ],\n },\n {\n name: 'login',\n path: '/login',\n component: () => import('./components/Login.vue'),\n },\n {\n name: 'logout',\n path: '/ap/logout',\n beforeEnter: (to, from, next) => logout().then(() => next({ name: 'main' })),\n },\n {\n name: 'player',\n path: '/:episode',\n component: () => import('./components/player/Player.vue'),\n },\n {\n name: 'main',\n path: '/',\n beforeEnter: (to, from, next) => {\n state.tracks.subscribe((tracks) => {\n const latestEpisode = tracks.reduce((prev, curr) => {\n const isLarger = curr.episode !== null && curr.episode > prev;\n return isLarger ? curr.episode : prev;\n }, -1);\n next({ name: 'player', params: { episode: latestEpisode } });\n });\n },\n },\n { path: '*', redirectTo: { name: 'main' } },\n];\n\nexport const router = new VueRouter({\n mode: 'history',\n routes,\n});\n\nrouter.beforeEach((to, from, next) => {\n Observable.combineLatest(\n state.config,\n state.tracks,\n )\n .subscribe((data) => {\n const config = data[0];\n const tracks = data[1];\n\n if (to.name === 'player') {\n const latestTrack = tracks.filter(t => t.episode === parseInt(to.params.episode, 10))[0];\n document.title = buildMeta(config.title.episode, latestTrack);\n } else {\n document.title = config.title.default;\n }\n\n next();\n });\n});\n\n\n\n// WEBPACK FOOTER //\n// ./src/router.js","const Broadcaster = {\n listeners: {},\n on(name, callback) {\n if (!Array.isArray(this.listeners[name])) {\n this.listeners[name] = [];\n }\n return (this.listeners[name].push(callback) - 1);\n },\n emit(name, ...args) {\n if (Array.isArray(this.listeners[name])) {\n for (let i = 0; i < this.listeners[name].length; i += 1) {\n const cb = this.listeners[name][i];\n if (cb && typeof cb === 'function') {\n cb(...args);\n }\n }\n }\n },\n};\n\nexport default Broadcaster;\n\n\n\n// WEBPACK FOOTER //\n// ./src/broadcast.js","import { ReplaySubject } from 'rxjs/ReplaySubject';\n\nexport const state = {\n user: new ReplaySubject(1),\n users: new ReplaySubject(1),\n tracks: new ReplaySubject(1),\n config: new ReplaySubject(1),\n theme: new ReplaySubject(1),\n};\n\nfunction request(method, route, body) {\n return fetch(`/api/${route}`, {\n headers: {\n Accept: 'application/json',\n 'Content-Type': 'application/json',\n },\n credentials: 'include',\n body: body ? JSON.stringify(body) : null,\n method,\n })\n .then(res => res.json())\n .then((res) => {\n if (res.error) {\n throw new Error(res.error);\n }\n return res;\n });\n}\n\n/* tracks */\n\nexport function getTracks() {\n request('GET', 'tracks/').then(tracks => state.tracks.next(tracks));\n}\n\nexport function addTrack(track) {\n return request('POST', 'tracks/', track)\n .then((res) => {\n getTracks();\n return res;\n });\n}\nexport function updateTrack(track) {\n return request('POST', `tracks/${track.id}`, track)\n .then((res) => {\n getTracks();\n return res;\n });\n}\nexport function publishTrack(id, message = '') {\n return request('POST', `tracks/${id}/publish`, { message })\n .then((res) => {\n getTracks();\n return res;\n });\n}\nexport function claimTrack(id) {\n return request('POST', `tracks/${id}/claim`)\n .then((res) => {\n getTracks();\n return res;\n });\n}\nexport function deleteTrack(id) {\n return request('DELETE', `tracks/${id}`)\n .then((res) => {\n getTracks();\n return res;\n });\n}\n\n/* users */\n\nexport function getUsers() {\n request('GET', 'users/')\n .then((users) => {\n state.users.next(users);\n });\n}\nexport function addUser(user) {\n return request('POST', 'users/', user)\n .then((res) => {\n getUsers();\n return res;\n });\n}\nexport function updateUser(user) {\n return request('POST', `users/${user.id}`, user)\n .then((res) => {\n getUsers();\n state.user.first().subscribe((currUser) => {\n if (currUser.id === res.id) {\n state.user.next(res);\n }\n });\n return res;\n });\n}\n\n/* facebook */\n\nexport function getFbRedirectURL() {\n return request('GET', 'fb/getRedirectURL');\n}\n\nexport function getFbAccess() {\n return request('GET', 'fb/access');\n}\n\nexport function setFbUserAccessToken(userAccessToken) {\n return request('POST', 'fb/setUserAccessToken', { userAccessToken });\n}\nexport function setFbPage(id, name, accessToken) {\n return request('POST', 'fb/setPage', { id, name, accessToken });\n}\nexport function getFbPages() {\n return request('GET', 'fb/pages');\n}\nexport function clearFbData() {\n return request('DELETE', 'fb');\n}\n\n/* misc */\n\nexport function install(user) {\n return request('POST', 'install', user)\n .then((res) => {\n getUsers();\n return res;\n });\n}\n\nexport function getConfig() {\n return request('GET', 'config')\n .then(config => state.config.next(config));\n}\n\nexport function setConfig(config) {\n return request('POST', 'config', config)\n .then(() => getConfig());\n}\n\n/* authentication */\n\nexport function login(name, password, remember) {\n return request('POST', 'login', { name, password, remember })\n .then(user => state.user.next(user));\n}\n\nexport function logout() {\n return request('POST', 'logout')\n .then(() => state.user.next(null));\n}\n\nstate.user.subscribe(() => {\n getConfig();\n getTracks();\n});\n\nstate.users.next([]);\nstate.tracks.next([]);\n\nlogin().catch(() => state.user.next(null));\ngetTracks();\ngetUsers();\ngetConfig();\n\n\n\n// WEBPACK FOOTER //\n// ./src/app.js","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('nav',{staticClass:\"nav\",class:{ 'nav_hidden': !_vm.user },attrs:{\"role\":\"navigation\"}},[_c('router-link',{staticClass:\"nav__title\",class:{ nav__title_hidden: _vm.$route.name === 'player' },attrs:{\"to\":{ name: 'main' },\"title\":\"11:30am\"}},[_vm._v(\"\\n 11:30am\\n \")]),_vm._v(\" \"),_c('router-link',{attrs:{\"to\":{ name: 'tracks' }}},[_vm._v(\"\\n Tracks\\n \")]),_vm._v(\" \"),_c('router-link',{attrs:{\"to\":{ name: 'users' }}},[_vm._v(\"\\n Users\\n \")]),_vm._v(\" \"),(_vm.user && _vm.user.role === 'admin')?_c('router-link',{attrs:{\"to\":{ name: 'config' }}},[_vm._v(\"\\n Config\\n \")]):_vm._e(),_vm._v(\" \"),_c('router-link',{attrs:{\"to\":{ name: 'logout' }}},[_vm._v(\"\\n Logout\\n \")])],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-14a056b2\",\"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/LnbNav.vue\n// module id = mQZ+\n// module chunks = 8","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition-group',{staticClass:\"toaster__wrapper\",attrs:{\"name\":\"toaster-list\",\"tag\":\"div\"}},_vm._l((_vm.messages),function(message,index){return _c('div',{key:message.id,staticClass:\"toaster\",class:_vm.toasterClass(message),on:{\"mouseenter\":function($event){_vm.stopTimeout(message)},\"mouseleave\":function($event){_vm.startTimeout(message)}}},[_c('button',{staticClass:\"toaster__close\",class:_vm.closeButtonClass(message),on:{\"click\":function($event){_vm.deleteMessage(index)}}},[_c('svg',{attrs:{\"width\":\"40\",\"height\":\"40\"}},[_c('circle',{staticClass:\"outer\",attrs:{\"cx\":\"20\",\"cy\":\"20\",\"r\":\"16\",\"transform\":\"rotate(-90, 20, 20)\"}})]),_vm._v(\" \"),_c('span',{class:_vm.iconMap[message.type]})]),_vm._v(\" \"),_c('div',{staticClass:\"toaster__message\"},[_c('h4',[_vm._v(_vm._s(message.title))]),_vm._v(\" \"),(message.text)?_c('p',[_vm._v(_vm._s(message.text))]):_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-6e7c3ab2\",\"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/Toaster.vue\n// module id = roIO\n// module chunks = 8","var normalizeComponent = require(\"!../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nimport __vue_script__ from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./LnbNav.vue\"\n/* template */\nimport __vue_template__ from \"!!../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-14a056b2\\\",\\\"hasScoped\\\":false,\\\"transformToRequire\\\":{\\\"video\\\":\\\"src\\\",\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../node_modules/vue-loader/lib/selector?type=template&index=0!./LnbNav.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/LnbNav.vue\n// module id = x8E5\n// module chunks = 8","\n\n\n\n\n\n\n\n// WEBPACK FOOTER //\n// src/App.vue"],"sourceRoot":""}