-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.js
2 lines (2 loc) · 2.03 KB
/
index.js
1
2
(()=>{"use strict";var r={d:(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o:(r,t)=>Object.prototype.hasOwnProperty.call(r,t)};function _slicedToArray(r,t){return function _arrayWithHoles(r){if(Array.isArray(r))return r}(r)||function _iterableToArrayLimit(r,t){var e=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=e){var n,a,o,i,c=[],u=!0,l=!1;try{if(o=(e=e.call(r)).next,0===t){if(Object(e)!==e)return;u=!1}else for(;!(u=(n=o.call(e)).done)&&(c.push(n.value),c.length!==t);u=!0);}catch(r){l=!0,a=r}finally{try{if(!u&&null!=e.return&&(i=e.return(),Object(i)!==i))return}finally{if(l)throw a}}return c}}(r,t)||function _unsupportedIterableToArray(r,t){if(!r)return;if("string"==typeof r)return _arrayLikeToArray(r,t);var e=Object.prototype.toString.call(r).slice(8,-1);"Object"===e&&r.constructor&&(e=r.constructor.name);if("Map"===e||"Set"===e)return Array.from(r);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return _arrayLikeToArray(r,t)}(r,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(r,t){(null==t||t>r.length)&&(t=r.length);for(var e=0,n=new Array(t);e<t;e++)n[e]=r[e];return n}r.d({},{c:()=>n});var t={},e=!1;function registerSettings(){!function registerSettingsArray(r){for(var a=function _loop(){var r=_slicedToArray(i[o],2),a=r[0],c=r[1];if(c.name||(c.name="".concat(n,".settings.").concat(a,".name")),c.hint||(c.hint="".concat(n,".settings.").concat(a,".hint")),void 0===c.useCache&&(c.useCache=e),c.useCache){var u=c.onChange;c.onChange&&(c.onChange=function(r){t[a]=r,u&&u(r)})}game.settings.register(n,a,c),c.useCache&&(t[a]=function getSetting(r){var e;return null!==(e=t[r])&&void 0!==e?e:game.settings.get(n,r)}(a))},o=0,i=Object.entries(r);o<i.length;o++)a()}({})}var n="module-id";Hooks.on("init",(function(){registerSettings()}))})();
//# sourceMappingURL=index.js.map