townsquare/js/app.d247ccf3.js.map

1 line
397 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/assets/icons/politician.png","webpack:///./src/assets/editions/tb.png","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/spiritofivory.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/assets/icons/huntsman.png","webpack:///./src/assets/icons/buddhist.png","webpack:///./src/assets/icons/chef.png","webpack:///./src/assets/icons/preacher.png","webpack:///./src/assets/icons/zombuul.png","webpack:///./src/components/Menu.vue?ed75","webpack:///./src/assets/icons/sailor.png","webpack:///./src/assets/icons/widow.png","webpack:///./src/assets/icons/bonecollector.png","webpack:///./src/components/modals/RoleModal.vue?2abf","webpack:///./src/assets/icons/outsider.png","webpack:///./src/assets/icons/baron.png","webpack:///./src/assets/icons/bureaucrat.png","webpack:///./src/assets/icons/puzzlemaster.png","webpack:///./src/assets/editions/bmr-minion.png","webpack:///./src/assets/icons/leviathan.png","webpack:///./src/assets/icons/artist.png","webpack:///./src/assets/editions/snv.png","webpack:///./src/assets/icons/sage.png","webpack:///./src/assets/icons/poppygrower.png","webpack:///./src/assets/icons/scapegoat.png","webpack:///./src/assets/icons/philosopher.png","webpack:///./src/components/TownSquare.vue?b88a","webpack:///./src/assets/icons/butcher.png","webpack:///./src/assets/icons/towncrier.png","webpack:///./src/assets/icons/cultleader.png","webpack:///./src/assets/icons/toymaker.png","webpack:///./src/assets/icons/vortox.png","webpack:///./src/assets/icons/deviant.png","webpack:///./src/assets/icons/nightwatchman.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/editions/custom.png","webpack:///./src/assets/editions/snv-minion.png","webpack:///./src/assets/icons/fool.png","webpack:///./src/assets/icons/apprentice.png","webpack:///./src/components/modals/ReferenceModal.vue?3656","webpack:///./src/assets/icons/librarian.png","webpack:///./src/assets/editions/snv-outsider.png","webpack:///./src/assets/icons/soldier.png","webpack:///./src/assets/icons/golem.png","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/assets/icons/heretic.png","webpack:///./src/App.vue?b510","webpack:///./src/components/TownSquare.vue?eeb6","webpack:///./src/components/Player.vue?b9ea","webpack:///./src/components/Token.vue?0b9b","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?bb46","webpack:///./src/components/modals/Modal.vue?2aeb","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?8036","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?0c3c","webpack:///src/components/TownInfo.vue","webpack:///./src/components/TownInfo.vue?6260","webpack:///./src/components/TownInfo.vue","webpack:///./src/components/Menu.vue?7217","webpack:///src/components/Menu.vue","webpack:///./src/components/Menu.vue?9842","webpack:///./src/components/Menu.vue","webpack:///./src/components/modals/RolesModal.vue?8f73","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?11da","webpack:///src/components/modals/EditionModal.vue","webpack:///./src/components/modals/EditionModal.vue?d6f4","webpack:///./src/components/modals/EditionModal.vue","webpack:///./src/components/Intro.vue?31e0","webpack:///src/components/Intro.vue","webpack:///./src/components/Intro.vue?a380","webpack:///./src/components/Intro.vue","webpack:///./src/components/modals/ReferenceModal.vue?616d","webpack:///src/components/modals/ReferenceModal.vue","webpack:///./src/components/modals/ReferenceModal.vue?c23b","webpack:///./src/components/modals/ReferenceModal.vue","webpack:///./src/components/Vote.vue?bb73","webpack:///src/components/Vote.vue","webpack:///./src/components/Vote.vue?2a1c","webpack:///./src/components/Vote.vue","webpack:///./src/components/Gradients.vue?5df9","webpack:///src/components/Gradients.vue","webpack:///./src/components/Gradients.vue?d8ff","webpack:///./src/components/Gradients.vue","webpack:///./src/components/modals/NightOrderModal.vue?6c99","webpack:///src/components/modals/NightOrderModal.vue","webpack:///./src/components/modals/NightOrderModal.vue?08ef","webpack:///./src/components/modals/NightOrderModal.vue","webpack:///./src/components/modals/FabledModal.vue?b5d2","webpack:///src/components/modals/FabledModal.vue","webpack:///./src/components/modals/FabledModal.vue?aeda","webpack:///./src/components/modals/FabledModal.vue","webpack:///./src/components/modals/VoteHistoryModal.vue?e534","webpack:///src/components/modals/VoteHistoryModal.vue","webpack:///./src/components/modals/VoteHistoryModal.vue?485a","webpack:///./src/components/modals/VoteHistoryModal.vue","webpack:///./src/components/modals/GameStateModal.vue?ee59","webpack:///src/components/modals/GameStateModal.vue","webpack:///./src/components/modals/GameStateModal.vue?7f16","webpack:///./src/components/modals/GameStateModal.vue","webpack:///src/App.vue","webpack:///./src/App.vue?b65f","webpack:///./src/App.vue","webpack:///./src/store/socket.js","webpack:///./src/store/modules/players.js","webpack:///./src/store/modules/session.js","webpack:///./src/store/index.js","webpack:///./src/main.js","webpack:///./src/components/Token.vue?181a","webpack:///./src/assets/icons/riot.png","webpack:///./src/assets/icons/fabled.png","webpack:///./src/assets/icons/cannibal.png","webpack:///./src/App.vue?6ee5","webpack:///./src/assets/icons/duchess.png","webpack:///./src/assets/icons/goblin.png","webpack:///./src/assets/icons/x.png","webpack:///./src/assets/editions/tb-minion.png","webpack:///./src/assets/icons sync ^\\.\\/.*\\.png$","webpack:///./src/assets/icons/fiddler.png","webpack:///./src/assets/icons/butler.png","webpack:///./src/assets/icons/doomsayer.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/components/modals/EditionModal.vue?f0c8","webpack:///./src/assets/icons/nodashii.png","webpack:///./src/assets/icons/saint.png","webpack:///./src/assets/icons/fanggu.png","webpack:///./src/assets/icons/fibbin.png","webpack:///./src/assets/icons/dreamer.png","webpack:///./src/assets/icons/damsel.png","webpack:///./src/assets/editions/tb-outsider.png","webpack:///./src/components/modals/ReminderModal.vue?476f","webpack:///./src/assets/editions/bmr.png","webpack:///./src/components/Player.vue?6d3c","webpack:///./src/assets/icons/minion.png","webpack:///./src/assets/icons/farmer.png","webpack:///./src/assets/icons/pithag.png","webpack:///./src/assets/icons/bishop.png","webpack:///./src/components/modals/Modal.vue?3563","webpack:///./src/assets/icons/acrobat.png","webpack:///./src/assets/icons/mathematician.png","webpack:///./src/components/modals/RolesModal.vue?8383","webpack:///./src/assets/icons/bountyhunter.png","webpack:///./src/components/Vote.vue?e359","webpack:///./src/components/modals/VoteHistoryModal.vue?39ca","webpack:///./src/assets/icons/deusexfiasco.png","webpack:///./src/assets/icons/assassin.png","webpack:///./src/assets/editions/luf.png","webpack:///./src/assets/icons/king.png","webpack:///./src/assets/icons/gangster.png","webpack:///./src/assets/icons/alhadikhia.png","webpack:///./src/assets/icons/godfather.png","webpack:///./src/assets/icons/thief.png","webpack:///./src/assets/icons/lleech.png","webpack:///./src/assets/icons/tinker.png","webpack:///./src/assets/icons/hellslibrarian.png","webpack:///./src/assets/editions/tb-demon.png","webpack:///./src/assets/icons/stormcatcher.png","webpack:///./src/assets/icons/pukka.png","webpack:///./src/assets/icons/voudon.png","webpack:///./src/assets/icons/pixie.png","webpack:///./src/assets/icons/revolutionary.png","webpack:///./src/assets/icons/boomdandy.png","webpack:///./src/assets/icons/magician.png","webpack:///./src/assets/icons/seamstress.png","webpack:///./src/assets/icons/general.png","webpack:///./src/assets/icons/klutz.png","webpack:///./src/assets/icons/sentinel.png","webpack:///./src/assets/icons/matron.png","webpack:///./src/assets/icons/mayor.png","webpack:///./src/assets/icons/professor.png","webpack:///./src/assets/icons/investigator.png","webpack:///./src/components/modals/NightOrderModal.vue?2579","webpack:///./src/assets/icons/snitch.png","webpack:///./src/assets/icons/tealady.png","webpack:///./src/assets/icons/empath.png","webpack:///./src/assets/icons/angel.png","webpack:///./src/assets/icons/evil.png","webpack:///./src/assets/icons/lycanthrope.png","webpack:///./src/assets/icons/lilmonsta.png","webpack:///./src/components/TownInfo.vue?113f","webpack:///./src/assets/icons/fisherman.png","webpack:///./src/assets/icons/po.png","webpack:///./src/assets/icons/mezepheles.png","webpack:///./src/assets/icons/grandmother.png","webpack:///./src/assets/icons/atheist.png","webpack:///./src/assets/icons/gossip.png","webpack:///./src/assets/editions/bmr-demon.png","webpack:///./src/assets/icons/devilsadvocate.png","webpack:///./src/assets/editions sync ^\\.\\/.*\\.png$","webpack:///./src/assets/icons/beggar.png","webpack:///./src/assets/icons/slayer.png","webpack:///./src/assets/icons/fearmonger.png","webpack:///./src/assets/icons/choirboy.png","webpack:///./src/assets/icons/savant.png","webpack:///./src/assets/icons/drunk.png","webpack:///./src/assets/icons/legion.png","webpack:///./src/assets/icons/alchemist.png","webpack:///./src/assets/icons/gambler.png","webpack:///./src/assets/gstone.png","webpack:///./src/assets/icons/mephit.png","webpack:///./src/store/persistence.js","webpack:///./src/assets/icons/eviltwin.png","webpack:///./src/assets/icons/djinn.png","webpack:///./src/components/Intro.vue?bba1","webpack:///./src/assets/icons/marionette.png","webpack:///./src/assets/editions/bmr-outsider.png","webpack:///./src/assets/editions/bmr-townsfolk.png","webpack:///./src/assets/icons/engineer.png","webpack:///./src/components/modals/GameStateModal.vue?d9a4","webpack:///./src/assets/icons/spy.png","webpack:///./src/assets/editions/snv-townsfolk.png","webpack:///./src/assets/icons/courtier.png","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/editions/snv-demon.png","webpack:///./src/assets/icons/vigormortis.png","webpack:///./src/assets/icons/witch.png","webpack:///./src/assets/sounds/countdown.mp3","webpack:///./src/assets/editions/tb-townsfolk.png","webpack:///./src/assets/icons/noble.png","webpack:///./src/assets/icons/mastermind.png","webpack:///./src/assets/icons/clockmaker.png","webpack:///./src/assets/icons/barber.png","webpack:///./src/assets/icons/psychopath.png","webpack:///./src/assets/icons/custom.png","webpack:///./src/components/modals/FabledModal.vue?31c5","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","render","_vm","this","_h","$createElement","_c","_self","class","night","grimoire","isNight","static","isStatic","style","backgroundImage","background","attrs","on","keyup","match","_e","staticClass","players","session","nomination","ref","_v","_s","version","staticRenderFns","public","isPublic","spectator","isSpectator","vote","_l","player","index","from","Math","max","swap","move","nominate","$event","handleTrigger","closed","isBluffsOpen","stopPropagation","toggleBluffs","openRoleModal","bluffs","fabled","isFabledOpen","toggleFabled","role","removeFabled","nightOrder","first","isNightOrder","firstNightReminder","other","otherNightReminder","selectedPlayer","dead","isDead","marked","markedPlayer","isVoteless","you","sessionId","id","playerId","votes","voteLocked","team","toggleStatus","$emit","cancel","swapPlayer","movePlayer","nominatePlayer","highlight","isRolesDistributed","updatePlayer","active","isMenuOpen","pronouns","changePronouns","changeName","disabled","lockedVote","removePlayer","claimSeat","reminder","removeReminder","image","isImageOptIn","imageAlt","setRole","firstNight","otherNight","reminderLeaves","_f","ability","props","type","default","computed","reminders","remindersGlobal","filters","nameToFontSize","methods","component","components","Token","required","indexOf","indexAdjusted","zoom","unit","innerWidth","innerHeight","width","isSwap","prompt","isMarked","closeMenu","$store","commit","modals","availableReminders","playerIndex","toggleModal","addReminder","close","maximized","isMaximized","_t","mapReminder","Modal","state","roles","forEach","some","bluff","map","otherTravelers","availableRoles","tab","size","values","townsfolk","Player","RoleModal","ReminderModal","bluffSize","method","params","confirm","includes","to","undefined","swapTo","updatedNomination","nom","moveTo","edition","logo","teams","traveler","isOfficial","author","alive","outsider","minion","demon","nonTravelers","getters","filter","game","directives","rawName","voteHistory","expression","reconnecting","isReconnecting","ping","leaveSession","playerCount","open","toggleMenu","toggleGrimoire","toggleNight","toggleNightOrder","setZoom","round","setBackground","imageOptIn","toggleStatic","toggleMuted","isMuted","copySessionUrl","distributeRoles","hostSession","joinSession","addPlayer","randomizeSeatings","clearPlayers","clearRoles","random","url","location","href","split","link","navigator","clipboard","writeText","popup","setTimeout","toggleImageOptIn","pop","dispatch","teamRoles","reduce","a","selected","checked","allowMultiple","domProps","Array","isArray","_i","$$a","$$el","target","$$c","$$v","$$i","concat","selectedRoles","assignRoles","selectRandomRoles","randomElement","arr","floor","roleSelection","b","hasSelectedSetupRoles","setup","$set","composition","keys","x","available","fill","sort","mounted","watch","isCustom","script","handleURL","handleUpload","openUpload","promptURL","readFromClipboard","setEdition","editions","scripts","$refs","upload","click","file","files","reader","FileReader","addEventListener","JSON","parse","parseRoles","e","alert","message","readAsText","res","fetch","json","text","readText","metaIndex","findIndex","meta","assign","has","_m","language","userLanguage","reference","playersByRole","join","jinxed","jinx","second","reason","jinxes","rolesGrouped","nominator","nominee","voters","ceil","isVoteInProgress","votingSpeed","currentVote","preventDefault","setVotingSpeed","countdown","pause","voteTimer","stop","start","finish","setMarked","removeMarked","nominatorStyle","transform","transitionDuration","nomineeStyle","lock","rotation","min","find","canVote","reorder","setInterval","clearInterval","diff","speed","gradient","gradients","rolesFirstNight","rolesOtherNight","setFabled","fable","clearVoteHistory","setRecordVoteHistory","isVoteHistoryAllowed","timestamp","getHours","toString","padStart","getMinutes","majority","gamestate","input","select","copy","load","stringify","customRolesStripped","f","rolesJSONbyId","GameStateModal","VoteHistoryModal","FabledModal","NightOrderModal","Vote","ReferenceModal","Intro","TownInfo","TownSquare","Menu","EditionModal","RolesModal","Gradients","ctrlKey","metaKey","toLocaleLowerCase","menu","LiveSession","store","_wss","_socket","_isSpectator","_gamestate","_store","_pingInterval","_pingTimer","_reconnectTimer","_players","_pings","connect","channel","disconnect","WebSocket","_handleMessage","onopen","_onOpen","onclose","err","code","command","readyState","send","_send","_sendDirect","sendGamestate","_ping","_handlePing","clearTimeout","console","log","_updateEdition","_updateFabled","_updateGamestate","_updatePlayer","_updateSeat","_handleVote","_handleLock","_handleBye","_updatePlayerPronouns","substr","_open","isLightweight","roleId","sendEdition","missing","isFromSockets","playerIdOrCount","latency","now","Date","getTime","parseInt","pings","seat","oldIndex","payload","fromST","subscribe","hash","setVoteInProgress","lockVote","setVoteHistoryAllowed","setIsNight","sendFabled","sendPlayerPronouns","sendPlayer","NEWPLAYER","Map","set","actions","rootState","mutations","namespaced","handleVote","claimedSeat","val","setPlayerId","setSpectator","setReconnecting","setPlayerCount","setPing","setMarkedPlayer","setNomination","replace","isExile","voteSync","use","getRolesByEdition","localeCompare","getTravelersNotInEdition","toggle","clean","editionJSONbyId","hatred","error","customRole","Store","gameState","customRoles","customKeys","strippedProps","strippedRole","prop","modal","processedRoles","mappedRole","abs","plugins","socket","faIcons","fabIcons","add","config","productionTip","h","App","$mount","webpackContext","req","webpackContextResolve","Error","resolve","updatePagetitle","document","title","localStorage","getItem","parseFloat","removeItem","setItem"],"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,EAAaH,KACpDc,EAAQd,GAAYG,EAAYH,IAG/Be,GAAqBA,EAAoBhB,GAE5C,MAAMO,EAASC,OACdD,EAASU,OAATV,GAOD,OAHAW,EAAgBJ,KAAKK,MAAMD,EAAiBb,GAAkB,IAGvDe,IAER,SAASA,IAER,IADA,IAAIC,EACIf,EAAI,EAAGA,EAAIY,EAAgBV,OAAQF,IAAK,CAG/C,IAFA,IAAIgB,EAAiBJ,EAAgBZ,GACjCiB,GAAY,EACRC,EAAI,EAAGA,EAAIF,EAAed,OAAQgB,IAAK,CAC9C,IAAIC,EAAQH,EAAeE,GACG,IAA3BX,EAAgBY,KAAcF,GAAY,GAE3CA,IACFL,EAAgBQ,OAAOpB,IAAK,GAC5Be,EAASM,EAAoBA,EAAoBC,EAAIN,EAAe,KAItE,OAAOD,EAIR,IAAIQ,EAAmB,GAKnBhB,EAAkB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X,UACAzO,KAAKgF,UAAU,CAACzN,EAAMvH,QAAQU,YAAaqZ,KAG7CsE,aAAaG,WAAW,WAE1B,MACF,IAAK,sBACCzE,EACFsE,aAAaI,QAAQ,WAAY1E,GAEjCsE,aAAaG,WAAW,YAE1B,W,qBCxLR7hB,EAAOD,QAAU,IAA0B,6B,qBCA3CC,EAAOD,QAAU,IAA0B,0B,yDCA3C,W,qBCAAC,EAAOD,QAAU,IAA0B,+B,qBCA3CC,EAAOD,QAAU,IAA0B,iC,qBCA3CC,EAAOD,QAAU,IAA0B,kC,qBCA3CC,EAAOD,QAAU,IAA0B,6B,kCCA3C,W,qBCAAC,EAAOD,QAAU,IAA0B,wB,qBCA3CC,EAAOD,QAAU,IAA0B,kC,qBCA3CC,EAAOD,QAAU,IAA0B,6B,qBCA3CC,EAAOD,QAAU,IAA0B,+B,qBCA3CC,EAAOD,QAAU,IAA0B,2B,qBCA3CC,EAAOD,QAAU,IAA0B,0B,qBCA3CC,EAAOD,QAAU,IAA0B,+B,qBCA3CC,EAAOD,QAAU,IAA0B,6B,qBCA3CC,EAAOD,QAAU,IAA0B,iC,4CCA3CC,EAAOD,QAAU,IAA0B,8B,qBCA3CC,EAAOD,QAAU,IAA0B,gC,qBCA3CC,EAAOD,QAAU,IAA0B,0B,qBCA3CC,EAAOD,QAAU,IAA0B,gC,qBCA3CC,EAAOD,QAAU,IAA0B,iC,qBCA3CC,EAAOD,QAAU,IAA0B,0B,qBCA3CC,EAAOD,QAAU,IAA0B,+B,qBCA3CC,EAAOD,QAAU,IAA0B,+B,qBCA3CC,EAAOD,QAAU,IAA0B,2B,qBCA3CC,EAAOD,QAAU,IAA0B,+B,qBCA3CC,EAAOD,QAAU,IAA0B,2B,kCCA3C,W,qBCAAC,EAAOD,QAAU,IAA0B","file":"js/app.d247ccf3.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 = \"/\";\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.554de332.png\";","module.exports = __webpack_public_path__ + \"img/barista.6c427e65.png\";","module.exports = __webpack_public_path__ + \"img/cerenovus.cc343942.png\";","module.exports = __webpack_public_path__ + \"img/amnesiac.fbd5ab33.png\";","module.exports = __webpack_public_path__ + \"img/politician.521cc53f.png\";","module.exports = __webpack_public_path__ + \"img/tb.438499cd.png\";","module.exports = __webpack_public_path__ + \"img/shabaloth.589858d2.png\";","module.exports = __webpack_public_path__ + \"img/lunatic.39fb7a2a.png\";","module.exports = __webpack_public_path__ + \"img/oracle.8b13b932.png\";","module.exports = __webpack_public_path__ + \"img/ravenkeeper.a1dfbc31.png\";","module.exports = __webpack_public_path__ + \"img/spiritofivory.ef077db5.png\";","module.exports = __webpack_public_path__ + \"img/undertaker.4f2e9806.png\";","module.exports = __webpack_public_path__ + \"img/chambermaid.5fa8599d.png\";","module.exports = __webpack_public_path__ + \"img/plus.9b84ce65.png\";","module.exports = __webpack_public_path__ + \"img/recluse.81a048d5.png\";","module.exports = __webpack_public_path__ + \"img/mutant.1b9f9dee.png\";","module.exports = __webpack_public_path__ + \"img/huntsman.994fb309.png\";","module.exports = __webpack_public_path__ + \"img/buddhist.2d7c4106.png\";","module.exports = __webpack_public_path__ + \"img/chef.c2256a45.png\";","module.exports = __webpack_public_path__ + \"img/preacher.a86e913b.png\";","module.exports = __webpack_public_path__ + \"img/zombuul.2872fbb3.png\";","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=84ed831a&scoped=true&lang=scss&\"","module.exports = __webpack_public_path__ + \"img/sailor.a9d4454a.png\";","module.exports = __webpack_public_path__ + \"img/widow.3ae71cbf.png\";","module.exports = __webpack_public_path__ + \"img/bonecollector.bd2d8b7a.png\";","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=2e3008b9&scoped=true&lang=scss&\"","module.exports = __webpack_public_path__ + \"img/outsider.2c6bc66e.png\";","module.exports = __webpack_public_path__ + \"img/baron.2628f49e.png\";","module.exports = __webpack_public_path__ + \"img/bureaucrat.6a892d56.png\";","module.exports = __webpack_public_path__ + \"img/puzzlemaster.b4ec360b.png\";","module.exports = __webpack_public_path__ + \"img/bmr-minion.6559191b.png\";","module.exports = __webpack_public_path__ + \"img/leviathan.24f3cd86.png\";","module.exports = __webpack_public_path__ + \"img/artist.e76624f3.png\";","module.exports = __webpack_public_path__ + \"img/snv.288a42ad.png\";","module.exports = __webpack_public_path__ + \"img/sage.8afae02e.png\";","module.exports = __webpack_public_path__ + \"img/poppygrower.c9d4c880.png\";","module.exports = __webpack_public_path__ + \"img/scapegoat.73640c39.png\";","module.exports = __webpack_public_path__ + \"img/philosopher.9a154d6c.png\";","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&\"","module.exports = __webpack_public_path__ + \"img/butcher.2efedb75.png\";","module.exports = __webpack_public_path__ + \"img/towncrier.8c7af52c.png\";","module.exports = __webpack_public_path__ + \"img/cultleader.d5bcc573.png\";","module.exports = __webpack_public_path__ + \"img/toymaker.a96806e5.png\";","module.exports = __webpack_public_path__ + \"img/vortox.f022015e.png\";","module.exports = __webpack_public_path__ + \"img/deviant.9fcfb58a.png\";","module.exports = __webpack_public_path__ + \"img/nightwatchman.a2460a3d.png\";","module.exports = __webpack_public_path__ + \"img/imp.ff808901.png\";","module.exports = __webpack_public_path__ + \"img/moonchild.94841498.png\";","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.7769a0cc.png\";","module.exports = __webpack_public_path__ + \"img/fortuneteller.a641461f.png\";","module.exports = __webpack_public_path__ + \"img/custom.5334aaeb.png\";","module.exports = __webpack_public_path__ + \"img/snv-minion.60768802.png\";","module.exports = __webpack_public_path__ + \"img/fool.0d847910.png\";","module.exports = __webpack_public_path__ + \"img/apprentice.ff782fd9.png\";","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=7d0ee60b&lang=scss&scoped=true&\"","module.exports = __webpack_public_path__ + \"img/librarian.c867e6d6.png\";","module.exports = __webpack_public_path__ + \"img/snv-outsider.5b5cae7f.png\";","module.exports = __webpack_public_path__ + \"img/soldier.ebde76f0.png\";","module.exports = __webpack_public_path__ + \"img/golem.4a791883.png\";","module.exports = __webpack_public_path__ + \"img/minstrel.29c42f5b.png\";","module.exports = __webpack_public_path__ + \"img/exorcist.4d617582.png\";","module.exports = __webpack_public_path__ + \"img/harlot.403b3498.png\";","module.exports = __webpack_public_path__ + \"img/goon.eb004322.png\";","module.exports = __webpack_public_path__ + \"img/heretic.0bbeab70.png\";","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:{\n night: _vm.grimoire.isNight,\n static: _vm.grimoire.isStatic\n },style:({\n backgroundImage: _vm.grimoire.background\n ? (\"url('\" + (_vm.grimoire.background) + \"')\")\n : ''\n }),attrs:{\"id\":\"app\",\"tabindex\":\"-1\"},on:{\"keyup\":_vm.keyup}},[(_vm.grimoire.background && _vm.grimoire.background.match(/\\.(mp4|webm)$/i))?_c('video',{attrs:{\"id\":\"background\",\"src\":_vm.grimoire.background,\"autoplay\":\"\",\"loop\":\"\"}}):_vm._e(),_c('div',{staticClass:\"backdrop\"}),_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'),_c('Menu',{ref:\"menu\"}),_c('EditionModal'),_c('FabledModal'),_c('RolesModal'),_c('ReferenceModal'),_c('NightOrderModal'),_c('VoteHistoryModal'),_c('GameStateModal'),_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:{\"trigger\":function($event){return _vm.handleTrigger(index, $event)}}})}),1),(_vm.players.length)?_c('div',{ref:\"bluffs\",staticClass:\"bluffs\",class:{ closed: !_vm.isBluffsOpen }},[_c('h3',[(_vm.session.isSpectator)?_c('span',[_vm._v(\"Other characters\")]):_c('span',[_vm._v(\"Demon bluffs\")]),_c('font-awesome-icon',{attrs:{\"icon\":\"times-circle\"},on:{\"click\":function($event){$event.stopPropagation();return _vm.toggleBluffs($event)}}}),_c('font-awesome-icon',{attrs:{\"icon\":\"plus-circle\"},on:{\"click\":function($event){$event.stopPropagation();return _vm.toggleBluffs($event)}}})],1),_c('ul',_vm._l((_vm.bluffSize),function(index){return _c('li',{key:index,on:{\"click\":function($event){return _vm.openRoleModal(index * -1)}}},[_c('Token',{attrs:{\"role\":_vm.bluffs[index - 1]}})],1)}),0)]):_vm._e(),(_vm.fabled.length)?_c('div',{staticClass:\"fabled\",class:{ closed: !_vm.isFabledOpen }},[_c('h3',[_c('span',[_vm._v(\"Fabled\")]),_c('font-awesome-icon',{attrs:{\"icon\":\"times-circle\"},on:{\"click\":function($event){$event.stopPropagation();return _vm.toggleFabled($event)}}}),_c('font-awesome-icon',{attrs:{\"icon\":\"plus-circle\"},on:{\"click\":function($event){$event.stopPropagation();return _vm.toggleFabled($event)}}})],1),_c('ul',_vm._l((_vm.fabled),function(role,index){return _c('li',{key:index,on:{\"click\":function($event){return _vm.removeFabled(index)}}},[(_vm.nightOrder.get(role).first && _vm.grimoire.isNightOrder)?_c('div',{staticClass:\"night-order first\"},[_c('em',[_vm._v(_vm._s(_vm.nightOrder.get(role).first)+\".\")]),(role.firstNightReminder)?_c('span',[_vm._v(_vm._s(role.firstNightReminder))]):_vm._e()]):_vm._e(),(_vm.nightOrder.get(role).other && _vm.grimoire.isNightOrder)?_c('div',{staticClass:\"night-order other\"},[_c('em',[_vm._v(_vm._s(_vm.nightOrder.get(role).other)+\".\")]),(role.otherNightReminder)?_c('span',[_vm._v(_vm._s(role.otherNightReminder))]):_vm._e()]):_vm._e(),_c('Token',{attrs:{\"role\":role}})],1)}),0)]):_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 marked: _vm.session.markedPlayer === _vm.index,\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-order first\"},[_c('em',[_vm._v(_vm._s(_vm.nightOrder.get(_vm.player).first)+\".\")]),(_vm.player.role.firstNightReminder)?_c('span',[_vm._v(_vm._s(_vm.player.role.firstNightReminder))]):_vm._e()]):_vm._e(),(_vm.nightOrder.get(_vm.player).other && _vm.grimoire.isNightOrder)?_c('div',{staticClass:\"night-order other\"},[_c('em',[_vm._v(_vm._s(_vm.nightOrder.get(_vm.player).other)+\".\")]),(_vm.player.role.otherNightReminder)?_c('span',[_vm._v(_vm._s(_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\":\"hand-paper\",\"title\":\"Hand UP\"},on:{\"click\":function($event){return _vm.vote()}}}),_c('font-awesome-icon',{staticClass:\"vote\",attrs:{\"icon\":\"times\",\"title\":\"Hand DOWN\"},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\",class:{ highlight: _vm.session.isRolesDistributed },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:\"marked\"},[_c('font-awesome-icon',{attrs:{\"icon\":\"skull\"}})],1),_c('div',{staticClass:\"name\",class:{ active: _vm.isMenuOpen },on:{\"click\":function($event){_vm.isMenuOpen = !_vm.isMenuOpen}}},[_c('span',[_vm._v(_vm._s(_vm.player.name))]),(_vm.player.pronouns)?_c('font-awesome-icon',{attrs:{\"icon\":\"venus-mars\"}}):_vm._e(),(_vm.player.pronouns)?_c('div',{staticClass:\"pronouns\"},[_c('span',[_vm._v(_vm._s(_vm.player.pronouns))])]):_vm._e()],1),_c('transition',{attrs:{\"name\":\"fold\"}},[(_vm.isMenuOpen)?_c('ul',{staticClass:\"menu\"},[(\n !_vm.session.isSpectator ||\n (_vm.session.isSpectator && _vm.player.id === _vm.session.playerId)\n )?_c('li',{on:{\"click\":_vm.changePronouns}},[_c('font-awesome-icon',{attrs:{\"icon\":\"venus-mars\"}}),_vm._v(\"Change Pronouns \")],1):_vm._e(),(!_vm.session.isSpectator)?[_c('li',{on:{\"click\":_vm.changeName}},[_c('font-awesome-icon',{attrs:{\"icon\":\"user-edit\"}}),_vm._v(\"Rename \")],1),_c('li',{class:{ disabled: _vm.session.lockedVote },on:{\"click\":function($event){return _vm.movePlayer()}}},[_c('font-awesome-icon',{attrs:{\"icon\":\"redo-alt\"}}),_vm._v(\" Move player \")],1),_c('li',{class:{ disabled: _vm.session.lockedVote },on:{\"click\":function($event){return _vm.swapPlayer()}}},[_c('font-awesome-icon',{attrs:{\"icon\":\"exchange-alt\"}}),_vm._v(\" Swap seats \")],1),_c('li',{class:{ disabled: _vm.session.lockedVote },on:{\"click\":_vm.removePlayer}},[_c('font-awesome-icon',{attrs:{\"icon\":\"times-circle\"}}),_vm._v(\" Remove \")],1),(_vm.player.id && _vm.session.sessionId)?_c('li',{on:{\"click\":function($event){return _vm.updatePlayer('id', '', true)}}},[_c('font-awesome-icon',{attrs:{\"icon\":\"chair\"}}),_vm._v(\" Empty seat \")],1):_vm._e(),(!_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()]:_vm._e(),(_vm.session.isSpectator)?_c('li',{class:{ disabled: _vm.player.id && _vm.player.id !== _vm.session.playerId },on:{\"click\":_vm.claimSeat}},[_c('font-awesome-icon',{attrs:{\"icon\":\"chair\"}}),(!_vm.player.id)?[_vm._v(\" Claim seat \")]:(_vm.player.id === _vm.session.playerId)?[_vm._v(\" Vacate seat \")]:[_vm._v(\" Seat occupied\")]],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(\" + (reminder.image && _vm.grimoire.isImageOptIn\n ? reminder.image\n : require('../assets/icons/' +\n (reminder.imageAlt || 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\"})]),_c('div',{staticClass:\"reminderHoverTarget\"})],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(\" + (_vm.role.image && _vm.grimoire.isImageOptIn\n ? _vm.role.image\n : require('../assets/icons/' + (_vm.role.imageAlt || _vm.role.id) + '.png')) + \")\")\n })}):_vm._e(),(_vm.role.firstNight || _vm.role.firstNightReminder)?_c('span',{staticClass:\"leaf-left\"}):_vm._e(),(_vm.role.otherNight || _vm.role.otherNightReminder)?_c('span',{staticClass:\"leaf-right\"}):_vm._e(),(_vm.reminderLeaves)?_c('span',{class:['leaf-top' + _vm.reminderLeaves]}):_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 :style=\"{\n backgroundImage: `url(${\n role.image && grimoire.isImageOptIn\n ? role.image\n : require('../assets/icons/' + (role.imageAlt || role.id) + '.png')\n })`\n }\"\n ></span>\n <span\n class=\"leaf-left\"\n v-if=\"role.firstNight || role.firstNightReminder\"\n ></span>\n <span\n class=\"leaf-right\"\n v-if=\"role.otherNight || role.otherNightReminder\"\n ></span>\n <span v-if=\"reminderLeaves\" :class=\"['leaf-top' + reminderLeaves]\"></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 :font-size=\"role.name | nameToFontSize\"\n >\n <textPath xlink:href=\"#curve\">\n {{ role.name }}\n </textPath>\n </text>\n </svg>\n <div class=\"edition\" :class=\"[`edition-${role.edition}`, role.team]\"></div>\n <div class=\"ability\" v-if=\"role.ability\">\n {{ role.ability }}\n </div>\n </div>\n</template>\n\n<script>\nimport { mapState } from \"vuex\";\n\nexport default {\n name: \"Token\",\n props: {\n role: {\n type: Object,\n default: () => ({})\n }\n },\n computed: {\n reminderLeaves: function() {\n return (\n (this.role.reminders || []).length +\n (this.role.remindersGlobal || []).length\n );\n },\n ...mapState([\"grimoire\"])\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 transition: border-color 250ms;\n\n &:hover .name .label {\n stroke: black;\n fill: white;\n @-moz-document url-prefix() {\n &.mozilla {\n stroke: none;\n filter: drop-shadow(0 1.5px 0 black) drop-shadow(0 -1.5px 0 black)\n drop-shadow(1.5px 0 0 black) drop-shadow(-1.5px 0 0 black)\n drop-shadow(0 2px 2px rgba(0, 0, 0, 0.5));\n }\n }\n }\n\n .icon,\n &:before {\n background-size: 100%;\n background-repeat: no-repeat;\n background-position: center 30%;\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 1.5px 0 white) drop-shadow(0 -1.5px 0 white)\n drop-shadow(1.5px 0 0 white) drop-shadow(-1.5px 0 0 white)\n drop-shadow(0 2px 2px rgba(0, 0, 0, 0.5));\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\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=deec739a&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=deec739a&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 \"deec739a\",\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 marked: session.markedPlayer === index,\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-order 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\n }}</span>\n </div>\n <div\n class=\"night-order 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\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=\"hand-paper\"\n class=\"vote\"\n title=\"Hand UP\"\n @click=\"vote()\"\n />\n <font-awesome-icon\n icon=\"times\"\n class=\"vote\"\n title=\"Hand DOWN\"\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 :class=\"{ highlight: session.isRolesDistributed }\"\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 <!-- On block icon -->\n <div class=\"marked\">\n <font-awesome-icon icon=\"skull\" />\n </div>\n <div\n class=\"name\"\n @click=\"isMenuOpen = !isMenuOpen\"\n :class=\"{ active: isMenuOpen }\"\n >\n <span>{{ player.name }}</span>\n <font-awesome-icon icon=\"venus-mars\" v-if=\"player.pronouns\" />\n <div class=\"pronouns\" v-if=\"player.pronouns\">\n <span>{{ player.pronouns }}</span>\n </div>\n </div>\n\n <transition name=\"fold\">\n <ul class=\"menu\" v-if=\"isMenuOpen\">\n <li\n @click=\"changePronouns\"\n v-if=\"\n !session.isSpectator ||\n (session.isSpectator && player.id === session.playerId)\n \"\n >\n <font-awesome-icon icon=\"venus-mars\" />Change Pronouns\n </li>\n <template v-if=\"!session.isSpectator\">\n <li @click=\"changeName\">\n <font-awesome-icon icon=\"user-edit\" />Rename\n </li>\n <li @click=\"movePlayer()\" :class=\"{ disabled: session.lockedVote }\">\n <font-awesome-icon icon=\"redo-alt\" />\n Move player\n </li>\n <li @click=\"swapPlayer()\" :class=\"{ disabled: session.lockedVote }\">\n <font-awesome-icon icon=\"exchange-alt\" />\n Swap seats\n </li>\n <li @click=\"removePlayer\" :class=\"{ disabled: session.lockedVote }\">\n <font-awesome-icon icon=\"times-circle\" />\n Remove\n </li>\n <li\n @click=\"updatePlayer('id', '', true)\"\n v-if=\"player.id && session.sessionId\"\n >\n <font-awesome-icon icon=\"chair\" />\n Empty seat\n </li>\n <template v-if=\"!session.nomination\">\n <li @click=\"nominatePlayer()\">\n <font-awesome-icon icon=\"hand-point-right\" />\n Nomination\n </li>\n </template>\n </template>\n <li\n @click=\"claimSeat\"\n v-if=\"session.isSpectator\"\n :class=\"{ disabled: player.id && player.id !== session.playerId }\"\n >\n <font-awesome-icon icon=\"chair\" />\n <template v-if=\"!player.id\">\n Claim seat\n </template>\n <template v-else-if=\"player.id === session.playerId\">\n Vacate seat\n </template>\n <template v-else> Seat occupied</template>\n </li>\n </ul>\n </transition>\n </div>\n\n <template v-if=\"player.reminders\">\n <div\n class=\"reminder\"\n :key=\"reminder.role + ' ' + reminder.name\"\n v-for=\"reminder in player.reminders\"\n :class=\"[reminder.role]\"\n @click=\"removeReminder(reminder)\"\n >\n <span\n class=\"icon\"\n :style=\"{\n backgroundImage: `url(${\n reminder.image && grimoire.isImageOptIn\n ? reminder.image\n : require('../assets/icons/' +\n (reminder.imageAlt || reminder.role) +\n '.png')\n })`\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 <div class=\"reminderHoverTarget\"></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 methods: {\n changePronouns() {\n if (this.session.isSpectator && this.player.id !== this.session.playerId)\n return;\n const pronouns = prompt(\"Player pronouns\", this.player.pronouns);\n //Only update pronouns if not null (prompt was not cancelled)\n if (pronouns !== null) {\n this.updatePlayer(\"pronouns\", pronouns, true);\n }\n },\n toggleStatus() {\n if (this.grimoire.isPublic) {\n if (!this.player.isDead) {\n this.updatePlayer(\"isDead\", true);\n if (this.player.isMarked) {\n this.updatePlayer(\"isMarked\", false);\n }\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.isMarked) {\n this.updatePlayer(\"isMarked\", false);\n }\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, true);\n },\n removeReminder(reminder) {\n const reminders = [...this.player.reminders];\n reminders.splice(this.player.reminders.indexOf(reminder), 1);\n this.updatePlayer(\"reminders\", reminders, true);\n },\n updatePlayer(property, value, closeMenu = false) {\n if (\n this.session.isSpectator &&\n property !== \"reminders\" &&\n property !== \"pronouns\"\n )\n return;\n this.$store.commit(\"players/update\", {\n player: this.player,\n property,\n value\n });\n if (closeMenu) {\n this.isMenuOpen = false;\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-hand-paper * {\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-hand-paper {\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-hand-paper,\n#townsquare.vote .player.vote-lock.vote-yes .overlay svg.vote.fa-hand-paper,\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 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.has-vote {\n position: absolute;\n margin-top: -15%;\n right: 2px;\n}\n\n/****** Session seat glow *****/\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 5s 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 5s ease-in-out infinite;\n}\n\n/****** Marked icon ******/\n.player .marked {\n position: absolute;\n width: 100%;\n top: 0;\n filter: drop-shadow(0px 0px 6px black);\n pointer-events: none;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: opacity 250ms;\n opacity: 0;\n &:before {\n content: \" \";\n padding-top: 100%;\n display: block;\n }\n svg {\n height: 60%;\n width: 60%;\n position: absolute;\n stroke: white;\n stroke-width: 15px;\n path {\n fill: white;\n }\n }\n}\n.player.marked .marked {\n opacity: 0.5;\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 &.highlight {\n animation-iteration-count: 1;\n animation: redToWhite 1s normal forwards;\n }\n}\n\n// highlight animation\n@keyframes redToWhite {\n from {\n color: $demon;\n }\n to {\n color: white;\n }\n}\n\n.player.you .seat {\n color: $townsfolk;\n}\n\n/***** Player name *****/\n.player > .name {\n right: 10%;\n display: flex;\n justify-content: center;\n font-size: 120%;\n line-height: 120%;\n cursor: pointer;\n white-space: nowrap;\n width: 120%;\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 padding: 0 4px;\n\n svg {\n top: 3px;\n margin-right: 2px;\n }\n\n span {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n text-align: center;\n flex-grow: 1;\n }\n\n #townsquare:not(.spectator) &:hover,\n &.active {\n color: red;\n }\n\n &:hover .pronouns {\n opacity: 1;\n color: white;\n }\n\n .pronouns {\n display: flex;\n position: absolute;\n right: 110%;\n max-width: 250px;\n z-index: 25;\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 align-items: center;\n pointer-events: none;\n opacity: 0;\n transition: opacity 200ms ease-in-out;\n padding: 0 4px;\n bottom: -3px;\n\n &:before {\n content: \" \";\n border: 10px solid transparent;\n width: 0;\n height: 0;\n border-left-color: black;\n position: absolute;\n margin-left: 2px;\n left: 100%;\n }\n }\n}\n\n.player.dead > .name {\n opacity: 0.5;\n}\n\n/***** Player menu *****/\n.player > .menu {\n position: absolute;\n left: 110%;\n bottom: -5px;\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: 5px;\n margin-right: 2px;\n }\n\n li:hover {\n color: red;\n }\n\n li.disabled {\n cursor: not-allowed;\n opacity: 0.5;\n &:hover {\n color: white;\n }\n }\n\n svg {\n margin-right: 2px;\n }\n}\n\n/***** Ability text *****/\n#townsquare.public .circle .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-order {\n z-index: 3;\n}\n\n.player.dead .night-order em {\n color: #ddd;\n background: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, gray 100%);\n}\n\n/***** Reminder token *****/\n.circle .reminder {\n background: url(\"../assets/reminder.png\") center center;\n background-size: 100%;\n width: 50%;\n height: 0;\n padding-bottom: 50%;\n box-sizing: content-box;\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\n .text {\n line-height: 90%;\n color: black;\n font-size: 50%;\n font-weight: bold;\n text-align: center;\n margin-top: 50%;\n height: 100%;\n width: 100%;\n position: absolute;\n top: 15%;\n text-shadow: 0 1px 1px #f6dfbd, 0 -1px 1px #f6dfbd, 1px 0 1px #f6dfbd,\n -1px 0 1px #f6dfbd;\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 top: 5%;\n }\n\n &.add {\n opacity: 0;\n top: 30px;\n &:after {\n display: none;\n }\n .icon {\n top: 5%;\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 display: flex;\n align-items: center;\n align-content: center;\n justify-content: center;\n border-radius: 50%;\n top: 0;\n }\n }\n\n &:hover:before {\n opacity: 0;\n }\n &:hover:after {\n opacity: 1;\n }\n}\n\n.circle .reminderHoverTarget {\n opacity: 0;\n width: calc(50% + 8px);\n padding-top: calc(50% + 38px);\n margin-top: calc(-25% - 33px);\n margin-left: calc(-25% - 1px);\n border-radius: 0 0 999px 999px;\n pointer-events: auto;\n transform: none !important;\n z-index: -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=515f209e&\"\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.modals.reminder && _vm.availableReminders.length && _vm.players[_vm.playerIndex])?_c('Modal',{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(\" + (reminder.image && _vm.grimoire.isImageOptIn\n ? reminder.image\n : require('../../assets/icons/' +\n (reminder.imageAlt || 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\",class:{ maximized: _vm.isMaximized },attrs:{\"role\":\"dialog\",\"aria-labelledby\":\"modalTitle\",\"aria-describedby\":\"modalDescription\"},on:{\"click\":function($event){$event.stopPropagation();}}},[_c('div',{staticClass:\"top-right-buttons\"},[_c('font-awesome-icon',{staticClass:\"top-right-button\",attrs:{\"icon\":['fas', _vm.isMaximized ? 'window-minimize' : 'window-maximize']},on:{\"click\":function($event){_vm.isMaximized = !_vm.isMaximized}}}),_c('font-awesome-icon',{staticClass:\"top-right-button\",attrs:{\"icon\":\"times-circle\"},on:{\"click\":_vm.close}})],1),_c('div',{staticClass:\"slot\"},[_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 :class=\"{ maximized: isMaximized }\"\n role=\"dialog\"\n aria-labelledby=\"modalTitle\"\n aria-describedby=\"modalDescription\"\n @click.stop=\"\"\n >\n <div class=\"top-right-buttons\">\n <font-awesome-icon\n @click=\"isMaximized = !isMaximized\"\n class=\"top-right-button\"\n :icon=\"['fas', isMaximized ? 'window-minimize' : 'window-maximize']\"\n />\n <font-awesome-icon\n @click=\"close\"\n class=\"top-right-button\"\n icon=\"times-circle\"\n />\n </div>\n <div class=\"slot\">\n <slot></slot>\n </div>\n </div>\n </div>\n </transition>\n</template>\n\n<script>\nexport default {\n data: function() {\n return {\n isMaximized: false\n };\n },\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-height: 80%;\n max-width: 80%;\n\n .vote-history &,\n .night-reference &,\n .characters & {\n overflow-y: auto;\n }\n\n .roles &,\n .characters & {\n max-height: 100%;\n max-width: 60%;\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\n > .top-right-buttons {\n position: absolute;\n z-index: 100;\n top: 15px;\n right: 20px;\n > .top-right-button {\n cursor: pointer;\n width: 28px;\n &:hover {\n color: red;\n }\n }\n }\n\n > .slot {\n max-height: 100%;\n position: initial;\n }\n}\n\n.maximized {\n background: rgba(0, 0, 0, 0.95);\n padding: 0;\n border-radius: 0;\n height: 100%;\n width: 100%;\n max-width: 100%;\n max-height: 100%;\n display: flex;\n align-content: center;\n justify-content: center;\n .roles &,\n .characters & {\n max-width: 100%;\n padding: 10px;\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=fd92340c&\"\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-if=\"modals.reminder && availableReminders.length && 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(${\n reminder.image && grimoire.isImageOptIn\n ? reminder.image\n : require('../../assets/icons/' +\n (reminder.imageAlt || reminder.role) +\n '.png')\n })`\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\n/**\n * Helper function that maps a reminder name with a role-based object that provides necessary visual data.\n * @param role The role for which the reminder should be generated\n * @return {function(*): {image: string|string[]|string|*, role: *, name: *, imageAlt: string|*}}\n */\nconst mapReminder = ({ id, image, imageAlt }) => name => ({\n role: id,\n image,\n imageAlt,\n name\n});\n\nexport default {\n components: { Modal },\n props: [\"playerIndex\"],\n computed: {\n availableReminders() {\n let reminders = [];\n const { players, bluffs } = this.$store.state.players;\n this.$store.state.roles.forEach(role => {\n // add reminders from player roles\n if (players.some(p => p.role.id === role.id)) {\n reminders = [...reminders, ...role.reminders.map(mapReminder(role))];\n }\n // add reminders from bluff/other roles\n else if (bluffs.some(bluff => bluff.id === role.id)) {\n reminders = [...reminders, ...role.reminders.map(mapReminder(role))];\n }\n // add global reminders\n if (role.remindersGlobal && role.remindersGlobal.length) {\n reminders = [\n ...reminders,\n ...role.remindersGlobal.map(mapReminder(role))\n ];\n }\n });\n // add fabled reminders\n this.$store.state.players.fabled.forEach(role => {\n reminders = [...reminders, ...role.reminders.map(mapReminder(role))];\n });\n\n // add out of script traveler reminders\n this.$store.state.otherTravelers.forEach(role => {\n if (players.some(p => p.role.id === role.id)) {\n reminders = [...reminders, ...role.reminders.map(mapReminder(role))];\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\", \"grimoire\"]),\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 center;\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=334686bc&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=334686bc&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 \"334686bc\",\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.modals.role && _vm.availableRoles.length)?_c('Modal',{on:{\"close\":_vm.close}},[_c('h3',[_vm._v(\" Choose a new character for \"+_vm._s(_vm.playerIndex >= 0 && _vm.players.length ? _vm.players[_vm.playerIndex].name : \"bluffing\")+\" \")]),(_vm.tab === 'editionRoles' || !_vm.otherTravelers.size)?_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):_vm._e(),(_vm.tab === 'otherTravelers' && _vm.otherTravelers.size)?_c('ul',{staticClass:\"tokens\"},_vm._l((_vm.otherTravelers.values()),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):_vm._e(),(_vm.playerIndex >= 0 && _vm.otherTravelers.size && !_vm.session.isSpectator)?_c('div',{staticClass:\"button-group\"},[_c('span',{staticClass:\"button\",class:{ townsfolk: _vm.tab === 'editionRoles' },on:{\"click\":function($event){_vm.tab = 'editionRoles'}}},[_vm._v(\"Edition Roles\")]),_c('span',{staticClass:\"button\",class:{ townsfolk: _vm.tab === 'otherTravelers' },on:{\"click\":function($event){_vm.tab = 'otherTravelers'}}},[_vm._v(\"Other Travelers\")])]):_vm._e()]):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <Modal v-if=\"modals.role && availableRoles.length\" @close=\"close\">\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\" v-if=\"tab === 'editionRoles' || !otherTravelers.size\">\n <li\n v-for=\"role in availableRoles\"\n :class=\"[role.team]\"\n :key=\"role.id\"\n @click=\"setRole(role)\"\n >\n <Token :role=\"role\" />\n </li>\n </ul>\n <ul class=\"tokens\" v-if=\"tab === 'otherTravelers' && otherTravelers.size\">\n <li\n v-for=\"role in otherTravelers.values()\"\n :class=\"[role.team]\"\n :key=\"role.id\"\n @click=\"setRole(role)\"\n >\n <Token :role=\"role\" />\n </li>\n </ul>\n <div\n class=\"button-group\"\n v-if=\"playerIndex >= 0 && otherTravelers.size && !session.isSpectator\"\n >\n <span\n class=\"button\"\n :class=\"{ townsfolk: tab === 'editionRoles' }\"\n @click=\"tab = 'editionRoles'\"\n >Edition Roles</span\n >\n <span\n class=\"button\"\n :class=\"{ townsfolk: tab === 'otherTravelers' }\"\n @click=\"tab = 'otherTravelers'\"\n >Other Travelers</span\n >\n </div>\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 ...mapState([\"otherTravelers\"])\n },\n data() {\n return {\n tab: \"editionRoles\"\n };\n },\n methods: {\n setRole(role) {\n if (this.playerIndex < 0) {\n // assign to bluff slot (index < 0)\n this.$store.commit(\"players/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.tab = \"editionRoles\";\n this.$store.commit(\"toggleModal\", \"role\");\n },\n close() {\n this.tab = \"editionRoles\";\n this.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=2e3008b9&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=2e3008b9&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 \"2e3008b9\",\n null\n \n)\n\nexport default component.exports","<template>\n <div\n id=\"townsquare\"\n class=\"square\"\n :class=\"{\n public: grimoire.isPublic,\n spectator: session.isSpectator,\n vote: session.nomination\n }\"\n >\n <ul class=\"circle\" :class=\"['size-' + players.length]\">\n <Player\n v-for=\"(player, index) in players\"\n :key=\"index\"\n :player=\"player\"\n @trigger=\"handleTrigger(index, $event)\"\n :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\n class=\"bluffs\"\n v-if=\"players.length\"\n ref=\"bluffs\"\n :class=\"{ closed: !isBluffsOpen }\"\n >\n <h3>\n <span v-if=\"session.isSpectator\">Other characters</span>\n <span v-else>Demon bluffs</span>\n <font-awesome-icon icon=\"times-circle\" @click.stop=\"toggleBluffs\" />\n <font-awesome-icon icon=\"plus-circle\" @click.stop=\"toggleBluffs\" />\n </h3>\n <ul>\n <li\n v-for=\"index in bluffSize\"\n :key=\"index\"\n @click=\"openRoleModal(index * -1)\"\n >\n <Token :role=\"bluffs[index - 1]\"></Token>\n </li>\n </ul>\n </div>\n\n <div class=\"fabled\" :class=\"{ closed: !isFabledOpen }\" v-if=\"fabled.length\">\n <h3>\n <span>Fabled</span>\n <font-awesome-icon icon=\"times-circle\" @click.stop=\"toggleFabled\" />\n <font-awesome-icon icon=\"plus-circle\" @click.stop=\"toggleFabled\" />\n </h3>\n <ul>\n <li\n v-for=\"(role, index) in fabled\"\n :key=\"index\"\n @click=\"removeFabled(index)\"\n >\n <div\n class=\"night-order first\"\n v-if=\"nightOrder.get(role).first && grimoire.isNightOrder\"\n >\n <em>{{ nightOrder.get(role).first }}.</em>\n <span v-if=\"role.firstNightReminder\">{{\n role.firstNightReminder\n }}</span>\n </div>\n <div\n class=\"night-order other\"\n v-if=\"nightOrder.get(role).other && grimoire.isNightOrder\"\n >\n <em>{{ nightOrder.get(role).other }}.</em>\n <span v-if=\"role.otherNightReminder\">{{\n role.otherNightReminder\n }}</span>\n </div>\n <Token :role=\"role\"></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 { mapGetters, 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 ...mapGetters({ nightOrder: \"players/nightOrder\" }),\n ...mapState([\"grimoire\", \"roles\", \"session\"]),\n ...mapState(\"players\", [\"players\", \"bluffs\", \"fabled\"])\n },\n data() {\n return {\n selectedPlayer: 0,\n bluffSize: 3,\n swap: -1,\n move: -1,\n nominate: -1,\n isBluffsOpen: true,\n isFabledOpen: true\n };\n },\n methods: {\n toggleBluffs() {\n this.isBluffsOpen = !this.isBluffsOpen;\n },\n toggleFabled() {\n this.isFabledOpen = !this.isFabledOpen;\n },\n removeFabled(index) {\n if (this.session.isSpectator) return;\n this.$store.commit(\"players/setFabled\", { index });\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 || this.session.lockedVote) return;\n if (\n confirm(\n `Do you really want to remove ${this.players[playerIndex].name}?`\n )\n ) {\n const { nomination } = this.session;\n if (nomination) {\n if (nomination.includes(playerIndex)) {\n // abort vote if removed player is either nominator or nominee\n this.$store.commit(\"session/nomination\");\n } else if (\n nomination[0] > playerIndex ||\n nomination[1] > playerIndex\n ) {\n // update nomination array if removed player has lower index\n this.$store.commit(\"session/setNomination\", [\n nomination[0] > playerIndex ? nomination[0] - 1 : nomination[0],\n nomination[1] > playerIndex ? nomination[1] - 1 : nomination[1]\n ]);\n }\n }\n this.$store.commit(\"players/remove\", playerIndex);\n }\n },\n swapPlayer(from, to) {\n if (this.session.isSpectator || this.session.lockedVote) return;\n if (to === undefined) {\n this.cancel();\n this.swap = from;\n } else {\n if (this.session.nomination) {\n // update nomination if one of the involved players is swapped\n const swapTo = this.players.indexOf(to);\n const updatedNomination = this.session.nomination.map(nom => {\n if (nom === this.swap) return swapTo;\n if (nom === swapTo) return this.swap;\n return nom;\n });\n if (\n this.session.nomination[0] !== updatedNomination[0] ||\n this.session.nomination[1] !== updatedNomination[1]\n ) {\n this.$store.commit(\"session/setNomination\", updatedNomination);\n }\n }\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 (this.session.isSpectator || this.session.lockedVote) return;\n if (to === undefined) {\n this.cancel();\n this.move = from;\n } else {\n if (this.session.nomination) {\n // update nomination if it is affected by the move\n const moveTo = this.players.indexOf(to);\n const updatedNomination = this.session.nomination.map(nom => {\n if (nom === this.move) return moveTo;\n if (nom > this.move && nom <= moveTo) return nom - 1;\n if (nom < this.move && nom >= moveTo) return nom + 1;\n return nom;\n });\n if (\n this.session.nomination[0] !== updatedNomination[0] ||\n this.session.nomination[1] !== updatedNomination[1]\n ) {\n this.$store.commit(\"session/setNomination\", updatedNomination);\n }\n }\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 (this.session.isSpectator || this.session.lockedVote) return;\n if (to === undefined) {\n this.cancel();\n if (from !== this.nominate) {\n this.nominate = from;\n }\n } else {\n const nomination = [this.nominate, this.players.indexOf(to)];\n this.$store.commit(\"session/nomination\", { nomination });\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@import \"../vars.scss\";\n\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 // first half of players\n z-index: $item-count - $i + 1;\n // open menu on the left\n .player > .menu {\n left: auto;\n right: 110%;\n margin-right: 15px;\n &:before {\n border-left-color: black;\n border-right-color: transparent;\n right: auto;\n left: 100%;\n }\n }\n .fold-enter-active,\n .fold-leave-active {\n transform-origin: right center;\n }\n .fold-enter,\n .fold-leave-to {\n transform: perspective(200px) rotateY(-90deg);\n }\n // show ability tooltip on the left\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 .pronouns {\n left: 110%;\n right: auto;\n &:before {\n border-left-color: transparent;\n border-right-color: black;\n left: auto;\n right: 100%;\n }\n }\n } @else {\n // second half of players\n z-index: $i - 1;\n }\n\n > * {\n transform: rotate($rot * -1deg);\n }\n\n // animation cascade\n .life,\n .token,\n .shroud,\n .night-order,\n .seat {\n animation-delay: ($i - 1) * 50ms;\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 / Fabled *******/\n#townsquare > .bluffs,\n#townsquare > .fabled {\n position: absolute;\n &.bluffs {\n bottom: 10px;\n }\n &.fabled {\n top: 10px;\n }\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 z-index: 50;\n\n > svg {\n position: absolute;\n top: 10px;\n right: 10px;\n cursor: pointer;\n &:hover {\n color: red;\n }\n }\n h3 {\n margin: 5px 1vh 0;\n display: flex;\n align-items: center;\n align-content: center;\n justify-content: center;\n span {\n flex-grow: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n svg {\n cursor: pointer;\n flex-grow: 0;\n &.fa-times-circle {\n margin-left: 1vh;\n }\n &.fa-plus-circle {\n margin-left: 1vh;\n display: none;\n }\n &:hover path {\n fill: url(#demon);\n stroke-width: 30px;\n stroke: white;\n }\n }\n }\n ul {\n display: flex;\n align-items: center;\n justify-content: center;\n li {\n width: 14vh;\n height: 14vh;\n margin: 0 0.5%;\n display: inline-block;\n transition: all 250ms;\n }\n }\n &.closed {\n svg.fa-times-circle {\n display: none;\n }\n svg.fa-plus-circle {\n display: block;\n }\n ul li {\n width: 0;\n height: 0;\n .night-order {\n opacity: 0;\n }\n .token {\n border-width: 0;\n }\n }\n }\n}\n\n#townsquare.public > .bluffs {\n opacity: 0;\n transform: scale(0.1);\n}\n\n.fabled ul li .token:before {\n content: \" \";\n opacity: 0;\n transition: opacity 250ms;\n background-image: url(\"../assets/icons/x.png\");\n z-index: 2;\n}\n\n/**** Night reminders ****/\n.night-order {\n position: absolute;\n width: 100%;\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 z-index: 3;\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 // adjustment for fabled\n .fabled &.first {\n span {\n right: auto;\n left: 40px;\n &:after {\n left: auto;\n right: 100%;\n margin-left: 0;\n margin-right: 3px;\n border-left-color: transparent;\n border-right-color: $townsfolk;\n }\n }\n }\n}\n\n#townsquare:not(.spectator) .fabled ul li:hover .token:before {\n opacity: 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!./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=9b78ead0&\"\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.id],style:({\n backgroundImage: (\"url(\" + (_vm.edition.logo && _vm.grimoire.isImageOptIn\n ? _vm.edition.logo\n : require('../assets/editions/' + _vm.edition.id + '.png')) + \")\")\n })}),(_vm.players.length - _vm.teams.traveler < 5)?_c('li',[_vm._v(\" Please add more players! \")]):_vm._e(),_c('li',[(!_vm.edition.isOfficial)?_c('span',{staticClass:\"meta\"},[_vm._v(\" \"+_vm._s(_vm.edition.name)+\" \"+_vm._s(_vm.edition.author ? \"by \" + _vm.edition.author : \"\")+\" \")]):_vm._e(),_c('span',[_vm._v(\" \"+_vm._s(_vm.players.length)+\" \"),_c('font-awesome-icon',{staticClass:\"players\",attrs:{\"icon\":\"users\"}})],1),_c('span',[_vm._v(\" \"+_vm._s(_vm.teams.alive)+\" \"),_c('font-awesome-icon',{staticClass:\"alive\",attrs:{\"icon\":\"heartbeat\"}})],1),_c('span',[_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',[_c('span',[_vm._v(\" \"+_vm._s(_vm.teams.townsfolk)+\" \"),_c('font-awesome-icon',{staticClass:\"townsfolk\",attrs:{\"icon\":\"user-friends\"}})],1),_c('span',[_vm._v(\" \"+_vm._s(_vm.teams.outsider)+\" \"),_c('font-awesome-icon',{staticClass:\"outsider\",attrs:{\"icon\":_vm.teams.outsider > 1 ? 'user-friends' : 'user'}})],1),_c('span',[_vm._v(\" \"+_vm._s(_vm.teams.minion)+\" \"),_c('font-awesome-icon',{staticClass:\"minion\",attrs:{\"icon\":_vm.teams.minion > 1 ? 'user-friends' : 'user'}})],1),_c('span',[_vm._v(\" \"+_vm._s(_vm.teams.demon)+\" \"),_c('font-awesome-icon',{staticClass:\"demon\",attrs:{\"icon\":_vm.teams.demon > 1 ? 'user-friends' : 'user'}})],1),(_vm.teams.traveler)?_c('span',[_vm._v(\" \"+_vm._s(_vm.teams.traveler)+\" \"),_c('font-awesome-icon',{staticClass:\"traveler\",attrs:{\"icon\":_vm.teams.traveler > 1 ? 'user-friends' : 'user'}})],1):_vm._e(),(_vm.grimoire.isNight)?_c('span',[_vm._v(\" Night phase \"),_c('font-awesome-icon',{attrs:{\"icon\":['fas', 'cloud-moon']}})],1):_vm._e()]):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <ul class=\"info\">\n <li\n class=\"edition\"\n :class=\"['edition-' + edition.id]\"\n :style=\"{\n backgroundImage: `url(${\n edition.logo && grimoire.isImageOptIn\n ? edition.logo\n : require('../assets/editions/' + edition.id + '.png')\n })`\n }\"\n ></li>\n <li v-if=\"players.length - teams.traveler < 5\">\n Please add more players!\n </li>\n <li>\n <span class=\"meta\" v-if=\"!edition.isOfficial\">\n {{ edition.name }}\n {{ edition.author ? \"by \" + edition.author : \"\" }}\n </span>\n <span>\n {{ players.length }} <font-awesome-icon class=\"players\" icon=\"users\" />\n </span>\n <span>\n {{ teams.alive }}\n <font-awesome-icon class=\"alive\" icon=\"heartbeat\" />\n </span>\n <span>\n {{ teams.votes }} <font-awesome-icon class=\"votes\" icon=\"vote-yea\" />\n </span>\n </li>\n <li v-if=\"players.length - teams.traveler >= 5\">\n <span>\n {{ teams.townsfolk }}\n <font-awesome-icon class=\"townsfolk\" icon=\"user-friends\" />\n </span>\n <span>\n {{ teams.outsider }}\n <font-awesome-icon\n class=\"outsider\"\n :icon=\"teams.outsider > 1 ? 'user-friends' : 'user'\"\n />\n </span>\n <span>\n {{ teams.minion }}\n <font-awesome-icon\n class=\"minion\"\n :icon=\"teams.minion > 1 ? 'user-friends' : 'user'\"\n />\n </span>\n <span>\n {{ teams.demon }}\n <font-awesome-icon\n class=\"demon\"\n :icon=\"teams.demon > 1 ? 'user-friends' : 'user'\"\n />\n </span>\n <span v-if=\"teams.traveler\">\n {{ teams.traveler }}\n <font-awesome-icon\n class=\"traveler\"\n :icon=\"teams.traveler > 1 ? 'user-friends' : 'user'\"\n />\n </span>\n <span v-if=\"grimoire.isNight\">\n Night phase\n <font-awesome-icon :icon=\"['fas', 'cloud-moon']\" />\n </span>\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\", \"grimoire\"]),\n ...mapState(\"players\", [\"players\"])\n }\n};\n</script>\n\n<style lang=\"scss\" scoped>\n@import \"../vars.scss\";\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 font-weight: bold;\n width: 100%;\n filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.7));\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n text-shadow: 0 2px 1px black, 0 -2px 1px black, 2px 0 1px black,\n -2px 0 1px black;\n\n span {\n white-space: nowrap;\n }\n\n .meta {\n text-align: center;\n flex-basis: 100%;\n font-family: PiratesBay, sans-serif;\n font-weight: normal;\n }\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=e858a1da&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=e858a1da&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 \"e858a1da\",\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('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.session.voteHistory.length && _vm.session.sessionId),expression:\"session.voteHistory.length && session.sessionId\"}],staticClass:\"nomlog-summary\",attrs:{\"title\":((_vm.session.voteHistory.length) + \" recent \" + (_vm.session.voteHistory.length == 1 ? 'nomination' : 'nominations'))},on:{\"click\":function($event){return _vm.toggleModal('voteHistory')}}},[_c('font-awesome-icon',{attrs:{\"icon\":\"book-dead\"}}),_vm._v(\" \"+_vm._s(_vm.session.voteHistory.length)+\" \")],1),(_vm.session.sessionId)?_c('span',{staticClass:\"session\",class:{\n spectator: _vm.session.isSpectator,\n reconnecting: _vm.session.isReconnecting\n },attrs:{\"title\":((_vm.session.playerCount) + \" other players in this session\" + (_vm.session.ping ? ' (' + _vm.session.ping + 'ms latency)' : ''))},on:{\"click\":_vm.leaveSession}},[_c('font-awesome-icon',{attrs:{\"icon\":\"broadcast-tower\"}}),_vm._v(\" \"+_vm._s(_vm.session.playerCount)+\" \")],1):_vm._e(),_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.session.isSpectator)?_c('li',{on:{\"click\":_vm.toggleNight}},[(!_vm.grimoire.isNight)?[_vm._v(\"Switch to Night\")]:_vm._e(),(_vm.grimoire.isNight)?[_vm._v(\"Switch to Day\")]:_vm._e(),_c('em',[_vm._v(\"[S]\")])],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.edition.isOfficial)?_c('li',{on:{\"click\":_vm.imageOptIn}},[_c('small',[_vm._v(\"Show Custom Images\")]),_c('em',[_c('font-awesome-icon',{attrs:{\"icon\":[\n 'fas',\n _vm.grimoire.isImageOptIn ? 'check-square' : 'square'\n ]}})],1)]):_vm._e(),_c('li',{on:{\"click\":_vm.toggleStatic}},[_vm._v(\" Disable Animations \"),_c('em',[_c('font-awesome-icon',{attrs:{\"icon\":['fas', _vm.grimoire.isStatic ? 'check-square' : 'square']}})],1)]),_c('li',{on:{\"click\":_vm.toggleMuted}},[_vm._v(\" Mute Sounds \"),_c('em',[_c('font-awesome-icon',{attrs:{\"icon\":['fas', _vm.grimoire.isMuted ? 'volume-mute' : 'volume-up']}})],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]\")])]),_c('li',{on:{\"click\":_vm.joinSession}},[_vm._v(\"Join (Player)\"),_c('em',[_vm._v(\"[J]\")])])]:[(_vm.session.ping)?_c('li',[_vm._v(\" Delay to \"+_vm._s(_vm.session.isSpectator ? \"host\" : \"players\")+\" \"),_c('em',[_vm._v(_vm._s(_vm.session.ping)+\"ms\")])]):_vm._e(),_c('li',{on:{\"click\":_vm.copySessionUrl}},[_vm._v(\" Copy player link \"),_c('em',[_c('font-awesome-icon',{attrs:{\"icon\":\"copy\"}})],1)]),(!_vm.session.isSpectator)?_c('li',{on:{\"click\":_vm.distributeRoles}},[_vm._v(\" Send Characters \"),_c('em',[_c('font-awesome-icon',{attrs:{\"icon\":\"theater-masks\"}})],1)]):_vm._e(),(_vm.session.voteHistory.length || !_vm.session.isSpectator)?_c('li',{on:{\"click\":function($event){return _vm.toggleModal('voteHistory')}}},[_vm._v(\" Vote history\"),_c('em',[_vm._v(\"[V]\")])]):_vm._e(),_c('li',{on:{\"click\":_vm.leaveSession}},[_vm._v(\" Leave Session \"),_c('em',[_vm._v(_vm._s(_vm.session.sessionId))])])]]:_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.session.isSpectator)?_c('li',{on:{\"click\":function($event){return _vm.toggleModal('fabled')}}},[_vm._v(\" Add Fabled \"),_c('em',[_c('font-awesome-icon',{attrs:{\"icon\":\"dragon\"}})],1)]):_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',{on:{\"click\":function($event){return _vm.toggleModal('nightOrder')}}},[_vm._v(\" Night Order Sheet \"),_c('em',[_vm._v(\"[N]\")])]),_c('li',{on:{\"click\":function($event){return _vm.toggleModal('gameState')}}},[_vm._v(\" Game State JSON \"),_c('em',[_c('font-awesome-icon',{attrs:{\"icon\":\"file-code\"}})],1)]),_c('li',[_c('a',{attrs:{\"href\":\"https://discord.gg/Gd7ybwWbFk\",\"target\":\"_blank\"}},[_vm._v(\" Join Discord \")]),_c('em',[_c('a',{attrs:{\"href\":\"https://discord.gg/Gd7ybwWbFk\",\"target\":\"_blank\"}},[_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('a',{attrs:{\"href\":\"https://github.com/bra1n/townsquare\",\"target\":\"_blank\"}},[_c('font-awesome-icon',{attrs:{\"icon\":['fab', 'github']}})],1)])])]:_vm._e()],2)],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <div id=\"controls\">\n <span\n class=\"nomlog-summary\"\n v-show=\"session.voteHistory.length && session.sessionId\"\n @click=\"toggleModal('voteHistory')\"\n :title=\"\n `${session.voteHistory.length} recent ${\n session.voteHistory.length == 1 ? 'nomination' : 'nominations'\n }`\n \"\n >\n <font-awesome-icon icon=\"book-dead\" />\n {{ session.voteHistory.length }}\n </span>\n <span\n class=\"session\"\n :class=\"{\n spectator: session.isSpectator,\n reconnecting: session.isReconnecting\n }\"\n v-if=\"session.sessionId\"\n @click=\"leaveSession\"\n :title=\"\n `${session.playerCount} other players in this session${\n session.ping ? ' (' + session.ping + 'ms latency)' : ''\n }`\n \"\n >\n <font-awesome-icon icon=\"broadcast-tower\" />\n {{ session.playerCount }}\n </span>\n <div class=\"menu\" :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=\"toggleNight\" v-if=\"!session.isSpectator\">\n <template v-if=\"!grimoire.isNight\">Switch to Night</template>\n <template v-if=\"grimoire.isNight\">Switch to Day</template>\n <em>[S]</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 />\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 <li v-if=\"!edition.isOfficial\" @click=\"imageOptIn\">\n <small>Show Custom Images</small>\n <em\n ><font-awesome-icon\n :icon=\"[\n 'fas',\n grimoire.isImageOptIn ? 'check-square' : 'square'\n ]\"\n /></em>\n </li>\n <li @click=\"toggleStatic\">\n Disable Animations\n <em\n ><font-awesome-icon\n :icon=\"['fas', grimoire.isStatic ? 'check-square' : 'square']\"\n /></em>\n </li>\n <li @click=\"toggleMuted\">\n Mute Sounds\n <em\n ><font-awesome-icon\n :icon=\"['fas', grimoire.isMuted ? 'volume-mute' : 'volume-up']\"\n /></em>\n </li>\n </template>\n\n <template v-if=\"tab === 'session'\">\n <!-- 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 <template v-if=\"!session.sessionId\">\n <li @click=\"hostSession\">Host (Storyteller)<em>[H]</em></li>\n <li @click=\"joinSession\">Join (Player)<em>[J]</em></li>\n </template>\n <template v-else>\n <li v-if=\"session.ping\">\n Delay to {{ session.isSpectator ? \"host\" : \"players\" }}\n <em>{{ session.ping }}ms</em>\n </li>\n <li @click=\"copySessionUrl\">\n Copy player link\n <em><font-awesome-icon icon=\"copy\"/></em>\n </li>\n <li v-if=\"!session.isSpectator\" @click=\"distributeRoles\">\n Send Characters\n <em><font-awesome-icon icon=\"theater-masks\"/></em>\n </li>\n <li\n v-if=\"session.voteHistory.length || !session.isSpectator\"\n @click=\"toggleModal('voteHistory')\"\n >\n Vote history<em>[V]</em>\n </li>\n <li @click=\"leaveSession\">\n Leave Session\n <em>{{ session.sessionId }}</em>\n </li>\n </template>\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 v-if=\"!session.isSpectator\" @click=\"toggleModal('fabled')\">\n Add Fabled\n <em><font-awesome-icon icon=\"dragon\"/></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 @click=\"toggleModal('nightOrder')\">\n Night Order Sheet\n <em>[N]</em>\n </li>\n <li @click=\"toggleModal('gameState')\">\n Game State JSON\n <em><font-awesome-icon icon=\"file-code\"/></em>\n </li>\n <li>\n <a href=\"https://discord.gg/Gd7ybwWbFk\" target=\"_blank\">\n Join Discord\n </a>\n <em>\n <a href=\"https://discord.gg/Gd7ybwWbFk\" target=\"_blank\">\n <font-awesome-icon :icon=\"['fab', 'discord']\" />\n </a>\n </em>\n </li>\n <li>\n <a href=\"https://github.com/bra1n/townsquare\" target=\"_blank\">\n Source code\n </a>\n <em>\n <a href=\"https://github.com/bra1n/townsquare\" target=\"_blank\">\n <font-awesome-icon :icon=\"['fab', 'github']\" />\n </a>\n </em>\n </li>\n </template>\n </ul>\n </div>\n </div>\n</template>\n\n<script>\nimport { mapMutations, mapState } from \"vuex\";\n\nexport default {\n computed: {\n ...mapState([\"grimoire\", \"session\", \"edition\"]),\n ...mapState(\"players\", [\"players\"])\n },\n data() {\n return {\n tab: \"grimoire\"\n };\n },\n methods: {\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 if (this.session.sessionId) return;\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/clearVoteHistory\");\n this.$store.commit(\"session/setSpectator\", false);\n this.$store.commit(\"session/setSessionId\", sessionId);\n this.copySessionUrl();\n }\n },\n copySessionUrl() {\n const url = window.location.href.split(\"#\")[0];\n const link = url + \"#\" + this.session.sessionId;\n navigator.clipboard.writeText(link);\n },\n distributeRoles() {\n if (this.session.isSpectator) return;\n const popup =\n \"Do you want to distribute assigned characters to all SEATED players?\";\n if (confirm(popup)) {\n this.$store.commit(\"session/distributeRoles\", true);\n setTimeout(\n (() => {\n this.$store.commit(\"session/distributeRoles\", false);\n }).bind(this),\n 2000\n );\n }\n },\n imageOptIn() {\n const popup =\n \"Are you sure you want to allow custom images? A malicious script file author might track your IP address this way.\";\n if (this.grimoire.isImageOptIn || confirm(popup)) {\n this.toggleImageOptIn();\n }\n },\n joinSession() {\n if (this.session.sessionId) return this.leaveSession();\n let sessionId = prompt(\n \"Enter the channel number / name of the session you want to join\"\n );\n if (sessionId.match(/^https?:\\/\\//i)) {\n sessionId = sessionId.split(\"#\").pop();\n }\n if (sessionId) {\n this.$store.commit(\"session/clearVoteHistory\");\n this.$store.commit(\"session/setSpectator\", true);\n this.$store.commit(\"toggleGrimoire\", false);\n this.$store.commit(\"session/setSessionId\", sessionId);\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 // abort vote if in progress\n if (this.session.nomination) {\n this.$store.commit(\"session/nomination\");\n }\n this.$store.commit(\"players/clear\");\n }\n },\n clearRoles() {\n if (confirm(\"Are you sure you want to remove all player roles?\")) {\n this.$store.dispatch(\"players/clearRoles\");\n }\n },\n toggleNight() {\n this.$store.commit(\"toggleNight\");\n if (this.grimoire.isNight) {\n this.$store.commit(\"session/setMarkedPlayer\", -1);\n }\n },\n ...mapMutations([\n \"toggleGrimoire\",\n \"toggleMenu\",\n \"toggleImageOptIn\",\n \"toggleMuted\",\n \"toggleNightOrder\",\n \"toggleStatic\",\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: 75;\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.nomlog-summary {\n color: $townsfolk;\n }\n\n span.session {\n color: $demon;\n &.spectator {\n color: $townsfolk;\n }\n &.reconnecting {\n animation: blink 1s infinite;\n }\n }\n}\n\n@keyframes blink {\n 50% {\n opacity: 0.5;\n color: gray;\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=84ed831a&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=84ed831a&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 \"84ed831a\",\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.modals.roles && _vm.nonTravelers >= 5)?_c('Modal',{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.reduce(function (a, ref) {\n var selected = ref.selected;\n\n return a + selected;\n}, 0))+\" / \"+_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 ? 0 : 1}}},[_c('Token',{attrs:{\"role\":role}}),(role.setup)?_c('font-awesome-icon',{attrs:{\"icon\":\"exclamation-triangle\"}}):_vm._e(),(_vm.allowMultiple)?_c('div',{staticClass:\"buttons\"},[_c('font-awesome-icon',{attrs:{\"icon\":\"minus-circle\"},on:{\"click\":function($event){$event.stopPropagation();role.selected--}}}),_c('span',[_vm._v(_vm._s(role.selected > 1 ? \"x\" + role.selected : \"\"))]),_c('font-awesome-icon',{attrs:{\"icon\":\"plus-circle\"},on:{\"click\":function($event){$event.stopPropagation();role.selected++}}})],1):_vm._e()],1)})],2)}),(_vm.hasSelectedSetupRoles)?_c('div',{staticClass:\"warning\"},[_c('font-awesome-icon',{attrs:{\"icon\":\"exclamation-triangle\"}}),_c('span',[_vm._v(\" Warning: there are characters selected that modify the game setup! The randomizer does not account for these characters. \")])],1):_vm._e(),_c('label',{staticClass:\"multiple\",class:{ checked: _vm.allowMultiple }},[_c('font-awesome-icon',{attrs:{\"icon\":_vm.allowMultiple ? 'check-square' : 'square'}}),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.allowMultiple),expression:\"allowMultiple\"}],attrs:{\"type\":\"checkbox\",\"name\":\"allow-multiple\"},domProps:{\"checked\":Array.isArray(_vm.allowMultiple)?_vm._i(_vm.allowMultiple,null)>-1:(_vm.allowMultiple)},on:{\"change\":function($event){var $$a=_vm.allowMultiple,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.allowMultiple=$$a.concat([$$v]))}else{$$i>-1&&(_vm.allowMultiple=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.allowMultiple=$$c}}}}),_vm._v(\" Allow duplicate characters \")],1),_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-if=\"modals.roles && nonTravelers >= 5\"\n @close=\"toggleModal('roles')\"\n >\n <h3>Select the characters for {{ nonTravelers }} players:</h3>\n <ul class=\"tokens\" v-for=\"(teamRoles, team) in roleSelection\" :key=\"team\">\n <li class=\"count\" :class=\"[team]\">\n {{ teamRoles.reduce((a, { selected }) => a + selected, 0) }} /\n {{ game[nonTravelers - 5][team] }}\n </li>\n <li\n v-for=\"role in teamRoles\"\n :class=\"[role.team, role.selected ? 'selected' : '']\"\n :key=\"role.id\"\n @click=\"role.selected = role.selected ? 0 : 1\"\n >\n <Token :role=\"role\" />\n <font-awesome-icon icon=\"exclamation-triangle\" v-if=\"role.setup\" />\n <div class=\"buttons\" v-if=\"allowMultiple\">\n <font-awesome-icon\n icon=\"minus-circle\"\n @click.stop=\"role.selected--\"\n />\n <span>{{ role.selected > 1 ? \"x\" + role.selected : \"\" }}</span>\n <font-awesome-icon icon=\"plus-circle\" @click.stop=\"role.selected++\" />\n </div>\n </li>\n </ul>\n <div class=\"warning\" v-if=\"hasSelectedSetupRoles\">\n <font-awesome-icon icon=\"exclamation-triangle\" />\n <span>\n Warning: there are characters selected that modify the game setup! The\n randomizer does not account for these characters.\n </span>\n </div>\n <label class=\"multiple\" :class=\"{ checked: allowMultiple }\">\n <font-awesome-icon :icon=\"allowMultiple ? 'check-square' : 'square'\" />\n <input type=\"checkbox\" name=\"allow-multiple\" v-model=\"allowMultiple\" />\n Allow duplicate characters\n </label>\n <div class=\"button-group\">\n <div\n class=\"button\"\n @click=\"assignRoles\"\n :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 allowMultiple: false\n };\n },\n computed: {\n selectedRoles: function() {\n return Object.values(this.roleSelection)\n .map(roles => roles.reduce((a, { selected }) => a + selected, 0))\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\", 0);\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 if (this.roleSelection[team]) {\n const available = this.roleSelection[team].filter(\n role => !role.selected\n );\n if (available.length) {\n randomElement(available).selected = 1;\n }\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 =>\n roles\n // duplicate roles selected more than once and filter unselected\n .reduce((a, r) => [...a, ...Array(r.selected).fill(r)], [])\n )\n // flatten into a single array\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: 5vw;\n margin: 5px;\n opacity: 0.5;\n transition: all 250ms;\n &.selected {\n opacity: 1;\n .buttons {\n display: flex;\n }\n .fa-exclamation-triangle {\n display: block;\n }\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 .fa-exclamation-triangle {\n position: absolute;\n color: red;\n filter: drop-shadow(0 0 3px black) drop-shadow(0 0 3px black);\n top: 5px;\n right: -5px;\n font-size: 150%;\n display: none;\n }\n .buttons {\n display: none;\n position: absolute;\n top: 95%;\n text-align: center;\n width: 100%;\n z-index: 30;\n font-weight: bold;\n filter: drop-shadow(0 0 5px rgba(0, 0, 0, 1));\n span {\n flex-grow: 1;\n }\n svg {\n opacity: 0.25;\n cursor: pointer;\n &:hover {\n opacity: 1;\n color: red;\n }\n }\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 {\n .multiple {\n display: block;\n text-align: center;\n cursor: pointer;\n &.checked,\n &:hover {\n color: red;\n }\n &.checked {\n margin-top: 10px;\n }\n svg {\n margin-right: 5px;\n }\n input {\n display: none;\n }\n }\n\n .warning {\n color: red;\n position: absolute;\n bottom: 20px;\n right: 20px;\n z-index: 10;\n svg {\n font-size: 150%;\n vertical-align: middle;\n }\n span {\n display: none;\n text-align: center;\n position: absolute;\n right: -20px;\n bottom: 30px;\n width: 420px;\n background: rgba(0, 0, 0, 0.75);\n padding: 5px;\n border-radius: 10px;\n border: 2px solid black;\n }\n &:hover span {\n display: 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!./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=365502ca&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=365502ca&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 \"365502ca\",\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.modals.edition)?_c('Modal',{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],style:({\n backgroundImage: (\"url(\" + (require('../../assets/editions/' +\n edition.id +\n '.png')) + \")\")\n }),on:{\"click\":function($event){return _vm.setEdition(edition)}}},[_vm._v(\" \"+_vm._s(edition.name)+\" \")])}),_c('li',{staticClass:\"edition edition-custom\",style:({\n backgroundImage: (\"url(\" + (require('../../assets/editions/custom.png')) + \")\")\n }),on:{\"click\":function($event){_vm.isCustom = true}}},[_vm._v(\" Custom Script / Characters \")])],2)]):_c('div',{staticClass:\"custom\"},[_c('h3',[_vm._v(\"Load custom script / characters\")]),_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://script.bloodontheclocktower.com/\",\"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('br'),_vm._v(\" To play with custom characters, please read \"),_c('a',{attrs:{\"href\":\"https://github.com/bra1n/townsquare#custom-characters\",\"target\":\"_blank\"}},[_vm._v(\"the documentation\")]),_vm._v(\" on how to write a custom character definition file. \"),_c('b',[_vm._v(\"Only load custom JSON files from sources that you trust!\")]),_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\":_vm.readFromClipboard}},[_c('font-awesome-icon',{attrs:{\"icon\":\"clipboard\"}}),_vm._v(\" Use JSON from Clipboard \")],1),_c('div',{staticClass:\"button\",on:{\"click\":function($event){_vm.isCustom = false}}},[_c('font-awesome-icon',{attrs:{\"icon\":\"undo\"}}),_vm._v(\" Back \")],1)])])]):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <Modal class=\"editions\" v-if=\"modals.edition\" @close=\"toggleModal('edition')\">\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 :class=\"['edition-' + edition.id]\"\n :style=\"{\n backgroundImage: `url(${require('../../assets/editions/' +\n edition.id +\n '.png')})`\n }\"\n :key=\"edition.id\"\n @click=\"setEdition(edition)\"\n >\n {{ edition.name }}\n </li>\n <li\n class=\"edition edition-custom\"\n @click=\"isCustom = true\"\n :style=\"{\n backgroundImage: `url(${require('../../assets/editions/custom.png')})`\n }\"\n >\n Custom Script / Characters\n </li>\n </ul>\n </div>\n <div class=\"custom\" v-else>\n <h3>Load custom script / characters</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://script.bloodontheclocktower.com/\" 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 <br />\n To play with custom characters, please read\n <a\n href=\"https://github.com/bra1n/townsquare#custom-characters\"\n target=\"_blank\"\n >the documentation</a\n >\n on how to write a custom character definition file.\n <b>Only load custom JSON files from sources that you trust!</b>\n <h3>Some popular custom scripts:</h3>\n <ul class=\"scripts\">\n <li\n v-for=\"(script, index) in scripts\"\n :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=\"readFromClipboard\">\n <font-awesome-icon icon=\"clipboard\" /> Use JSON from Clipboard\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 \"Deadly Penance Day\",\n \"https://gist.githubusercontent.com/bra1n/0337cc44c6fd2c44f7589256ed5486d2/raw/16be38fa3c01aaf49827303ac80577bdb52c0b25/penanceday.json\"\n ],\n [\n \"Catfishing 11.1\",\n \"https://gist.githubusercontent.com/bra1n/8a5ec41a7bbf945f6b7dfc1cef72b569/raw/a312ab93c2f302e0ef83c8b65a4e8e82760fda3a/catfishing.json\"\n ],\n [\n \"On Thin Ice (Teensyville)\",\n \"https://gist.githubusercontent.com/bra1n/8dacd9f2abc6f428331ea1213ab153f5/raw/0cacbcaf8ed9bddae0cca25a9ada97e9958d868b/on-thin-ice.json\"\n ],\n [\n \"Race To The Bottom (Teensyville)\",\n \"https://gist.githubusercontent.com/bra1n/63e1354cb3dc9d4032bcd0623dc48888/raw/5acb0eedcc0a67a64a99c7e0e6271de0b7b2e1b2/race-to-the-bottom.json\"\n ],\n [\n \"Frankenstein's Mayor by Ted (Teensyville)\",\n \"https://gist.githubusercontent.com/bra1n/32c52b422cc01b934a4291eeb81dbcee/raw/5bf770693bbf7aff5e86601c82ca4af3222f4ba6/Frankensteins_Mayor_by_Ted.json\"\n ],\n [\n \"Vigormortis High School (Teensyville)\",\n \"https://gist.githubusercontent.com/bra1n/1f65bd4a999524719d5dabe98c3c2d27/raw/22bbec6bf56a51a7459e5ae41ed47e41971c5445/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 try {\n const roles = JSON.parse(reader.result);\n this.parseRoles(roles);\n } catch (e) {\n alert(\"Error reading custom script: \" + e.message);\n }\n this.$refs.upload.value = \"\";\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 try {\n const script = await res.json();\n this.parseRoles(script);\n } catch (e) {\n alert(\"Error loading custom script: \" + e.message);\n }\n }\n },\n async readFromClipboard() {\n const text = await navigator.clipboard.readText();\n try {\n const roles = JSON.parse(text);\n this.parseRoles(roles);\n } catch (e) {\n alert(\"Error reading custom script: \" + e.message);\n }\n },\n parseRoles(roles) {\n if (!roles || !roles.length) return;\n const metaIndex = roles.findIndex(({ id }) => id === \"_meta\");\n let meta = {};\n if (metaIndex > -1) {\n meta = roles.splice(metaIndex, 1).pop();\n }\n this.$store.commit(\"setCustomRoles\", roles);\n this.$store.commit(\n \"setEdition\",\n Object.assign({}, meta, { id: \"custom\" })\n );\n // check for fabled and set those too, if present\n if (roles.some(({ id }) => this.$store.state.fabled.has(id))) {\n const fabled = [];\n roles.forEach(({ id }) => {\n if (this.$store.state.fabled.has(id)) {\n fabled.push(this.$store.state.fabled.get(id));\n }\n });\n this.$store.commit(\"players/setFabled\", { fabled });\n }\n this.isCustom = false;\n },\n ...mapMutations([\"toggleModal\", \"setEdition\"])\n }\n};\n</script>\n\n<style scoped lang=\"scss\">\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=7e8e55da&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=7e8e55da&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 \"7e8e55da\",\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',{staticClass:\"logo\",attrs:{\"src\":\"static/apple-icon.png\",\"alt\":\"\"}}),_c('div',[_vm._v(\" Welcome to the (unofficial) \"),_c('b',[_vm._v(\"Virtual Town Square and Grimoire\")]),_vm._v(\" for Blood on the Clocktower! 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(\". You can also join a game session by pressing \"),_c('b',[_vm._v(\"[J]\")]),_vm._v(\".\"),_c('br'),_vm._m(0)]),(_vm.language === 'zh-CN')?_c('a',{staticClass:\"redirect\",attrs:{\"href\":\"https://clocktower.gstonegames.com\"}},[_c('img',{staticClass:\"gstone\",attrs:{\"src\":require(\"../assets/gstone.png\"),\"alt\":\"\"}}),_vm._v(\" 你想使用中文版魔典吗? \")]):_vm._e()])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"footer\"},[_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(\". It is not affiliated with The Pandemonium Institute. \\\"Blood on the Clocktower\\\" is a trademark of Steven Medway and The Pandemonium Institute. \")])}]\n\nexport { render, staticRenderFns }","<template>\n <div class=\"intro\">\n <img src=\"static/apple-icon.png\" alt=\"\" class=\"logo\" />\n <div>\n Welcome to the (unofficial)\n <b>Virtual Town Square and Grimoire</b> for Blood on the Clocktower!\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>. You can also join a game\n session by pressing <b>[J]</b>.<br />\n <div class=\"footer\">\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 >. It is not affiliated with The Pandemonium Institute. \"Blood on the\n Clocktower\" is a trademark of Steven Medway and The Pandemonium\n Institute.\n </div>\n </div>\n <a\n class=\"redirect\"\n v-if=\"language === 'zh-CN'\"\n href=\"https://clocktower.gstonegames.com\"\n >\n <img src=\"../assets/gstone.png\" class=\"gstone\" alt=\"\" />\n 你想使用中文版魔典吗?\n </a>\n </div>\n</template>\n\n<script>\nimport { mapMutations } from \"vuex\";\n\nexport default {\n data() {\n return {\n language: window.navigator.userLanguage || window.navigator.language\n };\n },\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 display: flex;\n justify-content: center;\n a {\n color: white;\n }\n a.redirect {\n display: block;\n text-decoration: none;\n position: absolute;\n top: 100%;\n margin-top: 2vh;\n padding: 10px;\n background: rgba(0, 0, 0, 0.5);\n border: 3px solid black;\n border-radius: 10px;\n\n &:hover {\n color: red;\n }\n img {\n width: 120px;\n display: block;\n margin: auto;\n margin-bottom: 1vh;\n }\n }\n\n img.logo {\n position: absolute;\n bottom: 100%;\n width: 25vh;\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 .footer {\n font-size: 60%;\n opacity: 0.75;\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=14bc5701&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=14bc5701&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 \"14bc5701\",\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.modals.reference && _vm.roles.size)?_c('Modal',{staticClass:\"characters\",on:{\"close\":function($event){return _vm.toggleModal('reference')}}},[_c('font-awesome-icon',{staticClass:\"toggle\",attrs:{\"icon\":\"cloud-moon\",\"title\":\"Show Night Order\"},on:{\"click\":function($event){return _vm.toggleModal('nightOrder')}}}),_c('h3',[_vm._v(\" Character Reference \"),_c('font-awesome-icon',{attrs:{\"icon\":\"address-card\"}}),_vm._v(\" \"+_vm._s(_vm.edition.name || \"Custom Script\")+\" \")],1),_vm._l((_vm.rolesGrouped),function(teamRoles,team){return _c('div',{key:team,class:['team', team]},[_c('aside',[_c('h4',[_vm._v(_vm._s(team))])]),_c('ul',[_vm._l((teamRoles),function(role){return _c('li',{key:role.id,class:[team]},[(role.id)?_c('span',{staticClass:\"icon\",style:({\n backgroundImage: (\"url(\" + (role.image && _vm.grimoire.isImageOptIn\n ? role.image\n : require('../../assets/icons/' +\n (role.imageAlt || role.id) +\n '.png')) + \")\")\n })}):_vm._e(),_c('div',{staticClass:\"role\"},[(Object.keys(_vm.playersByRole).length)?_c('span',{staticClass:\"player\"},[_vm._v(_vm._s(_vm.playersByRole[role.id] ? _vm.playersByRole[role.id].join(\", \") : \"\"))]):_vm._e(),_c('span',{staticClass:\"name\"},[_vm._v(_vm._s(role.name))]),_c('span',{staticClass:\"ability\"},[_vm._v(_vm._s(role.ability))])])])}),_c('li',{class:[team]}),_c('li',{class:[team]})],2)])}),(_vm.jinxed.length)?_c('div',{staticClass:\"team jinxed\"},[_c('aside',[_c('h4',[_vm._v(\"Jinxed\")])]),_c('ul',[_vm._l((_vm.jinxed),function(jinx,index){return _c('li',{key:index},[_c('span',{staticClass:\"icon\",style:({\n backgroundImage: (\"url(\" + (require('../../assets/icons/' +\n jinx.first.id +\n '.png')) + \")\")\n })}),_c('span',{staticClass:\"icon\",style:({\n backgroundImage: (\"url(\" + (require('../../assets/icons/' +\n jinx.second.id +\n '.png')) + \")\")\n })}),_c('div',{staticClass:\"role\"},[_c('span',{staticClass:\"name\"},[_vm._v(_vm._s(jinx.first.name)+\" & \"+_vm._s(jinx.second.name))]),_c('span',{staticClass:\"ability\"},[_vm._v(_vm._s(jinx.reason))])])])}),_c('li'),_c('li')],2)]):_vm._e()],2):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <Modal\n class=\"characters\"\n @close=\"toggleModal('reference')\"\n v-if=\"modals.reference && roles.size\"\n >\n <font-awesome-icon\n @click=\"toggleModal('nightOrder')\"\n icon=\"cloud-moon\"\n class=\"toggle\"\n title=\"Show Night Order\"\n />\n <h3>\n Character Reference\n <font-awesome-icon icon=\"address-card\" />\n {{ edition.name || \"Custom Script\" }}\n </h3>\n <div\n v-for=\"(teamRoles, team) in rolesGrouped\"\n :key=\"team\"\n :class=\"['team', team]\"\n >\n <aside>\n <h4>{{ team }}</h4>\n </aside>\n <ul>\n <li v-for=\"role in teamRoles\" :class=\"[team]\" :key=\"role.id\">\n <span\n class=\"icon\"\n v-if=\"role.id\"\n :style=\"{\n backgroundImage: `url(${\n role.image && grimoire.isImageOptIn\n ? role.image\n : require('../../assets/icons/' +\n (role.imageAlt || role.id) +\n '.png')\n })`\n }\"\n ></span>\n <div class=\"role\">\n <span class=\"player\" v-if=\"Object.keys(playersByRole).length\">{{\n playersByRole[role.id] ? playersByRole[role.id].join(\", \") : \"\"\n }}</span>\n <span class=\"name\">{{ role.name }}</span>\n <span class=\"ability\">{{ role.ability }}</span>\n </div>\n </li>\n <li :class=\"[team]\"></li>\n <li :class=\"[team]\"></li>\n </ul>\n </div>\n\n <div class=\"team jinxed\" v-if=\"jinxed.length\">\n <aside>\n <h4>Jinxed</h4>\n </aside>\n <ul>\n <li v-for=\"(jinx, index) in jinxed\" :key=\"index\">\n <span\n class=\"icon\"\n :style=\"{\n backgroundImage: `url(${require('../../assets/icons/' +\n jinx.first.id +\n '.png')})`\n }\"\n ></span>\n <span\n class=\"icon\"\n :style=\"{\n backgroundImage: `url(${require('../../assets/icons/' +\n jinx.second.id +\n '.png')})`\n }\"\n ></span>\n <div class=\"role\">\n <span class=\"name\"\n >{{ jinx.first.name }} & {{ jinx.second.name }}</span\n >\n <span class=\"ability\">{{ jinx.reason }}</span>\n </div>\n </li>\n <li></li>\n <li></li>\n </ul>\n </div>\n </Modal>\n</template>\n\n<script>\nimport Modal from \"./Modal\";\nimport { mapMutations, mapState } from \"vuex\";\n\nexport default {\n components: {\n Modal\n },\n computed: {\n /**\n * Return a list of jinxes in the form of role IDs and a reason\n * @returns {*[]} [{first, second, reason}]\n */\n jinxed: function() {\n const jinxed = [];\n this.roles.forEach(role => {\n if (this.jinxes.get(role.id)) {\n this.jinxes.get(role.id).forEach((reason, second) => {\n if (this.roles.get(second)) {\n jinxed.push({\n first: role,\n second: this.roles.get(second),\n reason\n });\n }\n });\n }\n });\n return jinxed;\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\", \"grimoire\", \"jinxes\"]),\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\n.toggle {\n position: absolute;\n left: 20px;\n top: 15px;\n cursor: pointer;\n &:hover {\n color: red;\n }\n}\n\nh3 {\n margin: 0 40px;\n svg {\n vertical-align: middle;\n }\n}\n\n.townsfolk {\n .name {\n color: $townsfolk;\n }\n aside {\n background: linear-gradient(-90deg, $townsfolk, transparent);\n }\n}\n.outsider {\n .name {\n color: $outsider;\n }\n aside {\n background: linear-gradient(-90deg, $outsider, transparent);\n }\n}\n.minion {\n .name {\n color: $minion;\n }\n aside {\n background: linear-gradient(-90deg, $minion, transparent);\n }\n}\n.demon {\n .name {\n color: $demon;\n }\n aside {\n background: linear-gradient(-90deg, $demon, transparent);\n }\n}\n\n.jinxed {\n .name {\n color: $fabled;\n }\n aside {\n background: linear-gradient(-90deg, $fabled, transparent);\n }\n}\n\n.team {\n display: flex;\n align-items: stretch;\n width: 100%;\n &:not(:last-child):after {\n content: \" \";\n display: block;\n width: 25%;\n height: 1px;\n background: linear-gradient(90deg, #ffffffaa, transparent);\n position: absolute;\n left: 0;\n bottom: 0;\n }\n aside {\n width: 30px;\n display: flex;\n flex-grow: 0;\n flex-shrink: 0;\n align-items: center;\n justify-content: center;\n align-content: center;\n overflow: hidden;\n text-shadow: 0 0 4px black;\n }\n\n h4 {\n text-transform: uppercase;\n text-align: center;\n transform: rotate(90deg);\n transform-origin: center;\n font-size: 80%;\n }\n\n &.jinxed {\n .icon {\n margin: 0 -5px;\n }\n }\n}\n\nul {\n flex-grow: 1;\n display: flex;\n padding: 5px 0;\n\n li {\n display: flex;\n align-items: center;\n flex-grow: 1;\n width: 420px;\n .icon {\n width: 8vh;\n background-size: cover;\n background-position: 0 -5px;\n flex-shrink: 0;\n flex-grow: 0;\n &:after {\n content: \" \";\n display: block;\n padding-top: 75%;\n }\n }\n .role {\n line-height: 80%;\n flex-grow: 1;\n }\n .name {\n font-weight: bold;\n font-size: 75%;\n display: block;\n }\n .player {\n color: #888;\n float: right;\n font-size: 60%;\n }\n .ability {\n font-size: 70%;\n }\n }\n}\n\n/** break into 1 column below 1200px **/\n@media screen and (max-width: 1199.98px) {\n .modal {\n max-width: 60%;\n }\n ul {\n li {\n .icon {\n width: 6vh;\n }\n .role {\n line-height: 100%;\n }\n .name {\n font-size: 100%;\n }\n .player {\n font-size: 100%;\n }\n .ability {\n font-size: 90%;\n }\n }\n }\n}\n\n/** trim icon size on maximized one-column sheet **/\n@media screen and (max-width: 991.98px) {\n .characters .modal.maximized ul li .icon {\n width: 5.1vh;\n }\n}\n\n/** hide players when town square is set to \"public\" **/\n#townsquare.public ~ .characters .modal .player {\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!./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=7d0ee60b&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=7d0ee60b&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 \"7d0ee60b\",\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('audio',{attrs:{\"src\":require(\"../assets/sounds/countdown.mp3\"),\"preload\":\"auto\"}}),_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'),_c('em',{staticClass:\"blue\"},[_vm._v(\" \"+_vm._s(_vm.voters.length)+\" vote\"+_vm._s(_vm.voters.length !== 1 ? \"s\" : \"\")+\" \")]),_vm._v(\" in favor \"),(_vm.nominee.role.team !== 'traveler')?_c('em',[_vm._v(\" (majority is \"+_vm._s(Math.ceil(_vm.alive / 2))+\") \")]):_c('em',[_vm._v(\"(majority is \"+_vm._s(Math.ceil(_vm.players.length / 2))+\")\")]),(!_vm.session.isSpectator)?[(!_vm.session.isVoteInProgress && _vm.session.lockedVote < 1)?_c('div',[_vm._v(\" Time per player: \"),_c('font-awesome-icon',{attrs:{\"icon\":\"minus-circle\"},on:{\"mousedown\":function($event){$event.preventDefault();return _vm.setVotingSpeed(-500)}}}),_vm._v(\" \"+_vm._s(_vm.session.votingSpeed / 1000)+\"s \"),_c('font-awesome-icon',{attrs:{\"icon\":\"plus-circle\"},on:{\"mousedown\":function($event){$event.preventDefault();return _vm.setVotingSpeed(500)}}})],1):_vm._e(),_c('div',{staticClass:\"button-group\"},[(!_vm.session.isVoteInProgress)?_c('div',{staticClass:\"button townsfolk\",on:{\"click\":_vm.countdown}},[_vm._v(\" Countdown \")]):_vm._e(),(!_vm.session.isVoteInProgress)?_c('div',{staticClass:\"button\",on:{\"click\":_vm.start}},[_vm._v(\" \"+_vm._s(_vm.session.lockedVote ? \"Restart\" : \"Start\")+\" \")]):[_c('div',{staticClass:\"button townsfolk\",class:{ disabled: !_vm.session.lockedVote },on:{\"click\":_vm.pause}},[_vm._v(\" \"+_vm._s(_vm.voteTimer ? \"Pause\" : \"Resume\")+\" \")]),_c('div',{staticClass:\"button\",on:{\"click\":_vm.stop}},[_vm._v(\"Reset\")])],_c('div',{staticClass:\"button demon\",on:{\"click\":_vm.finish}},[_vm._v(\"Close\")])],2),(_vm.nominee.role.team !== 'traveler')?_c('div',{staticClass:\"button-group mark\"},[_c('div',{staticClass:\"button\",class:{\n disabled: _vm.session.nomination[1] === _vm.session.markedPlayer\n },on:{\"click\":_vm.setMarked}},[_vm._v(\" Mark for execution \")]),_c('div',{staticClass:\"button\",on:{\"click\":_vm.removeMarked}},[_vm._v(\" Clear mark \")])]):_vm._e()]:(_vm.canVote)?[(!_vm.session.isVoteInProgress)?_c('div',[_vm._v(\" \"+_vm._s(_vm.session.votingSpeed / 1000)+\" seconds between votes \")]):_vm._e(),_c('div',{staticClass:\"button-group\"},[_c('div',{staticClass:\"button townsfolk\",class:{ disabled: !_vm.currentVote },on:{\"click\":function($event){return _vm.vote(false)}}},[_vm._v(\" Hand DOWN \")]),_c('div',{staticClass:\"button demon\",class:{ disabled: _vm.currentVote },on:{\"click\":function($event){return _vm.vote(true)}}},[_vm._v(\" Hand UP \")])])]:(!_vm.player)?_c('div',[_vm._v(\" Please claim a seat to vote. \")]):_vm._e()],2),_c('transition',{attrs:{\"name\":\"blur\"}},[(_vm.session.isVoteInProgress && !_vm.session.lockedVote)?_c('div',{staticClass:\"countdown\"},[_c('span',[_vm._v(\"3\")]),_c('span',[_vm._v(\"2\")]),_c('span',[_vm._v(\"1\")]),_c('span',[_vm._v(\"GO\")]),_c('audio',{attrs:{\"autoplay\":!_vm.grimoire.isMuted,\"src\":require(\"../assets/sounds/countdown.mp3\"),\"muted\":_vm.grimoire.isMuted}})]):_vm._e()])],1)}\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 <audio src=\"../assets/sounds/countdown.mp3\" preload=\"auto\"></audio>\n <em class=\"blue\">{{ nominator.name }}</em> nominated\n <em>{{ nominee.name }}</em\n >!\n <br />\n <em class=\"blue\">\n {{ voters.length }} vote{{ voters.length !== 1 ? \"s\" : \"\" }}\n </em>\n in favor\n <em v-if=\"nominee.role.team !== 'traveler'\">\n (majority is {{ Math.ceil(alive / 2) }})\n </em>\n <em v-else>(majority is {{ Math.ceil(players.length / 2) }})</em>\n\n <template v-if=\"!session.isSpectator\">\n <div v-if=\"!session.isVoteInProgress && session.lockedVote < 1\">\n Time per player:\n <font-awesome-icon\n @mousedown.prevent=\"setVotingSpeed(-500)\"\n icon=\"minus-circle\"\n />\n {{ session.votingSpeed / 1000 }}s\n <font-awesome-icon\n @mousedown.prevent=\"setVotingSpeed(500)\"\n icon=\"plus-circle\"\n />\n </div>\n <div class=\"button-group\">\n <div\n class=\"button townsfolk\"\n v-if=\"!session.isVoteInProgress\"\n @click=\"countdown\"\n >\n Countdown\n </div>\n <div class=\"button\" v-if=\"!session.isVoteInProgress\" @click=\"start\">\n {{ session.lockedVote ? \"Restart\" : \"Start\" }}\n </div>\n <template v-else>\n <div\n class=\"button townsfolk\"\n :class=\"{ disabled: !session.lockedVote }\"\n @click=\"pause\"\n >\n {{ voteTimer ? \"Pause\" : \"Resume\" }}\n </div>\n <div class=\"button\" @click=\"stop\">Reset</div>\n </template>\n <div class=\"button demon\" @click=\"finish\">Close</div>\n </div>\n <div class=\"button-group mark\" v-if=\"nominee.role.team !== 'traveler'\">\n <div\n class=\"button\"\n :class=\"{\n disabled: session.nomination[1] === session.markedPlayer\n }\"\n @click=\"setMarked\"\n >\n Mark for execution\n </div>\n <div class=\"button\" @click=\"removeMarked\">\n Clear mark\n </div>\n </div>\n </template>\n <template v-else-if=\"canVote\">\n <div v-if=\"!session.isVoteInProgress\">\n {{ session.votingSpeed / 1000 }} seconds between votes\n </div>\n <div class=\"button-group\">\n <div\n class=\"button townsfolk\"\n @click=\"vote(false)\"\n :class=\"{ disabled: !currentVote }\"\n >\n Hand DOWN\n </div>\n <div\n class=\"button demon\"\n @click=\"vote(true)\"\n :class=\"{ disabled: currentVote }\"\n >\n Hand UP\n </div>\n </div>\n </template>\n <div v-else-if=\"!player\">\n Please claim a seat to vote.\n </div>\n </div>\n <transition name=\"blur\">\n <div\n class=\"countdown\"\n v-if=\"session.isVoteInProgress && !session.lockedVote\"\n >\n <span>3</span>\n <span>2</span>\n <span>1</span>\n <span>GO</span>\n <audio\n :autoplay=\"!grimoire.isMuted\"\n src=\"../assets/sounds/countdown.mp3\"\n :muted=\"grimoire.isMuted\"\n ></audio>\n </div>\n </transition>\n </div>\n</template>\n\n<script>\nimport { mapGetters, mapState } from \"vuex\";\n\nexport default {\n computed: {\n ...mapState(\"players\", [\"players\"]),\n ...mapState([\"session\", \"grimoire\"]),\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 transitionDuration: this.session.votingSpeed - 100 + \"ms\"\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 transitionDuration: this.session.votingSpeed - 100 + \"ms\"\n };\n },\n player: function() {\n return this.players.find(p => p.id === this.session.playerId);\n },\n currentVote: function() {\n const index = this.players.findIndex(p => p.id === this.session.playerId);\n return index >= 0 ? !!this.session.votes[index] : undefined;\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 = Array(this.players.length)\n .fill(\"\")\n .map((x, index) =>\n this.session.votes[index] ? this.players[index].name : \"\"\n );\n const reorder = [\n ...voters.slice(nomination + 1),\n ...voters.slice(0, nomination + 1)\n ];\n return (this.session.lockedVote\n ? reorder.slice(0, this.session.lockedVote - 1)\n : reorder\n ).filter(n => !!n);\n }\n },\n data() {\n return {\n voteTimer: null\n };\n },\n methods: {\n countdown() {\n this.$store.commit(\"session/lockVote\", 0);\n this.$store.commit(\"session/setVoteInProgress\", true);\n this.voteTimer = setInterval(() => {\n this.start();\n }, 4000);\n },\n start() {\n this.$store.commit(\"session/lockVote\", 1);\n this.$store.commit(\"session/setVoteInProgress\", true);\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 this.$store.commit(\"session/setVoteInProgress\", false);\n }\n }, this.session.votingSpeed);\n },\n pause() {\n if (this.voteTimer) {\n clearInterval(this.voteTimer);\n this.voteTimer = null;\n } else {\n this.voteTimer = setInterval(() => {\n this.$store.commit(\"session/lockVote\");\n if (this.session.lockedVote > this.players.length) {\n clearInterval(this.voteTimer);\n this.$store.commit(\"session/setVoteInProgress\", false);\n }\n }, this.session.votingSpeed);\n }\n },\n stop() {\n clearInterval(this.voteTimer);\n this.voteTimer = null;\n this.$store.commit(\"session/setVoteInProgress\", false);\n this.$store.commit(\"session/lockVote\", 0);\n },\n finish() {\n clearInterval(this.voteTimer);\n this.$store.commit(\"session/addHistory\", this.players);\n this.$store.commit(\"session/nomination\");\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 setVotingSpeed(diff) {\n const speed = Math.round(this.session.votingSpeed + diff);\n if (speed > 0) {\n this.$store.commit(\"session/setVotingSpeed\", speed);\n }\n },\n setMarked() {\n this.$store.commit(\"session/setMarkedPlayer\", this.session.nomination[1]);\n },\n removeMarked() {\n this.$store.commit(\"session/setMarkedPlayer\", -1);\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 .mark .button {\n font-size: 75%;\n margin: 0;\n }\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 svg {\n cursor: pointer;\n &:hover path {\n fill: url(#demon);\n stroke-width: 30px;\n stroke: white;\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@keyframes countdown {\n 0% {\n transform: scale(1.5);\n opacity: 0;\n filter: blur(20px);\n }\n 10% {\n opacity: 1;\n }\n 50% {\n transform: scale(1);\n filter: blur(0);\n }\n 90% {\n color: $townsfolk;\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n}\n\n@keyframes countdown-go {\n 0% {\n transform: scale(1.5);\n opacity: 0;\n filter: blur(20px);\n }\n 10% {\n opacity: 1;\n }\n 50% {\n transform: scale(1);\n filter: blur(0);\n }\n 90% {\n color: $demon;\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n}\n\n.countdown {\n display: flex;\n position: absolute;\n align-items: center;\n justify-content: center;\n pointer-events: none;\n audio {\n height: 0;\n width: 0;\n visibility: hidden;\n }\n span {\n position: absolute;\n font-size: 8em;\n font-weight: bold;\n opacity: 0;\n }\n span:nth-child(1) {\n animation: countdown 1100ms normal forwards;\n }\n span:nth-child(2) {\n animation: countdown 1100ms normal forwards 1000ms;\n }\n span:nth-child(3) {\n animation: countdown 1100ms normal forwards 2000ms;\n }\n span:nth-child(4) {\n animation: countdown-go 1100ms normal forwards 3000ms;\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!./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=56f82741&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=56f82741&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 \"56f82741\",\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","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.modals.nightOrder && _vm.roles.size)?_c('Modal',{staticClass:\"night-reference\",on:{\"close\":function($event){return _vm.toggleModal('nightOrder')}}},[_c('font-awesome-icon',{staticClass:\"toggle\",attrs:{\"icon\":\"address-card\",\"title\":\"Show Character Reference\"},on:{\"click\":function($event){return _vm.toggleModal('reference')}}}),_c('h3',[_vm._v(\" Night Order \"),_c('font-awesome-icon',{attrs:{\"icon\":\"cloud-moon\"}}),_vm._v(\" \"+_vm._s(_vm.edition.name || \"Custom Script\")+\" \")],1),_c('div',{staticClass:\"night\"},[_c('ul',{staticClass:\"first\"},[_c('li',{staticClass:\"headline\"},[_vm._v(\"First Night\")]),_vm._l((_vm.rolesFirstNight),function(role){return _c('li',{key:role.name,class:[role.team]},[_c('span',{staticClass:\"name\"},[_vm._v(\" \"+_vm._s(role.name)+\" \"),(role.players.length)?_c('span',{staticClass:\"player\"},[_c('br'),_vm._l((role.players),function(player,index){return _c('small',{key:index,class:{ dead: player.isDead }},[_vm._v(_vm._s(player.name + (role.players.length > index + 1 ? \",\" : \"\")))])})],2):_vm._e()]),(role.id)?_c('span',{staticClass:\"icon\",style:({\n backgroundImage: (\"url(\" + (role.image && _vm.grimoire.isImageOptIn\n ? role.image\n : require('../../assets/icons/' +\n (role.imageAlt || role.id) +\n '.png')) + \")\")\n })}):_vm._e(),(role.firstNightReminder)?_c('span',{staticClass:\"reminder\"},[_vm._v(\" \"+_vm._s(role.firstNightReminder)+\" \")]):_vm._e()])})],2),_c('ul',{staticClass:\"other\"},[_c('li',{staticClass:\"headline\"},[_vm._v(\"Other Nights\")]),_vm._l((_vm.rolesOtherNight),function(role){return _c('li',{key:role.name,class:[role.team]},[(role.id)?_c('span',{staticClass:\"icon\",style:({\n backgroundImage: (\"url(\" + (role.image && _vm.grimoire.isImageOptIn\n ? role.image\n : require('../../assets/icons/' +\n (role.imageAlt || role.id) +\n '.png')) + \")\")\n })}):_vm._e(),_c('span',{staticClass:\"name\"},[_vm._v(\" \"+_vm._s(role.name)+\" \"),(role.players.length)?_c('span',{staticClass:\"player\"},[_c('br'),_vm._l((role.players),function(player,index){return _c('small',{key:index,class:{ dead: player.isDead }},[_vm._v(_vm._s(player.name + (role.players.length > index + 1 ? \",\" : \"\")))])})],2):_vm._e()]),(role.otherNightReminder)?_c('span',{staticClass:\"reminder\"},[_vm._v(\" \"+_vm._s(role.otherNightReminder)+\" \")]):_vm._e()])})],2)])],1):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <Modal\n class=\"night-reference\"\n @close=\"toggleModal('nightOrder')\"\n v-if=\"modals.nightOrder && roles.size\"\n >\n <font-awesome-icon\n @click=\"toggleModal('reference')\"\n icon=\"address-card\"\n class=\"toggle\"\n title=\"Show Character Reference\"\n />\n <h3>\n Night Order\n <font-awesome-icon icon=\"cloud-moon\" />\n {{ edition.name || \"Custom Script\" }}\n </h3>\n <div class=\"night\">\n <ul class=\"first\">\n <li class=\"headline\">First Night</li>\n <li\n v-for=\"role in rolesFirstNight\"\n :key=\"role.name\"\n :class=\"[role.team]\"\n >\n <span class=\"name\">\n {{ role.name }}\n <span class=\"player\" v-if=\"role.players.length\">\n <br />\n <small\n v-for=\"(player, index) in role.players\"\n :class=\"{ dead: player.isDead }\"\n :key=\"index\"\n >{{\n player.name + (role.players.length > index + 1 ? \",\" : \"\")\n }}</small\n >\n </span>\n </span>\n <span\n class=\"icon\"\n v-if=\"role.id\"\n :style=\"{\n backgroundImage: `url(${\n role.image && grimoire.isImageOptIn\n ? role.image\n : require('../../assets/icons/' +\n (role.imageAlt || role.id) +\n '.png')\n })`\n }\"\n ></span>\n <span class=\"reminder\" v-if=\"role.firstNightReminder\">\n {{ role.firstNightReminder }}\n </span>\n </li>\n </ul>\n <ul class=\"other\">\n <li class=\"headline\">Other Nights</li>\n <li\n v-for=\"role in rolesOtherNight\"\n :key=\"role.name\"\n :class=\"[role.team]\"\n >\n <span\n class=\"icon\"\n v-if=\"role.id\"\n :style=\"{\n backgroundImage: `url(${\n role.image && grimoire.isImageOptIn\n ? role.image\n : require('../../assets/icons/' +\n (role.imageAlt || role.id) +\n '.png')\n })`\n }\"\n ></span>\n <span class=\"name\">\n {{ role.name }}\n <span class=\"player\" v-if=\"role.players.length\">\n <br />\n <small\n v-for=\"(player, index) in role.players\"\n :class=\"{ dead: player.isDead }\"\n :key=\"index\"\n >{{\n player.name + (role.players.length > index + 1 ? \",\" : \"\")\n }}</small\n >\n </span>\n </span>\n <span class=\"reminder\" v-if=\"role.otherNightReminder\">\n {{ role.otherNightReminder }}\n </span>\n </li>\n </ul>\n </div>\n </Modal>\n</template>\n\n<script>\nimport Modal from \"./Modal\";\nimport { mapMutations, mapState } from \"vuex\";\n\nexport default {\n components: {\n Modal\n },\n computed: {\n rolesFirstNight: function() {\n const rolesFirstNight = [];\n // add minion / demon infos to night order sheet\n if (this.players.length > 6) {\n rolesFirstNight.push(\n {\n id: \"evil\",\n name: \"Minion info\",\n firstNight: 5,\n team: \"minion\",\n players: this.players.filter(p => p.role.team === \"minion\"),\n firstNightReminder:\n \"• If more than one Minion, they all make eye contact with each other. \" +\n \"• Show the “This is the Demon” card. Point to the Demon.\"\n },\n {\n id: \"evil\",\n name: \"Demon info & bluffs\",\n firstNight: 8,\n team: \"demon\",\n players: this.players.filter(p => p.role.team === \"demon\"),\n firstNightReminder:\n \"• Show the “These are your minions” card. Point to each Minion. \" +\n \"• Show the “These characters are not in play” card. Show 3 character tokens of good \" +\n \"characters not in play.\"\n }\n );\n }\n this.roles.forEach(role => {\n const players = this.players.filter(p => p.role.id === role.id);\n if (role.firstNight && (role.team !== \"traveler\" || players.length)) {\n rolesFirstNight.push(Object.assign({ players }, role));\n }\n });\n this.fabled\n .filter(({ firstNight }) => firstNight)\n .forEach(fabled => {\n rolesFirstNight.push(Object.assign({ players: [] }, fabled));\n });\n rolesFirstNight.sort((a, b) => a.firstNight - b.firstNight);\n return rolesFirstNight;\n },\n rolesOtherNight: function() {\n const rolesOtherNight = [];\n this.roles.forEach(role => {\n const players = this.players.filter(p => p.role.id === role.id);\n if (role.otherNight && (role.team !== \"traveler\" || players.length)) {\n rolesOtherNight.push(Object.assign({ players }, role));\n }\n });\n this.fabled\n .filter(({ otherNight }) => otherNight)\n .forEach(fabled => {\n rolesOtherNight.push(Object.assign({ players: [] }, fabled));\n });\n rolesOtherNight.sort((a, b) => a.otherNight - b.otherNight);\n return rolesOtherNight;\n },\n ...mapState([\"roles\", \"modals\", \"edition\", \"grimoire\"]),\n ...mapState(\"players\", [\"players\", \"fabled\"])\n },\n methods: {\n ...mapMutations([\"toggleModal\"])\n }\n};\n</script>\n\n<style lang=\"scss\" scoped>\n@import \"../../vars.scss\";\n\n.toggle {\n position: absolute;\n left: 20px;\n top: 15px;\n cursor: pointer;\n &:hover {\n color: red;\n }\n}\n\nh3 {\n margin: 0 40px;\n svg {\n vertical-align: middle;\n }\n}\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.fabled {\n .name {\n background: linear-gradient(90deg, $fabled, transparent 35%);\n .night .other & {\n background: linear-gradient(-90deg, $fabled, transparent 35%);\n }\n }\n}\n.townsfolk {\n .name {\n background: linear-gradient(90deg, $townsfolk, transparent 35%);\n .night .other & {\n background: linear-gradient(-90deg, $townsfolk, transparent 35%);\n }\n }\n}\n.outsider {\n .name {\n background: linear-gradient(90deg, $outsider, transparent 35%);\n .night .other & {\n background: linear-gradient(-90deg, $outsider, transparent 35%);\n }\n }\n}\n.minion {\n .name {\n background: linear-gradient(90deg, $minion, transparent 35%);\n .night .other & {\n background: linear-gradient(-90deg, $minion, transparent 35%);\n }\n }\n}\n.demon {\n .name {\n background: linear-gradient(90deg, $demon, transparent 35%);\n .night .other & {\n background: linear-gradient(-90deg, $demon, transparent 35%);\n }\n }\n}\nul {\n li {\n display: flex;\n width: 100%;\n margin-bottom: 3px;\n .icon {\n width: 6vh;\n background-size: cover;\n background-position: 0 0;\n flex-grow: 0;\n flex-shrink: 0;\n text-align: center;\n margin: 0 2px;\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 text-align: right;\n font-size: 110%;\n padding: 5px;\n border-left: 1px solid rgba(255, 255, 255, 0.4);\n border-right: 1px solid rgba(255, 255, 255, 0.4);\n small {\n color: #888;\n margin-right: 5px;\n &.dead {\n text-decoration: line-through;\n }\n }\n }\n .reminder {\n position: fixed;\n padding: 5px 10px;\n left: 50%;\n bottom: 10%;\n width: 500px;\n z-index: 25;\n background: rgba(0, 0, 0, 0.75);\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 pointer-events: none;\n opacity: 0;\n transition: opacity 200ms ease-in-out;\n margin-left: -250px;\n }\n &:hover .reminder {\n opacity: 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\n.night {\n display: flex;\n align-items: flex-start;\n justify-content: center;\n > *:first-child {\n margin-right: 2vh;\n }\n > * {\n flex-grow: 0;\n flex-wrap: nowrap;\n flex-direction: column;\n }\n .headline {\n display: block;\n font-weight: bold;\n border-bottom: 1px solid rgba(255, 255, 255, 0.4);\n padding: 5px 10px;\n border-radius: 0;\n text-align: center;\n }\n .name {\n flex-grow: 1;\n }\n .first {\n .name {\n border-left: 0;\n }\n }\n .other {\n li .name {\n text-align: left;\n border-right: 0;\n }\n }\n}\n\n/** hide players when town square is set to \"public\" **/\n#townsquare.public ~ .night-reference .modal .player {\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!./NightOrderModal.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!./NightOrderModal.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./NightOrderModal.vue?vue&type=template&id=ec47598c&scoped=true&\"\nimport script from \"./NightOrderModal.vue?vue&type=script&lang=js&\"\nexport * from \"./NightOrderModal.vue?vue&type=script&lang=js&\"\nimport style0 from \"./NightOrderModal.vue?vue&type=style&index=0&id=ec47598c&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 \"ec47598c\",\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.modals.fabled && _vm.fabled.length)?_c('Modal',{on:{\"close\":function($event){return _vm.toggleModal('fabled')}}},[_c('h3',[_vm._v(\" Choose a fabled character to add to the game \")]),_c('ul',{staticClass:\"tokens\"},_vm._l((_vm.fabled),function(role){return _c('li',{key:role.id,on:{\"click\":function($event){return _vm.setFabled(role)}}},[_c('Token',{attrs:{\"role\":role}})],1)}),0)]):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <Modal v-if=\"modals.fabled && fabled.length\" @close=\"toggleModal('fabled')\">\n <h3>\n Choose a fabled character to add to the game\n </h3>\n <ul class=\"tokens\">\n <li v-for=\"role in fabled\" :key=\"role.id\" @click=\"setFabled(role)\">\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 computed: {\n ...mapState([\"modals\", \"fabled\", \"grimoire\"]),\n fabled() {\n const fabled = [];\n this.$store.state.fabled.forEach(role => {\n // don't show fabled that are already in play\n if (\n !this.$store.state.players.fabled.some(fable => fable.id === role.id)\n ) {\n fabled.push(role);\n }\n });\n return fabled;\n }\n },\n methods: {\n setFabled(role) {\n this.$store.commit(\"players/setFabled\", {\n fabled: role\n });\n this.$store.commit(\"toggleModal\", \"fabled\");\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: 8vw;\n margin: 0.5%;\n transition: transform 500ms ease;\n\n &:hover {\n transform: scale(1.2);\n z-index: 10;\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!./FabledModal.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!./FabledModal.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./FabledModal.vue?vue&type=template&id=d6b399a0&scoped=true&\"\nimport script from \"./FabledModal.vue?vue&type=script&lang=js&\"\nexport * from \"./FabledModal.vue?vue&type=script&lang=js&\"\nimport style0 from \"./FabledModal.vue?vue&type=style&index=0&id=d6b399a0&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 \"d6b399a0\",\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.modals.voteHistory && (_vm.session.voteHistory || !_vm.session.isSpectator))?_c('Modal',{staticClass:\"vote-history\",on:{\"close\":function($event){return _vm.toggleModal('voteHistory')}}},[(_vm.session.isSpectator)?_c('font-awesome-icon',{staticClass:\"clear\",attrs:{\"icon\":\"trash-alt\",\"title\":\"Clear vote history\"},on:{\"click\":_vm.clearVoteHistory}}):_vm._e(),_c('h3',[_vm._v(\"Vote history\")]),(!_vm.session.isSpectator)?[_c('div',{staticClass:\"options\"},[_c('div',{staticClass:\"option\",on:{\"click\":_vm.setRecordVoteHistory}},[_c('font-awesome-icon',{attrs:{\"icon\":[\n 'fas',\n _vm.session.isVoteHistoryAllowed ? 'check-square' : 'square'\n ]}}),_vm._v(\" Accessible to players \")],1),_c('div',{staticClass:\"option\",on:{\"click\":_vm.clearVoteHistory}},[_c('font-awesome-icon',{attrs:{\"icon\":\"trash-alt\"}}),_vm._v(\" Clear for everyone \")],1)])]:_vm._e(),_c('table',[_c('thead',[_c('tr',[_c('td',[_vm._v(\"Time\")]),_c('td',[_vm._v(\"Nominator\")]),_c('td',[_vm._v(\"Nominee\")]),_c('td',[_vm._v(\"Type\")]),_c('td',[_vm._v(\"Votes\")]),_c('td',[_vm._v(\"Majority\")]),_c('td',[_c('font-awesome-icon',{attrs:{\"icon\":\"user-friends\"}}),_vm._v(\" Voters \")],1)])]),_c('tbody',_vm._l((_vm.session.voteHistory),function(vote,index){return _c('tr',{key:index},[_c('td',[_vm._v(\" \"+_vm._s(vote.timestamp .getHours() .toString() .padStart(2, \"0\"))+\":\"+_vm._s(vote.timestamp .getMinutes() .toString() .padStart(2, \"0\"))+\" \")]),_c('td',[_vm._v(_vm._s(vote.nominator))]),_c('td',[_vm._v(_vm._s(vote.nominee))]),_c('td',[_vm._v(_vm._s(vote.type))]),_c('td',[_vm._v(\" \"+_vm._s(vote.votes.length)+\" \"),_c('font-awesome-icon',{attrs:{\"icon\":\"hand-paper\"}})],1),_c('td',[_vm._v(\" \"+_vm._s(vote.majority)+\" \"),_c('font-awesome-icon',{attrs:{\"icon\":[\n 'fas',\n vote.votes.length >= vote.majority ? 'check-square' : 'square'\n ]}})],1),_c('td',[_vm._v(\" \"+_vm._s(vote.votes.join(\", \"))+\" \")])])}),0)])],2):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <Modal\n class=\"vote-history\"\n v-if=\"modals.voteHistory && (session.voteHistory || !session.isSpectator)\"\n @close=\"toggleModal('voteHistory')\"\n >\n <font-awesome-icon\n @click=\"clearVoteHistory\"\n icon=\"trash-alt\"\n class=\"clear\"\n title=\"Clear vote history\"\n v-if=\"session.isSpectator\"\n />\n\n <h3>Vote history</h3>\n\n <template v-if=\"!session.isSpectator\">\n <div class=\"options\">\n <div class=\"option\" @click=\"setRecordVoteHistory\">\n <font-awesome-icon\n :icon=\"[\n 'fas',\n session.isVoteHistoryAllowed ? 'check-square' : 'square'\n ]\"\n />\n Accessible to players\n </div>\n <div class=\"option\" @click=\"clearVoteHistory\">\n <font-awesome-icon icon=\"trash-alt\" />\n Clear for everyone\n </div>\n </div>\n </template>\n <table>\n <thead>\n <tr>\n <td>Time</td>\n <td>Nominator</td>\n <td>Nominee</td>\n <td>Type</td>\n <td>Votes</td>\n <td>Majority</td>\n <td>\n <font-awesome-icon icon=\"user-friends\" />\n Voters\n </td>\n </tr>\n </thead>\n <tbody>\n <tr v-for=\"(vote, index) in session.voteHistory\" :key=\"index\">\n <td>\n {{\n vote.timestamp\n .getHours()\n .toString()\n .padStart(2, \"0\")\n }}:{{\n vote.timestamp\n .getMinutes()\n .toString()\n .padStart(2, \"0\")\n }}\n </td>\n <td>{{ vote.nominator }}</td>\n <td>{{ vote.nominee }}</td>\n <td>{{ vote.type }}</td>\n <td>\n {{ vote.votes.length }}\n <font-awesome-icon icon=\"hand-paper\" />\n </td>\n <td>\n {{ vote.majority }}\n <font-awesome-icon\n :icon=\"[\n 'fas',\n vote.votes.length >= vote.majority ? 'check-square' : 'square'\n ]\"\n />\n </td>\n <td>\n {{ vote.votes.join(\", \") }}\n </td>\n </tr>\n </tbody>\n </table>\n </Modal>\n</template>\n\n<script>\nimport Modal from \"./Modal\";\nimport { mapMutations, mapState } from \"vuex\";\n\nexport default {\n components: {\n Modal\n },\n computed: {\n ...mapState([\"session\", \"modals\"])\n },\n methods: {\n clearVoteHistory() {\n this.$store.commit(\"session/clearVoteHistory\");\n },\n setRecordVoteHistory() {\n this.$store.commit(\n \"session/setVoteHistoryAllowed\",\n !this.session.isVoteHistoryAllowed\n );\n },\n ...mapMutations([\"toggleModal\"])\n }\n};\n</script>\n\n<style lang=\"scss\" scoped>\n@import \"../../vars.scss\";\n\n.clear {\n position: absolute;\n left: 20px;\n top: 15px;\n cursor: pointer;\n &:hover {\n color: red;\n }\n}\n\n.options {\n display: flex;\n justify-content: center;\n align-items: center;\n justify-content: center;\n align-content: center;\n}\n\n.option {\n color: white;\n text-decoration: none;\n margin: 0 15px;\n &:hover {\n color: red;\n cursor: pointer;\n }\n}\n\nh3 {\n margin: 0 40px 0 10px;\n svg {\n vertical-align: middle;\n }\n}\n\ntable {\n border-spacing: 10px 0;\n margin-left: auto;\n margin-right: auto;\n}\n\nthead td {\n font-weight: bold;\n border-bottom: 1px solid white;\n text-align: center;\n padding: 0 3px;\n}\n\ntbody {\n td:nth-child(2) {\n color: $townsfolk;\n }\n td:nth-child(3) {\n color: $demon;\n }\n td:nth-child(5) {\n text-align: center;\n }\n td:nth-child(6) {\n text-align: center;\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!./VoteHistoryModal.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!./VoteHistoryModal.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./VoteHistoryModal.vue?vue&type=template&id=482a37a8&scoped=true&\"\nimport script from \"./VoteHistoryModal.vue?vue&type=script&lang=js&\"\nexport * from \"./VoteHistoryModal.vue?vue&type=script&lang=js&\"\nimport style0 from \"./VoteHistoryModal.vue?vue&type=style&index=0&id=482a37a8&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 \"482a37a8\",\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.modals.gameState)?_c('Modal',{staticClass:\"game-state\",on:{\"close\":function($event){return _vm.toggleModal('gameState')}}},[_c('h3',[_vm._v(\"Current Game State\")]),_c('textarea',{domProps:{\"value\":_vm.gamestate},on:{\"input\":function($event){$event.stopPropagation();_vm.input = $event.target.value},\"click\":function($event){return $event.target.select()},\"keyup\":function($event){$event.stopPropagation();}}}),_c('div',{staticClass:\"button-group\"},[_c('div',{staticClass:\"button townsfolk\",on:{\"click\":_vm.copy}},[_c('font-awesome-icon',{attrs:{\"icon\":\"copy\"}}),_vm._v(\" Copy JSON \")],1),(!_vm.session.isSpectator)?_c('div',{staticClass:\"button demon\",on:{\"click\":_vm.load}},[_c('font-awesome-icon',{attrs:{\"icon\":\"cog\"}}),_vm._v(\" Load State \")],1):_vm._e()])]):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <Modal\n class=\"game-state\"\n v-if=\"modals.gameState\"\n @close=\"toggleModal('gameState')\"\n >\n <h3>Current Game State</h3>\n <textarea\n :value=\"gamestate\"\n @input.stop=\"input = $event.target.value\"\n @click=\"$event.target.select()\"\n @keyup.stop=\"\"\n ></textarea>\n <div class=\"button-group\">\n <div class=\"button townsfolk\" @click=\"copy\">\n <font-awesome-icon icon=\"copy\" /> Copy JSON\n </div>\n <div class=\"button demon\" @click=\"load\" v-if=\"!session.isSpectator\">\n <font-awesome-icon icon=\"cog\" /> Load State\n </div>\n </div>\n </Modal>\n</template>\n\n<script>\nimport Modal from \"./Modal\";\nimport { mapMutations, mapState } from \"vuex\";\n\nexport default {\n components: {\n Modal\n },\n computed: {\n gamestate: function() {\n return JSON.stringify({\n bluffs: this.players.bluffs.map(({ id }) => id),\n edition: this.edition.isOfficial\n ? { id: this.edition.id }\n : this.edition,\n roles: this.edition.isOfficial\n ? \"\"\n : this.$store.getters.customRolesStripped,\n fabled: this.players.fabled.map(fabled =>\n fabled.isCustom ? fabled : { id: fabled.id }\n ),\n players: this.players.players.map(player => ({\n ...player,\n role: player.role.id || {}\n }))\n });\n },\n ...mapState([\"modals\", \"players\", \"edition\", \"roles\", \"session\"])\n },\n data() {\n return {\n input: \"\"\n };\n },\n methods: {\n copy: function() {\n navigator.clipboard.writeText(this.input || this.gamestate);\n },\n load: function() {\n if (this.session.isSpectator) return;\n try {\n const data = JSON.parse(this.input || this.gamestate);\n const { bluffs, edition, roles, fabled, players } = data;\n if (roles) {\n this.$store.commit(\"setCustomRoles\", roles);\n }\n if (edition) {\n this.$store.commit(\"setEdition\", edition);\n }\n if (bluffs.length) {\n bluffs.forEach((role, index) => {\n this.$store.commit(\"players/setBluff\", {\n index,\n role: this.$store.state.roles.get(role) || {}\n });\n });\n }\n if (fabled) {\n this.$store.commit(\"players/setFabled\", {\n fabled: fabled.map(\n f =>\n this.$store.state.fabled.get(f) ||\n this.$store.state.fabled.get(f.id) ||\n f\n )\n });\n }\n if (players) {\n this.$store.commit(\n \"players/set\",\n players.map(player => ({\n ...player,\n role:\n this.$store.state.roles.get(player.role) ||\n this.$store.getters.rolesJSONbyId.get(player.role) ||\n {}\n }))\n );\n }\n this.toggleModal(\"gameState\");\n } catch (e) {\n alert(\"Unable to parse JSON: \" + e);\n }\n },\n ...mapMutations([\"toggleModal\"])\n }\n};\n</script>\n\n<style lang=\"scss\" scoped>\n@import \"../../vars.scss\";\n\nh3 {\n margin: 0 40px;\n}\n\ntextarea {\n background: transparent;\n color: white;\n white-space: pre-wrap;\n word-break: break-all;\n border: 1px solid rgba(255, 255, 255, 0.5);\n width: 60vw;\n height: 30vh;\n max-width: 100%;\n margin: 5px 0;\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!./GameStateModal.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!./GameStateModal.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./GameStateModal.vue?vue&type=template&id=7971ea6f&scoped=true&\"\nimport script from \"./GameStateModal.vue?vue&type=script&lang=js&\"\nexport * from \"./GameStateModal.vue?vue&type=script&lang=js&\"\nimport style0 from \"./GameStateModal.vue?vue&type=style&index=0&id=7971ea6f&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 \"7971ea6f\",\n null\n \n)\n\nexport default component.exports","<template>\n <div\n id=\"app\"\n @keyup=\"keyup\"\n tabindex=\"-1\"\n :class=\"{\n night: grimoire.isNight,\n static: grimoire.isStatic\n }\"\n :style=\"{\n backgroundImage: grimoire.background\n ? `url('${grimoire.background}')`\n : ''\n }\"\n >\n <video\n id=\"background\"\n v-if=\"grimoire.background && grimoire.background.match(/\\.(mp4|webm)$/i)\"\n :src=\"grimoire.background\"\n autoplay\n loop\n ></video>\n <div class=\"backdrop\"></div>\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></TownSquare>\n <Menu ref=\"menu\"></Menu>\n <EditionModal />\n <FabledModal />\n <RolesModal />\n <ReferenceModal />\n <NightOrderModal />\n <VoteHistoryModal />\n <GameStateModal />\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\";\nimport NightOrderModal from \"./components/modals/NightOrderModal\";\nimport FabledModal from \"@/components/modals/FabledModal\";\nimport VoteHistoryModal from \"@/components/modals/VoteHistoryModal\";\nimport GameStateModal from \"@/components/modals/GameStateModal\";\n\nexport default {\n components: {\n GameStateModal,\n VoteHistoryModal,\n FabledModal,\n NightOrderModal,\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 keyup({ key, ctrlKey, metaKey }) {\n if (ctrlKey || metaKey) return;\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 \"n\":\n this.$store.commit(\"toggleModal\", \"nightOrder\");\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 \"v\":\n if (this.session.voteHistory.length || !this.session.isSpectator) {\n this.$store.commit(\"toggleModal\", \"voteHistory\");\n }\n break;\n case \"s\":\n if (this.session.isSpectator) return;\n this.$refs.menu.toggleNight();\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@import \"media\";\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 // disable all animations\n &.static *,\n &.static *:after,\n &.static *:before {\n transition: none !important;\n animation: none !important;\n }\n}\n\n#version {\n position: absolute;\n text-align: right;\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 opacity: 0.75;\n }\n &:before,\n &:after {\n content: \" \";\n display: inline-block;\n width: 10px;\n height: 10px;\n }\n &.townsfolk {\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:not(.disabled) {\n color: #008cf7;\n }\n }\n &.demon {\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}\n\n/* video background */\nvideo#background {\n position: absolute;\n width: 100%;\n height: 100%;\n object-fit: cover;\n}\n\n/* Night phase backdrop */\n#app > .backdrop {\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n top: 0;\n pointer-events: none;\n background: black;\n background: linear-gradient(\n 180deg,\n rgba(0, 0, 0, 1) 0%,\n rgba(1, 22, 46, 1) 50%,\n rgba(0, 39, 70, 1) 100%\n );\n opacity: 0;\n transition: opacity 1s ease-in-out;\n &:after {\n content: \" \";\n display: block;\n width: 100%;\n padding-right: 2000px;\n height: 100%;\n background: url(\"assets/clouds.png\") repeat;\n background-size: 2000px auto;\n animation: move-background 120s linear infinite;\n opacity: 0.3;\n }\n}\n\n@keyframes move-background {\n from {\n transform: translate3d(-2000px, 0px, 0px);\n }\n to {\n transform: translate3d(0px, 0px, 0px);\n }\n}\n\n#app.night > .backdrop {\n opacity: 0.5;\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=90c4b058&\"\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","class LiveSession {\n constructor(store) {\n this._wss = \"wss://live.clocktower.online:8080/\";\n // this._wss = \"ws://localhost:8081/\"; // uncomment if using local server with NODE_ENV=development\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._reconnectTimer = null;\n this._players = {}; // map of players connected to a session\n this._pings = {}; // map of player IDs to ping\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(\n this._wss +\n channel +\n \"/\" +\n (this._isSpectator ? this._store.state.session.playerId : \"host\")\n );\n this._socket.addEventListener(\"message\", this._handleMessage.bind(this));\n this._socket.onopen = this._onOpen.bind(this);\n this._socket.onclose = err => {\n this._socket = null;\n clearInterval(this._pingTimer);\n this._pingTimer = null;\n if (err.code !== 1000) {\n // connection interrupted, reconnect after 3 seconds\n this._store.commit(\"session/setReconnecting\", true);\n this._reconnectTimer = setTimeout(\n () => this.connect(channel),\n 3 * 1000\n );\n } else {\n this._store.commit(\"session/setSessionId\", \"\");\n if (err.reason) alert(err.reason);\n }\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 * Send a message directly to a single playerId, if provided.\n * Otherwise broadcast it.\n * @param playerId player ID or \"host\", optional\n * @param command\n * @param params\n * @private\n */\n _sendDirect(playerId, command, params) {\n if (playerId) {\n this._send(\"direct\", { [playerId]: [command, params] });\n } else {\n this._send(command, params);\n }\n }\n\n /**\n * Open event handler for socket.\n * @private\n */\n _onOpen() {\n if (this._isSpectator) {\n this._sendDirect(\n \"host\",\n \"getGamestate\",\n this._store.state.session.playerId\n );\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._handlePing();\n this._send(\"ping\", [\n this._isSpectator\n ? this._store.state.session.playerId\n : Object.keys(this._players).length,\n \"latency\"\n ]);\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 \"getGamestate\":\n this.sendGamestate(params);\n break;\n case \"edition\":\n this._updateEdition(params);\n break;\n case \"fabled\":\n this._updateFabled(params);\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 if (!this._isSpectator) return;\n if (!params) {\n // create vote history record\n this._store.commit(\n \"session/addHistory\",\n this._store.state.players.players\n );\n }\n this._store.commit(\"session/nomination\", { nomination: params });\n break;\n case \"swap\":\n if (!this._isSpectator) return;\n this._store.commit(\"players/swap\", params);\n break;\n case \"move\":\n if (!this._isSpectator) return;\n this._store.commit(\"players/move\", params);\n break;\n case \"remove\":\n if (!this._isSpectator) return;\n this._store.commit(\"players/remove\", params);\n break;\n case \"marked\":\n if (!this._isSpectator) return;\n this._store.commit(\"session/setMarkedPlayer\", params);\n break;\n case \"isNight\":\n if (!this._isSpectator) return;\n this._store.commit(\"toggleNight\", params);\n break;\n case \"isVoteHistoryAllowed\":\n if (!this._isSpectator) return;\n this._store.commit(\"session/setVoteHistoryAllowed\", params);\n this._store.commit(\"session/clearVoteHistory\");\n break;\n case \"votingSpeed\":\n if (!this._isSpectator) return;\n this._store.commit(\"session/setVotingSpeed\", params);\n break;\n case \"clearVoteHistory\":\n if (!this._isSpectator) return;\n this._store.commit(\"session/clearVoteHistory\");\n break;\n case \"isVoteInProgress\":\n if (!this._isSpectator) return;\n this._store.commit(\"session/setVoteInProgress\", 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 case \"pronouns\":\n this._updatePlayerPronouns(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._pings = {};\n this._store.commit(\"session/setPlayerCount\", 0);\n this._store.commit(\"session/setPing\", 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._pings = {};\n this._store.commit(\"session/setPlayerCount\", 0);\n this._store.commit(\"session/setPing\", 0);\n this._store.commit(\"session/setReconnecting\", false);\n clearTimeout(this._reconnectTimer);\n if (this._socket) {\n if (this._isSpectator) {\n this._sendDirect(\"host\", \"bye\", this._store.state.session.playerId);\n }\n this._socket.close(1000);\n this._socket = null;\n }\n }\n\n /**\n * Publish the current gamestate.\n * Optional param to reduce traffic. (send only player data)\n * @param playerId\n * @param isLightweight\n */\n sendGamestate(playerId = \"\", isLightweight = false) {\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 pronouns: player.pronouns,\n ...(player.role && player.role.team === \"traveler\"\n ? { roleId: player.role.id }\n : {})\n }));\n if (isLightweight) {\n this._sendDirect(playerId, \"gs\", {\n gamestate: this._gamestate,\n isLightweight\n });\n } else {\n const { session, grimoire } = this._store.state;\n const { fabled } = this._store.state.players;\n this.sendEdition(playerId);\n this._sendDirect(playerId, \"gs\", {\n gamestate: this._gamestate,\n isNight: grimoire.isNight,\n isVoteHistoryAllowed: session.isVoteHistoryAllowed,\n nomination: session.nomination,\n votingSpeed: session.votingSpeed,\n lockedVote: session.lockedVote,\n isVoteInProgress: session.isVoteInProgress,\n markedPlayer: session.markedPlayer,\n fabled: fabled.map(f => (f.isCustom ? f : { id: f.id })),\n ...(session.nomination ? { votes: session.votes } : {})\n });\n }\n }\n\n /**\n * Update the gamestate based on incoming data.\n * @param data\n * @private\n */\n _updateGamestate(data) {\n if (!this._isSpectator) return;\n const {\n gamestate,\n isLightweight,\n isNight,\n isVoteHistoryAllowed,\n nomination,\n votingSpeed,\n votes,\n lockedVote,\n isVoteInProgress,\n markedPlayer,\n fabled\n } = data;\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 { roleId } = state;\n // update relevant properties\n [\"name\", \"id\", \"isDead\", \"isVoteless\", \"pronouns\"].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 (roleId && player.role.id !== roleId) {\n const role =\n this._store.state.roles.get(roleId) ||\n this._store.getters.rolesJSONbyId.get(roleId);\n if (role) {\n this._store.commit(\"players/update\", {\n player,\n property: \"role\",\n value: role\n });\n }\n } else if (!roleId && player.role.team === \"traveler\") {\n this._store.commit(\"players/update\", {\n player,\n property: \"role\",\n value: {}\n });\n }\n });\n if (!isLightweight) {\n this._store.commit(\"toggleNight\", !!isNight);\n this._store.commit(\"session/setVoteHistoryAllowed\", isVoteHistoryAllowed);\n this._store.commit(\"session/nomination\", {\n nomination,\n votes,\n votingSpeed,\n lockedVote,\n isVoteInProgress\n });\n this._store.commit(\"session/setMarkedPlayer\", markedPlayer);\n this._store.commit(\"players/setFabled\", {\n fabled: fabled.map(f => this._store.state.fabled.get(f.id) || f)\n });\n }\n }\n\n /**\n * Publish an edition update. ST only\n * @param playerId\n */\n sendEdition(playerId = \"\") {\n if (this._isSpectator) return;\n const { edition } = this._store.state;\n let roles;\n if (!edition.isOfficial) {\n roles = this._store.getters.customRolesStripped;\n }\n this._sendDirect(playerId, \"edition\", {\n edition: edition.isOfficial ? { id: edition.id } : edition,\n ...(roles ? { roles } : {})\n });\n }\n\n /**\n * Update edition and roles for custom editions.\n * @param edition\n * @param roles\n * @private\n */\n _updateEdition({ edition, roles }) {\n if (!this._isSpectator) return;\n this._store.commit(\"setEdition\", edition);\n if (roles) {\n this._store.commit(\"setCustomRoles\", roles);\n if (this._store.state.roles.size !== roles.length) {\n const missing = [];\n roles.forEach(({ id }) => {\n if (!this._store.state.roles.get(id)) {\n missing.push(id);\n }\n });\n alert(\n `This session contains custom characters that can't be found. ` +\n `Please load them before joining! ` +\n `Missing roles: ${missing.join(\", \")}`\n );\n this.disconnect();\n this._store.commit(\"toggleModal\", \"edition\");\n }\n }\n }\n\n /**\n * Publish a fabled update. ST only\n */\n sendFabled() {\n if (this._isSpectator) return;\n const { fabled } = this._store.state.players;\n this._send(\n \"fabled\",\n fabled.map(f => (f.isCustom ? f : { id: f.id }))\n );\n }\n\n /**\n * Update fabled roles.\n * @param fabled\n * @private\n */\n _updateFabled(fabled) {\n if (!this._isSpectator) return;\n this._store.commit(\"players/setFabled\", {\n fabled: fabled.map(f => this._store.state.fabled.get(f.id) || f)\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].roleId = value.id;\n this._send(\"player\", {\n index,\n property,\n value: value.id\n });\n } else if (this._gamestate[index].roleId) {\n // player was previously a traveler\n delete this._gamestate[index].roleId;\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. Player only.\n * @param index\n * @param property\n * @param value\n * @private\n */\n _updatePlayer({ index, property, value }) {\n if (!this._isSpectator) return;\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 (property === \"role\") {\n if (!value && player.role.team === \"traveler\") {\n // reset to an unknown role\n this._store.commit(\"players/update\", {\n player,\n property: \"role\",\n value: {}\n });\n } else {\n // load role, first from session, the global, then fail gracefully\n const role =\n this._store.state.roles.get(value) ||\n this._store.getters.rolesJSONbyId.get(value) ||\n {};\n this._store.commit(\"players/update\", {\n player,\n property: \"role\",\n value: role\n });\n }\n } else {\n // just update the player otherwise\n this._store.commit(\"players/update\", { player, property, value });\n }\n }\n\n /**\n * Publish a player pronouns update\n * @param player\n * @param value\n * @param isFromSockets\n */\n sendPlayerPronouns({ player, value, isFromSockets }) {\n //send pronoun only for the seated player or storyteller\n //Do not re-send pronoun data for an update that was recieved from the sockets layer\n if (\n isFromSockets ||\n (this._isSpectator && this._store.state.session.playerId !== player.id)\n )\n return;\n const index = this._store.state.players.players.indexOf(player);\n this._send(\"pronouns\", [index, value]);\n }\n\n /**\n * Update a pronouns based on incoming data.\n * @param index\n * @param value\n * @private\n */\n _updatePlayerPronouns([index, value]) {\n const player = this._store.state.players.players[index];\n\n this._store.commit(\"players/update\", {\n player,\n property: \"pronouns\",\n value,\n isFromSockets: true\n });\n }\n\n /**\n * Handle a ping message by another player / storyteller\n * @param playerIdOrCount\n * @param latency\n * @private\n */\n _handlePing([playerIdOrCount = 0, latency] = []) {\n const now = new Date().getTime();\n if (!this._isSpectator) {\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 delete this._pings[player];\n }\n }\n // remove claimed seats from players that are no longer connected\n this._store.state.players.players.forEach(player => {\n if (player.id && !this._players[player.id]) {\n this._store.commit(\"players/update\", {\n player,\n property: \"id\",\n value: \"\"\n });\n }\n });\n // store new player data\n if (playerIdOrCount) {\n this._players[playerIdOrCount] = now;\n const ping = parseInt(latency, 10);\n if (ping && ping > 0 && ping < 30 * 1000) {\n // ping to Players\n this._pings[playerIdOrCount] = ping;\n const pings = Object.values(this._pings);\n this._store.commit(\n \"session/setPing\",\n Math.round(pings.reduce((a, b) => a + b, 0) / pings.length)\n );\n }\n }\n } else if (latency) {\n // ping to ST\n this._store.commit(\"session/setPing\", parseInt(latency, 10));\n }\n // update player count\n if (!this._isSpectator || playerIdOrCount) {\n this._store.commit(\n \"session/setPlayerCount\",\n this._isSpectator ? playerIdOrCount : Object.keys(this._players).length\n );\n }\n }\n\n /**\n * Handle a player leaving the sessions. ST only\n * @param playerId\n * @private\n */\n _handleBye(playerId) {\n if (this._isSpectator) return;\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 * Seats already occupied can't be claimed.\n * @param seat either -1 to vacate or the index of the seat claimed\n */\n claimSeat(seat) {\n if (!this._isSpectator) return;\n const players = this._store.state.players.players;\n if (players.length > seat && (seat < 0 || !players[seat].id)) {\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, 0]);\n }\n\n /**\n * Distribute player roles to all seated players in a direct message.\n * This will be split server side so that each player only receives their own (sub)message.\n */\n distributeRoles() {\n if (this._isSpectator) return;\n const message = {};\n this._store.state.players.players.forEach((player, index) => {\n if (player.id && player.role) {\n message[player.id] = [\n \"player\",\n { index, property: \"role\", value: player.role.id }\n ];\n }\n });\n if (Object.keys(message).length) {\n this._send(\"direct\", message);\n }\n }\n\n /**\n * A player nomination. ST only\n * This also syncs the voting speed to the players.\n * Payload can be an object with {nomination} property or just the nomination itself, or undefined.\n * @param payload [nominator, nominee]|{nomination}\n */\n nomination(payload) {\n if (this._isSpectator) return;\n const nomination = payload ? payload.nomination || payload : payload;\n const players = this._store.state.players.players;\n if (\n !nomination ||\n (players.length > nomination[0] && players.length > nomination[1])\n ) {\n this.setVotingSpeed(this._store.state.session.votingSpeed);\n this._send(\"nomination\", nomination);\n }\n }\n\n /**\n * Set the isVoteInProgress status. ST only\n */\n setVoteInProgress() {\n if (this._isSpectator) return;\n this._send(\"isVoteInProgress\", this._store.state.session.isVoteInProgress);\n }\n\n /**\n * Send the isNight status. ST only\n */\n setIsNight() {\n if (this._isSpectator) return;\n this._send(\"isNight\", this._store.state.grimoire.isNight);\n }\n\n /**\n * Send the isVoteHistoryAllowed state. ST only\n */\n setVoteHistoryAllowed() {\n if (this._isSpectator) return;\n this._send(\n \"isVoteHistoryAllowed\",\n this._store.state.session.isVoteHistoryAllowed\n );\n }\n\n /**\n * Send the voting speed. ST only\n * @param votingSpeed voting speed in seconds, minimum 1\n */\n setVotingSpeed(votingSpeed) {\n if (this._isSpectator) return;\n if (votingSpeed) {\n this._send(\"votingSpeed\", votingSpeed);\n }\n }\n\n /**\n * Set which player is on the block. ST only\n * @param playerIndex, player id or -1 for empty\n */\n setMarked(playerIndex) {\n if (this._isSpectator) return;\n this._send(\"marked\", playerIndex);\n }\n\n /**\n * Clear the vote history for everyone. ST only\n */\n clearVoteHistory() {\n if (this._isSpectator) return;\n this._send(\"clearVoteHistory\");\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\", [\n index,\n this._store.state.session.votes[index],\n !this._isSpectator\n ]);\n }\n }\n\n /**\n * Handle an incoming vote, but only if it is from ST or unlocked.\n * @param index\n * @param vote\n * @param fromST\n */\n _handleVote([index, vote, fromST]) {\n const { session, players } = this._store.state;\n const playerCount = players.players.length;\n const indexAdjusted =\n (index - 1 + playerCount - session.nomination[1]) % playerCount;\n if (fromST || indexAdjusted >= session.lockedVote - 1) {\n this._store.commit(\"session/vote\", [index, vote]);\n }\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. Player only\n * @param lock\n * @param vote\n * @private\n */\n _handleLock([lock, vote]) {\n if (!this._isSpectator) return;\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 /**\n * Swap two player seats. ST only\n * @param payload\n */\n swapPlayer(payload) {\n if (this._isSpectator) return;\n this._send(\"swap\", payload);\n }\n\n /**\n * Move a player to another seat. ST only\n * @param payload\n */\n movePlayer(payload) {\n if (this._isSpectator) return;\n this._send(\"move\", payload);\n }\n\n /**\n * Remove a player. ST only\n * @param payload\n */\n removePlayer(payload) {\n if (this._isSpectator) return;\n this._send(\"remove\", payload);\n }\n}\n\nexport default store => {\n // setup\n const session = new LiveSession(store);\n\n // listen to mutations\n store.subscribe(({ type, payload }, state) => {\n switch (type) {\n case \"session/setSessionId\":\n if (state.session.sessionId) {\n session.connect(state.session.sessionId);\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/distributeRoles\":\n if (payload) {\n session.distributeRoles();\n }\n break;\n case \"session/nomination\":\n case \"session/setNomination\":\n session.nomination(payload);\n break;\n case \"session/setVoteInProgress\":\n session.setVoteInProgress(payload);\n break;\n case \"session/voteSync\":\n session.vote(payload);\n break;\n case \"session/lockVote\":\n session.lockVote();\n break;\n case \"session/setVotingSpeed\":\n session.setVotingSpeed(payload);\n break;\n case \"session/clearVoteHistory\":\n session.clearVoteHistory();\n break;\n case \"session/setVoteHistoryAllowed\":\n session.setVoteHistoryAllowed();\n break;\n case \"toggleNight\":\n session.setIsNight();\n break;\n case \"setEdition\":\n session.sendEdition();\n break;\n case \"players/setFabled\":\n session.sendFabled();\n break;\n case \"session/setMarkedPlayer\":\n session.setMarked(payload);\n break;\n case \"players/swap\":\n session.swapPlayer(payload);\n break;\n case \"players/move\":\n session.movePlayer(payload);\n break;\n case \"players/remove\":\n session.removePlayer(payload);\n break;\n case \"players/set\":\n case \"players/clear\":\n case \"players/add\":\n session.sendGamestate(\"\", true);\n break;\n case \"players/update\":\n if (payload.property === \"pronouns\") {\n session.sendPlayerPronouns(payload);\n } else {\n session.sendPlayer(payload);\n }\n break;\n }\n });\n\n // check for session Id in hash\n const sessionId = window.location.hash.substr(1);\n if (sessionId) {\n store.commit(\"session/setSpectator\", true);\n store.commit(\"session/setSessionId\", sessionId);\n store.commit(\"toggleGrimoire\", false);\n }\n};\n","const NEWPLAYER = {\n name: \"\",\n id: \"\",\n role: {},\n reminders: [],\n isVoteless: false,\n isDead: false,\n pronouns: \"\"\n};\n\nconst state = () => ({\n players: [],\n fabled: [],\n bluffs: []\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, fabled }) {\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 fabled.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 fabled.forEach(role => {\n const first = Math.max(firstNight.indexOf(role.firstNight), 0);\n const other = Math.max(otherNight.indexOf(role.otherNight), 0);\n nightOrder.set(role, { 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, pronouns }) => ({\n ...NEWPLAYER,\n name,\n id,\n pronouns\n }));\n commit(\"setFabled\", { fabled: [] });\n }\n commit(\"set\", players);\n commit(\"setBluff\");\n }\n};\n\nconst mutations = {\n clear(state) {\n state.players = [];\n state.bluffs = [];\n state.fabled = [];\n },\n set(state, players = []) {\n state.players = players;\n },\n /**\n The update mutation also has a property for isFromSockets\n this property can be addded to payload object for any mutations\n then can be used to prevent infinite loops when a property is\n able to be set from multiple different session on websockets.\n An example of this is in the sendPlayerPronouns and _updatePlayerPronouns\n in socket.js.\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 // hack: \"modify\" the array so that Vue notices something changed\n state.players.splice(0, 0);\n },\n move(state, [from, to]) {\n state.players.splice(to, 0, state.players.splice(from, 1)[0]);\n },\n setBluff(state, { index, role } = {}) {\n if (index !== undefined) {\n state.bluffs.splice(index, 1, role);\n } else {\n state.bluffs = [];\n }\n },\n setFabled(state, { index, fabled } = {}) {\n if (index !== undefined) {\n state.fabled.splice(index, 1);\n } else if (fabled) {\n if (!Array.isArray(fabled)) {\n state.fabled.push(fabled);\n } else {\n state.fabled = fabled;\n }\n }\n }\n};\n\nexport default {\n namespaced: true,\n state,\n getters,\n actions,\n mutations\n};\n","/**\n * Handle a vote request.\n * If the vote is from a seat that is already locked, ignore it.\n * @param state session state\n * @param index seat of the player in the circle\n * @param vote true or false\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 isReconnecting: false,\n playerCount: 0,\n ping: 0,\n playerId: \"\",\n claimedSeat: -1,\n nomination: false,\n votes: [],\n lockedVote: 0,\n votingSpeed: 3000,\n isVoteInProgress: false,\n voteHistory: [],\n markedPlayer: -1,\n isVoteHistoryAllowed: true,\n isRolesDistributed: false\n});\n\nconst getters = {};\n\nconst actions = {};\n\n// mutations helper functions\nconst set = key => (state, val) => {\n state[key] = val;\n};\n\nconst mutations = {\n setPlayerId: set(\"playerId\"),\n setSpectator: set(\"isSpectator\"),\n setReconnecting: set(\"isReconnecting\"),\n setPlayerCount: set(\"playerCount\"),\n setPing: set(\"ping\"),\n setVotingSpeed: set(\"votingSpeed\"),\n setVoteInProgress: set(\"isVoteInProgress\"),\n setMarkedPlayer: set(\"markedPlayer\"),\n setNomination: set(\"nomination\"),\n setVoteHistoryAllowed: set(\"isVoteHistoryAllowed\"),\n claimSeat: set(\"claimedSeat\"),\n distributeRoles: set(\"isRolesDistributed\"),\n setSessionId(state, sessionId) {\n state.sessionId = sessionId\n .toLocaleLowerCase()\n .replace(/[^0-9a-z]/g, \"\")\n .substr(0, 10);\n },\n nomination(\n state,\n { nomination, votes, votingSpeed, lockedVote, isVoteInProgress } = {}\n ) {\n state.nomination = nomination || false;\n state.votes = votes || [];\n state.votingSpeed = votingSpeed || state.votingSpeed;\n state.lockedVote = lockedVote || 0;\n state.isVoteInProgress = isVoteInProgress || false;\n },\n /**\n * Create an entry in the vote history log. Requires current player array because it might change later in the game.\n * Only stores votes that were completed.\n * @param state\n * @param players\n */\n addHistory(state, players) {\n if (!state.isVoteHistoryAllowed && state.isSpectator) return;\n if (!state.nomination || state.lockedVote <= players.length) return;\n const isExile = players[state.nomination[1]].role.team === \"traveler\";\n state.voteHistory.push({\n timestamp: new Date(),\n nominator: players[state.nomination[0]].name,\n nominee: players[state.nomination[1]].name,\n type: isExile ? \"Exile\" : \"Execution\",\n majority: Math.ceil(\n players.filter(player => !player.isDead || isExile).length / 2\n ),\n votes: players\n .filter((player, index) => state.votes[index])\n .map(({ name }) => name)\n });\n },\n clearVoteHistory(state) {\n state.voteHistory = [];\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\";\nimport fabledJSON from \"../fabled.json\";\nimport jinxesJSON from \"../hatred.json\";\n\nVue.use(Vuex);\n\n// helper functions\nconst getRolesByEdition = (edition = editionJSON[0]) => {\n return new Map(\n rolesJSON\n .filter(r => r.edition === edition.id || edition.roles.includes(r.id))\n .sort((a, b) => b.team.localeCompare(a.team))\n .map(role => [role.id, role])\n );\n};\n\nconst getTravelersNotInEdition = (edition = editionJSON[0]) => {\n return new Map(\n rolesJSON\n .filter(\n r =>\n r.team === \"traveler\" &&\n r.edition !== edition.id &&\n !edition.roles.includes(r.id)\n )\n .map(role => [role.id, role])\n );\n};\n\nconst set = key => ({ grimoire }, val) => {\n grimoire[key] = val;\n};\n\nconst toggle = key => ({ grimoire }, val) => {\n if (val === true || val === false) {\n grimoire[key] = val;\n } else {\n grimoire[key] = !grimoire[key];\n }\n};\n\nconst clean = id => id.toLocaleLowerCase().replace(/[^a-z0-9]/g, \"\");\n\n// global data maps\nconst editionJSONbyId = new Map(\n editionJSON.map(edition => [edition.id, edition])\n);\nconst rolesJSONbyId = new Map(rolesJSON.map(role => [role.id, role]));\nconst fabled = new Map(fabledJSON.map(role => [role.id, role]));\n\n// jinxes\nlet jinxes = {};\ntry {\n // Note: can't fetch live list due to lack of CORS headers\n // fetch(\"https://bloodontheclocktower.com/script/data/hatred.json\")\n // .then(res => res.json())\n // .then(jinxesJSON => {\n jinxes = new Map(\n jinxesJSON.map(({ id, hatred }) => [\n clean(id),\n new Map(hatred.map(({ id, reason }) => [clean(id), reason]))\n ])\n );\n // });\n} catch (e) {\n console.error(\"couldn't load jinxes\", e);\n}\n\n// base definition for custom roles\nconst customRole = {\n id: \"\",\n name: \"\",\n image: \"\",\n ability: \"\",\n edition: \"custom\",\n firstNight: 0,\n firstNightReminder: \"\",\n otherNight: 0,\n otherNightReminder: \"\",\n reminders: [],\n remindersGlobal: [],\n setup: false,\n team: \"townsfolk\",\n isCustom: true\n};\n\nexport default new Vuex.Store({\n modules: {\n players,\n session\n },\n state: {\n grimoire: {\n isNight: false,\n isNightOrder: true,\n isPublic: true,\n isMenuOpen: false,\n isStatic: false,\n isMuted: false,\n isImageOptIn: false,\n zoom: 0,\n background: \"\"\n },\n modals: {\n edition: false,\n fabled: false,\n gameState: false,\n nightOrder: false,\n reference: false,\n reminder: false,\n role: false,\n roles: false,\n voteHistory: false\n },\n edition: editionJSONbyId.get(\"tb\"),\n roles: getRolesByEdition(),\n otherTravelers: getTravelersNotInEdition(),\n fabled,\n jinxes\n },\n getters: {\n /**\n * Return all custom roles, with default values and non-essential data stripped.\n * Role object keys will be replaced with a numerical index to conserve bandwidth.\n * @param roles\n * @returns {[]}\n */\n customRolesStripped: ({ roles }) => {\n const customRoles = [];\n const customKeys = Object.keys(customRole);\n const strippedProps = [\n \"firstNightReminder\",\n \"otherNightReminder\",\n \"isCustom\"\n ];\n roles.forEach(role => {\n if (!role.isCustom) {\n customRoles.push({ id: role.id });\n } else {\n const strippedRole = {};\n for (let prop in role) {\n if (strippedProps.includes(prop)) {\n continue;\n }\n const value = role[prop];\n if (customKeys.includes(prop) && value !== customRole[prop]) {\n strippedRole[customKeys.indexOf(prop)] = value;\n }\n }\n customRoles.push(strippedRole);\n }\n });\n return customRoles;\n },\n rolesJSONbyId: () => rolesJSONbyId\n },\n mutations: {\n setZoom: set(\"zoom\"),\n setBackground: set(\"background\"),\n toggleMuted: toggle(\"isMuted\"),\n toggleMenu: toggle(\"isMenuOpen\"),\n toggleNightOrder: toggle(\"isNightOrder\"),\n toggleStatic: toggle(\"isStatic\"),\n toggleNight: toggle(\"isNight\"),\n toggleGrimoire: toggle(\"isPublic\"),\n toggleImageOptIn: toggle(\"isImageOptIn\"),\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 /**\n * Store custom roles\n * @param state\n * @param roles Array of role IDs or full role definitions\n */\n setCustomRoles(state, roles) {\n const processedRoles = roles\n // replace numerical role object keys with matching key names\n .map(role => {\n if (role[0]) {\n const customKeys = Object.keys(customRole);\n const mappedRole = {};\n for (let prop in role) {\n if (customKeys[prop]) {\n mappedRole[customKeys[prop]] = role[prop];\n }\n }\n return mappedRole;\n } else {\n return role;\n }\n })\n // clean up role.id\n .map(role => {\n role.id = clean(role.id);\n return role;\n })\n // map existing roles to base definition or pre-populate custom roles to ensure all properties\n .map(\n role =>\n rolesJSONbyId.get(role.id) ||\n state.roles.get(role.id) ||\n Object.assign({}, customRole, role)\n )\n // default empty icons and placeholders, clean up firstNight / otherNight\n .map(role => {\n if (rolesJSONbyId.get(role.id)) return role;\n role.imageAlt = // map team to generic icon\n {\n townsfolk: \"good\",\n outsider: \"outsider\",\n minion: \"minion\",\n demon: \"evil\",\n fabled: \"fabled\"\n }[role.team] || \"custom\";\n role.firstNight = Math.abs(role.firstNight);\n role.otherNight = Math.abs(role.otherNight);\n return role;\n })\n // filter out roles that don't match an existing role and also don't have name/ability/team\n .filter(role => role.name && role.ability && role.team)\n // sort by team\n .sort((a, b) => b.team.localeCompare(a.team));\n // convert to Map without Fabled\n state.roles = new Map(\n processedRoles\n .filter(role => role.team !== \"fabled\")\n .map(role => [role.id, role])\n );\n // update Fabled to include custom Fabled from this script\n state.fabled = new Map([\n ...processedRoles.filter(r => r.team === \"fabled\").map(r => [r.id, r]),\n ...fabledJSON.map(role => [role.id, role])\n ]);\n // update extraTravelers map to only show travelers not in this script\n state.otherTravelers = new Map(\n rolesJSON\n .filter(r => r.team === \"traveler\" && !roles.some(i => i.id === r.id))\n .map(role => [role.id, role])\n );\n },\n setEdition(state, edition) {\n if (editionJSONbyId.has(edition.id)) {\n state.edition = editionJSONbyId.get(edition.id);\n state.roles = getRolesByEdition(state.edition);\n state.otherTravelers = getTravelersNotInEdition(state.edition);\n } else {\n state.edition = edition;\n }\n state.modals.edition = false;\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 \"AddressCard\",\n \"BookOpen\",\n \"BookDead\",\n \"BroadcastTower\",\n \"Chair\",\n \"CheckSquare\",\n \"CloudMoon\",\n \"Cog\",\n \"Copy\",\n \"Clipboard\",\n \"Dice\",\n \"Dragon\",\n \"ExchangeAlt\",\n \"ExclamationTriangle\",\n \"FileCode\",\n \"FileUpload\",\n \"HandPaper\",\n \"HandPointRight\",\n \"Heartbeat\",\n \"Image\",\n \"Link\",\n \"MinusCircle\",\n \"PeopleArrows\",\n \"PlusCircle\",\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 \"VenusMars\",\n \"VolumeUp\",\n \"VolumeMute\",\n \"VoteYea\",\n \"WindowMaximize\",\n \"WindowMinimize\"\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","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=deec739a&scoped=true&lang=scss&\"","module.exports = __webpack_public_path__ + \"img/riot.a2890eee.png\";","module.exports = __webpack_public_path__ + \"img/fabled.227b24f9.png\";","module.exports = __webpack_public_path__ + \"img/cannibal.54808c1a.png\";","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/duchess.f8361787.png\";","module.exports = __webpack_public_path__ + \"img/goblin.ec4fe0e0.png\";","module.exports = __webpack_public_path__ + \"img/x.d2209023.png\";","module.exports = __webpack_public_path__ + \"img/tb-minion.b01c557e.png\";","var map = {\n\t\"./acrobat.png\": \"887b\",\n\t\"./alchemist.png\": \"dbe8\",\n\t\"./alhadikhia.png\": \"9989\",\n\t\"./amnesiac.png\": \"043b\",\n\t\"./angel.png\": \"bfe2\",\n\t\"./apprentice.png\": \"4bea\",\n\t\"./artist.png\": \"2cd0\",\n\t\"./assassin.png\": \"9187\",\n\t\"./atheist.png\": \"ca7a\",\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\"./boomdandy.png\": \"aae9\",\n\t\"./bountyhunter.png\": \"899d\",\n\t\"./buddhist.png\": \"1d01\",\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\"./choirboy.png\": \"d6bc\",\n\t\"./clockmaker.png\": \"f93f\",\n\t\"./courtier.png\": \"ee02\",\n\t\"./cultleader.png\": \"398f\",\n\t\"./custom.png\": \"fd83\",\n\t\"./damsel.png\": \"72d7\",\n\t\"./deusexfiasco.png\": \"9002\",\n\t\"./deviant.png\": \"3b65\",\n\t\"./devilsadvocate.png\": \"cd8b\",\n\t\"./djinn.png\": \"e222\",\n\t\"./doomsayer.png\": \"659f\",\n\t\"./dreamer.png\": \"71b8\",\n\t\"./drunk.png\": \"d97d\",\n\t\"./duchess.png\": \"5c56\",\n\t\"./empath.png\": \"bb7a\",\n\t\"./engineer.png\": \"ea17\",\n\t\"./evil.png\": \"c24f\",\n\t\"./eviltwin.png\": \"e014\",\n\t\"./exorcist.png\": \"5072\",\n\t\"./fabled.png\": \"5b44\",\n\t\"./fanggu.png\": \"6ac0\",\n\t\"./farmer.png\": \"7a7f\",\n\t\"./fearmonger.png\": \"d69f\",\n\t\"./fibbin.png\": \"6eb1\",\n\t\"./fiddler.png\": \"64be\",\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\"./gangster.png\": \"97c6\",\n\t\"./general.png\": \"ac9c\",\n\t\"./goblin.png\": \"5c8e\",\n\t\"./godfather.png\": \"99d0\",\n\t\"./golem.png\": \"4eb3\",\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\"./hellslibrarian.png\": \"a367\",\n\t\"./heretic.png\": \"5626\",\n\t\"./huntsman.png\": \"1923\",\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\"./king.png\": \"9639\",\n\t\"./klutz.png\": \"adfc\",\n\t\"./legion.png\": \"da81\",\n\t\"./leviathan.png\": \"2b04\",\n\t\"./librarian.png\": \"4d73\",\n\t\"./lilmonsta.png\": \"c492\",\n\t\"./lleech.png\": \"9f74\",\n\t\"./lunatic.png\": \"0b61\",\n\t\"./lycanthrope.png\": \"c316\",\n\t\"./magician.png\": \"ab3c\",\n\t\"./marionette.png\": \"e69f\",\n\t\"./mastermind.png\": \"f834\",\n\t\"./mathematician.png\": \"8888\",\n\t\"./matron.png\": \"b1cb\",\n\t\"./mayor.png\": \"b223\",\n\t\"./mephit.png\": \"df5e\",\n\t\"./mezepheles.png\": \"c7b7\",\n\t\"./minion.png\": \"75bc\",\n\t\"./minstrel.png\": \"4efd\",\n\t\"./monk.png\": \"6741\",\n\t\"./moonchild.png\": \"3f65\",\n\t\"./mutant.png\": \"17ad\",\n\t\"./nightwatchman.png\": \"3cd8\",\n\t\"./noble.png\": \"f7d3\",\n\t\"./nodashii.png\": \"68a4\",\n\t\"./oracle.png\": \"0c12\",\n\t\"./outsider.png\": \"2490\",\n\t\"./pacifist.png\": \"fff1\",\n\t\"./philosopher.png\": \"3603\",\n\t\"./pithag.png\": \"7f07\",\n\t\"./pixie.png\": \"a7b6\",\n\t\"./plus.png\": \"160b\",\n\t\"./po.png\": \"c73a\",\n\t\"./poisoner.png\": \"f282\",\n\t\"./politician.png\": \"07ab\",\n\t\"./poppygrower.png\": \"3273\",\n\t\"./preacher.png\": \"2094\",\n\t\"./professor.png\": \"b30c\",\n\t\"./psychopath.png\": \"fcdb\",\n\t\"./pukka.png\": \"a6a2\",\n\t\"./puzzlemaster.png\": \"27a3\",\n\t\"./ravenkeeper.png\": \"0c59\",\n\t\"./recluse.png\": \"177d\",\n\t\"./revolutionary.png\": \"aa2d\",\n\t\"./riot.png\": \"5740\",\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\"./sentinel.png\": \"af68\",\n\t\"./shabaloth.png\": \"0b29\",\n\t\"./slayer.png\": \"d62b\",\n\t\"./snakecharmer.png\": \"4021\",\n\t\"./snitch.png\": \"b7e8\",\n\t\"./soldier.png\": \"4e76\",\n\t\"./spiritofivory.png\": \"0d06\",\n\t\"./spy.png\": \"ec1e\",\n\t\"./stormcatcher.png\": \"a4c2\",\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\"./toymaker.png\": \"39eb\",\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/fiddler.d1730aaa.png\";","module.exports = __webpack_public_path__ + \"img/butler.f4fd1640.png\";","module.exports = __webpack_public_path__ + \"img/doomsayer.7ddbe262.png\";","module.exports = __webpack_public_path__ + \"img/juggler.819f88b8.png\";","module.exports = __webpack_public_path__ + \"img/balloonist.c35c6644.png\";","module.exports = __webpack_public_path__ + \"img/innkeeper.da072f0d.png\";","module.exports = __webpack_public_path__ + \"img/good.daf3b560.png\";","module.exports = __webpack_public_path__ + \"img/flowergirl.6196eef9.png\";","module.exports = __webpack_public_path__ + \"img/monk.ff81aec2.png\";","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=7e8e55da&scoped=true&lang=scss&\"","module.exports = __webpack_public_path__ + \"img/nodashii.5220cac3.png\";","module.exports = __webpack_public_path__ + \"img/saint.b7a15b85.png\";","module.exports = __webpack_public_path__ + \"img/fanggu.8fbd2e39.png\";","module.exports = __webpack_public_path__ + \"img/fibbin.9f01eb47.png\";","module.exports = __webpack_public_path__ + \"img/dreamer.fe5645e1.png\";","module.exports = __webpack_public_path__ + \"img/damsel.040c275d.png\";","module.exports = __webpack_public_path__ + \"img/tb-outsider.9ae6ef1b.png\";","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=334686bc&scoped=true&lang=scss&\"","module.exports = __webpack_public_path__ + \"img/bmr.1d06ca78.png\";","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&\"","module.exports = __webpack_public_path__ + \"img/minion.e02a5c96.png\";","module.exports = __webpack_public_path__ + \"img/farmer.1534709d.png\";","module.exports = __webpack_public_path__ + \"img/pithag.9bdfc5a3.png\";","module.exports = __webpack_public_path__ + \"img/bishop.1f25f092.png\";","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/acrobat.be49ceac.png\";","module.exports = __webpack_public_path__ + \"img/mathematician.cc67c625.png\";","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=365502ca&lang=scss&scoped=true&\"","module.exports = __webpack_public_path__ + \"img/bountyhunter.9ac71e5f.png\";","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=56f82741&lang=scss&scoped=true&\"","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!./VoteHistoryModal.vue?vue&type=style&index=0&id=482a37a8&lang=scss&scoped=true&\"","module.exports = __webpack_public_path__ + \"img/deusexfiasco.96e5d2eb.png\";","module.exports = __webpack_public_path__ + \"img/assassin.ae0f2fba.png\";","module.exports = __webpack_public_path__ + \"img/luf.8e16a6e6.png\";","module.exports = __webpack_public_path__ + \"img/king.3f722bb8.png\";","module.exports = __webpack_public_path__ + \"img/gangster.72167674.png\";","module.exports = __webpack_public_path__ + \"img/alhadikhia.1d64887e.png\";","module.exports = __webpack_public_path__ + \"img/godfather.d64b901e.png\";","module.exports = __webpack_public_path__ + \"img/thief.04afd5e0.png\";","module.exports = __webpack_public_path__ + \"img/lleech.da66feee.png\";","module.exports = __webpack_public_path__ + \"img/tinker.ce44bde6.png\";","module.exports = __webpack_public_path__ + \"img/hellslibrarian.3df1d423.png\";","module.exports = __webpack_public_path__ + \"img/tb-demon.0ac8cce6.png\";","module.exports = __webpack_public_path__ + \"img/stormcatcher.3f5110c6.png\";","module.exports = __webpack_public_path__ + \"img/pukka.1b1700de.png\";","module.exports = __webpack_public_path__ + \"img/voudon.4c0eb80c.png\";","module.exports = __webpack_public_path__ + \"img/pixie.2db5f1a2.png\";","module.exports = __webpack_public_path__ + \"img/revolutionary.68827d94.png\";","module.exports = __webpack_public_path__ + \"img/boomdandy.009c74b1.png\";","module.exports = __webpack_public_path__ + \"img/magician.c1bcf13c.png\";","module.exports = __webpack_public_path__ + \"img/seamstress.209ed80b.png\";","module.exports = __webpack_public_path__ + \"img/general.2fc65230.png\";","module.exports = __webpack_public_path__ + \"img/klutz.99df79cb.png\";","module.exports = __webpack_public_path__ + \"img/sentinel.93d312eb.png\";","module.exports = __webpack_public_path__ + \"img/matron.6e1551e5.png\";","module.exports = __webpack_public_path__ + \"img/mayor.da8876ae.png\";","module.exports = __webpack_public_path__ + \"img/professor.48f01bcb.png\";","module.exports = __webpack_public_path__ + \"img/investigator.a817cc04.png\";","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!./NightOrderModal.vue?vue&type=style&index=0&id=ec47598c&lang=scss&scoped=true&\"","module.exports = __webpack_public_path__ + \"img/snitch.0f51b730.png\";","module.exports = __webpack_public_path__ + \"img/tealady.5fc21e59.png\";","module.exports = __webpack_public_path__ + \"img/empath.b772c7ff.png\";","module.exports = __webpack_public_path__ + \"img/angel.cae6c8fc.png\";","module.exports = __webpack_public_path__ + \"img/evil.8723a4ee.png\";","module.exports = __webpack_public_path__ + \"img/lycanthrope.48660758.png\";","module.exports = __webpack_public_path__ + \"img/lilmonsta.4814ed76.png\";","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=e858a1da&lang=scss&scoped=true&\"","module.exports = __webpack_public_path__ + \"img/fisherman.0511031e.png\";","module.exports = __webpack_public_path__ + \"img/po.015a8956.png\";","module.exports = __webpack_public_path__ + \"img/mezepheles.b1f4ea9e.png\";","module.exports = __webpack_public_path__ + \"img/grandmother.18ee536e.png\";","module.exports = __webpack_public_path__ + \"img/atheist.d8060ae8.png\";","module.exports = __webpack_public_path__ + \"img/gossip.5165a7ee.png\";","module.exports = __webpack_public_path__ + \"img/bmr-demon.75dfa056.png\";","module.exports = __webpack_public_path__ + \"img/devilsadvocate.18bb00ce.png\";","var map = {\n\t\"./bmr-demon.png\": \"cae1\",\n\t\"./bmr-minion.png\": \"28bf\",\n\t\"./bmr-outsider.png\": \"e898\",\n\t\"./bmr-townsfolk.png\": \"e988\",\n\t\"./bmr.png\": \"7496\",\n\t\"./custom.png\": \"441d\",\n\t\"./luf.png\": \"92d8\",\n\t\"./snv-demon.png\": \"f347\",\n\t\"./snv-minion.png\": \"451a\",\n\t\"./snv-outsider.png\": \"4dd9\",\n\t\"./snv-townsfolk.png\": \"ed00\",\n\t\"./snv.png\": \"2fd0\",\n\t\"./tb-demon.png\": \"a3b0\",\n\t\"./tb-minion.png\": \"5f4e\",\n\t\"./tb-outsider.png\": \"73a1\",\n\t\"./tb-townsfolk.png\": \"f7a3\",\n\t\"./tb.png\": \"0aaa\"\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 = \"ce23\";","module.exports = __webpack_public_path__ + \"img/beggar.90311684.png\";","module.exports = __webpack_public_path__ + \"img/slayer.4cde6d70.png\";","module.exports = __webpack_public_path__ + \"img/fearmonger.4233784c.png\";","module.exports = __webpack_public_path__ + \"img/choirboy.9d62c6b3.png\";","module.exports = __webpack_public_path__ + \"img/savant.0fe828cf.png\";","module.exports = __webpack_public_path__ + \"img/drunk.947841e5.png\";","module.exports = __webpack_public_path__ + \"img/legion.a5ecb237.png\";","module.exports = __webpack_public_path__ + \"img/alchemist.c860a284.png\";","module.exports = __webpack_public_path__ + \"img/gambler.7e6e9736.png\";","module.exports = __webpack_public_path__ + \"img/gstone.c4d4dc84.png\";","module.exports = __webpack_public_path__ + \"img/mephit.b1f4ea9e.png\";","module.exports = store => {\n const updatePagetitle = isPublic =>\n (document.title = `Blood on the Clocktower ${\n isPublic ? \"Town Square\" : \"Grimoire\"\n }`);\n\n // initialize data\n if (localStorage.getItem(\"background\")) {\n store.commit(\"setBackground\", localStorage.background);\n }\n if (localStorage.getItem(\"muted\")) {\n store.commit(\"toggleMuted\", true);\n }\n if (localStorage.getItem(\"static\")) {\n store.commit(\"toggleStatic\", true);\n }\n if (localStorage.getItem(\"imageOptIn\")) {\n store.commit(\"toggleImageOptIn\", true);\n }\n if (localStorage.getItem(\"zoom\")) {\n store.commit(\"setZoom\", parseFloat(localStorage.getItem(\"zoom\")));\n }\n if (localStorage.getItem(\"isGrimoire\")) {\n store.commit(\"toggleGrimoire\", false);\n updatePagetitle(false);\n }\n if (localStorage.roles !== undefined) {\n store.commit(\"setCustomRoles\", JSON.parse(localStorage.roles));\n store.commit(\"setEdition\", { id: \"custom\" });\n }\n if (localStorage.edition !== undefined) {\n // this will initialize state.roles for official editions\n store.commit(\"setEdition\", JSON.parse(localStorage.edition));\n }\n if (localStorage.bluffs !== undefined) {\n JSON.parse(localStorage.bluffs).forEach((role, index) => {\n store.commit(\"players/setBluff\", {\n index,\n role: store.state.roles.get(role) || {}\n });\n });\n }\n if (localStorage.fabled !== undefined) {\n store.commit(\"players/setFabled\", {\n fabled: JSON.parse(localStorage.fabled).map(\n fabled => store.state.fabled.get(fabled.id) || fabled\n )\n });\n }\n if (localStorage.players) {\n store.commit(\n \"players/set\",\n JSON.parse(localStorage.players).map(player => ({\n ...player,\n role:\n store.state.roles.get(player.role) ||\n store.getters.rolesJSONbyId.get(player.role) ||\n {}\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\") && !window.location.hash.substr(1)) {\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 if (!state.grimoire.isPublic) {\n localStorage.setItem(\"isGrimoire\", 1);\n } else {\n localStorage.removeItem(\"isGrimoire\");\n }\n updatePagetitle(state.grimoire.isPublic);\n break;\n case \"setBackground\":\n if (payload) {\n localStorage.setItem(\"background\", payload);\n } else {\n localStorage.removeItem(\"background\");\n }\n break;\n case \"toggleMuted\":\n if (state.grimoire.isMuted) {\n localStorage.setItem(\"muted\", 1);\n } else {\n localStorage.removeItem(\"muted\");\n }\n break;\n case \"toggleStatic\":\n if (state.grimoire.isStatic) {\n localStorage.setItem(\"static\", 1);\n } else {\n localStorage.removeItem(\"static\");\n }\n break;\n case \"toggleImageOptIn\":\n if (state.grimoire.isImageOptIn) {\n localStorage.setItem(\"imageOptIn\", 1);\n } else {\n localStorage.removeItem(\"imageOptIn\");\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 localStorage.setItem(\"edition\", JSON.stringify(payload));\n if (state.edition.isOfficial) {\n localStorage.removeItem(\"roles\");\n }\n break;\n case \"setCustomRoles\":\n if (!payload.length) {\n localStorage.removeItem(\"roles\");\n } else {\n localStorage.setItem(\"roles\", JSON.stringify(payload));\n }\n break;\n case \"players/setBluff\":\n localStorage.setItem(\n \"bluffs\",\n JSON.stringify(state.players.bluffs.map(({ id }) => id))\n );\n break;\n case \"players/setFabled\":\n localStorage.setItem(\n \"fabled\",\n JSON.stringify(\n state.players.fabled.map(fabled =>\n fabled.isCustom ? fabled : { id: fabled.id }\n )\n )\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.10ab31a8.png\";","module.exports = __webpack_public_path__ + \"img/djinn.e1c507e5.png\";","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=14bc5701&scoped=true&lang=scss&\"","module.exports = __webpack_public_path__ + \"img/marionette.8aceb38b.png\";","module.exports = __webpack_public_path__ + \"img/bmr-outsider.971a3d5d.png\";","module.exports = __webpack_public_path__ + \"img/bmr-townsfolk.9bf859b4.png\";","module.exports = __webpack_public_path__ + \"img/engineer.1e44d3e4.png\";","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!./GameStateModal.vue?vue&type=style&index=0&id=7971ea6f&lang=scss&scoped=true&\"","module.exports = __webpack_public_path__ + \"img/spy.d411c998.png\";","module.exports = __webpack_public_path__ + \"img/snv-townsfolk.83cf9a72.png\";","module.exports = __webpack_public_path__ + \"img/courtier.7060de3f.png\";","module.exports = __webpack_public_path__ + \"img/gunslinger.1360a66d.png\";","module.exports = __webpack_public_path__ + \"img/virgin.a4b2d7a4.png\";","module.exports = __webpack_public_path__ + \"img/judge.b1034c71.png\";","module.exports = __webpack_public_path__ + \"img/sweetheart.29949c36.png\";","module.exports = __webpack_public_path__ + \"img/poisoner.61c83e0f.png\";","module.exports = __webpack_public_path__ + \"img/scarletwoman.5377675d.png\";","module.exports = __webpack_public_path__ + \"img/snv-demon.2fe55248.png\";","module.exports = __webpack_public_path__ + \"img/vigormortis.981de17e.png\";","module.exports = __webpack_public_path__ + \"img/witch.f75f1601.png\";","module.exports = __webpack_public_path__ + \"media/countdown.1462f20c.mp3\";","module.exports = __webpack_public_path__ + \"img/tb-townsfolk.550a119b.png\";","module.exports = __webpack_public_path__ + \"img/noble.3909ea29.png\";","module.exports = __webpack_public_path__ + \"img/mastermind.91ffd4fd.png\";","module.exports = __webpack_public_path__ + \"img/clockmaker.5378c03d.png\";","module.exports = __webpack_public_path__ + \"img/barber.6c91c1f5.png\";","module.exports = __webpack_public_path__ + \"img/psychopath.cd71a0a2.png\";","module.exports = __webpack_public_path__ + \"img/custom.402e9bc3.png\";","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!./FabledModal.vue?vue&type=style&index=0&id=d6b399a0&scoped=true&lang=scss&\"","module.exports = __webpack_public_path__ + \"img/pacifist.0637fdf0.png\";"],"sourceRoot":""}