mirror of https://github.com/bra1n/townsquare.git
1 line
260 KiB
Plaintext
1 line
260 KiB
Plaintext
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/assets/icons/washerwoman.png","webpack:///./src/assets/icons/barista.png","webpack:///./src/assets/icons/cerenovus.png","webpack:///./src/assets/icons/amnesiac.png","webpack:///./src/components/Vote.vue?57d6","webpack:///./src/assets/icons/shabaloth.png","webpack:///./src/assets/icons/lunatic.png","webpack:///./src/assets/icons/oracle.png","webpack:///./src/assets/icons/ravenkeeper.png","webpack:///./src/assets/icons/undertaker.png","webpack:///./src/assets/icons/chambermaid.png","webpack:///./src/assets/icons/plus.png","webpack:///./src/assets/icons/recluse.png","webpack:///./src/assets/icons/mutant.png","webpack:///./src/components/Screenshot.vue?8b06","webpack:///./src/store/socket.js","webpack:///./src/assets/icons/chef.png","webpack:///./src/assets/icons/zombuul.png","webpack:///./src/assets/icons/sailor.png","webpack:///./src/assets/icons/widow.png","webpack:///./src/assets/icons/bonecollector.png","webpack:///./src/assets/icons/baron.png","webpack:///./src/assets/icons/bureaucrat.png","webpack:///./src/assets/icons/leviathan.png","webpack:///./src/assets/icons/artist.png","webpack:///./src/assets/icons/sage.png","webpack:///./src/assets/icons/scapegoat.png","webpack:///./src/assets/icons/philosopher.png","webpack:///./src/components/TownSquare.vue?b88a","webpack:///./src/components/modals/ReferenceModal.vue?9dc2","webpack:///./src/assets/icons/butcher.png","webpack:///./src/assets/icons/towncrier.png","webpack:///./src/assets/icons/vortox.png","webpack:///./src/assets/icons/deviant.png","webpack:///./src/assets/icons/imp.png","webpack:///./src/assets/icons/moonchild.png","webpack:///./src/components/Gradients.vue?8fc3","webpack:///./src/assets/icons/snakecharmer.png","webpack:///./src/assets/icons/fortuneteller.png","webpack:///./src/assets/icons/fool.png","webpack:///./src/assets/icons/apprentice.png","webpack:///./src/assets/icons/librarian.png","webpack:///./src/assets/icons/soldier.png","webpack:///./src/components/Intro.vue?e756","webpack:///./src/assets/icons/minstrel.png","webpack:///./src/assets/icons/exorcist.png","webpack:///./src/assets/icons/harlot.png","webpack:///./src/assets/icons/goon.png","webpack:///./src/App.vue?5940","webpack:///./src/components/TownSquare.vue?1d0e","webpack:///./src/components/Player.vue?e426","webpack:///./src/components/Token.vue?02aa","webpack:///src/components/Token.vue","webpack:///./src/components/Token.vue?ca97","webpack:///./src/components/Token.vue","webpack:///src/components/Player.vue","webpack:///./src/components/Player.vue?1369","webpack:///./src/components/Player.vue","webpack:///./src/components/modals/ReminderModal.vue?00b2","webpack:///./src/components/modals/Modal.vue?b4db","webpack:///src/components/modals/Modal.vue","webpack:///./src/components/modals/Modal.vue?a5e5","webpack:///./src/components/modals/Modal.vue","webpack:///src/components/modals/ReminderModal.vue","webpack:///./src/components/modals/ReminderModal.vue?c533","webpack:///./src/components/modals/ReminderModal.vue","webpack:///./src/components/modals/RoleModal.vue?bbbe","webpack:///src/components/modals/RoleModal.vue","webpack:///./src/components/modals/RoleModal.vue?15f8","webpack:///./src/components/modals/RoleModal.vue","webpack:///src/components/TownSquare.vue","webpack:///./src/components/TownSquare.vue?335a","webpack:///./src/components/TownSquare.vue","webpack:///./src/components/TownInfo.vue?8daa","webpack:///src/components/TownInfo.vue","webpack:///./src/components/TownInfo.vue?6260","webpack:///./src/components/TownInfo.vue","webpack:///./src/components/Menu.vue?5e04","webpack:///./src/components/Screenshot.vue?9d27","webpack:///src/components/Screenshot.vue","webpack:///./src/components/Screenshot.vue?82cf","webpack:///./src/components/Screenshot.vue","webpack:///src/components/Menu.vue","webpack:///./src/components/Menu.vue?9842","webpack:///./src/components/Menu.vue","webpack:///./src/components/modals/RolesModal.vue?d2e5","webpack:///src/components/modals/RolesModal.vue","webpack:///./src/components/modals/RolesModal.vue?b003","webpack:///./src/components/modals/RolesModal.vue","webpack:///./src/components/modals/EditionModal.vue?7fa0","webpack:///src/components/modals/EditionModal.vue","webpack:///./src/components/modals/EditionModal.vue?d6f4","webpack:///./src/components/modals/EditionModal.vue","webpack:///./src/components/Intro.vue?f830","webpack:///src/components/Intro.vue","webpack:///./src/components/Intro.vue?a380","webpack:///./src/components/Intro.vue","webpack:///./src/components/modals/ReferenceModal.vue?de62","webpack:///src/components/modals/ReferenceModal.vue","webpack:///./src/components/modals/ReferenceModal.vue?c23b","webpack:///./src/components/modals/ReferenceModal.vue","webpack:///./src/components/Vote.vue?f718","webpack:///src/components/Vote.vue","webpack:///./src/components/Vote.vue?2a1c","webpack:///./src/components/Vote.vue","webpack:///./src/components/Gradients.vue?a942","webpack:///src/components/Gradients.vue","webpack:///./src/components/Gradients.vue?d8ff","webpack:///./src/components/Gradients.vue","webpack:///src/App.vue","webpack:///./src/App.vue?b65f","webpack:///./src/App.vue","webpack:///./src/store/modules/players.js","webpack:///./src/store/modules/session.js","webpack:///./src/store/index.js","webpack:///./src/main.js","webpack:///./src/components/modals/EditionModal.vue?ba51","webpack:///./src/assets/icons/cannibal.png","webpack:///./src/App.vue?6ee5","webpack:///./src/assets/icons/goblin.png","webpack:///./src/assets/icons/x.png","webpack:///./src/assets/icons sync ^\\.\\/.*\\.png$","webpack:///./src/assets/icons/butler.png","webpack:///./src/assets/icons/juggler.png","webpack:///./src/assets/icons/balloonist.png","webpack:///./src/assets/icons/innkeeper.png","webpack:///./src/assets/icons/good.png","webpack:///./src/assets/icons/flowergirl.png","webpack:///./src/assets/icons/monk.png","webpack:///./src/assets/icons/nodashii.png","webpack:///./src/assets/icons/saint.png","webpack:///./src/assets/icons/fanggu.png","webpack:///./src/components/modals/ReminderModal.vue?effe","webpack:///./src/assets/icons/dreamer.png","webpack:///./src/components/Player.vue?6d3c","webpack:///./src/components/modals/RolesModal.vue?d184","webpack:///./src/assets/icons/pithag.png","webpack:///./src/assets/icons/bishop.png","webpack:///./src/components/modals/Modal.vue?3563","webpack:///./src/assets/icons/mathematician.png","webpack:///./src/assets/icons/assassin.png","webpack:///./src/assets/icons/godfather.png","webpack:///./src/assets/icons/thief.png","webpack:///./src/assets/icons/tinker.png","webpack:///./src/assets/icons/pukka.png","webpack:///./src/assets/icons/voudon.png","webpack:///./src/assets/icons/seamstress.png","webpack:///./src/assets/icons/klutz.png","webpack:///./src/assets/icons/matron.png","webpack:///./src/components/TownInfo.vue?f155","webpack:///./src/assets/icons/mayor.png","webpack:///./src/assets/icons/professor.png","webpack:///./src/assets/icons/investigator.png","webpack:///./src/assets/icons/tealady.png","webpack:///./src/assets/icons/empath.png","webpack:///./src/assets/icons/evil.png","webpack:///./src/assets/icons/fisherman.png","webpack:///./src/assets/icons/po.png","webpack:///./src/assets/icons/grandmother.png","webpack:///./src/assets/icons/gossip.png","webpack:///./src/assets/icons/devilsadvocate.png","webpack:///./src/assets/icons/beggar.png","webpack:///./src/components/Token.vue?ab2f","webpack:///./src/assets/icons/slayer.png","webpack:///./src/assets/icons/savant.png","webpack:///./src/assets/icons/drunk.png","webpack:///./src/assets/icons/gambler.png","webpack:///./src/store/persistence.js","webpack:///./src/assets/icons/eviltwin.png","webpack:///./src/assets/icons/spy.png","webpack:///./src/assets/icons/courtier.png","webpack:///./src/components/modals/RoleModal.vue?3ac5","webpack:///./src/assets/icons/gunslinger.png","webpack:///./src/assets/icons/virgin.png","webpack:///./src/assets/icons/judge.png","webpack:///./src/assets/icons/sweetheart.png","webpack:///./src/assets/icons/poisoner.png","webpack:///./src/assets/icons/scarletwoman.png","webpack:///./src/assets/icons/vigormortis.png","webpack:///./src/assets/icons/witch.png","webpack:///./src/assets/icons/mastermind.png","webpack:///./src/assets/icons/clockmaker.png","webpack:///./src/assets/icons/barber.png","webpack:///./src/assets/icons/custom.png","webpack:///./src/components/Menu.vue?9d13","webpack:///./src/assets/icons/pacifist.png"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","Object","prototype","hasOwnProperty","call","installedChunks","push","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","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","LiveSession","store","this","_wss","_socket","_isSpectator","_gamestate","_store","_pingInterval","_pingTimer","_players","state","session","sessionId","connect","channel","disconnect","WebSocket","addEventListener","_handleMessage","onopen","_onOpen","onclose","commit","clearInterval","command","params","readyState","send","JSON","stringify","_send","sendGamestate","_ping","playerId","_handlePing","clearTimeout","setTimeout","parse","err","console","log","_updateGamestate","_updatePlayer","_updateSeat","_handleVote","_handleLock","_handleBye","Math","random","toString","substr","isSpectator","_open","close","players","map","player","id","isDead","isVoteless","role","team","gamestate","edition","nomination","x","forEach","index","indexOf","now","Date","getTime","alert","keys","seat","oldIndex","findIndex","votes","vote","lockedVote","lock","subscribe","type","payload","location","hash","claimSeat","lockVote","sendPlayer","param","split","render","_vm","_h","$createElement","_c","_self","class","screenshot","grimoire","isScreenshot","style","backgroundImage","background","attrs","on","keyup","_e","takeScreenshot","ref","_v","_s","version","staticRenderFns","staticClass","public","isPublic","spectator","_l","from","max","swap","move","nominate","$event","$emit","handleTrigger","stopPropagation","openRoleModal","bluffs","selectedPlayer","dead","you","voteLocked","toggleStatus","nightOrder","first","isNightOrder","_f","firstNightReminder","other","otherNightReminder","cancel","swapPlayer","movePlayer","nominatePlayer","updatePlayer","active","isMenuOpen","changeName","removePlayer","reminder","removeReminder","setRole","reminders","ability","props","default","filters","nameToFontSize","methods","component","components","Token","required","computed","indexAdjusted","zoom","unit","innerWidth","innerHeight","width","isSwap","handleEmojis","text","replace","height","y","$refs","getBoundingClientRect","prompt","$store","playerIndex","directives","rawName","modals","availableReminders","expression","toggleModal","addReminder","_t","Modal","roles","some","availableRoles","Player","RoleModal","ReminderModal","method","confirm","to","undefined","teams","traveler","alive","townsfolk","outsider","minion","demon","nonTravelers","getters","filter","game","leaveSession","playerCount","success","isScreenshotSuccess","open","toggleMenu","tab","toggleGrimoire","toggleNightOrder","setZoom","round","setBackground","hostSession","joinSession","copySessionUrl","addPlayer","randomizeSeatings","clearPlayers","clearRoles","stream","canvas","video","navigator","mediaDevices","getDisplayMedia","cursor","audio","srcObject","play","context","getContext","setAttribute","videoWidth","videoHeight","drawImage","toBlob","blob","item","ClipboardItem","clipboard","write","Screenshot","dimensions","capture","permissions","query","then","url","href","link","writeText","dispatch","teamRoles","selected","disabled","selectedRoles","assignRoles","selectRandomRoles","randomElement","arr","floor","roleSelection","values","reduce","a","b","hasSelectedSetupRoles","setup","$set","composition","available","sort","pop","mounted","watch","isCustom","script","handleURL","handleUpload","openUpload","promptURL","setEdition","editions","scripts","upload","click","file","files","size","reader","FileReader","parseScript","readAsText","res","fetch","json","editionName","playersByRole","join","find","rolesGrouped","nominator","nominee","ceil","voters","stop","start","finish","nominatorStyle","transform","nomineeStyle","rotation","min","canVote","reorder","voteTimer","setInterval","gradient","gradients","Vote","ReferenceModal","Intro","TownInfo","TownSquare","Menu","EditionModal","RolesModal","Gradients","menu","toLocaleLowerCase","NEWPLAYER","firstNight","otherNight","includes","Map","set","actions","rootState","mutations","namespaced","val","handleVote","claimedSeat","setSessionId","setPlayerId","setSpectator","setPlayerCount","voteSync","use","getRolesByEdition","selectedEdition","localeCompare","Store","reference","document","title","modal","status","plugins","faIcons","fabIcons","add","config","productionTip","h","App","$mount","webpackContext","req","webpackContextResolve","e","Error","code","resolve","localStorage","getItem","parseFloat","setItem","removeItem"],"mappings":"aACE,SAASA,EAAqBC,GAQ7B,IAPA,IAMIC,EAAUC,EANVC,EAAWH,EAAK,GAChBI,EAAcJ,EAAK,GACnBK,EAAiBL,EAAK,GAIHM,EAAI,EAAGC,EAAW,GACpCD,EAAIH,EAASK,OAAQF,IACzBJ,EAAUC,EAASG,GAChBG,OAAOC,UAAUC,eAAeC,KAAKC,EAAiBX,IAAYW,EAAgBX,IACpFK,EAASO,KAAKD,EAAgBX,GAAS,IAExCW,EAAgBX,GAAW,EAE5B,IAAID,KAAYG,EACZK,OAAOC,UAAUC,eAAeC,KAAKR,EA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3CC,EAAOD,QAAU,IAA0B,0B,qBCA3CC,EAAOD,QAAU,IAA0B,+B,qBCA3CC,EAAOD,QAAU,IAA0B,+B,qBCA3CC,EAAOD,QAAU,IAA0B,2B,qBCA3CC,EAAOD,QAAU,IAA0B,2B,kCCA3C,yBAAiiB,EAAG,G,qBCApiBC,EAAOD,QAAU,IAA0B","file":"js/app.c502bef5.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(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && 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\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\"app\": 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 = \"/townsquare/\";\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([\"56d7\",\"chunk-vendors\"]);\n \t// run deferred modules when ready\n \treturn checkDeferredModules();\n","module.exports = __webpack_public_path__ + \"img/washerwoman.a0c66e53.png\";","module.exports = __webpack_public_path__ + \"img/barista.fd2bba67.png\";","module.exports = __webpack_public_path__ + \"img/cerenovus.736554ca.png\";","module.exports = __webpack_public_path__ + \"img/amnesiac.03ce8f67.png\";","import mod from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.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!./Vote.vue?vue&type=style&index=0&id=6285585a&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/dist/cjs.js??ref--8-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.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!./Vote.vue?vue&type=style&index=0&id=6285585a&lang=scss&scoped=true&\"","module.exports = __webpack_public_path__ + \"img/shabaloth.f461dd08.png\";","module.exports = __webpack_public_path__ + \"img/lunatic.f2982146.png\";","module.exports = __webpack_public_path__ + \"img/oracle.63459162.png\";","module.exports = __webpack_public_path__ + \"img/ravenkeeper.552f1f2f.png\";","module.exports = __webpack_public_path__ + \"img/undertaker.1df72155.png\";","module.exports = __webpack_public_path__ + \"img/chambermaid.b6f002ce.png\";","module.exports = __webpack_public_path__ + \"img/plus.c11bf1ed.png\";","module.exports = __webpack_public_path__ + \"img/recluse.a6519a1d.png\";","module.exports = __webpack_public_path__ + \"img/mutant.b28a535c.png\";","import mod from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Screenshot.vue?vue&type=style&index=0&id=6443af38&scoped=true&lang=css&\"; export default mod; export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Screenshot.vue?vue&type=style&index=0&id=6443af38&scoped=true&lang=css&\"","class LiveSession {\n constructor(store) {\n // this._wss = \"ws://localhost:8081/\";\n this._wss = \"wss://baumgart.biz:8080/\";\n this._socket = null;\n this._isSpectator = true;\n this._gamestate = [];\n this._store = store;\n this._pingInterval = 30 * 1000; // 30 seconds between pings\n this._pingTimer = null;\n this._players = {}; // map of players connected to a session\n // reconnect to previous session\n if (this._store.state.session.sessionId) {\n this.connect(this._store.state.session.sessionId);\n }\n }\n\n /**\n * Open a new session for the passed channel.\n * @param channel\n * @private\n */\n _open(channel) {\n this.disconnect();\n this._socket = new WebSocket(this._wss + channel);\n this._socket.addEventListener(\"message\", this._handleMessage.bind(this));\n this._socket.onopen = this._onOpen.bind(this);\n this._socket.onclose = () => {\n this._socket = null;\n this._store.commit(\"session/setSessionId\", \"\");\n clearInterval(this._pingTimer);\n this._pingTimer = null;\n };\n }\n\n /**\n * Send a message through the socket.\n * @param command\n * @param params\n * @private\n */\n _send(command, params) {\n if (this._socket && this._socket.readyState === 1) {\n this._socket.send(JSON.stringify([command, params]));\n }\n }\n\n /**\n * Open event handler for socket.\n * @private\n */\n _onOpen() {\n if (this._isSpectator) {\n this._send(\"req\", \"gs\");\n } else {\n this.sendGamestate();\n }\n this._ping();\n }\n\n /**\n * Send a ping message with player ID and ST flag.\n * @private\n */\n _ping() {\n this._send(\"ping\", [this._isSpectator, this._store.state.session.playerId]);\n this._handlePing();\n clearTimeout(this._pingTimer);\n this._pingTimer = setTimeout(this._ping.bind(this), this._pingInterval);\n }\n\n /**\n * Handle an incoming socket message.\n * @param data\n * @private\n */\n _handleMessage({ data }) {\n let command, params;\n try {\n [command, params] = JSON.parse(data);\n } catch (err) {\n console.log(\"unsupported socket message\", data);\n }\n switch (command) {\n case \"req\":\n if (params === \"gs\") {\n this.sendGamestate();\n }\n break;\n case \"gs\":\n this._updateGamestate(params);\n break;\n case \"player\":\n this._updatePlayer(params);\n break;\n case \"claim\":\n this._updateSeat(params);\n break;\n case \"ping\":\n this._handlePing(params);\n break;\n case \"nomination\":\n this._store.commit(\"session/nomination\", params);\n break;\n case \"vote\":\n this._handleVote(params);\n break;\n case \"lock\":\n this._handleLock(params);\n break;\n case \"bye\":\n this._handleBye(params);\n break;\n }\n }\n\n /**\n * Connect to a new live session, either as host or spectator.\n * Set a unique playerId if there isn't one yet.\n * @param channel\n */\n connect(channel) {\n if (!this._store.state.session.playerId) {\n this._store.commit(\n \"session/setPlayerId\",\n Math.random()\n .toString(36)\n .substr(2)\n );\n }\n this._store.commit(\"session/setPlayerCount\", 0);\n this._isSpectator = this._store.state.session.isSpectator;\n this._open(channel);\n }\n\n /**\n * Close the current session, if any.\n */\n disconnect() {\n this._store.commit(\"session/setPlayerCount\", 0);\n if (this._socket) {\n this._send(\"bye\", this._store.state.session.playerId);\n this._socket.close();\n this._socket = null;\n }\n }\n\n /**\n * Publish the current gamestate.\n */\n sendGamestate() {\n if (this._isSpectator) return;\n this._gamestate = this._store.state.players.players.map(player => ({\n name: player.name,\n id: player.id,\n isDead: player.isDead,\n isVoteless: player.isVoteless,\n ...(player.role && player.role.team === \"traveler\"\n ? {\n role: {\n id: player.role.id,\n team: \"traveler\",\n name: player.role.name\n }\n }\n : {})\n }));\n this._send(\"gs\", {\n gamestate: this._gamestate,\n edition: this._store.state.edition,\n nomination: this._store.state.session.nomination\n });\n }\n\n /**\n * Update the gamestate based on incoming data.\n * @param gamestate\n * @param edition\n * @param nomination\n * @private\n */\n _updateGamestate({ gamestate, edition, nomination }) {\n if (!this._isSpectator) return;\n this._store.commit(\"setEdition\", edition);\n this._store.commit(\"session/nomination\", nomination);\n const players = this._store.state.players.players;\n // adjust number of players\n if (players.length < gamestate.length) {\n for (let x = players.length; x < gamestate.length; x++) {\n this._store.commit(\"players/add\", gamestate[x].name);\n }\n } else if (players.length > gamestate.length) {\n for (let x = players.length; x > gamestate.length; x--) {\n this._store.commit(\"players/remove\", x - 1);\n }\n }\n // update status for each player\n gamestate.forEach((state, x) => {\n const player = players[x];\n const { role } = state;\n // update relevant properties\n [\"name\", \"id\", \"isDead\", \"isVoteless\"].forEach(property => {\n const value = state[property];\n if (player[property] !== value) {\n this._store.commit(\"players/update\", { player, property, value });\n }\n });\n // roles are special, because of travelers\n if (role && player.role.id !== role.id) {\n this._store.commit(\"players/update\", {\n player,\n property: \"role\",\n value: role\n });\n } else if (!role && player.role.team === \"traveler\") {\n this._store.commit(\"players/update\", {\n player,\n property: \"role\",\n value: {}\n });\n }\n });\n }\n\n /**\n * Publish a player update.\n * @param player\n * @param property\n * @param value\n */\n sendPlayer({ player, property, value }) {\n if (this._isSpectator || property === \"reminders\") return;\n const index = this._store.state.players.players.indexOf(player);\n if (property === \"role\") {\n if (value.team && value.team === \"traveler\") {\n // update local gamestate to remember this player as a traveler\n this._gamestate[index].role = {\n id: player.role.id,\n team: \"traveler\",\n name: player.role.name\n };\n this._send(\"player\", {\n index,\n property,\n value: this._gamestate[index].role\n });\n } else if (this._gamestate[index].role) {\n delete this._gamestate[index].role;\n this._send(\"player\", { index, property, value: {} });\n }\n } else {\n this._send(\"player\", { index, property, value });\n }\n }\n\n /**\n * Update a player based on incoming data.\n * @param index\n * @param property\n * @param value\n * @private\n */\n _updatePlayer({ index, property, value }) {\n const player = this._store.state.players.players[index];\n if (!player) return;\n // special case where a player stops being a traveler\n if (\n property === \"role\" &&\n value.team !== \"traveler\" &&\n player.role.team === \"traveler\"\n ) {\n // reset to an unknown role\n this._store.commit(\"players/update\", {\n player,\n property: \"role\",\n value: {}\n });\n } else {\n // just update the player otherwise\n this._store.commit(\"players/update\", { player, property, value });\n }\n }\n\n /**\n * Handle a ping message by another player / storyteller\n * @param isSpectator\n * @param playerId\n * @private\n */\n _handlePing([isSpectator, playerId] = []) {\n const now = new Date().getTime();\n if (playerId) {\n this._players[playerId] = now;\n if (!this._isSpectator && !isSpectator) {\n alert(\"Another storyteller joined the session!\");\n }\n }\n // remove players that haven't sent a ping in twice the timespan\n for (let player in this._players) {\n if (now - this._players[player] > this._pingInterval * 2) {\n delete this._players[player];\n }\n }\n // remove claimed seats from players that are no longer connected\n this._store.state.players.players.forEach(player => {\n if (!this._isSpectator && player.id && !this._players[player.id]) {\n this._store.commit(\"players/update\", {\n player,\n property: \"id\",\n value: \"\"\n });\n }\n });\n this._store.commit(\n \"session/setPlayerCount\",\n Object.keys(this._players).length\n );\n }\n\n /**\n * Handle a player leaving the sessions\n * @param playerId\n * @private\n */\n _handleBye(playerId) {\n delete this._players[playerId];\n this._store.commit(\n \"session/setPlayerCount\",\n Object.keys(this._players).length\n );\n }\n\n /**\n * Claim a seat, needs to be confirmed by the Storyteller.\n * @param seat either -1 or the index of the seat claimed\n */\n claimSeat(seat) {\n if (!this._isSpectator) return;\n if (this._store.state.players.players.length > seat) {\n this._send(\"claim\", [seat, this._store.state.session.playerId]);\n }\n }\n\n /**\n * Update a player id associated with that seat.\n * @param index seat index or -1\n * @param value playerId to add / remove\n * @private\n */\n _updateSeat([index, value]) {\n if (this._isSpectator) return;\n const property = \"id\";\n const players = this._store.state.players.players;\n // remove previous seat\n const oldIndex = players.findIndex(({ id }) => id === value);\n if (oldIndex >= 0 && oldIndex !== index) {\n this._store.commit(\"players/update\", {\n player: players[oldIndex],\n property,\n value: \"\"\n });\n }\n // add playerId to new seat\n if (index >= 0) {\n const player = players[index];\n if (!player) return;\n this._store.commit(\"players/update\", { player, property, value });\n }\n // update player session list as if this was a ping\n this._handlePing([true, value]);\n }\n\n /**\n * A player nomination. ST only\n * @param nomination [nominator, nominee]\n */\n nomination(nomination) {\n if (this._isSpectator) return;\n const players = this._store.state.players.players;\n if (\n !nomination ||\n (players.length > nomination[0] && players.length > nomination[1])\n ) {\n this._send(\"nomination\", nomination);\n }\n }\n\n /**\n * Send a vote. Player or ST\n * @param index Seat of the player\n * @param sync Flag whether to sync this vote with others or not\n */\n vote([index]) {\n const player = this._store.state.players.players[index];\n if (\n this._store.state.session.playerId === player.id ||\n !this._isSpectator\n ) {\n // send vote only if it is your own vote or you are the storyteller\n this._send(\"vote\", [index, this._store.state.session.votes[index]]);\n }\n }\n\n /**\n * Handle an incoming vote, but not if it is for your own seat.\n * @param index\n * @param vote\n */\n _handleVote([index, vote]) {\n this._store.commit(\"session/vote\", [index, vote]);\n }\n\n /**\n * Lock a vote. ST only\n */\n lockVote() {\n if (this._isSpectator) return;\n const { lockedVote, votes, nomination } = this._store.state.session;\n const { players } = this._store.state.players;\n const index = (nomination[1] + lockedVote - 1) % players.length;\n this._send(\"lock\", [this._store.state.session.lockedVote, votes[index]]);\n }\n\n /**\n * Update vote lock and the locked vote, if it differs.\n * @param lock\n * @param vote\n * @private\n */\n _handleLock([lock, vote]) {\n this._store.commit(\"session/lockVote\", lock);\n if (lock > 1) {\n const { lockedVote, nomination } = this._store.state.session;\n const { players } = this._store.state.players;\n const index = (nomination[1] + lockedVote - 1) % players.length;\n if (this._store.state.session.votes[index] !== vote) {\n this._store.commit(\"session/vote\", [index, vote]);\n }\n }\n }\n}\n\nmodule.exports = store => {\n // setup\n const session = new LiveSession(store);\n\n // listen to mutations\n store.subscribe(({ type, payload }) => {\n switch (type) {\n case \"session/setSessionId\":\n if (payload) {\n session.connect(payload);\n } else {\n window.location.hash = \"\";\n session.disconnect();\n }\n break;\n case \"session/claimSeat\":\n session.claimSeat(payload);\n break;\n case \"session/nomination\":\n session.nomination(payload);\n break;\n case \"session/voteSync\":\n session.vote(payload);\n break;\n case \"session/lockVote\":\n session.lockVote();\n break;\n case \"players/set\":\n case \"players/swap\":\n case \"players/move\":\n case \"players/clear\":\n case \"players/remove\":\n case \"players/add\":\n case \"setEdition\":\n session.sendGamestate();\n break;\n case \"players/update\":\n session.sendPlayer(payload);\n break;\n }\n });\n\n // check for session Id in hash\n const [command, param] = window.location.hash.substr(1).split(\"/\");\n if (command === \"play\") {\n store.commit(\"session/setSpectator\", true);\n store.commit(\"session/setSessionId\", param);\n }\n};\n","module.exports = __webpack_public_path__ + \"img/chef.d4e7f9a6.png\";","module.exports = __webpack_public_path__ + \"img/zombuul.ec71a259.png\";","module.exports = __webpack_public_path__ + \"img/sailor.631521c2.png\";","module.exports = __webpack_public_path__ + \"img/widow.ec8d8cb0.png\";","module.exports = __webpack_public_path__ + \"img/bonecollector.846af8c8.png\";","module.exports = __webpack_public_path__ + \"img/baron.9ce9bd3b.png\";","module.exports = __webpack_public_path__ + \"img/bureaucrat.88ec372a.png\";","module.exports = __webpack_public_path__ + \"img/leviathan.dfbff6e8.png\";","module.exports = __webpack_public_path__ + \"img/artist.f89690cd.png\";","module.exports = __webpack_public_path__ + \"img/sage.5afc100d.png\";","module.exports = __webpack_public_path__ + \"img/scapegoat.8bd95c23.png\";","module.exports = __webpack_public_path__ + \"img/philosopher.92032c70.png\";","import mod from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.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!./TownSquare.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/dist/cjs.js??ref--8-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.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!./TownSquare.vue?vue&type=style&index=0&lang=scss&\"","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.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!./ReferenceModal.vue?vue&type=style&index=0&id=0e68266b&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/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.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!./ReferenceModal.vue?vue&type=style&index=0&id=0e68266b&lang=scss&scoped=true&\"","module.exports = __webpack_public_path__ + \"img/butcher.e0b672b7.png\";","module.exports = __webpack_public_path__ + \"img/towncrier.18a4377b.png\";","module.exports = __webpack_public_path__ + \"img/vortox.6add3a3a.png\";","module.exports = __webpack_public_path__ + \"img/deviant.e8a761ae.png\";","module.exports = __webpack_public_path__ + \"img/imp.cd0fa5b8.png\";","module.exports = __webpack_public_path__ + \"img/moonchild.6c84161e.png\";","import mod from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.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!./Gradients.vue?vue&type=style&index=0&id=1e202a64&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/dist/cjs.js??ref--8-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.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!./Gradients.vue?vue&type=style&index=0&id=1e202a64&lang=scss&scoped=true&\"","module.exports = __webpack_public_path__ + \"img/snakecharmer.e512cc1e.png\";","module.exports = __webpack_public_path__ + \"img/fortuneteller.4396927c.png\";","module.exports = __webpack_public_path__ + \"img/fool.a730aab3.png\";","module.exports = __webpack_public_path__ + \"img/apprentice.b7055345.png\";","module.exports = __webpack_public_path__ + \"img/librarian.6fd7f267.png\";","module.exports = __webpack_public_path__ + \"img/soldier.451de0df.png\";","import mod from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.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!./Intro.vue?vue&type=style&index=0&id=64d39c3f&scoped=true&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/dist/cjs.js??ref--8-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.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!./Intro.vue?vue&type=style&index=0&id=64d39c3f&scoped=true&lang=scss&\"","module.exports = __webpack_public_path__ + \"img/minstrel.1647382d.png\";","module.exports = __webpack_public_path__ + \"img/exorcist.8c0f5cac.png\";","module.exports = __webpack_public_path__ + \"img/harlot.1a418200.png\";","module.exports = __webpack_public_path__ + \"img/goon.719106f2.png\";","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:{ screenshot: _vm.grimoire.isScreenshot },style:({\n backgroundImage: _vm.grimoire.background\n ? (\"url('\" + (_vm.grimoire.background) + \"')\")\n : ''\n }),attrs:{\"id\":\"app\",\"tabindex\":\"-1\"},on:{\"keyup\":_vm.keyup}},[_c('transition',{attrs:{\"name\":\"blur\"}},[(!_vm.players.length)?_c('Intro'):_vm._e(),(_vm.players.length && !_vm.session.nomination)?_c('TownInfo'):_vm._e(),(_vm.session.nomination)?_c('Vote'):_vm._e()],1),_c('TownSquare',{on:{\"screenshot\":_vm.takeScreenshot}}),_c('Menu',{ref:\"menu\"}),_c('EditionModal'),_c('RolesModal'),_c('ReferenceModal'),_c('Gradients'),_c('span',{attrs:{\"id\":\"version\"}},[_vm._v(\"v\"+_vm._s(_vm.version))])],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:\"square\",class:{\n public: _vm.grimoire.isPublic,\n spectator: _vm.session.isSpectator,\n vote: _vm.session.nomination\n },attrs:{\"id\":\"townsquare\"}},[_c('ul',{staticClass:\"circle\",class:['size-' + _vm.players.length]},_vm._l((_vm.players),function(player,index){return _c('Player',{key:index,class:{\n from: Math.max(_vm.swap, _vm.move, _vm.nominate) === index,\n swap: _vm.swap > -1,\n move: _vm.move > -1,\n nominate: _vm.nominate > -1\n },attrs:{\"player\":player},on:{\"screenshot\":function($event){return _vm.$emit('screenshot', $event)},\"trigger\":function($event){return _vm.handleTrigger(index, $event)}}})}),1),(_vm.players.length > 6)?_c('div',{ref:\"bluffs\",staticClass:\"bluffs\"},[_c('h3',[_vm._v(\"Demon bluffs\")]),_c('font-awesome-icon',{attrs:{\"icon\":\"camera\"},on:{\"click\":function($event){$event.stopPropagation();return _vm.takeScreenshot($event)}}}),_c('ul',_vm._l((_vm.bluffs),function(index){return _c('li',{key:index,on:{\"click\":function($event){return _vm.openRoleModal(index * -1)}}},[_c('Token',{attrs:{\"role\":_vm.grimoire.bluffs[index - 1]}})],1)}),0)],1):_vm._e(),_c('ReminderModal',{attrs:{\"player-index\":_vm.selectedPlayer}}),_c('RoleModal',{attrs:{\"player-index\":_vm.selectedPlayer}})],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('li',{style:(_vm.zoom)},[_c('div',{ref:\"player\",staticClass:\"player\",class:[\n {\n dead: _vm.player.isDead,\n 'no-vote': _vm.player.isVoteless,\n you: _vm.session.sessionId && _vm.player.id && _vm.player.id === _vm.session.playerId,\n 'vote-yes': _vm.session.votes[_vm.index],\n 'vote-lock': _vm.voteLocked\n },\n _vm.player.role.team\n ]},[_c('div',{staticClass:\"shroud\",on:{\"click\":function($event){return _vm.toggleStatus()}}}),_c('div',{staticClass:\"life\",on:{\"click\":function($event){return _vm.toggleStatus()}}}),(_vm.nightOrder.get(_vm.player).first && _vm.grimoire.isNightOrder)?_c('div',{staticClass:\"night first\"},[_c('em',[_vm._v(_vm._s(_vm.nightOrder.get(_vm.player).first)+\".\")]),(_vm.player.role.firstNightReminder)?_c('span',[_vm._v(_vm._s(_vm._f(\"handleEmojis\")(_vm.player.role.firstNightReminder)))]):_vm._e()]):_vm._e(),(_vm.nightOrder.get(_vm.player).other && _vm.grimoire.isNightOrder)?_c('div',{staticClass:\"night other\"},[_c('em',[_vm._v(_vm._s(_vm.nightOrder.get(_vm.player).other)+\".\")]),(_vm.player.role.otherNightReminder)?_c('span',[_vm._v(_vm._s(_vm._f(\"handleEmojis\")(_vm.player.role.otherNightReminder)))]):_vm._e()]):_vm._e(),_c('Token',{attrs:{\"role\":_vm.player.role},on:{\"set-role\":function($event){return _vm.$emit('trigger', ['openRoleModal'])}}}),_c('div',{staticClass:\"overlay\"},[_c('font-awesome-icon',{staticClass:\"vote\",attrs:{\"icon\":\"skull\",\"title\":\"Voted YES\"},on:{\"click\":function($event){return _vm.vote()}}}),_c('font-awesome-icon',{staticClass:\"vote\",attrs:{\"icon\":\"times\",\"title\":\"Voted NO\"},on:{\"click\":function($event){return _vm.vote()}}}),_c('font-awesome-icon',{staticClass:\"cancel\",attrs:{\"icon\":\"times-circle\",\"title\":\"Cancel\"},on:{\"click\":function($event){return _vm.cancel()}}}),_c('font-awesome-icon',{staticClass:\"swap\",attrs:{\"icon\":\"exchange-alt\",\"title\":\"Swap seats with this player\"},on:{\"click\":function($event){return _vm.swapPlayer(_vm.player)}}}),_c('font-awesome-icon',{staticClass:\"move\",attrs:{\"icon\":\"redo-alt\",\"title\":\"Move player to this seat\"},on:{\"click\":function($event){return _vm.movePlayer(_vm.player)}}}),_c('font-awesome-icon',{staticClass:\"nominate\",attrs:{\"icon\":\"hand-point-right\",\"title\":\"Nominate this player\"},on:{\"click\":function($event){return _vm.nominatePlayer(_vm.player)}}})],1),(_vm.player.id && _vm.session.sessionId)?_c('font-awesome-icon',{staticClass:\"seat\",attrs:{\"icon\":\"chair\"}}):_vm._e(),(_vm.player.isDead && !_vm.player.isVoteless)?_c('font-awesome-icon',{staticClass:\"has-vote\",attrs:{\"icon\":\"vote-yea\",\"title\":\"Ghost vote\"},on:{\"click\":function($event){return _vm.updatePlayer('isVoteless', true)}}}):_vm._e(),_c('div',{staticClass:\"name\",class:{ active: _vm.isMenuOpen },on:{\"click\":function($event){_vm.isMenuOpen = !_vm.isMenuOpen}}},[_vm._v(\" \"+_vm._s(_vm.player.name)+\" \")]),_c('transition',{attrs:{\"name\":\"fold\"}},[(_vm.isMenuOpen)?_c('ul',{staticClass:\"menu\"},[(!_vm.session.isSpectator)?[_c('li',{on:{\"click\":_vm.changeName}},[_c('font-awesome-icon',{attrs:{\"icon\":\"user-edit\"}}),_vm._v(\"Rename \")],1),(!_vm.session.nomination)?_c('li',{on:{\"click\":function($event){return _vm.nominatePlayer()}}},[_c('font-awesome-icon',{attrs:{\"icon\":\"hand-point-right\"}}),_vm._v(\" Nomination \")],1):_vm._e(),_c('li',{on:{\"click\":function($event){return _vm.movePlayer()}}},[_c('font-awesome-icon',{attrs:{\"icon\":\"redo-alt\"}}),_vm._v(\" Move player \")],1),_c('li',{on:{\"click\":function($event){return _vm.swapPlayer()}}},[_c('font-awesome-icon',{attrs:{\"icon\":\"exchange-alt\"}}),_vm._v(\" Swap seats \")],1),_c('li',{staticClass:\"screenshot\",on:{\"click\":_vm.takeScreenshot}},[_c('font-awesome-icon',{attrs:{\"icon\":\"camera\"}}),_vm._v(\" Screenshot \")],1),_c('li',{on:{\"click\":_vm.removePlayer}},[_c('font-awesome-icon',{attrs:{\"icon\":\"times-circle\"}}),_vm._v(\" Remove \")],1)]:_vm._e(),(_vm.session.isSpectator)?_c('li',{on:{\"click\":_vm.claimSeat}},[_c('font-awesome-icon',{attrs:{\"icon\":\"chair\"}}),(_vm.player.id !== _vm.session.playerId)?[_vm._v(\" Claim seat \")]:[_vm._v(\" Vacate seat \")]],2):_vm._e()],2):_vm._e()])],1),(_vm.player.reminders)?_vm._l((_vm.player.reminders),function(reminder){return _c('div',{key:reminder.role + ' ' + reminder.name,staticClass:\"reminder\",class:[reminder.role],on:{\"click\":function($event){return _vm.removeReminder(reminder)}}},[_c('span',{staticClass:\"icon\",style:({\n backgroundImage: (\"url(\" + (require('../assets/icons/' +\n reminder.role +\n '.png')) + \")\")\n })}),_c('span',{staticClass:\"text\"},[_vm._v(_vm._s(reminder.name))])])}):_vm._e(),_c('div',{staticClass:\"reminder add\",on:{\"click\":function($event){return _vm.$emit('trigger', ['openReminderModal'])}}},[_c('span',{staticClass:\"icon\"})])],2)}\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:\"token\",class:[_vm.role.id],on:{\"click\":_vm.setRole}},[(_vm.role.id)?_c('span',{staticClass:\"icon\",style:({\n backgroundImage: (\"url(\" + (require('../assets/icons/' +\n _vm.role.id +\n '.png')) + \")\")\n })}):_vm._e(),(_vm.role.firstNight)?_c('span',{staticClass:\"leaf-left\"}):_vm._e(),(_vm.role.otherNight)?_c('span',{staticClass:\"leaf-right\"}):_vm._e(),(_vm.role.reminders && _vm.role.reminders.length)?_c('span',{class:['leaf-top' + _vm.role.reminders.length]}):_vm._e(),(_vm.role.setup)?_c('span',{staticClass:\"leaf-orange\"}):_vm._e(),_c('svg',{staticClass:\"name\",attrs:{\"viewBox\":\"0 0 150 150\"}},[_c('path',{attrs:{\"d\":\"M 13 75 C 13 160, 138 160, 138 75\",\"id\":\"curve\",\"fill\":\"transparent\"}}),_c('text',{staticClass:\"label mozilla\",attrs:{\"width\":\"150\",\"x\":\"66.6%\",\"text-anchor\":\"middle\",\"font-size\":_vm._f(\"nameToFontSize\")(_vm.role.name)}},[_c('textPath',{attrs:{\"xlink:href\":\"#curve\"}},[_vm._v(\" \"+_vm._s(_vm.role.name)+\" \")])])]),_c('div',{staticClass:\"edition\",class:[(\"edition-\" + (_vm.role.edition)), _vm.role.team]}),(_vm.role.ability)?_c('div',{staticClass:\"ability\"},[_vm._v(\" \"+_vm._s(_vm.role.ability)+\" \")]):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <div class=\"token\" @click=\"setRole\" :class=\"[role.id]\">\n <span\n class=\"icon\"\n v-if=\"role.id\"\n v-bind:style=\"{\n backgroundImage: `url(${require('../assets/icons/' +\n role.id +\n '.png')})`\n }\"\n ></span>\n <span class=\"leaf-left\" v-if=\"role.firstNight\"></span>\n <span class=\"leaf-right\" v-if=\"role.otherNight\"></span>\n <span\n v-if=\"role.reminders && role.reminders.length\"\n v-bind:class=\"['leaf-top' + role.reminders.length]\"\n ></span>\n <span class=\"leaf-orange\" v-if=\"role.setup\"></span>\n <svg viewBox=\"0 0 150 150\" class=\"name\">\n <path\n d=\"M 13 75 C 13 160, 138 160, 138 75\"\n id=\"curve\"\n fill=\"transparent\"\n />\n <text\n width=\"150\"\n x=\"66.6%\"\n text-anchor=\"middle\"\n class=\"label mozilla\"\n v-bind:font-size=\"role.name | nameToFontSize\"\n >\n <textPath xlink:href=\"#curve\">\n {{ role.name }}\n </textPath>\n </text>\n </svg>\n <div\n class=\"edition\"\n v-bind:class=\"[`edition-${role.edition}`, role.team]\"\n ></div>\n <div class=\"ability\" v-if=\"role.ability\">\n {{ role.ability }}\n </div>\n </div>\n</template>\n\n<script>\nexport default {\n name: \"Token\",\n props: {\n role: {\n type: Object,\n default: () => ({})\n }\n },\n data() {\n return {};\n },\n filters: {\n nameToFontSize: name => (name && name.length > 10 ? \"90%\" : \"110%\")\n },\n methods: {\n setRole() {\n this.$emit(\"set-role\");\n }\n }\n};\n</script>\n\n<style scoped lang=\"scss\">\n.token {\n border-radius: 50%;\n width: 100%;\n background: url(\"../assets/token.png\") center center;\n background-size: 100%;\n text-align: center;\n border: 3px solid black;\n box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n\n .icon {\n background-size: 100%;\n position: absolute;\n width: 100%;\n height: 100%;\n margin-top: 3%;\n }\n\n span {\n position: absolute;\n width: 100%;\n height: 100%;\n background-size: 100%;\n pointer-events: none;\n\n &.leaf-left {\n background-image: url(\"../assets/leaf-left.png\");\n }\n\n &.leaf-orange {\n background-image: url(\"../assets/leaf-orange.png\");\n }\n\n &.leaf-right {\n background-image: url(\"../assets/leaf-right.png\");\n }\n\n &.leaf-top1 {\n background-image: url(\"../assets/leaf-top1.png\");\n }\n\n &.leaf-top2 {\n background-image: url(\"../assets/leaf-top2.png\");\n }\n\n &.leaf-top3 {\n background-image: url(\"../assets/leaf-top3.png\");\n }\n\n &.leaf-top4 {\n background-image: url(\"../assets/leaf-top4.png\");\n }\n\n &.leaf-top5 {\n background-image: url(\"../assets/leaf-top5.png\");\n }\n }\n\n .name {\n width: 100%;\n height: 100%;\n font-size: 24px; // svg fonts are relative to document font size\n .label {\n fill: black;\n stroke: white;\n stroke-width: 2px;\n paint-order: stroke;\n font-family: \"Papyrus\", serif;\n font-weight: bold;\n text-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);\n letter-spacing: 1px;\n\n @-moz-document url-prefix() {\n &.mozilla {\n // Vue doesn't support scoped media queries, so we have to use a second css class\n stroke: none;\n text-shadow: none;\n filter: drop-shadow(0 2px 0 white) drop-shadow(0 -2px 0 white)\n drop-shadow(2px 0 0 white) drop-shadow(-2px 0 0 white);\n }\n }\n }\n }\n\n .edition {\n position: absolute;\n right: 0;\n bottom: 5px;\n width: 30px;\n height: 30px;\n background-size: 100%;\n display: none;\n }\n\n .ability {\n display: flex;\n position: absolute;\n padding: 5px 10px;\n left: 120%;\n width: 250px;\n z-index: 25;\n font-size: 80%;\n background: rgba(0, 0, 0, 0.5);\n border-radius: 10px;\n border: 3px solid black;\n filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));\n text-align: left;\n justify-items: center;\n align-content: center;\n align-items: center;\n pointer-events: none;\n opacity: 0;\n transition: opacity 200ms ease-in-out;\n\n &:before {\n content: \" \";\n border: 10px solid transparent;\n width: 0;\n height: 0;\n border-right-color: black;\n position: absolute;\n margin-right: 2px;\n right: 100%;\n }\n\n #app.screenshot & {\n display: none;\n }\n }\n\n &:hover .ability {\n opacity: 1;\n }\n}\n</style>\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Token.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Token.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Token.vue?vue&type=template&id=4d8bb4f3&scoped=true&\"\nimport script from \"./Token.vue?vue&type=script&lang=js&\"\nexport * from \"./Token.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Token.vue?vue&type=style&index=0&id=4d8bb4f3&scoped=true&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 \"4d8bb4f3\",\n null\n \n)\n\nexport default component.exports","<template>\n <li :style=\"zoom\">\n <div\n ref=\"player\"\n class=\"player\"\n :class=\"[\n {\n dead: player.isDead,\n 'no-vote': player.isVoteless,\n you: session.sessionId && player.id && player.id === session.playerId,\n 'vote-yes': session.votes[index],\n 'vote-lock': voteLocked\n },\n player.role.team\n ]\"\n >\n <div class=\"shroud\" @click=\"toggleStatus()\"></div>\n <div class=\"life\" @click=\"toggleStatus()\"></div>\n\n <div\n class=\"night first\"\n v-if=\"nightOrder.get(player).first && grimoire.isNightOrder\"\n >\n <em>{{ nightOrder.get(player).first }}.</em>\n <span v-if=\"player.role.firstNightReminder\">{{\n player.role.firstNightReminder | handleEmojis\n }}</span>\n </div>\n <div\n class=\"night other\"\n v-if=\"nightOrder.get(player).other && grimoire.isNightOrder\"\n >\n <em>{{ nightOrder.get(player).other }}.</em>\n <span v-if=\"player.role.otherNightReminder\">{{\n player.role.otherNightReminder | handleEmojis\n }}</span>\n </div>\n\n <Token\n :role=\"player.role\"\n @set-role=\"$emit('trigger', ['openRoleModal'])\"\n />\n\n <!-- Overlay icons -->\n <div class=\"overlay\">\n <font-awesome-icon\n icon=\"skull\"\n class=\"vote\"\n title=\"Voted YES\"\n @click=\"vote()\"\n />\n <font-awesome-icon\n icon=\"times\"\n class=\"vote\"\n title=\"Voted NO\"\n @click=\"vote()\"\n />\n <font-awesome-icon\n icon=\"times-circle\"\n class=\"cancel\"\n title=\"Cancel\"\n @click=\"cancel()\"\n />\n <font-awesome-icon\n icon=\"exchange-alt\"\n class=\"swap\"\n @click=\"swapPlayer(player)\"\n title=\"Swap seats with this player\"\n />\n <font-awesome-icon\n icon=\"redo-alt\"\n class=\"move\"\n @click=\"movePlayer(player)\"\n title=\"Move player to this seat\"\n />\n <font-awesome-icon\n icon=\"hand-point-right\"\n class=\"nominate\"\n @click=\"nominatePlayer(player)\"\n title=\"Nominate this player\"\n />\n </div>\n\n <!-- Claimed seat icon -->\n <font-awesome-icon\n icon=\"chair\"\n v-if=\"player.id && session.sessionId\"\n class=\"seat\"\n />\n\n <!-- Ghost vote icon -->\n <font-awesome-icon\n icon=\"vote-yea\"\n class=\"has-vote\"\n v-if=\"player.isDead && !player.isVoteless\"\n @click=\"updatePlayer('isVoteless', true)\"\n title=\"Ghost vote\"\n />\n\n <div\n class=\"name\"\n @click=\"isMenuOpen = !isMenuOpen\"\n v-bind:class=\"{ active: isMenuOpen }\"\n >\n {{ player.name }}\n </div>\n\n <transition name=\"fold\">\n <ul class=\"menu\" v-if=\"isMenuOpen\">\n <template v-if=\"!session.isSpectator\">\n <li @click=\"changeName\">\n <font-awesome-icon icon=\"user-edit\" />Rename\n </li>\n <li v-if=\"!session.nomination\" @click=\"nominatePlayer()\">\n <font-awesome-icon icon=\"hand-point-right\" />\n Nomination\n </li>\n <li @click=\"movePlayer()\">\n <font-awesome-icon icon=\"redo-alt\" />\n Move player\n </li>\n <li @click=\"swapPlayer()\">\n <font-awesome-icon icon=\"exchange-alt\" />\n Swap seats\n </li>\n <li class=\"screenshot\" @click=\"takeScreenshot\">\n <font-awesome-icon icon=\"camera\" />\n Screenshot\n </li>\n <li @click=\"removePlayer\">\n <font-awesome-icon icon=\"times-circle\" />\n Remove\n </li>\n </template>\n <li @click=\"claimSeat\" v-if=\"session.isSpectator\">\n <font-awesome-icon icon=\"chair\" />\n <template v-if=\"player.id !== session.playerId\">\n Claim seat\n </template>\n <template v-else> Vacate seat </template>\n </li>\n </ul>\n </transition>\n </div>\n\n <template v-if=\"player.reminders\">\n <div\n class=\"reminder\"\n v-bind:key=\"reminder.role + ' ' + reminder.name\"\n v-for=\"reminder in player.reminders\"\n v-bind:class=\"[reminder.role]\"\n @click=\"removeReminder(reminder)\"\n >\n <span\n class=\"icon\"\n v-bind:style=\"{\n backgroundImage: `url(${require('../assets/icons/' +\n reminder.role +\n '.png')})`\n }\"\n ></span>\n <span class=\"text\">{{ reminder.name }}</span>\n </div>\n </template>\n <div class=\"reminder add\" @click=\"$emit('trigger', ['openReminderModal'])\">\n <span class=\"icon\"></span>\n </div>\n </li>\n</template>\n\n<script>\nimport Token from \"./Token\";\nimport { mapGetters, mapState } from \"vuex\";\n\nexport default {\n components: {\n Token\n },\n props: {\n player: {\n type: Object,\n required: true\n }\n },\n computed: {\n ...mapState(\"players\", [\"players\"]),\n ...mapState([\"grimoire\", \"session\"]),\n ...mapGetters({ nightOrder: \"players/nightOrder\" }),\n index: function() {\n return this.players.indexOf(this.player);\n },\n voteLocked: function() {\n const session = this.session;\n const players = this.players.length;\n if (!session.nomination) return false;\n const indexAdjusted =\n (this.index - 1 + players - session.nomination[1]) % players;\n return indexAdjusted < session.lockedVote - 1;\n },\n zoom: function() {\n const unit = window.innerWidth > window.innerHeight ? \"vh\" : \"vw\";\n if (this.players.length < 7) {\n return { width: 18 + this.grimoire.zoom + unit };\n } else if (this.players.length <= 10) {\n return { width: 16 + this.grimoire.zoom + unit };\n } else if (this.players.length <= 15) {\n return { width: 14 + this.grimoire.zoom + unit };\n } else {\n return { width: 12 + this.grimoire.zoom + unit };\n }\n }\n },\n data() {\n return {\n isMenuOpen: false,\n isSwap: false\n };\n },\n filters: {\n handleEmojis: text => text.replace(/:([^: ]+?):/g, \"\").replace(/ •/g, \"\\n•\")\n },\n methods: {\n takeScreenshot() {\n const { width, height, x, y } = this.$refs.player.getBoundingClientRect();\n this.$emit(\"screenshot\", { width, height, x, y });\n this.isMenuOpen = false;\n },\n toggleStatus() {\n if (this.grimoire.isPublic) {\n if (!this.player.isDead) {\n this.updatePlayer(\"isDead\", true);\n } else if (this.player.isVoteless) {\n this.updatePlayer(\"isVoteless\", false);\n this.updatePlayer(\"isDead\", false);\n } else {\n this.updatePlayer(\"isVoteless\", true);\n }\n } else {\n this.updatePlayer(\"isDead\", !this.player.isDead);\n if (this.player.isVoteless) {\n this.updatePlayer(\"isVoteless\", false);\n }\n }\n },\n changeName() {\n if (this.session.isSpectator) return;\n const name = prompt(\"Player name\", this.player.name) || this.player.name;\n this.updatePlayer(\"name\", name);\n this.isMenuOpen = false;\n },\n removeReminder(reminder) {\n const reminders = [...this.player.reminders];\n reminders.splice(this.player.reminders.indexOf(reminder), 1);\n this.updatePlayer(\"reminders\", reminders);\n this.isMenuOpen = false;\n },\n updatePlayer(property, value) {\n if (this.session.isSpectator && property !== \"reminders\") return;\n this.$store.commit(\"players/update\", {\n player: this.player,\n property,\n value\n });\n },\n removePlayer() {\n this.isMenuOpen = false;\n this.$emit(\"trigger\", [\"removePlayer\"]);\n },\n swapPlayer(player) {\n this.isMenuOpen = false;\n this.$emit(\"trigger\", [\"swapPlayer\", player]);\n },\n movePlayer(player) {\n this.isMenuOpen = false;\n this.$emit(\"trigger\", [\"movePlayer\", player]);\n },\n nominatePlayer(player) {\n this.isMenuOpen = false;\n this.$emit(\"trigger\", [\"nominatePlayer\", player]);\n },\n cancel() {\n this.$emit(\"trigger\", [\"cancel\"]);\n },\n claimSeat() {\n this.isMenuOpen = false;\n this.$emit(\"trigger\", [\"claimSeat\"]);\n },\n /**\n * Allow the ST to override a locked vote.\n */\n vote() {\n if (this.session.isSpectator) return;\n if (!this.voteLocked) return;\n this.$store.commit(\"session/voteSync\", [\n this.index,\n !this.session.votes[this.index]\n ]);\n }\n }\n};\n</script>\n\n<style lang=\"scss\">\n@import \"../vars.scss\";\n\n.fold-enter-active,\n.fold-leave-active {\n transition: transform 250ms ease-in-out;\n transform-origin: left center;\n transform: perspective(200px);\n}\n.fold-enter,\n.fold-leave-to {\n transform: perspective(200px) rotateY(90deg);\n}\n\n/***** Player token *****/\n.circle .player {\n margin-bottom: 10px;\n\n &:before {\n content: \" \";\n display: block;\n padding-top: 100%;\n }\n\n .shroud {\n top: 0;\n left: 0;\n position: absolute;\n width: 100%;\n height: 45%;\n cursor: pointer;\n transform: rotateX(0deg);\n transform-origin: top center;\n transition: transform 200ms ease-in-out;\n z-index: 2;\n filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.8));\n\n &:before {\n content: \" \";\n background: url(\"../assets/shroud.png\") center -10px no-repeat;\n background-size: auto 110%;\n position: absolute;\n margin-left: -50%;\n width: 100%;\n height: 100%;\n left: 50%;\n top: -30%;\n opacity: 0;\n transform: perspective(400px) scale(1.5);\n transform-origin: top center;\n transition: all 200ms;\n pointer-events: none;\n }\n\n #townsquare.spectator & {\n pointer-events: none;\n }\n\n #townsquare:not(.spectator) &:hover:before {\n opacity: 0.5;\n top: -10px;\n transform: scale(1);\n }\n }\n\n &.dead .shroud:before {\n opacity: 1;\n top: 0;\n transform: perspective(400px) scale(1);\n }\n\n #townsquare:not(.spectator) &.dead .shroud:hover:before {\n opacity: 1;\n }\n}\n\n/****** Life token *******/\n.player {\n z-index: 2;\n .life {\n border-radius: 50%;\n width: 100%;\n background: url(\"../assets/life.png\") center center;\n background-size: 100%;\n border: 3px solid black;\n box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);\n cursor: pointer;\n transition: transform 200ms ease-in-out;\n transform: perspective(400px) rotateY(180deg);\n backface-visibility: hidden;\n position: absolute;\n left: 0;\n top: 0;\n\n &:before {\n content: \" \";\n display: block;\n padding-top: 100%;\n }\n }\n\n &.dead {\n &.no-vote .life:after {\n display: none;\n }\n\n .life {\n background-image: url(\"../assets/death.png\");\n\n &:after {\n content: \" \";\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n background: url(\"../assets/vote.png\") center center no-repeat;\n background-size: 50%;\n height: 100%;\n pointer-events: none;\n }\n }\n }\n\n &.traveler .life {\n filter: grayscale(100%);\n }\n}\n\n#townsquare.public .player {\n .shroud {\n transform: perspective(400px) rotateX(90deg);\n pointer-events: none;\n }\n\n .life {\n transform: perspective(400px) rotateY(0deg);\n }\n\n &.traveler:not(.dead) .token {\n transform: perspective(400px) scale(0.8);\n pointer-events: none;\n transition-delay: 0s;\n }\n\n &.traveler.dead .token {\n transition-delay: 0s;\n }\n}\n\n/***** Role token ******/\n.player .token {\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n transition: transform 200ms ease-in-out;\n transform: perspective(400px) rotateY(0deg);\n backface-visibility: hidden;\n}\n\n#townsquare.public .circle .token {\n transform: perspective(400px) rotateY(-180deg);\n}\n\n/****** Player choice icons *******/\n.player .overlay {\n width: 100%;\n position: absolute;\n pointer-events: none;\n top: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n &:after {\n content: \" \";\n display: block;\n padding-top: 100%;\n }\n}\n.player .overlay svg {\n position: absolute;\n filter: drop-shadow(0 0 3px black);\n z-index: 2;\n cursor: pointer;\n &.swap,\n &.move,\n &.nominate,\n &.vote,\n &.cancel {\n width: 50%;\n height: 60%;\n opacity: 0;\n pointer-events: none;\n transition: all 250ms;\n transform: scale(0.2);\n * {\n stroke-width: 10px;\n stroke: white;\n fill: url(#default);\n }\n &:hover *,\n &.fa-skull * {\n fill: url(#demon);\n }\n &.fa-times * {\n fill: url(#townsfolk);\n }\n }\n}\n\n// other player voted yes, but is not locked yet\n#townsquare.vote .player.vote-yes .overlay svg.vote.fa-skull {\n opacity: 0.5;\n transform: scale(1);\n}\n\n// you voted yes | a locked vote yes | a locked vote no\n#townsquare.vote .player.you.vote-yes .overlay svg.vote.fa-skull,\n#townsquare.vote .player.vote-lock.vote-yes .overlay svg.vote.fa-skull,\n#townsquare.vote .player.vote-lock:not(.vote-yes) .overlay svg.vote.fa-times {\n opacity: 1;\n transform: scale(1);\n}\n\n// a locked vote can be clicked on by the ST\n#townsquare.vote:not(.spectator) .player.vote-lock .overlay svg.vote {\n pointer-events: all;\n}\n\nli.from:not(.nominate) .player .overlay svg.cancel {\n opacity: 1;\n transform: scale(1);\n pointer-events: all;\n}\n\nli.swap:not(.from) .player .overlay svg.swap,\nli.nominate .player .overlay svg.nominate,\nli.move:not(.from) .player .overlay svg.move {\n opacity: 1;\n transform: scale(1);\n pointer-events: all;\n}\n\n/****** Vote icon ********/\n.player .has-vote {\n position: absolute;\n right: 2px;\n margin-top: -15%;\n color: #fff;\n filter: drop-shadow(0 0 3px black);\n transition: opacity 250ms;\n z-index: 2;\n\n #townsquare.public & {\n opacity: 0;\n pointer-events: none;\n }\n}\n\n@mixin glow($name, $color) {\n @keyframes #{$name}-glow {\n 0% {\n box-shadow: 0 0 rgba($color, 1);\n border-color: $color;\n }\n 50% {\n border-color: black;\n }\n 100% {\n box-shadow: 0 0 20px 16px transparent;\n border-color: $color;\n }\n }\n\n .player.you.#{$name} .token {\n animation: #{$name}-glow 2s ease-in-out infinite;\n }\n}\n\n@include glow(\"townsfolk\", $townsfolk);\n@include glow(\"outsider\", $outsider);\n@include glow(\"demon\", $demon);\n@include glow(\"minion\", $minion);\n@include glow(\"traveler\", $traveler);\n\n.player.you .token {\n animation: townsfolk-glow 2s ease-in-out infinite;\n}\n\n/****** Seat icon ********/\n.player .seat {\n position: absolute;\n left: 2px;\n margin-top: -15%;\n color: #fff;\n filter: drop-shadow(0 0 3px black);\n cursor: default;\n z-index: 2;\n}\n\n.player.you .seat {\n color: $townsfolk;\n}\n\n/***** Player name *****/\n.player > .name {\n text-align: center;\n font-size: 120%;\n line-height: 120%;\n cursor: pointer;\n white-space: nowrap;\n width: 100%;\n background: rgba(0, 0, 0, 0.5);\n border: 3px solid black;\n border-radius: 10px;\n top: 5px;\n box-shadow: 0 0 5px black;\n text-overflow: ellipsis;\n overflow: hidden;\n padding: 0 4px;\n\n #townsquare:not(.spectator) &:hover,\n &.active {\n color: red;\n }\n}\n\n.player.dead > .name {\n opacity: 0.5;\n}\n\n/***** Player menu *****/\n.player > .menu {\n position: absolute;\n left: 100%;\n bottom: 0;\n text-align: left;\n white-space: nowrap;\n background: rgba(0, 0, 0, 0.5);\n padding: 2px 5px;\n border-radius: 10px;\n border: 3px solid #000;\n margin-left: 15px;\n cursor: pointer;\n box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);\n\n &:before {\n content: \" \";\n width: 0;\n height: 0;\n position: absolute;\n border: 10px solid transparent;\n border-right-color: black;\n right: 100%;\n bottom: 7px;\n margin-right: 2px;\n }\n\n li:hover {\n color: red;\n }\n svg {\n margin-right: 2px;\n }\n}\n\n/***** Ability text *****/\n#townsquare.public .ability {\n display: none;\n}\n.circle .player .shroud:hover ~ .token .ability,\n.circle .player .token:hover .ability {\n opacity: 1;\n}\n\n/**** Night reminders ****/\n.player .night {\n position: absolute;\n width: 100%;\n z-index: 2;\n cursor: pointer;\n opacity: 1;\n transition: opacity 200ms;\n display: flex;\n top: 0;\n align-items: center;\n pointer-events: none;\n\n &:after {\n content: \" \";\n display: block;\n padding-top: 100%;\n }\n\n #townsquare.public & {\n opacity: 0;\n pointer-events: none;\n }\n\n &:hover ~ .token .ability {\n opacity: 0;\n }\n\n span {\n display: flex;\n position: absolute;\n padding: 5px 10px 5px 30px;\n width: 350px;\n z-index: 25;\n font-size: 70%;\n background: rgba(0, 0, 0, 0.5);\n border-radius: 10px;\n border: 3px solid black;\n filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));\n text-align: left;\n align-items: center;\n opacity: 0;\n transition: opacity 200ms ease-in-out;\n\n &:before {\n transform: rotate(-90deg);\n transform-origin: center top;\n left: -98px;\n top: 50%;\n font-size: 100%;\n position: absolute;\n font-weight: bold;\n text-align: center;\n width: 200px;\n }\n\n &:after {\n content: \" \";\n border: 10px solid transparent;\n width: 0;\n height: 0;\n position: absolute;\n }\n }\n\n &.first span {\n right: 120%;\n background: linear-gradient(\n to right,\n $townsfolk 0%,\n rgba(0, 0, 0, 0.5) 20%\n );\n &:before {\n content: \"First Night\";\n }\n &:after {\n border-left-color: $townsfolk;\n margin-left: 3px;\n left: 100%;\n }\n }\n\n &.other span {\n left: 120%;\n background: linear-gradient(to right, $demon 0%, rgba(0, 0, 0, 0.5) 20%);\n &:before {\n content: \"Other Nights\";\n }\n &:after {\n right: 100%;\n margin-right: 3px;\n border-right-color: $demon;\n }\n }\n\n em {\n font-style: normal;\n position: absolute;\n width: 40px;\n height: 40px;\n border-radius: 50%;\n border: 3px solid black;\n filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.5));\n font-weight: bold;\n opacity: 1;\n pointer-events: all;\n transition: opacity 200ms;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n\n &.first em {\n left: -10%;\n background: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, $townsfolk 100%);\n }\n\n &.other em {\n right: -10%;\n background: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, $demon 100%);\n }\n\n em:hover + span {\n opacity: 1;\n }\n\n #app.screenshot & {\n display: none;\n }\n}\n\n.player.dead .night em {\n opacity: 0;\n}\n\n/***** Reminder token *****/\n.circle .reminder {\n background: url(\"../assets/reminder.png\") center center;\n background-size: 100%;\n width: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n margin: 5px 0 0 -25%;\n border-radius: 50%;\n border: 3px solid black;\n box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);\n transition: all 200ms;\n cursor: pointer;\n &:before {\n content: \" \";\n display: block;\n padding-top: 100%;\n }\n\n .text {\n line-height: 90%;\n color: black;\n font-size: 45%;\n font-weight: bold;\n width: 90%;\n text-align: center;\n margin-top: 50%;\n }\n\n .icon,\n &:after {\n content: \" \";\n position: absolute;\n top: 0;\n width: 90%;\n height: 90%;\n background-size: 100%;\n background-position: center 0;\n background-repeat: no-repeat;\n background-image: url(\"../assets/icons/plus.png\");\n transition: opacity 200ms;\n }\n\n &:after {\n background-image: url(\"../assets/icons/x.png\");\n opacity: 0;\n }\n\n &.add {\n opacity: 0;\n top: 30px;\n &:after {\n display: none;\n }\n .icon {\n top: auto;\n }\n }\n\n &.custom {\n .icon {\n display: none;\n }\n .text {\n font-size: 70%;\n word-break: break-word;\n margin-top: 0;\n }\n }\n\n &:hover:before {\n opacity: 0;\n }\n &:hover:after {\n opacity: 1;\n }\n}\n.circle li:hover .reminder.add {\n opacity: 1;\n top: 0;\n}\n.circle li:hover .reminder.add:before {\n opacity: 1;\n}\n\n#townsquare.public .reminder {\n opacity: 0;\n pointer-events: none;\n}\n</style>\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Player.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Player.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Player.vue?vue&type=template&id=42c0ac05&\"\nimport script from \"./Player.vue?vue&type=script&lang=js&\"\nexport * from \"./Player.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Player.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\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.players[_vm.playerIndex])?_c('Modal',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.modals.reminder && _vm.availableReminders.length),expression:\"modals.reminder && availableReminders.length\"}],on:{\"close\":function($event){return _vm.toggleModal('reminder')}}},[_c('h3',[_vm._v(\"Choose a reminder token:\")]),_c('ul',{staticClass:\"reminders\"},_vm._l((_vm.availableReminders),function(reminder){return _c('li',{key:reminder.role + ' ' + reminder.name,staticClass:\"reminder\",class:[reminder.role],on:{\"click\":function($event){return _vm.addReminder(reminder)}}},[_c('span',{staticClass:\"icon\",style:({\n backgroundImage: (\"url(\" + (require('../../assets/icons/' +\n reminder.role +\n '.png')) + \")\")\n })}),_c('span',{staticClass:\"text\"},[_vm._v(_vm._s(reminder.name))])])}),0)]):_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('transition',{attrs:{\"name\":\"modal-fade\"}},[_c('div',{staticClass:\"modal-backdrop\",on:{\"click\":_vm.close}},[_c('div',{staticClass:\"modal\",attrs:{\"role\":\"dialog\",\"aria-labelledby\":\"modalTitle\",\"aria-describedby\":\"modalDescription\"},on:{\"click\":function($event){$event.stopPropagation();}}},[_c('font-awesome-icon',{staticClass:\"close\",attrs:{\"icon\":\"times-circle\"},on:{\"click\":_vm.close}}),_vm._t(\"default\")],2)])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <transition name=\"modal-fade\">\n <div class=\"modal-backdrop\" @click=\"close\">\n <div\n class=\"modal\"\n role=\"dialog\"\n aria-labelledby=\"modalTitle\"\n aria-describedby=\"modalDescription\"\n @click.stop=\"\"\n >\n <font-awesome-icon @click=\"close\" class=\"close\" icon=\"times-circle\" />\n <slot></slot>\n </div>\n </div>\n </transition>\n</template>\n\n<script>\nexport default {\n methods: {\n close() {\n this.$emit(\"close\");\n }\n }\n};\n</script>\n\n<style lang=\"scss\">\n.modal-backdrop {\n position: fixed;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n background-color: rgba(0, 0, 0, 0.3);\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: 100;\n}\n\n.modal {\n background: rgba(0, 0, 0, 0.8);\n padding: 10px 20px;\n border-radius: 10px;\n box-shadow: 2px 2px 20px 1px #000;\n display: flex;\n flex-direction: column;\n max-width: 60%;\n\n .characters & {\n max-height: 80%;\n max-width: 80%;\n overflow-y: auto;\n }\n\n ul {\n list-style-type: none;\n margin: 0;\n padding: 0;\n display: flex;\n flex-wrap: wrap;\n align-content: center;\n align-items: center;\n justify-content: center;\n line-height: 100%;\n }\n > .close {\n position: absolute;\n right: 20px;\n top: 20px;\n cursor: pointer;\n z-index: 5;\n &:hover {\n color: red;\n }\n }\n}\n\n.modal-fade-enter,\n.modal-fade-leave-active {\n opacity: 0;\n}\n\n.modal-fade-enter-active,\n.modal-fade-leave-active {\n transition: opacity 0.2s ease;\n}\n</style>\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Modal.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Modal.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Modal.vue?vue&type=template&id=4b4950be&\"\nimport script from \"./Modal.vue?vue&type=script&lang=js&\"\nexport * from \"./Modal.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Modal.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\nexport default component.exports","<template>\n <Modal\n v-show=\"modals.reminder && availableReminders.length\"\n v-if=\"players[playerIndex]\"\n @close=\"toggleModal('reminder')\"\n >\n <h3>Choose a reminder token:</h3>\n <ul class=\"reminders\">\n <li\n v-for=\"reminder in availableReminders\"\n class=\"reminder\"\n :class=\"[reminder.role]\"\n :key=\"reminder.role + ' ' + reminder.name\"\n @click=\"addReminder(reminder)\"\n >\n <span\n class=\"icon\"\n :style=\"{\n backgroundImage: `url(${require('../../assets/icons/' +\n reminder.role +\n '.png')})`\n }\"\n ></span>\n <span class=\"text\">{{ reminder.name }}</span>\n </li>\n </ul>\n </Modal>\n</template>\n\n<script>\nimport Modal from \"./Modal\";\nimport { mapMutations, mapState } from \"vuex\";\n\nexport default {\n components: { Modal },\n props: [\"playerIndex\"],\n computed: {\n availableReminders() {\n let reminders = [];\n const players = this.$store.state.players.players;\n this.$store.state.roles.forEach(role => {\n if (players.some(p => p.role.id === role.id)) {\n reminders = [\n ...reminders,\n ...role.reminders.map(name => ({ role: role.id, name }))\n ];\n }\n });\n reminders.push({ role: \"good\", name: \"Good\" });\n reminders.push({ role: \"evil\", name: \"Evil\" });\n reminders.push({ role: \"custom\", name: \"Custom note\" });\n return reminders;\n },\n ...mapState([\"modals\"]),\n ...mapState(\"players\", [\"players\"])\n },\n methods: {\n addReminder(reminder) {\n const player = this.$store.state.players.players[this.playerIndex];\n let value;\n if (reminder.role === \"custom\") {\n const name = prompt(\"Add a custom reminder note\");\n if (!name) return;\n value = [...player.reminders, { role: \"custom\", name }];\n } else {\n value = [...player.reminders, reminder];\n }\n this.$store.commit(\"players/update\", {\n player,\n property: \"reminders\",\n value\n });\n this.$store.commit(\"toggleModal\", \"reminder\");\n },\n ...mapMutations([\"toggleModal\"])\n }\n};\n</script>\n\n<style scoped lang=\"scss\">\nul.reminders .reminder {\n background: url(\"../../assets/reminder.png\") center center;\n background-size: 100%;\n width: 14vh;\n height: 14vh;\n max-width: 100px;\n max-height: 100px;\n display: flex;\n justify-content: center;\n align-items: center;\n margin: 1%;\n\n border-radius: 50%;\n border: 3px solid black;\n box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);\n cursor: pointer;\n line-height: 100%;\n transition: transform 500ms ease;\n\n .icon {\n position: absolute;\n top: 0;\n width: 90%;\n height: 90%;\n background-size: 100%;\n background-position: center 0;\n background-repeat: no-repeat;\n }\n\n .text {\n color: black;\n font-size: 65%;\n font-weight: bold;\n text-align: center;\n top: 28%;\n width: 80%;\n line-height: 1;\n }\n\n &:hover {\n transform: scale(1.2);\n }\n}\n</style>\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ReminderModal.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ReminderModal.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ReminderModal.vue?vue&type=template&id=248e6d58&scoped=true&\"\nimport script from \"./ReminderModal.vue?vue&type=script&lang=js&\"\nexport * from \"./ReminderModal.vue?vue&type=script&lang=js&\"\nimport style0 from \"./ReminderModal.vue?vue&type=style&index=0&id=248e6d58&scoped=true&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 \"248e6d58\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Modal',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.modals.role && _vm.availableRoles.length),expression:\"modals.role && availableRoles.length\"}],on:{\"close\":function($event){return _vm.toggleModal('role')}}},[_c('h3',[_vm._v(\" Choose a new character for \"+_vm._s(_vm.playerIndex >= 0 && _vm.players.length ? _vm.players[_vm.playerIndex].name : \"bluffing\")+\" \")]),_c('ul',{staticClass:\"tokens\"},_vm._l((_vm.availableRoles),function(role){return _c('li',{key:role.id,class:[role.team],on:{\"click\":function($event){return _vm.setRole(role)}}},[_c('Token',{attrs:{\"role\":role}})],1)}),0)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <Modal\n v-show=\"modals.role && availableRoles.length\"\n @close=\"toggleModal('role')\"\n >\n <h3>\n Choose a new character for\n {{\n playerIndex >= 0 && players.length\n ? players[playerIndex].name\n : \"bluffing\"\n }}\n </h3>\n <ul class=\"tokens\">\n <li\n v-for=\"role in availableRoles\"\n v-bind:class=\"[role.team]\"\n v-bind:key=\"role.id\"\n @click=\"setRole(role)\"\n >\n <Token :role=\"role\" />\n </li>\n </ul>\n </Modal>\n</template>\n\n<script>\nimport { mapMutations, mapState } from \"vuex\";\nimport Modal from \"./Modal\";\nimport Token from \"../Token\";\n\nexport default {\n components: { Token, Modal },\n props: [\"playerIndex\"],\n computed: {\n availableRoles() {\n const availableRoles = [];\n const players = this.$store.state.players.players;\n this.$store.state.roles.forEach(role => {\n // don't show bluff roles that are already assigned to players\n if (\n this.playerIndex >= 0 ||\n (this.playerIndex < 0 &&\n !players.some(player => player.role.id === role.id))\n ) {\n availableRoles.push(role);\n }\n });\n availableRoles.push({});\n return availableRoles;\n },\n ...mapState([\"modals\", \"roles\", \"session\"]),\n ...mapState(\"players\", [\"players\"])\n },\n methods: {\n setRole(role) {\n if (this.playerIndex < 0) {\n // assign to bluff slot\n this.$store.commit(\"setBluff\", {\n index: this.playerIndex * -1 - 1,\n role\n });\n } else {\n if (this.session.isSpectator && role.team === \"traveler\") return;\n // assign to player\n const player = this.$store.state.players.players[this.playerIndex];\n this.$store.commit(\"players/update\", {\n player,\n property: \"role\",\n value: role\n });\n }\n this.$store.commit(\"toggleModal\", \"role\");\n },\n ...mapMutations([\"toggleModal\"])\n }\n};\n</script>\n\n<style scoped lang=\"scss\">\n@import \"../../vars.scss\";\n\nul.tokens li {\n border-radius: 50%;\n width: 6vw;\n margin: 1%;\n transition: transform 500ms ease;\n\n &.townsfolk {\n box-shadow: 0 0 10px $townsfolk, 0 0 10px #004cff;\n }\n &.outsider {\n box-shadow: 0 0 10px $outsider, 0 0 10px $outsider;\n }\n &.minion {\n box-shadow: 0 0 10px $minion, 0 0 10px $minion;\n }\n &.demon {\n box-shadow: 0 0 10px $demon, 0 0 10px $demon;\n }\n &.traveler {\n box-shadow: 0 0 10px $traveler, 0 0 10px $traveler;\n }\n &:hover {\n transform: scale(1.2);\n z-index: 10;\n }\n}\n\n#townsquare.spectator ul.tokens li.traveler {\n display: none;\n}\n</style>\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RoleModal.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RoleModal.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./RoleModal.vue?vue&type=template&id=91110818&scoped=true&\"\nimport script from \"./RoleModal.vue?vue&type=script&lang=js&\"\nexport * from \"./RoleModal.vue?vue&type=script&lang=js&\"\nimport style0 from \"./RoleModal.vue?vue&type=style&index=0&id=91110818&scoped=true&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 \"91110818\",\n null\n \n)\n\nexport default component.exports","<template>\n <div\n id=\"townsquare\"\n class=\"square\"\n v-bind:class=\"{\n public: grimoire.isPublic,\n spectator: session.isSpectator,\n vote: session.nomination\n }\"\n >\n <ul class=\"circle\" v-bind:class=\"['size-' + players.length]\">\n <Player\n v-for=\"(player, index) in players\"\n :key=\"index\"\n :player=\"player\"\n @screenshot=\"$emit('screenshot', $event)\"\n @trigger=\"handleTrigger(index, $event)\"\n v-bind:class=\"{\n from: Math.max(swap, move, nominate) === index,\n swap: swap > -1,\n move: move > -1,\n nominate: nominate > -1\n }\"\n ></Player>\n </ul>\n\n <div class=\"bluffs\" v-if=\"players.length > 6\" ref=\"bluffs\">\n <h3>Demon bluffs</h3>\n <font-awesome-icon icon=\"camera\" @click.stop=\"takeScreenshot\" />\n <ul>\n <li\n v-for=\"index in bluffs\"\n :key=\"index\"\n @click=\"openRoleModal(index * -1)\"\n >\n <Token :role=\"grimoire.bluffs[index - 1]\"></Token>\n </li>\n </ul>\n </div>\n\n <ReminderModal :player-index=\"selectedPlayer\"></ReminderModal>\n <RoleModal :player-index=\"selectedPlayer\"></RoleModal>\n </div>\n</template>\n\n<script>\nimport { mapState } from \"vuex\";\nimport Player from \"./Player\";\nimport Token from \"./Token\";\nimport ReminderModal from \"./modals/ReminderModal\";\nimport RoleModal from \"./modals/RoleModal\";\n\nexport default {\n components: {\n Player,\n Token,\n RoleModal,\n ReminderModal\n },\n computed: {\n ...mapState([\"grimoire\", \"roles\", \"session\"]),\n ...mapState(\"players\", [\"players\"])\n },\n data() {\n return {\n selectedPlayer: 0,\n bluffs: 3,\n swap: -1,\n move: -1,\n nominate: -1\n };\n },\n methods: {\n takeScreenshot() {\n const { width, height, x, y } = this.$refs.bluffs.getBoundingClientRect();\n this.$emit(\"screenshot\", { width, height, x, y });\n },\n handleTrigger(playerIndex, [method, params]) {\n if (typeof this[method] === \"function\") {\n this[method](playerIndex, params);\n }\n },\n claimSeat(playerIndex) {\n if (!this.session.isSpectator) return;\n if (this.session.playerId === this.players[playerIndex].id) {\n this.$store.commit(\"session/claimSeat\", -1);\n } else {\n this.$store.commit(\"session/claimSeat\", playerIndex);\n }\n },\n openReminderModal(playerIndex) {\n this.selectedPlayer = playerIndex;\n this.$store.commit(\"toggleModal\", \"reminder\");\n },\n openRoleModal(playerIndex) {\n const player = this.players[playerIndex];\n if (this.session.isSpectator && player && player.role.team === \"traveler\")\n return;\n this.selectedPlayer = playerIndex;\n this.$store.commit(\"toggleModal\", \"role\");\n },\n removePlayer(playerIndex) {\n if (this.session.isSpectator) return;\n if (\n confirm(\n `Do you really want to remove ${this.players[playerIndex].name}?`\n )\n ) {\n this.$store.commit(\"players/remove\", playerIndex);\n }\n },\n swapPlayer(from, to) {\n if (to === undefined) {\n this.cancel();\n this.swap = from;\n } else {\n this.$store.commit(\"players/swap\", [\n this.swap,\n this.players.indexOf(to)\n ]);\n this.cancel();\n }\n },\n movePlayer(from, to) {\n if (to === undefined) {\n this.cancel();\n this.move = from;\n } else {\n this.$store.commit(\"players/move\", [\n this.move,\n this.players.indexOf(to)\n ]);\n this.cancel();\n }\n },\n nominatePlayer(from, to) {\n if (to === undefined) {\n this.cancel();\n if (from !== this.nominate) {\n this.nominate = from;\n }\n } else {\n this.$store.commit(\"session/nomination\", [\n this.nominate,\n this.players.indexOf(to)\n ]);\n this.cancel();\n }\n },\n cancel() {\n this.move = -1;\n this.swap = -1;\n this.nominate = -1;\n }\n }\n};\n</script>\n\n<style lang=\"scss\">\n#townsquare {\n width: 100%;\n height: 100%;\n padding: 20px;\n display: flex;\n align-items: center;\n align-content: center;\n justify-content: center;\n}\n\n.circle {\n padding: 0;\n width: 100%;\n height: 100%;\n list-style: none;\n margin: 0;\n\n > li {\n position: absolute;\n left: 50%;\n height: 50%;\n transform-origin: 0 100%;\n pointer-events: none;\n\n &:hover {\n z-index: 25 !important;\n }\n\n > .player {\n margin-left: -50%;\n width: 100%;\n pointer-events: all;\n }\n > .reminder {\n margin-left: -25%;\n width: 50%;\n pointer-events: all;\n }\n }\n}\n\n@mixin on-circle($item-count) {\n $angle: (360 / $item-count);\n $rot: 0;\n\n // rotation and tooltip placement\n @for $i from 1 through $item-count {\n &:nth-child(#{$i}) {\n transform: rotate($rot * 1deg);\n @if $i - 1 <= $item-count / 2 {\n z-index: $item-count - $i + 1;\n } @else {\n z-index: $i - 1;\n .ability {\n right: 120%;\n left: auto;\n &:before {\n border-right-color: transparent;\n border-left-color: black;\n right: auto;\n left: 100%;\n }\n }\n }\n > * {\n transform: rotate($rot * -1deg);\n }\n\n // animation cascade\n .life,\n .token,\n .shroud,\n .night {\n transition-delay: ($i - 1) * 50ms;\n }\n\n // move reminders closer to the sides of the circle\n $q: $item-count / 4;\n $x: $i - 1;\n @if $x < $q or ($x >= $item-count / 2 and $x < $q * 3) {\n .player {\n margin-bottom: -10% + 20% * (1 - ($x % $q / $q));\n }\n } @else {\n .player {\n margin-bottom: -10% + 20% * ($x % $q / $q);\n }\n }\n }\n $rot: $rot + $angle;\n }\n}\n\n@for $i from 1 through 20 {\n .circle.size-#{$i} > li {\n @include on-circle($item-count: $i);\n }\n}\n\n/***** Demon bluffs *******/\n.bluffs {\n position: absolute;\n bottom: 10px;\n left: 10px;\n background: rgba(0, 0, 0, 0.5);\n border-radius: 10px;\n border: 3px solid black;\n filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));\n transform-origin: bottom left;\n transform: scale(1);\n opacity: 1;\n transition: all 200ms ease-in-out;\n\n #townsquare.public & {\n opacity: 0;\n transform: scale(0.1);\n }\n > svg {\n position: absolute;\n top: 10px;\n right: 10px;\n cursor: pointer;\n &:hover {\n color: red;\n }\n #app.screenshot & {\n display: none;\n }\n }\n h3 {\n margin-top: 5px;\n }\n ul {\n display: flex;\n align-items: center;\n li {\n width: 14vh;\n height: 14vh;\n margin: 0 0.5%;\n display: inline-block;\n }\n }\n}\n</style>\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TownSquare.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TownSquare.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TownSquare.vue?vue&type=template&id=29ee95ed&\"\nimport script from \"./TownSquare.vue?vue&type=script&lang=js&\"\nexport * from \"./TownSquare.vue?vue&type=script&lang=js&\"\nimport style0 from \"./TownSquare.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\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('ul',{staticClass:\"info\"},[_c('li',{staticClass:\"edition\",class:['edition-' + _vm.edition]}),(_vm.players.length - _vm.teams.traveler < 5)?_c('li',[_vm._v(\" Please add more players! \")]):_vm._e(),_c('li',[_vm._v(\" \"+_vm._s(_vm.players.length)+\" \"),_c('font-awesome-icon',{staticClass:\"players\",attrs:{\"icon\":\"users\"}}),_vm._v(\" \"+_vm._s(_vm.teams.alive)+\" \"),_c('font-awesome-icon',{staticClass:\"alive\",attrs:{\"icon\":\"heartbeat\"}}),_vm._v(\" \"+_vm._s(_vm.teams.votes)+\" \"),_c('font-awesome-icon',{staticClass:\"votes\",attrs:{\"icon\":\"vote-yea\"}})],1),(_vm.players.length - _vm.teams.traveler >= 5)?_c('li',[_vm._v(\" \"+_vm._s(_vm.teams.townsfolk)+\" \"),_c('font-awesome-icon',{staticClass:\"townsfolk\",attrs:{\"icon\":\"user-friends\"}}),_vm._v(\" \"+_vm._s(_vm.teams.outsider)+\" \"),_c('font-awesome-icon',{staticClass:\"outsider\",attrs:{\"icon\":_vm.teams.outsider > 1 ? 'user-friends' : 'user'}}),_vm._v(\" \"+_vm._s(_vm.teams.minion)+\" \"),_c('font-awesome-icon',{staticClass:\"minion\",attrs:{\"icon\":_vm.teams.minion > 1 ? 'user-friends' : 'user'}}),_vm._v(\" \"+_vm._s(_vm.teams.demon)+\" \"),_c('font-awesome-icon',{staticClass:\"demon\",attrs:{\"icon\":_vm.teams.demon > 1 ? 'user-friends' : 'user'}}),(_vm.teams.traveler)?[_vm._v(\" \"+_vm._s(_vm.teams.traveler)+\" \"),_c('font-awesome-icon',{staticClass:\"traveler\",attrs:{\"icon\":_vm.teams.traveler > 1 ? 'user-friends' : 'user'}})]:_vm._e()],2):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <ul class=\"info\">\n <li class=\"edition\" v-bind:class=\"['edition-' + edition]\"></li>\n <li v-if=\"players.length - teams.traveler < 5\">\n Please add more players!\n </li>\n <li>\n {{ players.length }} <font-awesome-icon class=\"players\" icon=\"users\" />\n {{ teams.alive }} <font-awesome-icon class=\"alive\" icon=\"heartbeat\" />\n {{ teams.votes }} <font-awesome-icon class=\"votes\" icon=\"vote-yea\" />\n </li>\n <li v-if=\"players.length - teams.traveler >= 5\">\n {{ teams.townsfolk }}\n <font-awesome-icon class=\"townsfolk\" icon=\"user-friends\" />\n {{ teams.outsider }}\n <font-awesome-icon\n class=\"outsider\"\n v-bind:icon=\"teams.outsider > 1 ? 'user-friends' : 'user'\"\n />\n {{ teams.minion }}\n <font-awesome-icon\n class=\"minion\"\n v-bind:icon=\"teams.minion > 1 ? 'user-friends' : 'user'\"\n />\n {{ teams.demon }}\n <font-awesome-icon\n class=\"demon\"\n v-bind:icon=\"teams.demon > 1 ? 'user-friends' : 'user'\"\n />\n <template v-if=\"teams.traveler\">\n {{ teams.traveler }}\n <font-awesome-icon\n class=\"traveler\"\n v-bind:icon=\"teams.traveler > 1 ? 'user-friends' : 'user'\"\n />\n </template>\n </li>\n </ul>\n</template>\n\n<script>\nimport gameJSON from \"./../game\";\nimport { mapState } from \"vuex\";\n\nexport default {\n computed: {\n teams: function() {\n const { players } = this.$store.state.players;\n const nonTravelers = this.$store.getters[\"players/nonTravelers\"];\n const alive = players.filter(player => player.isDead !== true).length;\n return {\n ...gameJSON[nonTravelers - 5],\n traveler: players.length - nonTravelers,\n alive,\n votes:\n alive +\n players.filter(\n player => player.isDead === true && player.isVoteless !== true\n ).length\n };\n },\n ...mapState([\"edition\"]),\n ...mapState(\"players\", [\"players\"])\n }\n};\n</script>\n\n<style lang=\"scss\" scoped>\n@import \"../vars.scss\";\n\n// Editions\n@each $img, $skipIcons in $editions {\n .edition-#{$img} {\n background-image: url(\"../assets/editions/#{$img}.png\");\n }\n @if $skipIcons != true {\n .edition-#{$img}.townsfolk {\n background-image: url(\"../assets/editions/#{$img}-townsfolk.png\");\n }\n .edition-#{$img}.outsider {\n background-image: url(\"../assets/editions/#{$img}-outsider.png\");\n }\n .edition-#{$img}.minion {\n background-image: url(\"../assets/editions/#{$img}-minion.png\");\n }\n .edition-#{$img}.demon {\n background-image: url(\"../assets/editions/#{$img}-demon.png\");\n }\n }\n}\n\n.info {\n position: absolute;\n display: flex;\n width: 20%;\n height: 20%;\n padding: 50px 0 0;\n align-items: center;\n align-content: center;\n justify-content: center;\n flex-wrap: wrap;\n background: url(\"../assets/demon-head.png\") center center no-repeat;\n background-size: auto 100%;\n\n li {\n display: block;\n font-weight: bold;\n text-align: center;\n padding: 0 5px;\n width: 100%;\n filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.7));\n\n svg {\n margin-right: 10px;\n }\n\n .players {\n color: #00f700;\n }\n .alive {\n color: #ff4a50;\n }\n .votes {\n color: #fff;\n }\n .townsfolk {\n color: $townsfolk;\n }\n .outsider {\n color: $outsider;\n }\n .minion {\n color: $minion;\n }\n .demon {\n color: $demon;\n }\n .traveler {\n color: $traveler;\n }\n }\n\n li.edition {\n width: 220px;\n height: 200px;\n max-width: 100%;\n max-height: 100%;\n background-position: 0 center;\n background-repeat: no-repeat;\n background-size: 100% auto;\n position: absolute;\n top: -25%;\n }\n}\n</style>\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TownInfo.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TownInfo.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TownInfo.vue?vue&type=template&id=280b29dc&scoped=true&\"\nimport script from \"./TownInfo.vue?vue&type=script&lang=js&\"\nexport * from \"./TownInfo.vue?vue&type=script&lang=js&\"\nimport style0 from \"./TownInfo.vue?vue&type=style&index=0&id=280b29dc&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 \"280b29dc\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{\"id\":\"controls\"}},[_c('Screenshot',{ref:\"screenshot\"}),(_vm.session.sessionId)?_c('span',{staticClass:\"session\",class:{ spectator: _vm.session.isSpectator },attrs:{\"title\":(\"You're currently in a live game with \" + (_vm.session.playerCount) + \" other players!\")},on:{\"click\":_vm.leaveSession}},[_c('font-awesome-icon',{attrs:{\"icon\":\"broadcast-tower\"}}),_vm._v(\" \"+_vm._s(_vm.session.playerCount)+\" \")],1):_vm._e(),_c('span',{staticClass:\"camera\"},[_c('font-awesome-icon',{class:{ success: _vm.grimoire.isScreenshotSuccess },attrs:{\"icon\":\"camera\",\"title\":\"Take a screenshot\"},on:{\"click\":function($event){return _vm.takeScreenshot()}}})],1),_c('div',{staticClass:\"menu\",class:{ open: _vm.grimoire.isMenuOpen }},[_c('font-awesome-icon',{attrs:{\"icon\":\"cog\"},on:{\"click\":_vm.toggleMenu}}),_c('ul',[_c('li',{staticClass:\"tabs\",class:_vm.tab},[_c('font-awesome-icon',{attrs:{\"icon\":\"book-open\"},on:{\"click\":function($event){_vm.tab = 'grimoire'}}}),_c('font-awesome-icon',{attrs:{\"icon\":\"broadcast-tower\"},on:{\"click\":function($event){_vm.tab = 'session'}}}),(!_vm.session.isSpectator)?_c('font-awesome-icon',{attrs:{\"icon\":\"users\"},on:{\"click\":function($event){_vm.tab = 'players'}}}):_vm._e(),_c('font-awesome-icon',{attrs:{\"icon\":\"theater-masks\"},on:{\"click\":function($event){_vm.tab = 'characters'}}}),_c('font-awesome-icon',{attrs:{\"icon\":\"question\"},on:{\"click\":function($event){_vm.tab = 'help'}}})],1),(_vm.tab === 'grimoire')?[_c('li',{staticClass:\"headline\"},[_vm._v(\"Grimoire\")]),(_vm.players.length)?_c('li',{on:{\"click\":_vm.toggleGrimoire}},[(!_vm.grimoire.isPublic)?[_vm._v(\"Hide\")]:_vm._e(),(_vm.grimoire.isPublic)?[_vm._v(\"Show\")]:_vm._e(),_c('em',[_vm._v(\"[G]\")])],2):_vm._e(),(_vm.players.length)?_c('li',{on:{\"click\":_vm.toggleNightOrder}},[_vm._v(\" Night order \"),_c('em',[_c('font-awesome-icon',{attrs:{\"icon\":[\n 'fas',\n _vm.grimoire.isNightOrder ? 'check-square' : 'square'\n ]}})],1)]):_vm._e(),(_vm.players.length)?_c('li',[_vm._v(\" Zoom \"),_c('em',[_c('font-awesome-icon',{attrs:{\"icon\":\"search-minus\"},on:{\"click\":function($event){return _vm.setZoom(_vm.grimoire.zoom - 1)}}}),_vm._v(\" \"+_vm._s(Math.round(100 + _vm.grimoire.zoom * 10))+\"% \"),_c('font-awesome-icon',{attrs:{\"icon\":\"search-plus\"},on:{\"click\":function($event){return _vm.setZoom(_vm.grimoire.zoom + 1)}}})],1)]):_vm._e(),_c('li',{on:{\"click\":_vm.setBackground}},[_vm._v(\" Background image \"),_c('em',[_c('font-awesome-icon',{attrs:{\"icon\":\"image\"}})],1)])]:_vm._e(),(_vm.tab === 'session')?[(_vm.session.sessionId)?_c('li',{staticClass:\"headline\"},[_vm._v(\" \"+_vm._s(_vm.session.isSpectator ? \"Playing\" : \"Hosting\")+\" \")]):_c('li',{staticClass:\"headline\"},[_vm._v(\" Live Session \")]),(!_vm.session.sessionId)?_c('li',{on:{\"click\":_vm.hostSession}},[_vm._v(\" Host (Storyteller)\"),_c('em',[_vm._v(\"[H]\")])]):_vm._e(),(!_vm.session.sessionId)?_c('li',{on:{\"click\":_vm.joinSession}},[_vm._v(\" Join (Player)\"),_c('em',[_vm._v(\"[J]\")])]):_vm._e(),(_vm.session.sessionId)?_c('li',{on:{\"click\":_vm.copySessionUrl}},[_vm._v(\" Copy player link \"),_c('em',[_c('font-awesome-icon',{attrs:{\"icon\":\"copy\"}})],1)]):_vm._e(),(_vm.session.sessionId)?_c('li',{on:{\"click\":_vm.leaveSession}},[_vm._v(\" Leave Session \"),_c('em',[_vm._v(_vm._s(_vm.session.sessionId))])]):_vm._e()]:_vm._e(),(_vm.tab === 'players' && !_vm.session.isSpectator)?[_c('li',{staticClass:\"headline\"},[_vm._v(\"Players\")]),(_vm.players.length < 20)?_c('li',{on:{\"click\":_vm.addPlayer}},[_vm._v(\"Add\"),_c('em',[_vm._v(\"[A]\")])]):_vm._e(),(_vm.players.length > 2)?_c('li',{on:{\"click\":_vm.randomizeSeatings}},[_vm._v(\" Randomize \"),_c('em',[_c('font-awesome-icon',{attrs:{\"icon\":\"dice\"}})],1)]):_vm._e(),(_vm.players.length)?_c('li',{on:{\"click\":_vm.clearPlayers}},[_vm._v(\" Remove all \"),_c('em',[_c('font-awesome-icon',{attrs:{\"icon\":\"trash-alt\"}})],1)]):_vm._e()]:_vm._e(),(_vm.tab === 'characters')?[_c('li',{staticClass:\"headline\"},[_vm._v(\"Characters\")]),(!_vm.session.isSpectator)?_c('li',{on:{\"click\":function($event){return _vm.toggleModal('edition')}}},[_vm._v(\" Select Edition \"),_c('em',[_vm._v(\"[E]\")])]):_vm._e(),(!_vm.session.isSpectator && _vm.players.length > 4)?_c('li',{on:{\"click\":function($event){return _vm.toggleModal('roles')}}},[_vm._v(\" Choose & Assign \"),_c('em',[_vm._v(\"[C]\")])]):_vm._e(),(_vm.players.length)?_c('li',{on:{\"click\":_vm.clearRoles}},[_vm._v(\" Remove all \"),_c('em',[_c('font-awesome-icon',{attrs:{\"icon\":\"trash-alt\"}})],1)]):_vm._e()]:_vm._e(),(_vm.tab === 'help')?[_c('li',{staticClass:\"headline\"},[_vm._v(\"Help\")]),_c('li',{on:{\"click\":function($event){return _vm.toggleModal('reference')}}},[_vm._v(\" Reference Sheet \"),_c('em',[_vm._v(\"[R]\")])]),_c('li',[_c('a',{attrs:{\"href\":\"https://discord.gg/tkWDny6\",\"target\":\"_blank\"}},[_vm._v(\" Join Discord \")]),_c('em',[_c('font-awesome-icon',{attrs:{\"icon\":['fab', 'discord']}})],1)]),_c('li',[_c('a',{attrs:{\"href\":\"https://github.com/bra1n/townsquare\",\"target\":\"_blank\"}},[_vm._v(\" Source code \")]),_c('em',[_c('font-awesome-icon',{attrs:{\"icon\":['fab', 'github']}})],1)])]:_vm._e()],2)],1)],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',{attrs:{\"id\":\"screenshot\"}},[_c('video',{ref:\"video\",attrs:{\"autoplay\":\"\"}}),_c('canvas',{ref:\"canvas\"})])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <div id=\"screenshot\">\n <video ref=\"video\" autoplay></video>\n <canvas ref=\"canvas\"></canvas>\n </div>\n</template>\n\n<script>\nexport default {\n data: function() {\n return {\n stream: null\n };\n },\n methods: {\n async capture({ x = 0, y = 0, width = 0, height = 0 }) {\n const canvas = this.$refs.canvas;\n const video = this.$refs.video;\n // start capturing\n if (!this.stream || !this.stream.active) {\n alert(\n \"Please select to stream the current browser tab to get the appropriate screenshots\"\n );\n try {\n this.stream = await navigator.mediaDevices.getDisplayMedia({\n video: {\n // frameRate: 5,\n cursor: \"never\"\n },\n audio: false\n });\n } catch (err) {\n this.$store.commit(\"updateScreenshot\", false);\n }\n }\n // get screenshot\n if (this.stream && this.stream.active) {\n video.srcObject = this.stream;\n video.play();\n setTimeout(() => {\n const context = canvas.getContext(\"2d\");\n canvas.setAttribute(\"width\", width || video.videoWidth);\n canvas.setAttribute(\"height\", height || video.videoHeight);\n context.drawImage(\n video,\n x || 0,\n y || 0,\n width || video.videoWidth,\n height || video.videoHeight,\n 0,\n 0,\n width || video.videoWidth,\n height || video.videoHeight\n );\n canvas.toBlob(blob => {\n try {\n // eslint-disable-next-line no-undef\n const item = new ClipboardItem({ \"image/png\": blob });\n navigator.clipboard.write([item]);\n this.$store.commit(\"updateScreenshot\", true);\n } catch (err) {\n this.$store.commit(\"updateScreenshot\", false);\n }\n });\n }, 100);\n }\n }\n }\n};\n</script>\n\n<style scoped>\nvideo {\n width: 100%;\n height: 100%;\n display: none;\n}\ncanvas {\n width: 100%;\n height: 100%;\n display: none;\n}\n</style>\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Screenshot.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Screenshot.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Screenshot.vue?vue&type=template&id=6443af38&scoped=true&\"\nimport script from \"./Screenshot.vue?vue&type=script&lang=js&\"\nexport * from \"./Screenshot.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Screenshot.vue?vue&type=style&index=0&id=6443af38&scoped=true&lang=css&\"\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 \"6443af38\",\n null\n \n)\n\nexport default component.exports","<template>\n <div id=\"controls\">\n <Screenshot ref=\"screenshot\"></Screenshot>\n <span\n class=\"session\"\n :class=\"{ spectator: session.isSpectator }\"\n v-if=\"session.sessionId\"\n @click=\"leaveSession\"\n :title=\"\n `You're currently in a live game with ${session.playerCount} other players!`\n \"\n >\n <font-awesome-icon icon=\"broadcast-tower\" />\n {{ session.playerCount }}\n </span>\n <span class=\"camera\">\n <font-awesome-icon\n icon=\"camera\"\n @click=\"takeScreenshot()\"\n title=\"Take a screenshot\"\n :class=\"{ success: grimoire.isScreenshotSuccess }\"\n />\n </span>\n <div class=\"menu\" v-bind:class=\"{ open: grimoire.isMenuOpen }\">\n <font-awesome-icon icon=\"cog\" @click=\"toggleMenu\" />\n <ul>\n <li class=\"tabs\" :class=\"tab\">\n <font-awesome-icon icon=\"book-open\" @click=\"tab = 'grimoire'\" />\n <font-awesome-icon icon=\"broadcast-tower\" @click=\"tab = 'session'\" />\n <font-awesome-icon\n icon=\"users\"\n v-if=\"!session.isSpectator\"\n @click=\"tab = 'players'\"\n />\n <font-awesome-icon icon=\"theater-masks\" @click=\"tab = 'characters'\" />\n <font-awesome-icon icon=\"question\" @click=\"tab = 'help'\" />\n </li>\n\n <template v-if=\"tab === 'grimoire'\">\n <!-- Grimoire -->\n <li class=\"headline\">Grimoire</li>\n <li @click=\"toggleGrimoire\" v-if=\"players.length\">\n <template v-if=\"!grimoire.isPublic\">Hide</template>\n <template v-if=\"grimoire.isPublic\">Show</template>\n <em>[G]</em>\n </li>\n <li @click=\"toggleNightOrder\" v-if=\"players.length\">\n Night order\n <em\n ><font-awesome-icon\n :icon=\"[\n 'fas',\n grimoire.isNightOrder ? 'check-square' : 'square'\n ]\"\n /></em>\n </li>\n <li v-if=\"players.length\">\n Zoom\n <em>\n <font-awesome-icon\n @click=\"setZoom(grimoire.zoom - 1)\"\n icon=\"search-minus\"\n />\n {{ Math.round(100 + grimoire.zoom * 10) }}%\n <font-awesome-icon\n @click=\"setZoom(grimoire.zoom + 1)\"\n icon=\"search-plus\"\n />\n </em>\n </li>\n <li @click=\"setBackground\">\n Background image\n <em><font-awesome-icon icon=\"image\"/></em>\n </li>\n </template>\n\n <template v-if=\"tab === 'session'\">\n <li class=\"headline\" v-if=\"session.sessionId\">\n {{ session.isSpectator ? \"Playing\" : \"Hosting\" }}\n </li>\n <li class=\"headline\" v-else>\n Live Session\n </li>\n <li @click=\"hostSession\" v-if=\"!session.sessionId\">\n Host (Storyteller)<em>[H]</em>\n </li>\n <li @click=\"joinSession\" v-if=\"!session.sessionId\">\n Join (Player)<em>[J]</em>\n </li>\n <li v-if=\"session.sessionId\" @click=\"copySessionUrl\">\n Copy player link\n <em><font-awesome-icon icon=\"copy\"/></em>\n </li>\n <li @click=\"leaveSession\" v-if=\"session.sessionId\">\n Leave Session\n <em>{{ session.sessionId }}</em>\n </li>\n </template>\n\n <template v-if=\"tab === 'players' && !session.isSpectator\">\n <!-- Users -->\n <li class=\"headline\">Players</li>\n <li @click=\"addPlayer\" v-if=\"players.length < 20\">Add<em>[A]</em></li>\n <li @click=\"randomizeSeatings\" v-if=\"players.length > 2\">\n Randomize\n <em><font-awesome-icon icon=\"dice\"/></em>\n </li>\n <li @click=\"clearPlayers\" v-if=\"players.length\">\n Remove all\n <em><font-awesome-icon icon=\"trash-alt\"/></em>\n </li>\n </template>\n\n <template v-if=\"tab === 'characters'\">\n <!-- Characters -->\n <li class=\"headline\">Characters</li>\n <li v-if=\"!session.isSpectator\" @click=\"toggleModal('edition')\">\n Select Edition\n <em>[E]</em>\n </li>\n <li\n @click=\"toggleModal('roles')\"\n v-if=\"!session.isSpectator && players.length > 4\"\n >\n Choose & Assign\n <em>[C]</em>\n </li>\n <li @click=\"clearRoles\" v-if=\"players.length\">\n Remove all\n <em><font-awesome-icon icon=\"trash-alt\"/></em>\n </li>\n </template>\n\n <template v-if=\"tab === 'help'\">\n <!-- Help -->\n <li class=\"headline\">Help</li>\n <li @click=\"toggleModal('reference')\">\n Reference Sheet\n <em>[R]</em>\n </li>\n <li>\n <a href=\"https://discord.gg/tkWDny6\" target=\"_blank\">\n Join Discord\n </a>\n <em><font-awesome-icon :icon=\"['fab', 'discord']\"/></em>\n </li>\n <li>\n <a href=\"https://github.com/bra1n/townsquare\" target=\"_blank\">\n Source code\n </a>\n <em><font-awesome-icon :icon=\"['fab', 'github']\"/></em>\n </li>\n </template>\n </ul>\n </div>\n </div>\n</template>\n\n<script>\nimport { mapMutations, mapState } from \"vuex\";\nimport Screenshot from \"./Screenshot\";\n\nexport default {\n components: {\n Screenshot\n },\n computed: {\n ...mapState([\"grimoire\", \"session\"]),\n ...mapState(\"players\", [\"players\"])\n },\n data() {\n return {\n tab: \"grimoire\"\n };\n },\n methods: {\n takeScreenshot(dimensions = {}) {\n this.$store.commit(\"updateScreenshot\");\n this.$refs.screenshot.capture(dimensions);\n },\n setBackground() {\n const background = prompt(\"Enter custom background URL\");\n if (background || background === \"\") {\n this.$store.commit(\"setBackground\", background);\n }\n },\n hostSession() {\n const sessionId = prompt(\n \"Enter a channel number / name for your session\",\n Math.round(Math.random() * 10000)\n );\n if (sessionId) {\n this.$store.commit(\"session/setSpectator\", false);\n this.$store.commit(\n \"session/setSessionId\",\n sessionId.replace(/[^0-9a-z]/g, \"\").substr(0, 5)\n );\n this.copySessionUrl();\n }\n },\n copySessionUrl() {\n // check for clipboard permissions\n navigator.permissions\n .query({ name: \"clipboard-write\" })\n .then(({ state }) => {\n if (state === \"granted\" || state === \"prompt\") {\n const url = window.location.href.split(\"#\")[0];\n const link = url + \"#play/\" + this.session.sessionId;\n navigator.clipboard.writeText(link);\n }\n });\n },\n joinSession() {\n const sessionId = prompt(\n \"Enter the channel number / name of the session you want to join\"\n );\n if (sessionId) {\n this.$store.commit(\"session/setSpectator\", true);\n this.$store.commit(\n \"session/setSessionId\",\n sessionId.replace(/[^0-9a-z]/g, \"\").substr(0, 5)\n );\n }\n },\n leaveSession() {\n if (confirm(\"Are you sure you want to leave the active live game?\")) {\n this.$store.commit(\"session/setSpectator\", false);\n this.$store.commit(\"session/setSessionId\", \"\");\n }\n },\n addPlayer() {\n if (this.session.isSpectator) return;\n if (this.players.length >= 20) return;\n const name = prompt(\"Player name\");\n if (name) {\n this.$store.commit(\"players/add\", name);\n }\n },\n randomizeSeatings() {\n if (this.session.isSpectator) return;\n if (confirm(\"Are you sure you want to randomize seatings?\")) {\n this.$store.dispatch(\"players/randomize\");\n }\n },\n clearPlayers() {\n if (this.session.isSpectator) return;\n if (confirm(\"Are you sure you want to remove all players?\")) {\n this.$store.commit(\"players/clear\");\n this.$store.commit(\"setBluff\");\n }\n },\n clearRoles() {\n if (confirm(\"Are you sure you want to remove all player roles?\")) {\n this.$store.dispatch(\"players/clearRoles\");\n this.$store.commit(\"setBluff\");\n }\n },\n ...mapMutations([\n \"toggleGrimoire\",\n \"toggleMenu\",\n \"toggleNightOrder\",\n \"updateScreenshot\",\n \"setZoom\",\n \"toggleModal\"\n ])\n }\n};\n</script>\n\n<style scoped lang=\"scss\">\n@import \"../vars.scss\";\n\n// success animation\n@keyframes greenToWhite {\n from {\n color: green;\n }\n to {\n color: white;\n }\n}\n\n// Controls\n#controls {\n position: absolute;\n right: 3px;\n top: 3px;\n text-align: right;\n padding-right: 50px;\n z-index: 200;\n\n #app.screenshot & {\n display: none;\n }\n\n svg {\n filter: drop-shadow(0 0 5px rgba(0, 0, 0, 1));\n &.success {\n animation: greenToWhite 1s normal forwards;\n animation-iteration-count: 1;\n }\n }\n\n > span {\n display: inline-block;\n cursor: pointer;\n z-index: 5;\n margin-top: 7px;\n margin-left: 10px;\n }\n\n span.session {\n color: $demon;\n &.spectator {\n color: $townsfolk;\n }\n }\n}\n\n.menu {\n width: 220px;\n transform-origin: 200px 22px;\n transition: transform 500ms cubic-bezier(0.68, -0.55, 0.27, 1.55);\n transform: rotate(-90deg);\n position: absolute;\n right: 0;\n top: 0;\n\n &.open {\n transform: rotate(0deg);\n }\n\n > svg {\n cursor: pointer;\n background: rgba(0, 0, 0, 0.5);\n border: 3px solid black;\n width: 40px;\n height: 50px;\n margin-bottom: -8px;\n border-bottom: 0;\n border-radius: 10px 10px 0 0;\n padding: 5px 5px 15px;\n }\n\n a {\n color: white;\n text-decoration: none;\n &:hover {\n color: red;\n }\n }\n\n ul {\n display: flex;\n list-style-type: none;\n padding: 0;\n margin: 0;\n flex-direction: column;\n overflow: hidden;\n box-shadow: 0 0 10px black;\n border: 3px solid black;\n border-radius: 10px 0 10px 10px;\n\n li {\n padding: 2px 5px;\n color: white;\n text-align: left;\n background: rgba(0, 0, 0, 0.7);\n display: flex;\n align-items: center;\n justify-content: space-between;\n min-height: 30px;\n\n &.tabs {\n display: flex;\n padding: 0;\n svg {\n flex-grow: 1;\n flex-shrink: 0;\n height: 35px;\n border-bottom: 3px solid black;\n border-right: 3px solid black;\n padding: 5px 0;\n cursor: pointer;\n transition: color 250ms;\n &:hover {\n color: red;\n }\n &:last-child {\n border-right: 0;\n }\n }\n &.grimoire .fa-book-open,\n &.players .fa-users,\n &.characters .fa-theater-masks,\n &.session .fa-broadcast-tower,\n &.help .fa-question {\n background: linear-gradient(\n to bottom,\n $townsfolk 0%,\n rgba(0, 0, 0, 0.5) 100%\n );\n }\n }\n\n &:not(.headline):not(.tabs):hover {\n cursor: pointer;\n color: red;\n }\n\n em {\n flex-grow: 0;\n font-style: normal;\n margin-left: 10px;\n font-size: 80%;\n }\n }\n\n .headline {\n font-family: PiratesBay, sans-serif;\n letter-spacing: 1px;\n padding: 0 10px;\n text-align: center;\n justify-content: center;\n background: linear-gradient(\n to right,\n $townsfolk 0%,\n rgba(0, 0, 0, 0.5) 20%,\n rgba(0, 0, 0, 0.5) 80%,\n $demon 100%\n );\n }\n }\n}\n</style>\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Menu.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Menu.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Menu.vue?vue&type=template&id=cf05c89e&scoped=true&\"\nimport script from \"./Menu.vue?vue&type=script&lang=js&\"\nexport * from \"./Menu.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Menu.vue?vue&type=style&index=0&id=cf05c89e&scoped=true&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 \"cf05c89e\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.nonTravelers >= 5)?_c('Modal',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.modals.roles),expression:\"modals.roles\"}],staticClass:\"roles\",on:{\"close\":function($event){return _vm.toggleModal('roles')}}},[_c('h3',[_vm._v(\"Select the characters for \"+_vm._s(_vm.nonTravelers)+\" players:\")]),_vm._l((_vm.roleSelection),function(teamRoles,team){return _c('ul',{key:team,staticClass:\"tokens\"},[_c('li',{staticClass:\"count\",class:[team]},[_vm._v(\" \"+_vm._s(teamRoles.filter(function (role) { return role.selected; }).length)+\" / \"+_vm._s(_vm.game[_vm.nonTravelers - 5][team])+\" \")]),_vm._l((teamRoles),function(role){return _c('li',{key:role.id,class:[role.team, role.selected ? 'selected' : ''],on:{\"click\":function($event){role.selected = !role.selected}}},[_c('Token',{attrs:{\"role\":role}})],1)})],2)}),(_vm.hasSelectedSetupRoles)?_c('div',{staticClass:\"warning\"},[_vm._v(\" Warning: there are characters selected that modify the game setup! The randomizer does not account for these characters. \")]):_vm._e(),_c('div',{staticClass:\"button-group\"},[_c('div',{staticClass:\"button\",class:{\n disabled: _vm.selectedRoles > _vm.nonTravelers || !_vm.selectedRoles\n },on:{\"click\":_vm.assignRoles}},[_c('font-awesome-icon',{attrs:{\"icon\":\"people-arrows\"}}),_vm._v(\" Assign \"+_vm._s(_vm.selectedRoles)+\" characters randomly \")],1),_c('div',{staticClass:\"button\",on:{\"click\":_vm.selectRandomRoles}},[_c('font-awesome-icon',{attrs:{\"icon\":\"random\"}}),_vm._v(\" Shuffle characters \")],1)])],2):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <Modal\n class=\"roles\"\n v-show=\"modals.roles\"\n @close=\"toggleModal('roles')\"\n v-if=\"nonTravelers >= 5\"\n >\n <h3>Select the characters for {{ nonTravelers }} players:</h3>\n <ul\n class=\"tokens\"\n v-for=\"(teamRoles, team) in roleSelection\"\n v-bind:key=\"team\"\n >\n <li class=\"count\" v-bind:class=\"[team]\">\n {{ teamRoles.filter(role => role.selected).length }} /\n {{ game[nonTravelers - 5][team] }}\n </li>\n <li\n v-for=\"role in teamRoles\"\n v-bind:class=\"[role.team, role.selected ? 'selected' : '']\"\n v-bind:key=\"role.id\"\n @click=\"role.selected = !role.selected\"\n >\n <Token :role=\"role\" />\n </li>\n </ul>\n <div class=\"warning\" v-if=\"hasSelectedSetupRoles\">\n Warning: there are characters selected that modify the game setup! The\n randomizer does not account for these characters.\n </div>\n <div class=\"button-group\">\n <div\n class=\"button\"\n @click=\"assignRoles\"\n v-bind:class=\"{\n disabled: selectedRoles > nonTravelers || !selectedRoles\n }\"\n >\n <font-awesome-icon icon=\"people-arrows\" />\n Assign {{ selectedRoles }} characters randomly\n </div>\n <div class=\"button\" @click=\"selectRandomRoles\">\n <font-awesome-icon icon=\"random\" />\n Shuffle characters\n </div>\n </div>\n </Modal>\n</template>\n\n<script>\nimport Modal from \"./Modal\";\nimport gameJSON from \"./../../game\";\nimport Token from \"./../Token\";\nimport { mapGetters, mapMutations, mapState } from \"vuex\";\n\nconst randomElement = arr => arr[Math.floor(Math.random() * arr.length)];\n\nexport default {\n components: {\n Token,\n Modal\n },\n data: function() {\n return {\n roleSelection: {},\n game: gameJSON\n };\n },\n computed: {\n selectedRoles: function() {\n return Object.values(this.roleSelection)\n .map(roles => roles.filter(role => role.selected).length)\n .reduce((a, b) => a + b, 0);\n },\n hasSelectedSetupRoles: function() {\n return Object.values(this.roleSelection).some(roles =>\n roles.some(role => role.selected && role.setup)\n );\n },\n ...mapState([\"roles\", \"modals\"]),\n ...mapState(\"players\", [\"players\"]),\n ...mapGetters({ nonTravelers: \"players/nonTravelers\" })\n },\n methods: {\n selectRandomRoles() {\n this.roleSelection = {};\n this.roles.forEach(role => {\n if (!this.roleSelection[role.team]) {\n this.$set(this.roleSelection, role.team, []);\n }\n this.roleSelection[role.team].push(role);\n this.$set(role, \"selected\", false);\n });\n delete this.roleSelection[\"traveler\"];\n const playerCount = Math.max(5, this.nonTravelers);\n const composition = this.game[playerCount - 5];\n Object.keys(composition).forEach(team => {\n for (let x = 0; x < composition[team]; x++) {\n const available = this.roleSelection[team].filter(\n role => role.selected !== true\n );\n if (available.length) {\n randomElement(available).selected = true;\n }\n }\n });\n },\n assignRoles() {\n if (this.selectedRoles <= this.nonTravelers && this.selectedRoles) {\n // generate list of selected roles and randomize it\n const roles = Object.values(this.roleSelection)\n .map(roles => roles.filter(role => role.selected))\n .reduce((a, b) => [...a, ...b], [])\n .map(a => [Math.random(), a])\n .sort((a, b) => a[0] - b[0])\n .map(a => a[1]);\n this.players.forEach(player => {\n if (player.role.team !== \"traveler\" && roles.length) {\n const value = roles.pop();\n this.$store.commit(\"players/update\", {\n player,\n property: \"role\",\n value\n });\n }\n });\n this.$store.commit(\"toggleModal\", \"roles\");\n }\n },\n ...mapMutations([\"toggleModal\"])\n },\n mounted: function() {\n if (!Object.keys(this.roleSelection).length) {\n this.selectRandomRoles();\n }\n },\n watch: {\n roles() {\n this.selectRandomRoles();\n }\n }\n};\n</script>\n\n<style lang=\"scss\" scoped>\n@import \"../../vars.scss\";\n\nul.tokens {\n padding-left: 5%;\n li {\n border-radius: 50%;\n width: 6vw;\n margin: 1%;\n opacity: 0.5;\n transition: all 250ms;\n &.selected {\n opacity: 1;\n }\n &.townsfolk {\n box-shadow: 0 0 10px $townsfolk, 0 0 10px #004cff;\n }\n &.outsider {\n box-shadow: 0 0 10px $outsider, 0 0 10px $outsider;\n }\n &.minion {\n box-shadow: 0 0 10px $minion, 0 0 10px $minion;\n }\n &.demon {\n box-shadow: 0 0 10px $demon, 0 0 10px $demon;\n }\n &.traveler {\n box-shadow: 0 0 10px $traveler, 0 0 10px $traveler;\n }\n &:hover {\n transform: scale(1.2);\n z-index: 10;\n }\n }\n .count {\n opacity: 1;\n position: absolute;\n left: 0;\n font-weight: bold;\n font-size: 75%;\n width: 5%;\n display: flex;\n align-items: center;\n justify-content: center;\n &:after {\n content: \" \";\n display: block;\n padding-top: 100%;\n }\n &.townsfolk {\n color: $townsfolk;\n }\n &.outsider {\n color: $outsider;\n }\n &.minion {\n color: $minion;\n }\n &.demon {\n color: $demon;\n }\n }\n}\n\n.roles .modal .warning {\n color: red;\n text-align: center;\n margin: auto;\n}\n</style>\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RolesModal.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RolesModal.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./RolesModal.vue?vue&type=template&id=a67c4086&scoped=true&\"\nimport script from \"./RolesModal.vue?vue&type=script&lang=js&\"\nexport * from \"./RolesModal.vue?vue&type=script&lang=js&\"\nimport style0 from \"./RolesModal.vue?vue&type=style&index=0&id=a67c4086&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 \"a67c4086\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Modal',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.modals.edition),expression:\"modals.edition\"}],staticClass:\"editions\",on:{\"close\":function($event){return _vm.toggleModal('edition')}}},[(!_vm.isCustom)?_c('div',[_c('h3',[_vm._v(\"Select an edition:\")]),_c('ul',{staticClass:\"editions\"},[_vm._l((_vm.editions),function(edition){return _c('li',{key:edition.id,staticClass:\"edition\",class:['edition-' + edition.id],on:{\"click\":function($event){return _vm.setEdition(edition.id)}}},[_vm._v(\" \"+_vm._s(edition.name)+\" \")])}),_c('li',{staticClass:\"edition edition-custom\",on:{\"click\":function($event){_vm.isCustom = true}}},[_vm._v(\" Custom Script \")])],2)]):_c('div',{staticClass:\"custom\"},[_c('h3',[_vm._v(\"Upload a custom script\")]),_vm._v(\" To play with a custom script, you need to select the characters you want to play with in the official \"),_c('a',{attrs:{\"href\":\"https://bloodontheclocktower.com/script-tool/\",\"target\":\"_blank\"}},[_vm._v(\"Script Tool\")]),_vm._v(\" and then upload the generated \\\"custom-list.json\\\" either directly here or provide a URL to such a hosted JSON file.\"),_c('br'),_c('h3',[_vm._v(\"Some popular custom scripts:\")]),_c('ul',{staticClass:\"scripts\"},_vm._l((_vm.scripts),function(script,index){return _c('li',{key:index,on:{\"click\":function($event){return _vm.handleURL(script[1])}}},[_vm._v(\" \"+_vm._s(script[0])+\" \")])}),0),_c('input',{ref:\"upload\",attrs:{\"type\":\"file\",\"accept\":\"application/json\"},on:{\"change\":_vm.handleUpload}}),_c('div',{staticClass:\"button-group\"},[_c('div',{staticClass:\"button\",on:{\"click\":_vm.openUpload}},[_c('font-awesome-icon',{attrs:{\"icon\":\"file-upload\"}}),_vm._v(\" Upload JSON \")],1),_c('div',{staticClass:\"button\",on:{\"click\":_vm.promptURL}},[_c('font-awesome-icon',{attrs:{\"icon\":\"link\"}}),_vm._v(\" Enter URL \")],1),_c('div',{staticClass:\"button\",on:{\"click\":function($event){_vm.isCustom = false}}},[_c('font-awesome-icon',{attrs:{\"icon\":\"undo\"}}),_vm._v(\" Back \")],1)])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <Modal\n class=\"editions\"\n v-show=\"modals.edition\"\n @close=\"toggleModal('edition')\"\n >\n <div v-if=\"!isCustom\">\n <h3>Select an edition:</h3>\n <ul class=\"editions\">\n <li\n v-for=\"edition in editions\"\n class=\"edition\"\n v-bind:class=\"['edition-' + edition.id]\"\n v-bind:key=\"edition.id\"\n @click=\"setEdition(edition.id)\"\n >\n {{ edition.name }}\n </li>\n <li class=\"edition edition-custom\" @click=\"isCustom = true\">\n Custom Script\n </li>\n </ul>\n </div>\n <div class=\"custom\" v-else>\n <h3>Upload a custom script</h3>\n To play with a custom script, you need to select the characters you want\n to play with in the official\n <a href=\"https://bloodontheclocktower.com/script-tool/\" target=\"_blank\"\n >Script Tool</a\n >\n and then upload the generated \"custom-list.json\" either directly here or\n provide a URL to such a hosted JSON file.<br />\n <h3>Some popular custom scripts:</h3>\n <ul class=\"scripts\">\n <li\n v-for=\"(script, index) in scripts\"\n v-bind:key=\"index\"\n @click=\"handleURL(script[1])\"\n >\n {{ script[0] }}\n </li>\n </ul>\n <input\n type=\"file\"\n ref=\"upload\"\n accept=\"application/json\"\n @change=\"handleUpload\"\n />\n <div class=\"button-group\">\n <div class=\"button\" @click=\"openUpload\">\n <font-awesome-icon icon=\"file-upload\" /> Upload JSON\n </div>\n <div class=\"button\" @click=\"promptURL\">\n <font-awesome-icon icon=\"link\" /> Enter URL\n </div>\n <div class=\"button\" @click=\"isCustom = false\">\n <font-awesome-icon icon=\"undo\" /> Back\n </div>\n </div>\n </div>\n </Modal>\n</template>\n\n<script>\nimport editionJSON from \"../../editions\";\nimport { mapMutations, mapState } from \"vuex\";\nimport Modal from \"./Modal\";\n\nexport default {\n components: {\n Modal\n },\n data: function() {\n return {\n editions: editionJSON,\n isCustom: false,\n scripts: [\n [\n \"Catfishing 8.0 (+Sentinel)\",\n \"https://gist.githubusercontent.com/bra1n/8a5ec41a7bbf945f6b7dfc1cef72b569/raw/b5c63ac303f279dba918b897211cb6dc708bc64e/catfishing.json\"\n ],\n [\n \"On Thin Ice (Teensyville, +Sentinel)\",\n \"https://gist.githubusercontent.com/bra1n/8dacd9f2abc6f428331ea1213ab153f5/raw/9758aff4b59965dc7a094db549d950be5a26b571/custom-script.json\"\n ],\n [\n \"Race To The Bottom (Teensyville, +Sentinel, +Doomsayer)\",\n \"https://gist.githubusercontent.com/bra1n/63e1354cb3dc9d4032bcd0623dc48888/raw/5be4df8386ec61e3a98c32be77f8cac3f8414379/custom-script.json\"\n ],\n [\n \"Frankenstein's Mayor by Ted (Teensyville, +Sentinel)\",\n \"https://gist.githubusercontent.com/bra1n/32c52b422cc01b934a4291eeb81dbcee/raw/3ca5a043c41141ac40667dc15097deb327263268/Frankensteins_Mayor_by_Ted.json\"\n ],\n [\n \"Vigormortis High School (Teensyville, +Sentinel)\",\n \"https://gist.githubusercontent.com/bra1n/1f65bd4a999524719d5dabe98c3c2d27/raw/f28d3268846c182b2078888122003c6f95c6b2cf/VigormortisHighSchool.json\"\n ]\n ]\n };\n },\n computed: mapState([\"modals\"]),\n methods: {\n openUpload() {\n this.$refs.upload.click();\n },\n handleUpload() {\n const file = this.$refs.upload.files[0];\n if (file && file.size) {\n const reader = new FileReader();\n reader.addEventListener(\"load\", () => {\n this.parseScript(JSON.parse(reader.result));\n });\n reader.readAsText(file);\n }\n },\n promptURL() {\n const url = prompt(\"Enter URL to a custom-script.json file\");\n if (url) {\n this.handleURL(url);\n }\n },\n async handleURL(url) {\n const res = await fetch(url);\n if (res && res.json) {\n const script = await res.json();\n this.parseScript(script);\n }\n },\n parseScript(script) {\n if (!script || !script.length) return;\n const roles = script.map(({ id }) => id.replace(/[^a-z]/g, \"\"));\n this.$store.commit(\"setRoles\", roles);\n this.$store.commit(\"setEdition\", \"custom\");\n this.isCustom = false;\n },\n ...mapMutations([\"toggleModal\", \"setEdition\"])\n }\n};\n</script>\n\n<style scoped lang=\"scss\">\n@import \"../../vars\";\n\n// Editions\n@each $img, $skipIcons in $editions {\n .edition-#{$img} {\n background-image: url(\"../../assets/editions/#{$img}.png\");\n }\n @if $skipIcons != true {\n .edition-#{$img}.townsfolk {\n background-image: url(\"../../assets/editions/#{$img}-townsfolk.png\");\n }\n .edition-#{$img}.outsider {\n background-image: url(\"../../assets/editions/#{$img}-outsider.png\");\n }\n .edition-#{$img}.minion {\n background-image: url(\"../../assets/editions/#{$img}-minion.png\");\n }\n .edition-#{$img}.demon {\n background-image: url(\"../../assets/editions/#{$img}-demon.png\");\n }\n }\n}\n\nul.editions .edition {\n font-family: PiratesBay, sans-serif;\n letter-spacing: 1px;\n text-align: center;\n padding-top: 15%;\n background-position: center center;\n background-size: 100% auto;\n background-repeat: no-repeat;\n width: 30%;\n margin: 5px;\n font-size: 120%;\n text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000,\n 1px 1px 0 #000, 0 0 5px rgba(0, 0, 0, 0.75);\n cursor: pointer;\n &:hover {\n color: red;\n }\n}\n\n.custom {\n text-align: center;\n input[type=\"file\"] {\n display: none;\n }\n .scripts {\n list-style-type: disc;\n font-size: 120%;\n cursor: pointer;\n display: block;\n width: 50%;\n text-align: left;\n margin: 10px auto;\n li:hover {\n color: red;\n }\n }\n}\n</style>\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./EditionModal.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./EditionModal.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./EditionModal.vue?vue&type=template&id=36ae1bc0&scoped=true&\"\nimport script from \"./EditionModal.vue?vue&type=script&lang=js&\"\nexport * from \"./EditionModal.vue?vue&type=script&lang=js&\"\nimport style0 from \"./EditionModal.vue?vue&type=style&index=0&id=36ae1bc0&scoped=true&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 \"36ae1bc0\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"intro\"},[_c('img',{attrs:{\"src\":\"static/apple-icon.png\",\"alt\":\"\"}}),_vm._v(\" Welcome to the (unofficial) \"),_c('b',[_vm._v(\" Virtual Blood on the Clocktower Town Square\")]),_vm._v(\"!\"),_c('br'),_vm._v(\" Please add more players through the \"),_c('span',{staticClass:\"button\",on:{\"click\":_vm.toggleMenu}},[_c('font-awesome-icon',{attrs:{\"icon\":\"cog\"}}),_vm._v(\" Menu \")],1),_vm._v(\" on the top right or by pressing \"),_c('b',[_vm._v(\"[A]\")]),_vm._v(\".\"),_c('br'),_vm._v(\" This project is free and open source and can be found on \"),_c('a',{attrs:{\"href\":\"https://github.com/bra1n/townsquare\",\"target\":\"_blank\"}},[_vm._v(\"GitHub\")]),_vm._v(\". \")])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <div class=\"intro\">\n <img src=\"static/apple-icon.png\" alt=\"\" />\n Welcome to the (unofficial)\n <b> Virtual Blood on the Clocktower Town Square</b>!<br />\n Please add more players through the\n <span class=\"button\" @click=\"toggleMenu\">\n <font-awesome-icon icon=\"cog\" /> Menu\n </span>\n on the top right or by pressing <b>[A]</b>.<br />\n This project is free and open source and can be found on\n <a href=\"https://github.com/bra1n/townsquare\" target=\"_blank\">GitHub</a>.\n </div>\n</template>\n\n<script>\nimport { mapMutations } from \"vuex\";\n\nexport default {\n methods: mapMutations([\"toggleMenu\"])\n};\n</script>\n\n<style scoped lang=\"scss\">\n// Intro\n.intro {\n text-align: center;\n width: 50%;\n font-size: 120%;\n position: absolute;\n padding: 10px;\n background: rgba(0, 0, 0, 0.5);\n border: 3px solid black;\n border-radius: 10px;\n z-index: 3;\n img {\n position: absolute;\n bottom: 100%;\n left: 50%;\n width: 25vh;\n margin-left: -12.5vh;\n margin-bottom: 2vh;\n max-width: 192px;\n border-radius: 50%;\n box-shadow: 0 0 10px black;\n border: 3px solid black;\n }\n}\n</style>\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Intro.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Intro.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Intro.vue?vue&type=template&id=64d39c3f&scoped=true&\"\nimport script from \"./Intro.vue?vue&type=script&lang=js&\"\nexport * from \"./Intro.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Intro.vue?vue&type=style&index=0&id=64d39c3f&scoped=true&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 \"64d39c3f\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.roles.size)?_c('Modal',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.modals.reference),expression:\"modals.reference\"}],staticClass:\"characters\",on:{\"close\":function($event){return _vm.toggleModal('reference')}}},[_c('h3',[_vm._v(_vm._s(_vm.editionName)+\" Character Reference\")]),_c('ul',{staticClass:\"legend\"},[_c('li',[_c('span',{staticClass:\"name\"},[_vm._v(\"Name\")]),_c('span',{staticClass:\"icon\"},[_vm._v(\"Icon\")]),_c('span',{staticClass:\"ability\"},[_vm._v(\"Ability\")]),(Object.keys(_vm.playersByRole).length)?_c('span',{staticClass:\"player\"},[_vm._v(\" Player \")]):_vm._e()])]),_vm._l((_vm.rolesGrouped),function(teamRoles,team){return _c('div',{key:team,class:[team]},[_c('h4',[_vm._v(_vm._s(team))]),_c('ul',_vm._l((teamRoles),function(role){return _c('li',{key:role.id,class:[team]},[_c('span',{staticClass:\"name\"},[_vm._v(_vm._s(role.name))]),(role.id)?_c('span',{staticClass:\"icon\",style:({\n backgroundImage: (\"url(\" + (require('../../assets/icons/' +\n role.id +\n '.png')) + \")\")\n })}):_vm._e(),_c('span',{staticClass:\"ability\"},[_vm._v(_vm._s(role.ability))]),(Object.keys(_vm.playersByRole).length)?_c('span',{staticClass:\"player\"},[_vm._v(_vm._s(_vm.playersByRole[role.id] ? _vm.playersByRole[role.id].join(\", \") : \"\"))]):_vm._e()])}),0)])})],2):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <Modal\n class=\"characters\"\n v-show=\"modals.reference\"\n @close=\"toggleModal('reference')\"\n v-if=\"roles.size\"\n >\n <h3>{{ editionName }} Character Reference</h3>\n <ul class=\"legend\">\n <li>\n <span class=\"name\">Name</span>\n <span class=\"icon\">Icon</span>\n <span class=\"ability\">Ability</span>\n <span class=\"player\" v-if=\"Object.keys(playersByRole).length\">\n Player\n </span>\n </li>\n </ul>\n <div v-for=\"(teamRoles, team) in rolesGrouped\" :key=\"team\" :class=\"[team]\">\n <h4>{{ team }}</h4>\n <ul>\n <li v-for=\"role in teamRoles\" :class=\"[team]\" :key=\"role.id\">\n <span class=\"name\">{{ role.name }}</span>\n <span\n class=\"icon\"\n v-if=\"role.id\"\n v-bind:style=\"{\n backgroundImage: `url(${require('../../assets/icons/' +\n role.id +\n '.png')})`\n }\"\n ></span>\n <span class=\"ability\">{{ role.ability }}</span>\n <span class=\"player\" v-if=\"Object.keys(playersByRole).length\">{{\n playersByRole[role.id] ? playersByRole[role.id].join(\", \") : \"\"\n }}</span>\n </li>\n </ul>\n </div>\n </Modal>\n</template>\n\n<script>\nimport Modal from \"./Modal\";\nimport editionJSON from \"./../../editions.json\";\nimport { mapMutations, mapState } from \"vuex\";\n\nexport default {\n components: {\n Modal\n },\n data: function() {\n return {\n roleSelection: {}\n };\n },\n computed: {\n editionName: function() {\n const edition = editionJSON.find(({ id }) => id === this.edition);\n return edition ? edition.name : \"Custom script\";\n },\n rolesGrouped: function() {\n const rolesGrouped = {};\n this.roles.forEach(role => {\n if (!rolesGrouped[role.team]) {\n rolesGrouped[role.team] = [];\n }\n rolesGrouped[role.team].push(role);\n });\n delete rolesGrouped[\"traveler\"];\n return rolesGrouped;\n },\n playersByRole: function() {\n const players = {};\n this.players.forEach(({ name, role }) => {\n if (role && role.id && role.team !== \"traveler\") {\n if (!players[role.id]) {\n players[role.id] = [];\n }\n players[role.id].push(name);\n }\n });\n return players;\n },\n ...mapState([\"roles\", \"modals\", \"edition\"]),\n ...mapState(\"players\", [\"players\"])\n },\n methods: {\n ...mapMutations([\"toggleModal\"])\n }\n};\n</script>\n\n<style lang=\"scss\" scoped>\n@import \"../../vars.scss\";\n\nh4 {\n text-transform: capitalize;\n display: flex;\n align-items: center;\n height: 20px;\n &:before,\n &:after {\n content: \" \";\n width: 100%;\n height: 1px;\n border-radius: 2px;\n }\n &:before {\n margin-right: 15px;\n }\n &:after {\n margin-left: 15px;\n }\n}\n\n.townsfolk {\n .name,\n .player,\n h4 {\n color: $townsfolk;\n &:before,\n &:after {\n background-color: $townsfolk;\n }\n }\n}\n.outsider {\n .name,\n .player,\n h4 {\n color: $outsider;\n &:before,\n &:after {\n background-color: $outsider;\n }\n }\n}\n.minion {\n .name,\n .player,\n h4 {\n color: $minion;\n &:before,\n &:after {\n background-color: $minion;\n }\n }\n}\n.demon {\n .name,\n .player,\n h4 {\n color: $demon;\n &:before,\n &:after {\n background-color: $demon;\n }\n }\n}\nul {\n li {\n display: flex;\n width: 100%;\n align-items: center;\n align-content: center;\n /*background: linear-gradient(0deg, #ffffff0f, transparent);*/\n border-radius: 10px;\n .icon {\n width: 6vh;\n background-size: cover;\n background-position: 0 -5px;\n flex-grow: 0;\n flex-shrink: 0;\n margin: 0 10px;\n text-align: center;\n border-left: 1px solid #ffffff1f;\n border-right: 1px solid #ffffff1f;\n &:after {\n content: \" \";\n display: block;\n padding-top: 66%;\n }\n }\n .name {\n flex-grow: 0;\n flex-shrink: 0;\n width: 15%;\n font-weight: bold;\n text-align: right;\n font-family: \"Papyrus\", sans-serif;\n font-size: 110%;\n }\n .player {\n flex-grow: 0;\n flex-shrink: 1;\n text-align: right;\n margin: 0 10px;\n }\n .ability {\n flex-grow: 1;\n }\n }\n &.legend {\n font-weight: bold;\n height: 20px;\n margin-top: 10px;\n li span {\n background: none;\n height: auto;\n font-family: inherit;\n font-size: inherit;\n }\n .icon:after {\n padding-top: 0;\n }\n }\n}\n</style>\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ReferenceModal.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ReferenceModal.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ReferenceModal.vue?vue&type=template&id=0e68266b&scoped=true&\"\nimport script from \"./ReferenceModal.vue?vue&type=script&lang=js&\"\nexport * from \"./ReferenceModal.vue?vue&type=script&lang=js&\"\nimport style0 from \"./ReferenceModal.vue?vue&type=style&index=0&id=0e68266b&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 \"0e68266b\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{\"id\":\"vote\"}},[_c('div',{staticClass:\"arrows\"},[_c('span',{staticClass:\"nominee\",style:(_vm.nomineeStyle)}),_c('span',{staticClass:\"nominator\",style:(_vm.nominatorStyle)})]),_c('div',{staticClass:\"overlay\"},[_c('em',{staticClass:\"blue\"},[_vm._v(_vm._s(_vm.nominator.name))]),_vm._v(\" nominated \"),_c('em',[_vm._v(_vm._s(_vm.nominee.name))]),_vm._v(\"! \"),_c('br'),(_vm.nominee.role.team !== 'traveler')?[_c('em',{staticClass:\"blue\"},[_vm._v(_vm._s(Math.ceil(_vm.alive / 2))+\" votes\")]),_vm._v(\" required to \"),_c('em',[_vm._v(\"execute\")]),_vm._v(\". \")]:[_c('em',[_vm._v(_vm._s(Math.ceil(_vm.players.length / 2))+\" votes\")]),_vm._v(\" required to \"),_c('em',[_vm._v(\"exile\")]),_vm._v(\". \")],(_vm.session.lockedVote > 1)?_c('div',[(_vm.voters.length)?_c('em',{staticClass:\"blue\"},[_vm._v(_vm._s(_vm.voters.join(\", \"))+\" \")]):_c('span',[_vm._v(\"nobody\")]),_vm._v(\" voted \"),_c('em',[_vm._v(\"YES\")])]):_vm._e(),(!_vm.session.isSpectator)?_c('div',{staticClass:\"button-group\"},[(!_vm.session.lockedVote)?_c('div',{staticClass:\"button\",on:{\"click\":_vm.start}},[_vm._v(\" Start Vote \")]):_c('div',{staticClass:\"button\",on:{\"click\":_vm.stop}},[_vm._v(\" Reset Vote \")]),_c('div',{staticClass:\"button\",on:{\"click\":_vm.finish}},[_vm._v(\"Finish\")])]):(_vm.canVote)?_c('div',{staticClass:\"button-group\"},[_c('div',{staticClass:\"button vote-no\",on:{\"click\":function($event){return _vm.vote(false)}}},[_vm._v(\"Vote NO\")]),_c('div',{staticClass:\"button vote-yes\",on:{\"click\":function($event){return _vm.vote(true)}}},[_vm._v(\"Vote YES\")])]):(!_vm.player)?_c('div',[_vm._v(\" Please claim a seat to vote. \")]):_vm._e()],2)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <div id=\"vote\">\n <div class=\"arrows\">\n <span class=\"nominee\" :style=\"nomineeStyle\"></span>\n <span class=\"nominator\" :style=\"nominatorStyle\"></span>\n </div>\n <div class=\"overlay\">\n <em class=\"blue\">{{ nominator.name }}</em> nominated\n <em>{{ nominee.name }}</em\n >!\n <br />\n <template v-if=\"nominee.role.team !== 'traveler'\">\n <em class=\"blue\">{{ Math.ceil(alive / 2) }} votes</em> required to\n <em>execute</em>.\n </template>\n <template v-else>\n <em>{{ Math.ceil(players.length / 2) }} votes</em> required to\n <em>exile</em>.\n </template>\n\n <div v-if=\"session.lockedVote > 1\">\n <em class=\"blue\" v-if=\"voters.length\">{{ voters.join(\", \") }} </em>\n <span v-else>nobody</span>\n voted <em>YES</em>\n </div>\n\n <div class=\"button-group\" v-if=\"!session.isSpectator\">\n <div class=\"button\" v-if=\"!session.lockedVote\" @click=\"start\">\n Start Vote\n </div>\n <div class=\"button\" v-else @click=\"stop\">\n Reset Vote\n </div>\n <div class=\"button\" @click=\"finish\">Finish</div>\n </div>\n <div class=\"button-group\" v-else-if=\"canVote\">\n <div class=\"button vote-no\" @click=\"vote(false)\">Vote NO</div>\n <div class=\"button vote-yes\" @click=\"vote(true)\">Vote YES</div>\n </div>\n <div v-else-if=\"!player\">\n Please claim a seat to vote.\n </div>\n </div>\n </div>\n</template>\n\n<script>\nimport { mapGetters, mapState } from \"vuex\";\n\nexport default {\n computed: {\n ...mapState(\"players\", [\"players\"]),\n ...mapState([\"session\"]),\n ...mapGetters({ alive: \"players/alive\" }),\n nominator: function() {\n return this.players[this.session.nomination[0]];\n },\n nominatorStyle: function() {\n const players = this.players.length;\n const nomination = this.session.nomination[0];\n return {\n transform: `rotate(${Math.round((nomination / players) * 360)}deg)`\n };\n },\n nominee: function() {\n return this.players[this.session.nomination[1]];\n },\n nomineeStyle: function() {\n const players = this.players.length;\n const nomination = this.session.nomination[1];\n const lock = this.session.lockedVote;\n const rotation = (360 * (nomination + Math.min(lock, players))) / players;\n return {\n transform: `rotate(${Math.round(rotation)}deg)`\n };\n },\n player: function() {\n return this.players.find(p => p.id === this.session.playerId);\n },\n canVote: function() {\n if (!this.player) return false;\n if (this.player.isVoteless && this.nominee.role.team !== \"traveler\")\n return false;\n const session = this.session;\n const players = this.players.length;\n const index = this.players.indexOf(this.player);\n const indexAdjusted =\n (index - 1 + players - session.nomination[1]) % players;\n return indexAdjusted >= session.lockedVote - 1;\n },\n voters: function() {\n const nomination = this.session.nomination[1];\n const voters = this.session.votes.map((vote, index) =>\n vote ? this.players[index].name : \"\"\n );\n const reorder = [\n ...voters.slice(nomination + 1, this.players.length),\n ...voters.slice(0, nomination + 1)\n ];\n return reorder.slice(0, this.session.lockedVote - 1).filter(n => !!n);\n }\n },\n methods: {\n start() {\n this.$store.commit(\"session/lockVote\");\n clearInterval(this.voteTimer);\n this.voteTimer = setInterval(() => {\n this.$store.commit(\"session/lockVote\");\n if (this.session.lockedVote > this.players.length) {\n clearInterval(this.voteTimer);\n }\n }, 3000);\n },\n stop() {\n clearInterval(this.voteTimer);\n this.$store.commit(\"session/lockVote\", 0);\n },\n finish() {\n clearInterval(this.voteTimer);\n this.$store.commit(\"session/nomination\", false);\n },\n vote(vote) {\n if (!this.canVote) return false;\n const index = this.players.findIndex(p => p.id === this.session.playerId);\n if (index >= 0 && !!this.session.votes[index] !== vote) {\n this.$store.commit(\"session/voteSync\", [index, vote]);\n }\n }\n }\n};\n</script>\n\n<style lang=\"scss\" scoped>\n@import \"../vars.scss\";\n\n#vote {\n position: absolute;\n width: 20%;\n z-index: 20;\n display: flex;\n align-items: center;\n align-content: center;\n justify-content: center;\n background: url(\"../assets/demon-head.png\") center center no-repeat;\n background-size: auto 75%;\n text-align: center;\n text-shadow: 0 1px 2px #000000, 0 -1px 2px #000000, 1px 0 2px #000000,\n -1px 0 2px #000000;\n\n &:after {\n content: \" \";\n padding-bottom: 100%;\n display: block;\n }\n\n em {\n color: $demon;\n font-style: normal;\n font-weight: bold;\n &.blue {\n color: $townsfolk;\n }\n }\n}\n\n@keyframes arrow-cw {\n 0% {\n opacity: 0;\n transform: rotate(-180deg);\n }\n 100% {\n opacity: 1;\n transform: rotate(0deg);\n }\n}\n\n@keyframes arrow-ccw {\n 0% {\n opacity: 0;\n transform: rotate(180deg);\n }\n 100% {\n opacity: 1;\n transform: rotate(0deg);\n }\n}\n\n.arrows {\n position: absolute;\n display: flex;\n height: 150%;\n width: 25%;\n pointer-events: none;\n span {\n position: absolute;\n width: 100%;\n height: 100%;\n transition: transform 2.9s ease-in-out;\n }\n span:before {\n content: \" \";\n width: 100%;\n height: 100%;\n display: block;\n background-size: auto 100%;\n background-repeat: no-repeat;\n background-position: center center;\n position: absolute;\n filter: drop-shadow(0px 0px 3px #000);\n }\n .nominator:before {\n background-image: url(\"../assets/clock-small.png\");\n animation: arrow-ccw 1s ease-out;\n }\n .nominee:before {\n background-image: url(\"../assets/clock-big.png\");\n animation: arrow-cw 1s ease-out;\n }\n}\n\n.button.vote-no {\n background: radial-gradient(\n at 0 -15%,\n rgba(255, 255, 255, 0.07) 70%,\n rgba(255, 255, 255, 0) 71%\n )\n 0 0/80% 90% no-repeat content-box,\n linear-gradient(#0031ad, rgba(5, 0, 0, 0.22)) content-box,\n linear-gradient(#292929, #001142) border-box;\n box-shadow: inset 0 1px 1px #002c9c, 0 0 10px #000;\n &:hover {\n color: #008cf7;\n }\n}\n.button.vote-yes {\n background: radial-gradient(\n at 0 -15%,\n rgba(255, 255, 255, 0.07) 70%,\n rgba(255, 255, 255, 0) 71%\n )\n 0 0/80% 90% no-repeat content-box,\n linear-gradient(#ad0000, rgba(5, 0, 0, 0.22)) content-box,\n linear-gradient(#292929, #420000) border-box;\n box-shadow: inset 0 1px 1px #9c0000, 0 0 10px #000;\n}\n</style>\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Vote.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Vote.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Vote.vue?vue&type=template&id=6285585a&scoped=true&\"\nimport script from \"./Vote.vue?vue&type=script&lang=js&\"\nexport * from \"./Vote.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Vote.vue?vue&type=style&index=0&id=6285585a&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 \"6285585a\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{\"id\":\"gradients\"}},_vm._l((_vm.gradients),function(gradient,index){return _c('svg',{key:index,attrs:{\"width\":\"0\",\"height\":\"0\"}},[_c('linearGradient',{attrs:{\"id\":gradient[0],\"x1\":\"50%\",\"y1\":\"100%\",\"x2\":\"50%\",\"y2\":\"0%\"}},[_c('stop',{style:({ 'stop-color': gradient[2], 'stop-opacity': 1 }),attrs:{\"offset\":\"0%\"}}),_c('stop',{style:({ 'stop-color': gradient[1], 'stop-opacity': 1 }),attrs:{\"offset\":\"100%\"}})],1)],1)}),0)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <!-- SVG Gradients -->\n <div id=\"gradients\">\n <svg\n width=\"0\"\n height=\"0\"\n v-for=\"(gradient, index) in gradients\"\n :key=\"index\"\n >\n <linearGradient :id=\"gradient[0]\" x1=\"50%\" y1=\"100%\" x2=\"50%\" y2=\"0%\">\n <stop\n offset=\"0%\"\n :style=\"{ 'stop-color': gradient[2], 'stop-opacity': 1 }\"\n ></stop>\n <stop\n offset=\"100%\"\n :style=\"{ 'stop-color': gradient[1], 'stop-opacity': 1 }\"\n ></stop>\n </linearGradient>\n </svg>\n </div>\n</template>\n\n<script>\nexport default {\n data() {\n return {\n gradients: [\n [\"demon\", \"#ce0100\", \"#000\"],\n [\"townsfolk\", \"#1f65ff\", \"#000\"],\n [\"default\", \"#4E4E4E\", \"#000\"]\n ]\n };\n }\n};\n</script>\n\n<style lang=\"scss\" scoped>\nsvg {\n position: absolute;\n z-index: -1;\n}\n</style>\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Gradients.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Gradients.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Gradients.vue?vue&type=template&id=1e202a64&scoped=true&\"\nimport script from \"./Gradients.vue?vue&type=script&lang=js&\"\nexport * from \"./Gradients.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Gradients.vue?vue&type=style&index=0&id=1e202a64&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 \"1e202a64\",\n null\n \n)\n\nexport default component.exports","<template>\n <div\n id=\"app\"\n @keyup=\"keyup\"\n tabindex=\"-1\"\n v-bind:class=\"{ screenshot: grimoire.isScreenshot }\"\n v-bind:style=\"{\n backgroundImage: grimoire.background\n ? `url('${grimoire.background}')`\n : ''\n }\"\n >\n <transition name=\"blur\">\n <Intro v-if=\"!players.length\"></Intro>\n <TownInfo v-if=\"players.length && !session.nomination\"></TownInfo>\n <Vote v-if=\"session.nomination\"></Vote>\n </transition>\n <TownSquare @screenshot=\"takeScreenshot\"></TownSquare>\n <Menu ref=\"menu\"></Menu>\n <EditionModal />\n <RolesModal />\n <ReferenceModal />\n <Gradients />\n <span id=\"version\">v{{ version }}</span>\n </div>\n</template>\n\n<script>\nimport { mapState } from \"vuex\";\nimport { version } from \"../package.json\";\nimport TownSquare from \"./components/TownSquare\";\nimport TownInfo from \"./components/TownInfo\";\nimport Menu from \"./components/Menu\";\nimport RolesModal from \"./components/modals/RolesModal\";\nimport EditionModal from \"./components/modals/EditionModal\";\nimport Intro from \"./components/Intro\";\nimport ReferenceModal from \"./components/modals/ReferenceModal\";\nimport Vote from \"./components/Vote\";\nimport Gradients from \"./components/Gradients\";\n\nexport default {\n components: {\n Vote,\n ReferenceModal,\n Intro,\n TownInfo,\n TownSquare,\n Menu,\n EditionModal,\n RolesModal,\n Gradients\n },\n computed: {\n ...mapState([\"grimoire\", \"session\"]),\n ...mapState(\"players\", [\"players\"])\n },\n data() {\n return {\n version\n };\n },\n methods: {\n takeScreenshot(dimensions) {\n this.$refs.menu.takeScreenshot(dimensions);\n },\n keyup({ key }) {\n switch (key.toLocaleLowerCase()) {\n case \"g\":\n this.$store.commit(\"toggleGrimoire\");\n break;\n case \"a\":\n this.$refs.menu.addPlayer();\n break;\n case \"h\":\n this.$refs.menu.hostSession();\n break;\n case \"j\":\n this.$refs.menu.joinSession();\n break;\n case \"r\":\n this.$store.commit(\"toggleModal\", \"reference\");\n break;\n case \"e\":\n if (this.session.isSpectator) return;\n this.$store.commit(\"toggleModal\", \"edition\");\n break;\n case \"c\":\n if (this.session.isSpectator) return;\n this.$store.commit(\"toggleModal\", \"roles\");\n break;\n case \"escape\":\n this.$store.commit(\"toggleModal\");\n }\n }\n }\n};\n</script>\n\n<style lang=\"scss\">\n@import \"vars\";\n\n@font-face {\n font-family: \"Papyrus\";\n src: url(\"assets/fonts/papyrus.eot\"); /* IE9*/\n src: url(\"assets/fonts/papyrus.eot?#iefix\") format(\"embedded-opentype\"),\n /* IE6-IE8 */ url(\"assets/fonts/papyrus.woff2\") format(\"woff2\"),\n /* chrome firefox */ url(\"assets/fonts/papyrus.woff\") format(\"woff\"),\n /* chrome firefox */ url(\"assets/fonts/papyrus.ttf\") format(\"truetype\"),\n /* chrome firefox opera Safari, Android, iOS 4.2+*/\n url(\"assets/fonts/papyrus.svg#PapyrusW01\") format(\"svg\"); /* iOS 4.1- */\n}\n\n@font-face {\n font-family: PiratesBay;\n src: url(\"assets/fonts/piratesbay.ttf\");\n font-display: swap;\n}\n\nhtml,\nbody {\n font-size: 1.2em;\n line-height: 1.4;\n background: url(\"assets/background.jpg\") center center;\n background-size: cover;\n color: white;\n height: 100%;\n font-family: \"Roboto Condensed\", sans-serif;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n padding: 0;\n margin: 0;\n overflow: hidden;\n}\n\n// Large devices (desktops, less than 1200px)\n@media screen and (max-width: 1199.98px) {\n html,\n body {\n font-size: 1.1em;\n }\n .player .night em {\n width: 30px;\n height: 30px;\n }\n}\n\n// Medium devices (tablets, less than 992px)\n@media screen and (max-width: 991.98px) {\n html,\n body {\n font-size: 1em;\n }\n #controls svg {\n font-size: 20px;\n }\n .player .night em {\n width: 20px;\n height: 20px;\n }\n #townsquare {\n padding: 10px;\n }\n}\n\n// Small devices (landscape phones, less than 768px)\n@media screen and (max-width: 767.98px) {\n html,\n body {\n font-size: 0.9em;\n }\n .player > .name {\n top: 0;\n }\n}\n\n// Old phones\n@media screen and (max-width: 575.98px) {\n html,\n body {\n font-size: 0.8em;\n }\n}\n\n// odd aspect ratio\n@media (max-aspect-ratio: 11/7) {\n .bluffs h3 {\n max-width: 14vh;\n }\n .bluffs ul {\n flex-direction: column;\n }\n}\n\n// Firefox doesn't support screenshot mode yet\n@-moz-document url-prefix() {\n #controls > span.camera,\n .player > .menu .screenshot,\n .bluffs > svg.fa-camera {\n display: none;\n }\n}\n\n* {\n box-sizing: border-box;\n position: relative;\n}\n\na {\n color: $townsfolk;\n &:hover {\n color: $demon;\n }\n}\n\nh1,\nh2,\nh3,\nh4,\nh5 {\n margin: 0;\n text-align: center;\n font-family: PiratesBay, sans-serif;\n letter-spacing: 1px;\n font-weight: normal;\n}\n\nul {\n list-style-type: none;\n margin: 0;\n padding: 0;\n}\n\n#app {\n height: 100%;\n background-position: center center;\n background-size: cover;\n display: flex;\n align-items: center;\n align-content: center;\n justify-content: center;\n}\n\n#version {\n position: absolute;\n right: 10px;\n bottom: 10px;\n font-size: 60%;\n opacity: 0.5;\n}\n\n.blur-enter-active,\n.blur-leave-active {\n transition: all 250ms;\n filter: blur(0);\n}\n.blur-enter,\n.blur-leave-to {\n opacity: 0;\n filter: blur(20px);\n}\n\n// Buttons\n.button-group {\n display: flex;\n align-items: center;\n justify-content: center;\n align-content: center;\n .button {\n margin: 5px 0;\n border-radius: 0;\n &:first-child {\n border-top-left-radius: 15px;\n border-bottom-left-radius: 15px;\n }\n &:last-child {\n border-top-right-radius: 15px;\n border-bottom-right-radius: 15px;\n }\n }\n}\n.button {\n padding: 0;\n border: solid 0.125em transparent;\n border-radius: 15px;\n box-shadow: inset 0 1px 1px #9c9c9c, 0 0 10px #000;\n background: radial-gradient(\n at 0 -15%,\n rgba(#fff, 0.07) 70%,\n rgba(#fff, 0) 71%\n )\n 0 0/ 80% 90% no-repeat content-box,\n linear-gradient(#4e4e4e, #040404) content-box,\n linear-gradient(#292929, #010101) border-box;\n color: white;\n font-weight: bold;\n text-shadow: 1px 1px rgba(0, 0, 0, 0.5);\n line-height: 170%;\n margin: 5px auto;\n cursor: pointer;\n transition: all 200ms;\n white-space: nowrap;\n &:hover {\n color: red;\n }\n &.disabled {\n color: gray;\n cursor: default;\n }\n &:before,\n &:after {\n content: \" \";\n display: inline-block;\n width: 10px;\n height: 10px;\n }\n}\n</style>\n","import mod from \"-!../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=js&\"; export default mod; export * from \"-!../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=js&\"","import { render, staticRenderFns } from \"./App.vue?vue&type=template&id=23fc8f8e&\"\nimport script from \"./App.vue?vue&type=script&lang=js&\"\nexport * from \"./App.vue?vue&type=script&lang=js&\"\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\nexport default component.exports","const NEWPLAYER = {\n name: \"\",\n id: \"\",\n role: {},\n reminders: [],\n isVoteless: false,\n isDead: false\n};\n\nconst state = () => ({\n players: []\n});\n\nconst getters = {\n alive({ players }) {\n return players.filter(player => !player.isDead).length;\n },\n nonTravelers({ players }) {\n const nonTravelers = players.filter(\n player => player.role.team !== \"traveler\"\n );\n return Math.min(nonTravelers.length, 15);\n },\n // calculate a Map of player => night order\n nightOrder({ players }) {\n const firstNight = [0];\n const otherNight = [0];\n players.forEach(({ role }) => {\n if (role.firstNight && !firstNight.includes(role.firstNight)) {\n firstNight.push(role.firstNight);\n }\n if (role.otherNight && !otherNight.includes(role.otherNight)) {\n otherNight.push(role.otherNight);\n }\n });\n firstNight.sort((a, b) => a - b);\n otherNight.sort((a, b) => a - b);\n const nightOrder = new Map();\n players.forEach(player => {\n const first = Math.max(firstNight.indexOf(player.role.firstNight), 0);\n const other = Math.max(otherNight.indexOf(player.role.otherNight), 0);\n nightOrder.set(player, { first, other });\n });\n return nightOrder;\n }\n};\n\nconst actions = {\n randomize({ state, commit }) {\n const players = state.players\n .map(a => [Math.random(), a])\n .sort((a, b) => a[0] - b[0])\n .map(a => a[1]);\n commit(\"set\", players);\n },\n clearRoles({ state, commit, rootState }) {\n let players;\n if (rootState.session.isSpectator) {\n players = state.players.map(player => {\n if (player.role.team !== \"traveler\") {\n player.role = {};\n }\n player.reminders = [];\n return player;\n });\n } else {\n players = state.players.map(({ name, id }) => ({\n ...NEWPLAYER,\n name,\n id\n }));\n }\n commit(\"set\", players);\n }\n};\n\nconst mutations = {\n clear(state) {\n state.players = [];\n },\n set(state, players = []) {\n state.players = players;\n },\n update(state, { player, property, value }) {\n const index = state.players.indexOf(player);\n if (index >= 0) {\n state.players[index][property] = value;\n }\n },\n add(state, name) {\n state.players.push({\n ...NEWPLAYER,\n name\n });\n },\n remove(state, index) {\n state.players.splice(index, 1);\n },\n swap(state, [from, to]) {\n [state.players[from], state.players[to]] = [\n state.players[to],\n state.players[from]\n ];\n },\n move(state, [from, to]) {\n state.players.splice(to, 0, state.players.splice(from, 1)[0]);\n }\n};\n\nexport default {\n namespaced: true,\n state,\n getters,\n actions,\n mutations\n};\n","// helper functions\nconst set = key => (state, val) => {\n state[key] = val;\n};\n\nconst handleVote = (state, [index, vote]) => {\n if (!state.nomination) return;\n state.votes = [...state.votes];\n state.votes[index] = vote === undefined ? !state.votes[index] : vote;\n};\n\nconst state = () => ({\n sessionId: \"\",\n isSpectator: false,\n playerCount: 0,\n playerId: \"\",\n claimedSeat: -1,\n nomination: false,\n votes: [],\n lockedVote: 0\n});\n\nconst getters = {};\n\nconst actions = {};\n\nconst mutations = {\n setSessionId: set(\"sessionId\"),\n setPlayerId: set(\"playerId\"),\n setSpectator: set(\"isSpectator\"),\n setPlayerCount: set(\"playerCount\"),\n claimSeat: set(\"claimedSeat\"),\n nomination(state, nomination) {\n state.nomination = nomination;\n state.votes = [];\n state.lockedVote = 0;\n },\n /**\n * Store a vote with and without syncing it to the live session.\n * This is necessary in order to prevent infinite voting loops.\n * @param state\n * @param vote\n */\n vote: handleVote,\n voteSync: handleVote,\n lockVote(state, lock) {\n state.lockedVote = lock !== undefined ? lock : state.lockedVote + 1;\n }\n};\n\nexport default {\n namespaced: true,\n state,\n getters,\n actions,\n mutations\n};\n","import Vue from \"vue\";\nimport Vuex from \"vuex\";\nimport persistence from \"./persistence\";\nimport socket from \"./socket\";\nimport players from \"./modules/players\";\nimport session from \"./modules/session\";\nimport editionJSON from \"../editions.json\";\nimport rolesJSON from \"../roles.json\";\n\nVue.use(Vuex);\n\nconst getRolesByEdition = (edition = \"tb\") => {\n const selectedEdition =\n editionJSON.find(({ id }) => id === edition) || editionJSON[0];\n return new Map(\n rolesJSON\n .filter(\n r => r.edition === edition || selectedEdition.roles.includes(r.id)\n )\n .sort((a, b) => b.team.localeCompare(a.team))\n .map(role => [role.id, role])\n );\n};\n\nexport default new Vuex.Store({\n modules: {\n players,\n session\n },\n state: {\n grimoire: {\n isNightOrder: true,\n isPublic: true,\n isMenuOpen: false,\n isScreenshot: false,\n isScreenshotSuccess: false,\n zoom: 0,\n background: \"\",\n bluffs: []\n },\n modals: {\n reference: false,\n edition: false,\n roles: false,\n role: false,\n reminder: false\n },\n edition: \"tb\",\n roles: getRolesByEdition()\n },\n mutations: {\n toggleMenu({ grimoire }) {\n grimoire.isMenuOpen = !grimoire.isMenuOpen;\n },\n toggleGrimoire({ grimoire }, isPublic) {\n if (isPublic === true || isPublic === false) {\n grimoire.isPublic = isPublic;\n } else {\n grimoire.isPublic = !grimoire.isPublic;\n }\n document.title = `Blood on the Clocktower ${\n grimoire.isPublic ? \"Town Square\" : \"Grimoire\"\n }`;\n },\n toggleNightOrder({ grimoire }) {\n grimoire.isNightOrder = !grimoire.isNightOrder;\n },\n setZoom({ grimoire }, zoom) {\n grimoire.zoom = zoom;\n },\n setBackground({ grimoire }, background) {\n grimoire.background = background;\n },\n setBluff({ grimoire }, { index, role } = {}) {\n if (index !== undefined) {\n grimoire.bluffs.splice(index, 1, role);\n } else {\n grimoire.bluffs = [];\n }\n },\n toggleModal({ modals }, name) {\n if (name) {\n modals[name] = !modals[name];\n }\n for (let modal in modals) {\n if (modal === name) continue;\n modals[modal] = false;\n }\n },\n updateScreenshot({ grimoire }, status) {\n if (status !== true && status !== false) {\n grimoire.isScreenshotSuccess = false;\n grimoire.isScreenshot = true;\n } else {\n grimoire.isScreenshotSuccess = status;\n grimoire.isScreenshot = false;\n }\n },\n setRoles(state, roles) {\n state.roles = new Map(\n rolesJSON\n .filter(r => roles.includes(r.id))\n .sort((a, b) => b.team.localeCompare(a.team))\n .map(role => [role.id, role])\n );\n },\n setEdition(state, edition) {\n state.edition = edition;\n state.modals.edition = false;\n if (edition !== \"custom\") {\n state.roles = getRolesByEdition(edition);\n }\n }\n },\n plugins: [persistence, socket]\n});\n","import Vue from \"vue\";\nimport App from \"./App\";\nimport store from \"./store\";\nimport { library } from \"@fortawesome/fontawesome-svg-core\";\nimport { fas } from \"@fortawesome/free-solid-svg-icons\";\nimport { fab } from \"@fortawesome/free-brands-svg-icons\";\nimport { FontAwesomeIcon } from \"@fortawesome/vue-fontawesome\";\n\nconst faIcons = [\n \"BookOpen\",\n \"BroadcastTower\",\n \"Camera\",\n \"Chair\",\n \"CheckSquare\",\n \"Cog\",\n \"Copy\",\n \"Dice\",\n \"ExchangeAlt\",\n \"FileUpload\",\n \"HandPointRight\",\n \"Heartbeat\",\n \"Image\",\n \"Link\",\n \"PeopleArrows\",\n \"Question\",\n \"Random\",\n \"RedoAlt\",\n \"SearchMinus\",\n \"SearchPlus\",\n \"Skull\",\n \"Square\",\n \"TheaterMasks\",\n \"Times\",\n \"TimesCircle\",\n \"TrashAlt\",\n \"Undo\",\n \"User\",\n \"UserEdit\",\n \"UserFriends\",\n \"Users\",\n \"VoteYea\"\n];\nconst fabIcons = [\"Github\", \"Discord\"];\nlibrary.add(\n ...faIcons.map(i => fas[\"fa\" + i]),\n ...fabIcons.map(i => fab[\"fa\" + i])\n);\nVue.component(\"font-awesome-icon\", FontAwesomeIcon);\nVue.config.productionTip = false;\n\nnew Vue({\n render: h => h(App),\n store\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/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.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!./EditionModal.vue?vue&type=style&index=0&id=36ae1bc0&scoped=true&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/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.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!./EditionModal.vue?vue&type=style&index=0&id=36ae1bc0&scoped=true&lang=scss&\"","module.exports = __webpack_public_path__ + \"img/cannibal.e2bfb541.png\";","import mod from \"-!../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../node_modules/sass-loader/dist/cjs.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/dist/cjs.js??ref--8-oneOf-1-1!../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../node_modules/sass-loader/dist/cjs.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&\"","module.exports = __webpack_public_path__ + \"img/goblin.7ebbd9ad.png\";","module.exports = __webpack_public_path__ + \"img/x.fbca4d75.png\";","var map = {\n\t\"./amnesiac.png\": \"043b\",\n\t\"./apprentice.png\": \"4bea\",\n\t\"./artist.png\": \"2cd0\",\n\t\"./assassin.png\": \"9187\",\n\t\"./balloonist.png\": \"65db\",\n\t\"./barber.png\": \"fcc6\",\n\t\"./barista.png\": \"027a\",\n\t\"./baron.png\": \"24d3\",\n\t\"./beggar.png\": \"cfcc\",\n\t\"./bishop.png\": \"8030\",\n\t\"./bonecollector.png\": \"23b1\",\n\t\"./bureaucrat.png\": \"25f6\",\n\t\"./butcher.png\": \"37dd\",\n\t\"./butler.png\": \"64fe\",\n\t\"./cannibal.png\": \"5bd9\",\n\t\"./cerenovus.png\": \"0436\",\n\t\"./chambermaid.png\": \"125e\",\n\t\"./chef.png\": \"1e83\",\n\t\"./clockmaker.png\": \"f93f\",\n\t\"./courtier.png\": \"ee02\",\n\t\"./custom.png\": \"fd83\",\n\t\"./deviant.png\": \"3b65\",\n\t\"./devilsadvocate.png\": \"cd8b\",\n\t\"./dreamer.png\": \"71b8\",\n\t\"./drunk.png\": \"d97d\",\n\t\"./empath.png\": \"bb7a\",\n\t\"./evil.png\": \"c24f\",\n\t\"./eviltwin.png\": \"e014\",\n\t\"./exorcist.png\": \"5072\",\n\t\"./fanggu.png\": \"6ac0\",\n\t\"./fisherman.png\": \"c5db\",\n\t\"./flowergirl.png\": \"66ae\",\n\t\"./fool.png\": \"4720\",\n\t\"./fortuneteller.png\": \"43e8\",\n\t\"./gambler.png\": \"dce6\",\n\t\"./goblin.png\": \"5c8e\",\n\t\"./godfather.png\": \"99d0\",\n\t\"./good.png\": \"667e\",\n\t\"./goon.png\": \"55aa\",\n\t\"./gossip.png\": \"cadc\",\n\t\"./grandmother.png\": \"c9f5\",\n\t\"./gunslinger.png\": \"ee92\",\n\t\"./harlot.png\": \"559e\",\n\t\"./imp.png\": \"3e70\",\n\t\"./innkeeper.png\": \"663c\",\n\t\"./investigator.png\": \"b570\",\n\t\"./judge.png\": \"f09b\",\n\t\"./juggler.png\": \"65ab\",\n\t\"./klutz.png\": \"adfc\",\n\t\"./leviathan.png\": \"2b04\",\n\t\"./librarian.png\": \"4d73\",\n\t\"./lunatic.png\": \"0b61\",\n\t\"./mastermind.png\": \"f834\",\n\t\"./mathematician.png\": \"8888\",\n\t\"./matron.png\": \"b1cb\",\n\t\"./mayor.png\": \"b223\",\n\t\"./minstrel.png\": \"4efd\",\n\t\"./monk.png\": \"6741\",\n\t\"./moonchild.png\": \"3f65\",\n\t\"./mutant.png\": \"17ad\",\n\t\"./nodashii.png\": \"68a4\",\n\t\"./oracle.png\": \"0c12\",\n\t\"./pacifist.png\": \"fff1\",\n\t\"./philosopher.png\": \"3603\",\n\t\"./pithag.png\": \"7f07\",\n\t\"./plus.png\": \"160b\",\n\t\"./po.png\": \"c73a\",\n\t\"./poisoner.png\": \"f282\",\n\t\"./professor.png\": \"b30c\",\n\t\"./pukka.png\": \"a6a2\",\n\t\"./ravenkeeper.png\": \"0c59\",\n\t\"./recluse.png\": \"177d\",\n\t\"./sage.png\": \"30b6\",\n\t\"./sailor.png\": \"223c\",\n\t\"./saint.png\": \"6936\",\n\t\"./savant.png\": \"d715\",\n\t\"./scapegoat.png\": \"327a\",\n\t\"./scarletwoman.png\": \"f322\",\n\t\"./seamstress.png\": \"ac7c\",\n\t\"./shabaloth.png\": \"0b29\",\n\t\"./slayer.png\": \"d62b\",\n\t\"./snakecharmer.png\": \"4021\",\n\t\"./soldier.png\": \"4e76\",\n\t\"./spy.png\": \"ec1e\",\n\t\"./sweetheart.png\": \"f1e5\",\n\t\"./tealady.png\": \"ba9b\",\n\t\"./thief.png\": \"9ce3\",\n\t\"./tinker.png\": \"9f7e\",\n\t\"./towncrier.png\": \"38a5\",\n\t\"./undertaker.png\": \"0e20\",\n\t\"./vigormortis.png\": \"f4bd\",\n\t\"./virgin.png\": \"eff4\",\n\t\"./vortox.png\": \"3a43\",\n\t\"./voudon.png\": \"a710\",\n\t\"./washerwoman.png\": \"013f\",\n\t\"./widow.png\": \"22c9\",\n\t\"./witch.png\": \"f558\",\n\t\"./x.png\": \"5cf2\",\n\t\"./zombuul.png\": \"20ca\"\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"61b0\";","module.exports = __webpack_public_path__ + \"img/butler.3763fa3d.png\";","module.exports = __webpack_public_path__ + \"img/juggler.7cc6d089.png\";","module.exports = __webpack_public_path__ + \"img/balloonist.3d6e31f8.png\";","module.exports = __webpack_public_path__ + \"img/innkeeper.8b0b87f1.png\";","module.exports = __webpack_public_path__ + \"img/good.9b3436c8.png\";","module.exports = __webpack_public_path__ + \"img/flowergirl.4ee69cb5.png\";","module.exports = __webpack_public_path__ + \"img/monk.a6f2667a.png\";","module.exports = __webpack_public_path__ + \"img/nodashii.5c943357.png\";","module.exports = __webpack_public_path__ + \"img/saint.f81db252.png\";","module.exports = __webpack_public_path__ + \"img/fanggu.cb4e346c.png\";","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.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!./ReminderModal.vue?vue&type=style&index=0&id=248e6d58&scoped=true&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/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.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!./ReminderModal.vue?vue&type=style&index=0&id=248e6d58&scoped=true&lang=scss&\"","module.exports = __webpack_public_path__ + \"img/dreamer.ab7f2328.png\";","import mod from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.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!./Player.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/dist/cjs.js??ref--8-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.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!./Player.vue?vue&type=style&index=0&lang=scss&\"","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.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!./RolesModal.vue?vue&type=style&index=0&id=a67c4086&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/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.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!./RolesModal.vue?vue&type=style&index=0&id=a67c4086&lang=scss&scoped=true&\"","module.exports = __webpack_public_path__ + \"img/pithag.adc1ce12.png\";","module.exports = __webpack_public_path__ + \"img/bishop.dec14fdc.png\";","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.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!./Modal.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/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.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!./Modal.vue?vue&type=style&index=0&lang=scss&\"","module.exports = __webpack_public_path__ + \"img/mathematician.31142ad1.png\";","module.exports = __webpack_public_path__ + \"img/assassin.db54a5ff.png\";","module.exports = __webpack_public_path__ + \"img/godfather.2febcd81.png\";","module.exports = __webpack_public_path__ + \"img/thief.60ce8845.png\";","module.exports = __webpack_public_path__ + \"img/tinker.669b5612.png\";","module.exports = __webpack_public_path__ + \"img/pukka.cbbc2d26.png\";","module.exports = __webpack_public_path__ + \"img/voudon.2b1f0492.png\";","module.exports = __webpack_public_path__ + \"img/seamstress.05f0eb74.png\";","module.exports = __webpack_public_path__ + \"img/klutz.c7e784cd.png\";","module.exports = __webpack_public_path__ + \"img/matron.ffb17746.png\";","import mod from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.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!./TownInfo.vue?vue&type=style&index=0&id=280b29dc&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/dist/cjs.js??ref--8-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.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!./TownInfo.vue?vue&type=style&index=0&id=280b29dc&lang=scss&scoped=true&\"","module.exports = __webpack_public_path__ + \"img/mayor.98dda8d8.png\";","module.exports = __webpack_public_path__ + \"img/professor.8a5ccf04.png\";","module.exports = __webpack_public_path__ + \"img/investigator.13194f19.png\";","module.exports = __webpack_public_path__ + \"img/tealady.2d47353e.png\";","module.exports = __webpack_public_path__ + \"img/empath.d7a89ed7.png\";","module.exports = __webpack_public_path__ + \"img/evil.908a2622.png\";","module.exports = __webpack_public_path__ + \"img/fisherman.9077de7e.png\";","module.exports = __webpack_public_path__ + \"img/po.4c484011.png\";","module.exports = __webpack_public_path__ + \"img/grandmother.16001541.png\";","module.exports = __webpack_public_path__ + \"img/gossip.dd8d7312.png\";","module.exports = __webpack_public_path__ + \"img/devilsadvocate.e455fea0.png\";","module.exports = __webpack_public_path__ + \"img/beggar.b7a4fbda.png\";","import mod from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.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!./Token.vue?vue&type=style&index=0&id=4d8bb4f3&scoped=true&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/dist/cjs.js??ref--8-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.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!./Token.vue?vue&type=style&index=0&id=4d8bb4f3&scoped=true&lang=scss&\"","module.exports = __webpack_public_path__ + \"img/slayer.0859544b.png\";","module.exports = __webpack_public_path__ + \"img/savant.16bfbc30.png\";","module.exports = __webpack_public_path__ + \"img/drunk.4883c5a1.png\";","module.exports = __webpack_public_path__ + \"img/gambler.000b4b9b.png\";","module.exports = store => {\n // initialize data\n if (localStorage.getItem(\"background\")) {\n store.commit(\"setBackground\", localStorage.background);\n }\n if (localStorage.getItem(\"zoom\")) {\n store.commit(\"setZoom\", parseFloat(localStorage.getItem(\"zoom\")));\n }\n if (localStorage.isPublic !== undefined) {\n store.commit(\"toggleGrimoire\", JSON.parse(localStorage.isPublic));\n }\n if (localStorage.edition !== undefined) {\n // this will initialize state.roles!\n store.commit(\"setEdition\", localStorage.edition);\n }\n if (localStorage.roles !== undefined) {\n store.commit(\"setRoles\", JSON.parse(localStorage.roles));\n }\n if (localStorage.bluffs !== undefined) {\n JSON.parse(localStorage.bluffs).forEach((role, index) => {\n store.commit(\"setBluff\", {\n index,\n role: store.state.roles.get(role) || {}\n });\n });\n }\n if (localStorage.players) {\n store.commit(\n \"players/set\",\n JSON.parse(localStorage.players).map(player => ({\n ...player,\n role: store.state.roles.get(player.role) || {}\n }))\n );\n }\n /**** Session related data *****/\n if (localStorage.getItem(\"playerId\")) {\n store.commit(\"session/setPlayerId\", localStorage.getItem(\"playerId\"));\n }\n if (localStorage.getItem(\"session\")) {\n const [spectator, sessionId] = JSON.parse(localStorage.getItem(\"session\"));\n store.commit(\"session/setSpectator\", spectator);\n store.commit(\"session/setSessionId\", sessionId);\n }\n\n // listen to mutations\n store.subscribe(({ type, payload }, state) => {\n switch (type) {\n case \"toggleGrimoire\":\n localStorage.setItem(\n \"isPublic\",\n JSON.stringify(state.grimoire.isPublic)\n );\n break;\n case \"setBackground\":\n if (payload) {\n localStorage.setItem(\"background\", payload);\n } else {\n localStorage.removeItem(\"background\");\n }\n break;\n case \"setZoom\":\n if (payload !== 0) {\n localStorage.setItem(\"zoom\", payload);\n } else {\n localStorage.removeItem(\"zoom\");\n }\n break;\n case \"setEdition\":\n if (payload === \"custom\") {\n localStorage.removeItem(\"edition\");\n } else {\n localStorage.setItem(\"edition\", payload);\n localStorage.removeItem(\"roles\");\n }\n break;\n case \"setRoles\":\n if (!payload.length) {\n localStorage.removeItem(\"roles\");\n } else {\n localStorage.setItem(\"roles\", JSON.stringify(payload));\n }\n break;\n case \"setBluff\":\n localStorage.setItem(\n \"bluffs\",\n JSON.stringify(state.grimoire.bluffs.map(({ id }) => id))\n );\n break;\n case \"players/add\":\n case \"players/update\":\n case \"players/remove\":\n case \"players/clear\":\n case \"players/set\":\n case \"players/swap\":\n case \"players/move\":\n if (state.players.players.length) {\n localStorage.setItem(\n \"players\",\n JSON.stringify(\n state.players.players.map(player => ({\n ...player,\n // simplify the stored data\n role: player.role.id || {}\n }))\n )\n );\n } else {\n localStorage.removeItem(\"players\");\n }\n break;\n case \"session/setSessionId\":\n if (payload) {\n localStorage.setItem(\n \"session\",\n JSON.stringify([state.session.isSpectator, payload])\n );\n } else {\n localStorage.removeItem(\"session\");\n }\n break;\n case \"session/setPlayerId\":\n if (payload) {\n localStorage.setItem(\"playerId\", payload);\n } else {\n localStorage.removeItem(\"playerId\");\n }\n break;\n }\n });\n};\n","module.exports = __webpack_public_path__ + \"img/eviltwin.06a5a8b8.png\";","module.exports = __webpack_public_path__ + \"img/spy.b739966f.png\";","module.exports = __webpack_public_path__ + \"img/courtier.345180fb.png\";","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.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!./RoleModal.vue?vue&type=style&index=0&id=91110818&scoped=true&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/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.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!./RoleModal.vue?vue&type=style&index=0&id=91110818&scoped=true&lang=scss&\"","module.exports = __webpack_public_path__ + \"img/gunslinger.9f84c9f2.png\";","module.exports = __webpack_public_path__ + \"img/virgin.eaf181e8.png\";","module.exports = __webpack_public_path__ + \"img/judge.79ec3877.png\";","module.exports = __webpack_public_path__ + \"img/sweetheart.ec1cef03.png\";","module.exports = __webpack_public_path__ + \"img/poisoner.44c80b94.png\";","module.exports = __webpack_public_path__ + \"img/scarletwoman.d2cdaffd.png\";","module.exports = __webpack_public_path__ + \"img/vigormortis.7716a80d.png\";","module.exports = __webpack_public_path__ + \"img/witch.2f895245.png\";","module.exports = __webpack_public_path__ + \"img/mastermind.c3ba5fbb.png\";","module.exports = __webpack_public_path__ + \"img/clockmaker.41906ffc.png\";","module.exports = __webpack_public_path__ + \"img/barber.a354ad9e.png\";","module.exports = __webpack_public_path__ + \"img/custom.8ff972bc.png\";","import mod from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.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!./Menu.vue?vue&type=style&index=0&id=cf05c89e&scoped=true&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/dist/cjs.js??ref--8-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.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!./Menu.vue?vue&type=style&index=0&id=cf05c89e&scoped=true&lang=scss&\"","module.exports = __webpack_public_path__ + \"img/pacifist.ad2d0310.png\";"],"sourceRoot":""} |