-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.js
More file actions
2 lines (2 loc) · 3.68 KB
/
index.js
File metadata and controls
2 lines (2 loc) · 3.68 KB
1
2
(()=>{"use strict";var e={d:(t,r)=>{for(var n in r)e.o(r,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:r[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};e.d({},{D:()=>o});var t="chat-welcome-message-shown";function _slicedToArray(e,t){return function _arrayWithHoles(e){if(Array.isArray(e))return e}(e)||function _iterableToArrayLimit(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,s=[],c=!0,l=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw o}}return s}}(e,t)||function _unsupportedIterableToArray(e,t){if(!e)return;if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _arrayLikeToArray(e,t)}(e,t)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var r={},n=!1;function registerSettings(){!function registerSettingsArray(e){for(var t=function _loop(){var e=_slicedToArray(i[a],2),t=e[0],s=e[1];if(s.name||(s.name="".concat(o,".settings.").concat(t,".name")),s.hint||(s.hint="".concat(o,".settings.").concat(t,".hint")),void 0===s.useCache&&(s.useCache=n),s.useCache){var c=s.onChange;s.onChange&&(s.onChange=function(e){r[t]=e,c&&c(e)})}game.settings.register(o,t,s),s.useCache&&(r[t]=function getSetting(e){var t;return null!==(t=r[e])&&void 0!==t?t:game.settings.get(o,e)}(t))},a=0,i=Object.entries(e);a<i.length;a++)t()}({})}var o="module-id";Hooks.on("init",(function(){registerSettings()})),Hooks.on("ready",(function(){!function showWelcome(){if(game.user.isGM){var e=game.modules.get(o),r="2Iq_so_GsLA",n='<iframe width="100%" height="auto" src="https://www.youtube.com/embed/'.concat(r,'" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>'),a=e.protected?"https://wiki.theripper93.com/premium/".concat(o):"https://wiki.theripper93.com/free/".concat(o),i="<h1>".concat(e.title,'</h1>\n <p>by <a href="https://theripper93.com">theripper93</a></p>\n <p><strong>New to ').concat(e.title,'? Visit the <a href="').concat(a,'">Wiki</a> for a quickstart guide and resources.</strong></p>\n ').concat(r?n:"",'\n <p>Special thanks to all my <a href="https://www.patreon.com/theripper93">Patreons</a> for making ongoing updates and development possible. Supporting gives you access to <strong>30+ premium modules</strong> and <strong>priority support</strong>.</p>\n <p><strong>Explore all resources and modules:</strong></p> <ul>\n <li><a href="https://theripper93.com/">Check out all my free and premium modules</a></li>\n <li><a href="').concat(a,'">').concat(e.title,' Wiki</a></li>\n <li><a href="https://www.patreon.com/theripper93">Support on Patreon</a></li>\n <li><a href="https://discord.theripper93.com/">Discord Channel</a></li>\n </ul>');game.settings.register(o,t,{default:!1,type:Boolean,scope:"world",config:!1}),game.settings.get(o,t)||(ChatMessage.create({user:game.user.id,whisper:game.users.filter((function(e){return e.isGM})).map((function(e){return e.id})),blind:!0,content:i}),game.settings.set(o,t,!0))}}()}))})();
//# sourceMappingURL=index.js.map