mirror of
https://github.com/NovaGM/ModuleBuilder.git
synced 2024-08-15 00:23:33 +00:00
3 lines
No EOL
8 KiB
JavaScript
3 lines
No EOL
8 KiB
JavaScript
parcelRequire=function(e,r,t,n){var i,o="function"==typeof parcelRequire&&parcelRequire,u="function"==typeof require&&require;function f(t,n){if(!r[t]){if(!e[t]){var i="function"==typeof parcelRequire&&parcelRequire;if(!n&&i)return i(t,!0);if(o)return o(t,!0);if(u&&"string"==typeof t)return u(t);var c=new Error("Cannot find module '"+t+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(r){return e[t][1][r]||r},p.cache={};var l=r[t]=new f.Module(t);e[t][0].call(l.exports,p,l,l.exports,this)}return r[t].exports;function p(e){return f(p.resolve(e))}}f.isParcelRequire=!0,f.Module=function(e){this.id=e,this.bundle=f,this.exports={}},f.modules=e,f.cache=r,f.parent=o,f.register=function(r,t){e[r]=[function(e,r){r.exports=t},{}]};for(var c=0;c<t.length;c++)try{f(t[c])}catch(e){i||(i=e)}if(t.length){var l=f(t[t.length-1]);"object"==typeof exports&&"undefined"!=typeof module?module.exports=l:"function"==typeof define&&define.amd?define(function(){return l}):n&&(this[n]=l)}if(parcelRequire=f,i)throw i;return f}({"index.js":[function(require,module,exports) {
|
|
"use strict";function t(t,n){return a(t)||r(t,n)||o(t,n)||e()}function e(){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 o(t,e){if(t){if("string"==typeof t)return n(t,e);var o=Object.prototype.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?n(t,e):void 0}}function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,n=new Array(e);o<e;o++)n[o]=t[o];return n}function r(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var o=[],n=!0,r=!1,a=void 0;try{for(var c,u=t[Symbol.iterator]();!(n=(c=u.next()).done)&&(o.push(c.value),!e||o.length!==e);n=!0);}catch(i){r=!0,a=i}finally{try{n||null==u.return||u.return()}finally{if(r)throw a}}return o}}function a(t){if(Array.isArray(t))return t}function c(t,e,o,n,r,a,c){try{var u=t[a](c),i=u.value}catch(s){return void o(s)}u.done?e(i):Promise.resolve(i).then(n,r)}function u(t){return function(){var e=this,o=arguments;return new Promise(function(n,r){var a=t.apply(e,o);function u(t){c(a,n,r,u,i,"next",t)}function i(t){c(a,n,r,u,i,"throw",t)}u(void 0)})}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var i,s,d,l,m,p,f,h,y,g,v,x="1.1.1",C={statusIcon:!1,statusMask:!1,comfyAvatar:!0,coloredEmoji:!0,userButtons:"#096dc0",chatButtons:"#6E85D3",circles:!0,tooltips:!0,seperators:!1,watermark:!1},T=function(t){if(t)(s=document.createElement("style")).appendChild(document.createTextNode(":root {\n --popout-status-icon: block !important;\n }")),document.head.appendChild(s);else try{s.remove()}catch(e){}},b=function(t){if(t)(d=document.createElement("style")).appendChild(document.createTextNode(":root {\n --popout-status-mask: url(#svg-mask-avatar-status-round-80) !important;\n }")),document.head.appendChild(d);else try{d.remove()}catch(e){}},k=function(t){if(t)try{l.remove()}catch(e){}else(l=document.createElement("style")).appendChild(document.createTextNode(":root {\n --avatar-radius: 100% !important;\n }")),document.head.appendChild(l)},E=function(t){if(t)try{m.remove()}catch(e){}else(m=document.createElement("style")).appendChild(document.createTextNode(":root {\n --colored-emoji: grayscale(100%) !important;\n }")),document.head.appendChild(m)},w=function(t){try{p.remove()}catch(e){}"#096dc0"!=t&&((p=document.createElement("style")).appendChild(document.createTextNode(":root {\n --user-buttons-color: ".concat(t," !important;\n }"))),document.head.appendChild(p))},N=function(t){try{f.remove()}catch(e){}"#6E85D3"!=t&&((f=document.createElement("style")).appendChild(document.createTextNode(":root {\n --chat-buttons: ".concat(t," !important;\n }"))),document.head.appendChild(f))},S=function(t){if(t)try{h.remove()}catch(e){}else(h=document.createElement("style")).appendChild(document.createTextNode(":root {\n --role-circle: 0px !important;\n }")),document.head.appendChild(h)},A=function(t){if(t)try{y.remove()}catch(e){}else(y=document.createElement("style")).appendChild(document.createTextNode(":root {\n --tooltips: none !important;\n }")),document.head.appendChild(y)},I=function(t){if(t)(g=document.createElement("style")).appendChild(document.createTextNode(":root {\n --seperators: block !important;\n }")),document.head.appendChild(g);else try{g.remove()}catch(e){}},j=function(t){if(t)(v=document.createElement("style")).appendChild(document.createTextNode(":root {\n --discord-logo: block !important;\n }")),document.head.appendChild(v);else try{v.remove()}catch(e){}},B={goosemodHandlers:{onImport:function(){var t=u(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:(i=document.createElement("style")).appendChild(document.createTextNode('@import url("https://raw.githack.com/NYRI4/Comfy-theme/main/BetterDiscord/comfy.theme.css");')),document.head.appendChild(i),T(C.statusIcon),b(C.statusMask),k(C.comfyAvatar),E(C.coloredEmoji),w(C.userButtons),N(C.chatButtons),S(C.circles),A(C.tooltips),I(C.seperators),j(C.watermark);case 13:case"end":return t.stop()}},t)}));return function(){return t.apply(this,arguments)}}(),onLoadingFinished:function(){var t=u(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",goosemodScope.settings.createItem("Comfy Theme",["(v".concat(x,")"),{type:"header",text:"BetterAvatar Popout"},{type:"toggle",text:"User Modal Status Icon",onToggle:function(t){C.statusIcon=t,T(t)},isToggled:function(){return C.statusIcon}},{type:"toggle",text:"User Modal Status Mask",onToggle:function(t){C.statusMask=t,b(t)},isToggled:function(){return C.statusMask}},{type:"toggle",text:"Comfy User Modal Avatar",subtext:"Unfortunately, text inputs are not yet avaiable for settings. Disable to use the normal radius of user modal avatars. (Not available while user modal status masks are enabled.)",onToggle:function(t){C.comfyAvatar=t,k(t)},isToggled:function(){return C.comfyAvatar}},{type:"header",text:"Other Settings"},{type:"toggle",text:"Colored Emoji Picker",onToggle:function(t){C.coloredEmoji=t,E(t)},isToggled:function(){return C.coloredEmoji}},{type:"text-and-color",text:"User Settings, Mute and Deafen Buttons Color",subtext:"Default: rgb(9,109,192)",oninput:function(t){C.userButtons=t,w(t)}},{type:"text-and-color",text:"User Buttons Color",subtext:"Default: rgb(110,133,211)",oninput:function(t){C.chatButtons=t,N(t)}},{type:"toggle",text:"Circles Next to Role Names",onToggle:function(t){C.circles=t,S(t)},isToggled:function(){return C.circles}},{type:"toggle",text:"Tooltips",onToggle:function(t){C.tooltips=t,A(t)},isToggled:function(){return C.tooltips}},{type:"toggle",text:"Seperators",onToggle:function(t){C.seperators=t,I(t)},isToggled:function(){return C.seperators}},{type:"toggle",text:"Discord Watermark",onToggle:function(t){C.watermark=t,j(t)},isToggled:function(){return C.watermark}}]));case 1:case"end":return t.stop()}},t)}));return function(){return t.apply(this,arguments)}}(),onRemove:function(){var t=u(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:goosemodScope.settings.removeItem("Comfy Theme"),i.remove();try{s.remove()}catch(e){}try{d.remove()}catch(o){}try{l.remove()}catch(n){}try{m.remove()}catch(r){}try{p.remove()}catch(a){}try{f.remove()}catch(c){}try{h.remove()}catch(u){}try{y.remove()}catch(x){}try{g.remove()}catch(C){}try{v.remove()}catch(T){}case 12:case"end":return t.stop()}},t)}));return function(){return t.apply(this,arguments)}}(),getSettings:function(){return[C]},loadSettings:function(e){var o=t(e,1)[0];T((C=o).statusIcon),b(C.statusMask),k(C.comfyAvatar),E(C.coloredEmoji),w(C.userButtons),N(C.chatButtons),S(C.circles),A(C.tooltips),I(C.seperators),j(C.watermark)}}};exports.default=B;
|
|
},{}]},{},["index.js"], null);parcelRequire('index.js').default |