UNPKG

charades-keywords

Version:
2 lines 4.26 kB
!function(e,o){"object"==typeof exports&&"object"==typeof module?module.exports=o():"function"==typeof define&&define.amd?define([],o):"object"==typeof exports?exports.charadesKeywords=o():e.charadesKeywords=o()}(this,function(){return function(e){function o(r){if(t[r])return t[r].exports;var c=t[r]={exports:{},id:r,loaded:!1};return e[r].call(c.exports,c,c.exports,o),c.loaded=!0,c.exports}var t={};return o.m=e,o.c=t,o.p="",o(0)}([function(e,o,t){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var r=t(1),c=t(2),i={all:r.keywords,random:function(e,o){if(o&&o.complexity&&void 0===o.category){var t=r.keywords.filter(function(e){return e.complexity===o.complexity});return(0,c.getRandomItems)(e,t)}if(o&&o.category&&void 0===o.complexity){var i=r.keywords.filter(function(e){return e.category===o.category});return(0,c.getRandomItems)(e,i)}if(o&&o.category&&o.complexity){var a=r.keywords.filter(function(e){return e.category===o.category&&e.complexity===o.complexity});return(0,c.getRandomItems)(e,a)}return(0,c.getRandomItems)(e,r.keywords)}};o["default"]=i},function(e,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var t=o.CATEGORIES={PERSON:"person",ANIMAL:"animal",ITEM:"item",PROVERB:"proverb",ACTIVITY:"activity",TITLE:"title",OTHER:"other"},r=o.COMPLEXITY={EASY:"easy",MEDIUM:"medium",HARD:"hard"};o.keywords=[{category:t.ACTIVITY,complexity:r.EASY,word:"Pływanie"},{category:t.ACTIVITY,complexity:r.EASY,word:"Bieganie"},{category:t.ACTIVITY,complexity:r.EASY,word:"Jedzenie"},{category:t.ACTIVITY,complexity:r.EASY,word:"Spanie"},{category:t.ACTIVITY,complexity:r.EASY,word:"Pisanie"},{category:t.ACTIVITY,complexity:r.MEDIUM,word:"Strzelać z łuku"},{category:t.ACTIVITY,complexity:r.MEDIUM,word:"Pisać na klawiaturze"},{category:t.ACTIVITY,complexity:r.MEDIUM,word:"Piłka nożna"},{category:t.ACTIVITY,complexity:r.MEDIUM,word:"Rzut oszczepem"},{category:t.ACTIVITY,complexity:r.MEDIUM,word:"Czytać książkę"},{category:t.ACTIVITY,complexity:r.HARD,word:"Martwy ciąg"},{category:t.ACTIVITY,complexity:r.HARD,word:"Kontemplować"},{category:t.ACTIVITY,complexity:r.HARD,word:"Morsować"},{category:t.ACTIVITY,complexity:r.HARD,word:"Kontemplować"},{category:t.ACTIVITY,complexity:r.HARD,word:"Krzyczeć wniebogłosy"},{category:t.ACTIVITY,complexity:r.HARD,word:"Emancypacja kobiet"},{category:t.OTHER,complexity:r.MEDIUM,word:"Prohibicja"},{category:t.TITLE,complexity:r.HARD,word:"Ostry cień mgły"},{category:t.OTHER,complexity:r.MEDIUM,word:"Rozrywka"},{category:t.OTHER,complexity:r.HARD,word:"Sieć 5G"},{category:t.OTHER,complexity:r.HARD,word:"Stulejka"},{category:t.ACTIVITY,complexity:r.EASY,word:"Bieganie"},{category:t.ACTIVITY,complexity:r.EASY,word:"Spanie"},{category:t.ACTIVITY,complexity:r.EASY,word:"Leżenie"},{category:t.ACTIVITY,complexity:r.EASY,word:"Chodzenie"},{category:t.ACTIVITY,complexity:r.EASY,word:"Rzucanie"},{category:t.ACTIVITY,complexity:r.MEDIUM,word:"Trekking"},{category:t.ANIMAL,complexity:r.HARD,word:"Czerwona panda"},{category:t.ANIMAL,complexity:r.MEDIUM,word:"Delfin"},{category:t.ANIMAL,complexity:r.EASY,word:"Krowa"},{category:t.ANIMAL,complexity:r.EASY,word:"Pies"},{category:t.ANIMAL,complexity:r.EASY,word:"Kot"},{category:t.ACTIVITY,complexity:r.HARD,word:"Kłusowanie"},{category:t.PERSON,complexity:r.EASY,word:"Mariusz Pudzianowski"},{category:t.PERSON,complexity:r.EASY,word:"Kamil Stoch"},{category:t.TITLE,complexity:r.EASY,word:"Harry Potter"},{category:t.TITLE,complexity:r.EASY,word:"Król lew"},{category:t.ITEM,complexity:r.MEDIUM,word:"Świeczka zapachowa"},{category:t.PROVERB,complexity:r.MEDIUM,word:"Baba z wozu koniom lżej"},{category:t.PROVERB,complexity:r.HARD,word:"Niósl wilk razy kilka, ponieśli i wilka"},{category:t.ACTIVITY,complexity:r.EASY,word:"Oglądanie telewizji"},{category:t.ITEM,complexity:r.EASY,word:"Kierownica"},{category:t.ACTIVITY,complexity:r.HARD,word:"Kwestionowanie"}]},function(e,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0});o.getRandomItems=function(e,o){if(e){var t=[];if(e>o.length)return o;for(;t.length<e;){var r=o[Math.floor(Math.random()*o.length)];t.includes(r)||t.push(r)}return t}return[o[Math.floor(Math.random()*o.length)]]}}])}); //# sourceMappingURL=index.umd.min.js.map