{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/overlay/App.vue?c17e","webpack:///./src/shared/js/muxy-plugin.ts","webpack:///./libs/overlay-common/store/extension-state.ts","webpack:///./src/shared/components/VoteForm.vue?a713","webpack:///./src/shared/js/store/poll.ts","webpack:///./src/overlay/App.vue?1e64","webpack:///./src/shared/components/PollForm.vue?330f","webpack:///./src/shared/components/VoteForm.vue?9ad0","webpack:///./src/shared/components/VoteForm.vue?0772","webpack:///./src/shared/components/VoteForm.vue?4643","webpack:///./src/shared/components/VoteForm.vue","webpack:///./src/shared/components/PollForm.vue?388d","webpack:///./src/shared/components/PollForm.vue?f9b8","webpack:///./src/shared/components/PollForm.vue","webpack:///./src/overlay/App.vue?5a6a","webpack:///./src/overlay/App.vue?8237","webpack:///./src/overlay/App.vue","webpack:///./src/overlay/index.ts","webpack:///./src/shared/components/PollForm.vue?395f","webpack:///./src/shared/js/globals.ts"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","installedChunks","push","Object","prototype","hasOwnProperty","call","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","overlay","exports","module","l","m","c","d","name","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","p","jsonpArray","window","oldJsonpFunction","slice","_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_App_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__","_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_App_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default","VueMuxy","Vue","options","client_id","Error","opts","_muxy_extensions_js__WEBPACK_IMPORTED_MODULE_1__","DebuggingOptions","role","environment","jwt","channel_id","channelID","user_id","userID","url","setup","clientID","ua_string","uaString","__VUE_MUXY_DEV_HOOK","debug","$muxy","ExtensionStateStore","_VuexModule","_this","_mnt_ssd1_jenkins_workspace_ext_polls_node_modules_babel_runtime_helpers_builtin_es6_classCallCheck__WEBPACK_IMPORTED_MODULE_0__","this","extension","channel","viewerExtension","viewerChannel","_mnt_ssd1_jenkins_workspace_ext_polls_node_modules_babel_runtime_helpers_builtin_es6_createClass__WEBPACK_IMPORTED_MODULE_2__","extensionState","channelState","viewerState","serverState","viewer_extension","viewer","_mnt_ssd1_jenkins_workspace_ext_polls_node_modules_babel_runtime_helpers_builtin_es6_inherits__WEBPACK_IMPORTED_MODULE_1__","vuex_module_decorators__WEBPACK_IMPORTED_MODULE_6__","tslib__WEBPACK_IMPORTED_MODULE_5__","namespaced","__webpack_exports__","_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_VoteForm_vue_vue_type_style_index_0_id_4af0c578_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__","_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_VoteForm_vue_vue_type_style_index_0_id_4af0c578_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default","PollState","Poll","_mnt_ssd1_jenkins_workspace_ext_polls_node_modules_babel_runtime_helpers_builtin_es6_classCallCheck__WEBPACK_IMPORTED_MODULE_6__","id","state","InCreation","question","winner","results","totalVotes","_mnt_ssd1_jenkins_workspace_ext_polls_node_modules_babel_runtime_helpers_builtin_es6_createClass__WEBPACK_IMPORTED_MODULE_5__","ChannelSettings","accentColor","textColor","poll","PollsStore","settings","viewerVote","maxQuestionChars","starterOptionChars","optionCharsDecrease","maxPollOptions","color","vote","chars","_saveChannelState","_mnt_ssd1_jenkins_workspace_ext_polls_node_modules_babel_runtime_helpers_builtin_es6_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__","regeneratorRuntime","mark","_callee","sdk","wrap","_context","prev","next","abrupt","setChannelState","stop","_x","arguments","_mnt_ssd1_jenkins_workspace_ext_polls_node_modules_babel_runtime_helpers_builtin_es6_inherits__WEBPACK_IMPORTED_MODULE_2__","vuex_module_decorators__WEBPACK_IMPORTED_MODULE_8__","tslib__WEBPACK_IMPORTED_MODULE_7__","Appvue_type_template_id_4fe48e74_render","_vm","_h","$createElement","_c","_self","loading","_e","staticClass","attrs","showApp","controlsVisible","on","click","$event","preventDefault","stopPropagation","toggleExtVisibility","style","fill","xmlns","viewBox","x","y","width","height","points","enter-active-class","leave-active-class","tag","backgroundColor","_v","staticRenderFns","PollFormvue_type_template_id_4efe1ba9_scoped_true_render","_s","viewerIsLoggedIn","PollFormvue_type_template_id_4efe1ba9_scoped_true_staticRenderFns","VoteFormvue_type_template_id_4af0c578_scoped_true_render","_l","opt","index","class","chosen","ResultsAvailable","pollOptionStyle","winnerStyle","percentage","VoteFormvue_type_template_id_4af0c578_scoped_true_staticRenderFns","VoteFormvue_type_script_lang_ts_VoteForm","_Vue","VoteForm","classCallCheck","showVoteId","createClass","idx","count","gridColumn","concat","sum","reduce","val","Math","round","_this2","$store","commit","catch","SDK","VotingOpen","Over","rows","gridTemplateColumns","gridTemplateRows","inherits","vue_property_decorator","tslib_es6","computed","vuex_esm","VoteFormvue_type_script_lang_ts_","components_VoteFormvue_type_script_lang_ts_","component","componentNormalizer","__file","components_VoteForm","PollFormvue_type_script_lang_ts_PollForm","PollForm","loaded","then","user","anonymous","components","PollFormvue_type_script_lang_ts_","components_PollFormvue_type_script_lang_ts_","PollForm_component","components_PollForm","Appvue_type_script_lang_ts_App","App","error","getAllState","listen","timeout","setTimeout","getVoteData","undefined","document","addEventListener","hideExtensionOnDocumentClick","removeEventListener","_this3","Twitch","ext","onContext","_ref","arePlayerControlsVisible","showExt","es6_typeof","evt","target","$el","Appvue_type_script_lang_ts_","overlay_Appvue_type_script_lang_ts_","App_component","overlay_App","vue_runtime_esm","use","muxy_plugin","globals","EXTENSION_ID","store","Store","registerModule","extension_state","render","h","$mount","_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PollForm_vue_vue_type_style_index_0_id_4efe1ba9_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__","_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PollForm_vue_vue_type_style_index_0_id_4efe1ba9_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default","g","PRODUCTION","EMBEDDED","self","top","TESTING","UA_STRING","ANALYTICS"],"mappings":"aACA,SAAAA,EAAAC,GAQA,IAPA,IAMAC,EAAAC,EANAC,EAAAH,EAAA,GACAI,EAAAJ,EAAA,GACAK,EAAAL,EAAA,GAIAM,EAAA,EAAAC,KACQD,EAAAH,EAAAK,OAAoBF,IAC5BJ,EAAAC,EAAAG,GACAG,EAAAP,IACAK,EAAAG,KAAAD,EAAAP,GAAA,IAEAO,EAAAP,GAAA,EAEA,IAAAD,KAAAG,EACAO,OAAAC,UAAAC,eAAAC,KAAAV,EAAAH,KACAc,EAAAd,GAAAG,EAAAH,IAGAe,KAAAhB,GAEA,MAAAO,EAAAC,OACAD,EAAAU,OAAAV,GAOA,OAHAW,EAAAR,KAAAS,MAAAD,EAAAb,OAGAe,IAEA,SAAAA,IAEA,IADA,IAAAC,EACAf,EAAA,EAAiBA,EAAAY,EAAAV,OAA4BF,IAAA,CAG7C,IAFA,IAAAgB,EAAAJ,EAAAZ,GACAiB,GAAA,EACAC,EAAA,EAAkBA,EAAAF,EAAAd,OAA2BgB,IAAA,CAC7C,IAAAC,EAAAH,EAAAE,GACA,IAAAf,EAAAgB,KAAAF,GAAA,GAEAA,IACAL,EAAAQ,OAAApB,IAAA,GACAe,EAAAM,IAAAC,EAAAN,EAAA,KAGA,OAAAD,EAIA,IAAAQ,KAKApB,GACAqB,QAAA,GAGAZ,KAGA,SAAAS,EAAA1B,GAGA,GAAA4B,EAAA5B,GACA,OAAA4B,EAAA5B,GAAA8B,QAGA,IAAAC,EAAAH,EAAA5B,IACAK,EAAAL,EACAgC,GAAA,EACAF,YAUA,O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MACdY,OAAO,2CCxBV,IAAAC,EAAArQ,EAAA,QAAAsQ,EAAAtQ,EAAA2B,EAAA0O,GAAyjBC,EAAG,mDCiBtjBC,GACJC,YAAY,EACZC,SAAUzO,OAAO0O,OAAS1O,OAAO2O,IACjCd,aAAc,iCACde,SAAS,EACTC,UAAW,gBACXC,UAAW,QAGE9L,EAAA","file":"js/overlay.96f5597e.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t\"overlay\": 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \tvar jsonpArray = window[\"webpackJsonp\"] = window[\"webpackJsonp\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// add entry module to deferred list\n \tdeferredModules.push([16,\"chunk-vendors\"]);\n \t// run deferred modules when ready\n \treturn checkDeferredModules();\n","import mod from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../node_modules/css-loader/index.js??ref--8-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/lib/index.js??ref--8-oneOf-1-2!../../node_modules/sass-loader/lib/loader.js??ref--8-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../node_modules/css-loader/index.js??ref--8-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/lib/index.js??ref--8-oneOf-1-2!../../node_modules/sass-loader/lib/loader.js??ref--8-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=style&index=0&lang=scss&\"","import Muxy, { SetupOptions } from '@muxy/extensions-js';\nimport { DebuggingOptions } from '@muxy/extensions-js/dist/types/src/debug';\n\nimport _Vue from 'vue';\n\nexport class VueMuxyOptions {\n // tslint:disable:variable-name\n public channel_id?: string;\n public environment?: string;\n public client_id!: string;\n public jwt?: string;\n public role?: string;\n public ua_string?: string;\n public user_id?: string;\n public url?: string;\n // tslint:enable:variable-name\n}\n\nexport default function VueMuxy(\n Vue: typeof _Vue,\n options: VueMuxyOptions\n): void {\n if (!options.client_id) {\n throw new Error('Must specify extension id when using the Muxy Vue plugin');\n }\n\n const opts = new Muxy.DebuggingOptions();\n opts.role(options.role || 'viewer');\n\n if (options.environment) {\n opts.environment(options.environment);\n }\n\n if (options.jwt) {\n opts.jwt(options.jwt);\n }\n\n if (options.channel_id) {\n opts.channelID(options.channel_id);\n }\n\n if (options.user_id) {\n opts.userID(options.user_id);\n }\n\n if (options.url) {\n opts.url(options.url);\n }\n\n const setup: SetupOptions = {\n clientID: options.client_id\n };\n\n if (options.ua_string) {\n setup.uaString = options.ua_string;\n }\n\n if (window.__VUE_MUXY_DEV_HOOK) {\n window.__VUE_MUXY_DEV_HOOK(Muxy, opts, setup);\n } else {\n Muxy.debug(opts);\n Muxy.setup(setup);\n }\n\n Vue.prototype.$muxy = Muxy;\n}\n\ndeclare module 'vue/types/vue' {\n interface Vue {\n $muxy: typeof Muxy;\n }\n}\n\ndeclare global {\n interface Window {\n __VUE_MUXY_DEV_HOOK: (\n muxy: typeof Muxy,\n debug: DebuggingOptions,\n setup: SetupOptions\n ) => {};\n }\n}\n","import { Module, Mutation, VuexModule } from 'vuex-module-decorators';\n\nexport interface ServerExtensionState {\n extension?: object;\n channel?: object;\n viewer_extension?: object;\n viewer?: object;\n}\n\n@Module({ namespaced: true, name: 'extension_state' })\nexport default class ExtensionStateStore extends VuexModule {\n public extension: object = {};\n public channel: object = {};\n public viewerExtension: object = {};\n public viewerChannel: object = {};\n\n @Mutation\n public setExtensionState(extensionState: object) {\n this.extension = extensionState;\n }\n\n @Mutation\n public setChannelState(channelState: object) {\n this.channel = channelState;\n }\n\n @Mutation\n public setViewerExtensionState(viewerState: object) {\n this.viewerExtension = viewerState;\n }\n\n @Mutation\n public setViewerChannelState(viewerState: object) {\n this.viewerChannel = viewerState;\n }\n\n @Mutation\n public setAllState(serverState: ServerExtensionState) {\n this.extension = serverState.extension || {};\n this.channel = serverState.channel || {};\n this.viewerExtension = serverState.viewer_extension || {};\n this.viewerChannel = serverState.viewer || {};\n }\n}\n","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/lib/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/lib/loader.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VoteForm.vue?vue&type=style&index=0&id=4af0c578&lang=scss&scoped=true&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/lib/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/lib/loader.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VoteForm.vue?vue&type=style&index=0&id=4af0c578&lang=scss&scoped=true&\"","import { Action, Module, Mutation, VuexModule } from 'vuex-module-decorators';\n\nexport enum PollState {\n InCreation,\n VotingOpen,\n VotingClosed,\n ResultsAvailable,\n Over\n}\n\nexport class PollOption {\n public name: string = '';\n}\n\nexport class Poll {\n public id: string = '';\n public state: PollState = PollState.InCreation;\n public question: string = '';\n public winner: number | null = null;\n public options: PollOption[] = [];\n public results: number[] = [];\n public totalVotes: number = 0;\n\n public empty() {\n this.id = '';\n this.state = PollState.InCreation;\n this.question = '';\n this.winner = null;\n this.options = [];\n }\n}\n\nexport class ChannelSettings {\n public accentColor: string = '#6441a4';\n public textColor: string = '#ffffff';\n public poll: Poll | null = null;\n}\n\n@Module({ namespaced: true, name: 'polls' })\nexport default class PollsStore extends VuexModule {\n public settings: ChannelSettings = new ChannelSettings();\n public viewerVote: number | null = null;\n\n // Controls for live poll creation UI.\n public maxQuestionChars: number = 80;\n public starterOptionChars: number = 80;\n public optionCharsDecrease: number = 5;\n public maxPollOptions: number = 6;\n\n @Mutation\n public setPoll(poll: Poll) {\n this.settings.poll = poll;\n }\n\n @Mutation\n public setAccentColor(color: string) {\n this.settings.accentColor = color;\n }\n\n @Mutation\n public setTextColor(color: string) {\n this.settings.textColor = color;\n }\n\n @Mutation\n public setChannelState(settings: ChannelSettings) {\n if (settings.accentColor) {\n this.settings.accentColor = settings.accentColor;\n }\n if (settings.textColor) {\n this.settings.textColor = settings.textColor;\n }\n\n this.settings.poll = settings.poll;\n }\n\n @Mutation\n public setViewerVote(vote: number | null) {\n this.viewerVote = vote;\n }\n\n @Mutation\n public clearViewerVote() {\n this.viewerVote = null;\n }\n\n @Mutation\n public setMaxQuestionChars(chars: number) {\n this.maxQuestionChars = chars;\n }\n\n @Mutation\n public setStarterOptionChars(chars: number) {\n this.starterOptionChars = chars;\n }\n\n @Mutation\n public setOptionCharsDecrease(chars: number) {\n this.optionCharsDecrease = chars;\n }\n\n @Mutation\n public setMaxPollOptions(options: number) {\n this.maxPollOptions = options;\n }\n\n @Action\n public async saveChannelState(sdk: any) {\n // NOTE: According to the vuex-module-decorators docs, `this` should refer to the PollsStore\n // object. However `Actions` at runtime seem to be bound to the namespaced store object\n // instead. So we have to access state variables at `this.state.`.\n return sdk.setChannelState((this.state as any).settings);\n }\n}\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (!_vm.loading)?_c('div',{staticClass:\"overlay\"},[_c('div',{staticClass:\"extension\"},[_c('transition',{attrs:{\"name\":\"fade\"}},[(_vm.showApp || _vm.controlsVisible)?[_c('div',{staticClass:\"launcher\",on:{\"click\":function($event){$event.preventDefault();$event.stopPropagation();return _vm.toggleExtVisibility($event)}}},[_c('svg',{style:({ fill: _vm.textColor }),attrs:{\"xmlns\":\"http://www.w3.org/2000/svg\",\"viewBox\":\"0 0 720 720\"}},[_c('rect',{style:({ fill: _vm.accentColor }),attrs:{\"x\":\"0\",\"y\":\"0\",\"width\":\"720\",\"height\":\"720\"}}),_c('path',{attrs:{\"d\":\"M720,720H0V0H720ZM20,699H699V20H20Z\"}}),_c('path',{attrs:{\"d\":\"M225,213H96V83H225Zm-109-20h88v-88H116Z\"}}),_c('path',{attrs:{\"d\":\"M225,411H96V282H225Zm-109-20h88v-88H116Z\"}}),_c('path',{attrs:{\"d\":\"M225,610H96V481H225ZM116,590h88v-88H116Z\"}}),_c('rect',{attrs:{\"x\":\"268\",\"y\":\"108\",\"width\":\"355\",\"height\":\"28\"}}),_c('rect',{attrs:{\"x\":\"268\",\"y\":\"159\",\"width\":\"177\",\"height\":\"28\"}}),_c('rect',{attrs:{\"x\":\"268\",\"y\":\"506\",\"width\":\"237\",\"height\":\"28\"}}),_c('rect',{attrs:{\"x\":\"268\",\"y\":\"556\",\"width\":\"278\",\"height\":\"28\"}}),_c('rect',{attrs:{\"x\":\"268\",\"y\":\"332\",\"width\":\"272\",\"height\":\"28\"}}),_c('polygon',{attrs:{\"points\":\"161 384 120 330 137 317 161 350 230 262 246 274 161 384\"}})])])]:_vm._e()],2),_c('transition-group',{staticClass:\"content\",attrs:{\"enter-active-class\":\"slideInLeft\",\"leave-active-class\":\"slideOutLeft\",\"tag\":\"div\",\"mode\":\"out-in\"}},[(_vm.showApp)?[_c('div',{key:\"expand\",staticClass:\"expand-screen\",style:({ backgroundColor: _vm.accentColor, color: _vm.textColor })},[_vm._v(\"\\n Please expand your player size to use the polling extension.\\n \")]),(_vm.pollIsReady)?_c('PollForm',{key:\"poll\"}):_c('div',{key:\"no-poll\",staticClass:\"no-poll\",style:({ backgroundColor: _vm.accentColor })},[_c('svg',{attrs:{\"width\":\"63\",\"height\":\"120\",\"viewBox\":\"0 0 63 120\",\"fill\":_vm.textColor,\"xmlns\":\"http://www.w3.org/2000/svg\"}},[_c('rect',{style:({ fill: _vm.accentColor }),attrs:{\"x\":\"0\",\"y\":\"0\",\"width\":\"63\",\"height\":\"120\"}}),_c('path',{attrs:{\"d\":\"M7 98L8 97C9 95 10 94 12 93L41 80L26 73C24 72 23 70 25 68L26 65C28 62 29 62 32 63L59 76C62 77 62 79 61 82L60 83C60 85 58 86 57 87L28 99L46 108C48 109 49 111 48 113L46 117C45 119 43 120 40 119L9 104C7 102 6 100 7 98Z\"}}),_c('path',{attrs:{\"d\":\"M2 55L2 54C1 53 2 52 2 51L14 33L3 34C2 34 1 33 0 32L0 29C0 27 1 26 3 26L23 24C25 23 26 24 26 26L26 27C27 28 26 29 26 31L14 48L27 47C29 47 30 47 30 49L30 52C31 54 30 55 28 55L5 58C3 58 2 57 2 55Z\"}}),_c('path',{attrs:{\"d\":\"M41 23L41 22C40 21 40 21 41 20L43 8L38 11C37 11 36 11 35 10L35 9C34 8 34 7 35 6L46 1C47 0 48 0 48 1L49 2C49 2 49 3 49 4L46 16L53 12C54 12 55 12 56 13L56 15C57 15 57 16 56 17L43 23C42 24 42 24 41 23Z\"}})]),_c('h5',{style:({ color: _vm.textColor })},[_vm._v(\"no live polls\")])])]:_vm._e()],2)],1)]):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"poll\"},[_c('div',{staticClass:\"question\",style:({\n backgroundColor: _vm.accentColor,\n color: _vm.textColor\n })},[_vm._v(\"\\n \"+_vm._s(_vm.poll.question)+\"\\n \")]),(!_vm.viewerIsLoggedIn)?_c('div',{staticClass:\"unauthed\"},[_vm._v(\"\\n You must log in to Twitch to participate in polls.\\n \")]):_c('VoteForm')],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"vote-form\",style:(_vm.pollRows)},[_vm._l((_vm.poll.options),function(opt,index){return [_c('div',{key:opt.id,staticClass:\"option\",class:{\n chosen: _vm.poll.state <= _vm.PollState.ResultsAvailable && _vm.viewerVote === index,\n results: _vm.poll.state === _vm.PollState.ResultsAvailable,\n winner: _vm.poll.state === _vm.PollState.ResultsAvailable && _vm.poll.winner === index\n },style:(_vm.pollOptionStyle(_vm.poll.winner, index, _vm.poll.options.length)),on:{\"click\":function($event){_vm.vote(index)}}},[_c('span',{staticClass:\"name\"},[_vm._v(_vm._s(opt.name))]),(_vm.poll.state === _vm.PollState.ResultsAvailable && _vm.poll.results.length >= index)?_c('span',{staticClass:\"percentage\",style:(_vm.winnerStyle(_vm.poll.winner, index))},[_c('span',{staticClass:\"amount\"},[_vm._v(_vm._s(_vm.percentage(index)))])]):_vm._e(),_c('div',{staticClass:\"selection-indicator\",style:({ backgroundColor: _vm.accentColor })},[_vm._v(\" \")])])]})],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { ChannelSettings, Poll, PollState } from 'shared/js/store/poll';\nimport { Component, Vue } from 'vue-property-decorator';\nimport { mapState } from 'vuex';\n\n@Component({\n computed: mapState('polls', ['settings', 'viewerVote'])\n})\nexport default class VoteForm extends Vue {\n public loading: boolean = true;\n public sdk: any = null;\n public settings!: ChannelSettings;\n public viewerVote!: number | null;\n\n public showVoteId: number | null = null;\n\n public PollState: any = PollState;\n\n public get accentColor(): string {\n return this.settings.accentColor;\n }\n\n public get textColor(): string {\n return this.settings.textColor;\n }\n\n public get poll(): Poll | null {\n return this.settings.poll;\n }\n\n public get pollIsReady(): boolean {\n if (!this.poll) {\n return false;\n }\n\n return (\n this.poll.state >= PollState.VotingOpen &&\n this.poll.state < PollState.Over\n );\n }\n\n public get pollRows(): object {\n if (!this.poll) {\n return {};\n }\n\n const rows = this.poll.options.length <= 3 ? '1' : '2';\n return {\n gridTemplateColumns: 'repeat(6, 1fr)',\n gridTemplateRows: `repeat(${rows}, 1fr)`\n };\n }\n\n public pollOptionStyle(winner: number, idx: number, count: number): object {\n const style: { [key: string]: any } = {};\n\n if (!this.poll) {\n return style;\n }\n\n if (this.poll.state >= PollState.ResultsAvailable && winner === idx) {\n style.backgroundColor = this.accentColor;\n style.color = this.textColor;\n }\n\n if (idx < 3) {\n // The first three options always span 2 elements unless there are only 2 total optins.\n style.gridColumn = `span ${count === 2 ? '3' : '2'}`;\n } else {\n // There's probably a better way to codify these rules for the second line of options:\n // 4 options: | | |----|----| | |\n // 5 options: | |----|----|++++|++++| |\n // 6 options: |----|----|++++|++++|^^^^|^^^^|\n switch (count) {\n case 4:\n style.gridColumn = '3 / span 2';\n break;\n\n case 5:\n if (idx === 3) {\n style.gridColumn = '2 / span 2';\n } else if (idx === 4) {\n style.gridColumn = '4 / span 2';\n }\n break;\n\n case 6:\n style.gridColumn = 'span 2';\n break;\n\n default:\n break;\n }\n }\n\n return style;\n }\n\n public winnerStyle(winner: number, idx: number): object {\n const style: { [key: string]: any } = {};\n\n if (!this.poll) {\n return style;\n }\n\n if (this.poll.state >= PollState.ResultsAvailable && winner === idx) {\n style.backgroundColor = this.accentColor;\n style.color = this.textColor;\n }\n\n return style;\n }\n\n public percentage(idx: number): string {\n if (\n !this.poll ||\n this.poll.state !== PollState.ResultsAvailable ||\n this.poll.options.length <= idx ||\n this.poll.results.length <= idx\n ) {\n return '';\n }\n\n const sum = this.poll.results.reduce((s, val) => s + val, 0);\n if (sum === 0) {\n return '0%';\n }\n\n return `${Math.round((this.poll.results[idx] / sum) * 100)}%`;\n }\n\n public vote(idx: number) {\n if (!this.poll) {\n return;\n }\n\n if (this.viewerVote === idx || this.poll.state >= PollState.ResultsAvailable) {\n return;\n }\n\n this.$store.commit('polls/setViewerVote', idx);\n this.sdk.vote(this.poll.id, idx).catch(() => {\n this.$store.commit('polls/clearViewerVote');\n });\n }\n\n public created() {\n this.sdk = new this.$muxy.SDK();\n }\n}\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--13-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VoteForm.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--13-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VoteForm.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./VoteForm.vue?vue&type=template&id=4af0c578&scoped=true&\"\nimport script from \"./VoteForm.vue?vue&type=script&lang=ts&\"\nexport * from \"./VoteForm.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./VoteForm.vue?vue&type=style&index=0&id=4af0c578&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"4af0c578\",\n null\n \n)\n\ncomponent.options.__file = \"VoteForm.vue\"\nexport default component.exports","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { ChannelSettings, Poll, PollState } from 'shared/js/store/poll';\nimport { Component, Vue } from 'vue-property-decorator';\nimport { mapState } from 'vuex';\n\nimport VoteForm from './VoteForm.vue';\n\n@Component({\n components: { VoteForm },\n computed: mapState('polls', ['settings'])\n})\nexport default class PollForm extends Vue {\n public settings!: ChannelSettings;\n public sdk: any;\n public viewerIsLoggedIn: boolean = false;\n\n public PollState: any = PollState;\n\n public get accentColor(): string {\n return this.settings.accentColor;\n }\n\n public get textColor(): string {\n return this.settings.textColor;\n }\n\n public get poll(): Poll | null {\n return this.settings.poll;\n }\n\n public get pollIsReady(): boolean {\n if (!this.poll) {\n return false;\n }\n\n return (\n this.poll.state >= PollState.VotingOpen &&\n this.poll.state < PollState.Over\n );\n }\n\n public created() {\n this.sdk = new this.$muxy.SDK();\n this.sdk.loaded().then(() => {\n this.viewerIsLoggedIn = !this.sdk.user.anonymous();\n });\n }\n}\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--13-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PollForm.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--13-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PollForm.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./PollForm.vue?vue&type=template&id=4efe1ba9&scoped=true&\"\nimport script from \"./PollForm.vue?vue&type=script&lang=ts&\"\nexport * from \"./PollForm.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./PollForm.vue?vue&type=style&index=0&id=4efe1ba9&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"4efe1ba9\",\n null\n \n)\n\ncomponent.options.__file = \"PollForm.vue\"\nexport default component.exports","\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\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Vue } from 'vue-property-decorator';\nimport { mapState } from 'vuex';\n\nimport PollForm from 'shared/components/PollForm.vue';\n\nimport { ChannelSettings, Poll, PollState } from 'shared/js/store/poll';\n\n@Component({\n components: { PollForm },\n computed: mapState('polls', ['settings'])\n})\nexport default class App extends Vue {\n public get accentColor(): string {\n return this.settings.accentColor;\n }\n\n public get textColor(): string {\n return this.settings.textColor;\n }\n\n public get poll(): Poll | null {\n return this.settings.poll;\n }\n\n public get pollIsReady(): boolean {\n if (!this.poll) {\n return false;\n }\n\n return this.poll.state >= PollState.VotingOpen && this.poll.state < PollState.Over;\n }\n\n public loading: boolean = true;\n public error: string | null = null;\n public sdk: any = null;\n\n public showApp: boolean = false;\n public controlsVisible: boolean = true;\n\n public settings!: ChannelSettings;\n public PollState: any = PollState;\n\n public created() {\n this.sdk = new this.$muxy.SDK();\n this.sdk\n .loaded()\n .then(() => this.sdk.getAllState())\n .then(state => {\n if (state.channel) {\n this.$store.commit('polls/setChannelState', state.channel);\n }\n\n this.sdk.listen('poll-start', poll => {\n // If we are currently showing the app, we wait 1 second\n // for the app to hide before setting the poll and showing it.\n let timeout = 0;\n if (this.showApp) {\n timeout = 1000;\n }\n this.showApp = false;\n\n setTimeout(() => {\n this.$store.commit('polls/clearViewerVote');\n this.$store.commit('polls/setPoll', poll);\n this.showApp = true;\n }, timeout);\n });\n\n this.sdk.listen('poll-close', poll => {\n this.$store.commit('polls/setPoll', poll);\n this.showApp = true;\n });\n\n this.sdk.listen('poll-end', poll => {\n this.showApp = false;\n this.$store.commit('polls/setPoll', poll);\n });\n\n this.sdk.listen('settings-changed', settings => {\n this.$store.commit('polls/setAccentColor', settings.accentColor);\n this.$store.commit('polls/setTextColor', settings.textColor);\n });\n\n if (this.poll) {\n this.sdk.getVoteData(this.poll.id).then(data => {\n if (data.vote !== undefined) {\n this.$store.commit('polls/setViewerVote', data.vote);\n } else if (this.poll && this.poll.state === PollState.VotingOpen) {\n this.showApp = true;\n }\n this.loading = false;\n });\n } else {\n this.loading = false;\n }\n })\n .then(() => {\n this.loading = false;\n });\n\n document.addEventListener('click', this.hideExtensionOnDocumentClick);\n }\n\n public destroyed() {\n document.removeEventListener('click', this.hideExtensionOnDocumentClick);\n }\n\n public mounted() {\n window.Twitch.ext.onContext(({ arePlayerControlsVisible }) => {\n this.controlsVisible = arePlayerControlsVisible;\n });\n }\n\n public toggleExtVisibility(showExt?: boolean) {\n this.showApp = typeof(showExt) === typeof(true) ? !!showExt : !this.showApp;\n }\n\n public hideExtensionOnDocumentClick(evt: MouseEvent) {\n if (evt.target === this.$el) {\n this.toggleExtVisibility(false);\n }\n }\n}\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--13-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--13-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./App.vue?vue&type=template&id=4fe48e74&\"\nimport script from \"./App.vue?vue&type=script&lang=ts&\"\nexport * from \"./App.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./App.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\ncomponent.options.__file = \"App.vue\"\nexport default component.exports","import Vue from 'vue';\nimport Vuex from 'vuex';\n\nimport globals from 'globals';\n\nimport ExtensionStateStore from 'common/store/extension-state';\nimport VueMuxy from 'shared/js/muxy-plugin';\n\nimport PollsStore from 'shared/js/store/poll';\n\nimport App from './App.vue';\n\nVue.use(VueMuxy, {\n client_id: globals.EXTENSION_ID\n});\n\nVue.use(Vuex);\nconst store = new Vuex.Store({});\nstore.registerModule('extension_state', ExtensionStateStore);\nstore.registerModule('polls', PollsStore);\n\nnew Vue({\n store,\n render: h => h(App)\n}).$mount('#app');\n","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/lib/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/lib/loader.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PollForm.vue?vue&type=style&index=0&id=4efe1ba9&lang=scss&scoped=true&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/lib/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/lib/loader.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PollForm.vue?vue&type=style&index=0&id=4efe1ba9&lang=scss&scoped=true&\"","declare var GLOBAL_EXTENSION_ID: string;\ndeclare var GLOBAL_PRODUCTION: boolean;\ndeclare var GLOBAL_TESTING: boolean;\ndeclare var GLOBAL_UA_STRING: boolean;\ndeclare var GLOBAL_ANALYTICS: boolean;\n\n// This module maps globals injected by Webpack (or from other sources)\n// to an accessible module usable by our code.\nexport class Globals {\n public EXTENSION_ID!: string;\n public EMBEDDED!: boolean;\n public PRODUCTION!: boolean;\n public TESTING!: boolean;\n public UA_STRING!: boolean;\n public ANALYTICS!: boolean;\n}\n\nconst g: Globals = {\n PRODUCTION: GLOBAL_PRODUCTION,\n EMBEDDED: window.self !== window.top,\n EXTENSION_ID: GLOBAL_EXTENSION_ID,\n TESTING: GLOBAL_TESTING,\n UA_STRING: GLOBAL_UA_STRING,\n ANALYTICS: GLOBAL_ANALYTICS\n};\n\nexport default g;\n"],"sourceRoot":""}