ModuleBuilder/dist/module/Comfy Theme.js

5 lines
8.8 KiB
JavaScript
Raw Normal View History

2021-02-11 22:03:48 +00:00
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}({"../goosemodModule.json":[function(require,module,exports) {
2021-02-12 17:07:59 +00:00
module.exports={main:"src/index.js",version:"1.1.2",name:"Comfy Theme",authors:["265924886461939712","441384103946878987"],description:"A simple, customizable, comfy theme. (Ported with the addition of settings by Liam The Protogen.)",images:["https://raw.githubusercontent.com/Controlfreak707/GM-Comfy-Theme/main/images/image-a.png","https://raw.githubusercontent.com/Controlfreak707/GM-Comfy-Theme/main/images/image-b.png","https://raw.githubusercontent.com/Controlfreak707/GM-Comfy-Theme/main/images/image-c.png","https://raw.githubusercontent.com/Controlfreak707/GM-Comfy-Theme/main/images/image-d.png"],tags:["themes"]};
2021-02-11 22:03:48 +00:00
},{}],"index.js":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=require("../goosemodModule.json");function e(t,e){return c(t)||a(t,e)||n(t,e)||o()}function o(){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 n(t,e){if(t){if("string"==typeof t)return r(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)?r(t,e):void 0}}function r(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 a(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 c(t){if(Array.isArray(t))return t}function u(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 i(t){return function(){var e=this,o=arguments;return new Promise(function(n,r){var a=t.apply(e,o);function c(t){u(a,n,r,c,i,"next",t)}function i(t){u(a,n,r,c,i,"throw",t)}c(void 0)})}}var s,d,l,m,p,f,h,y,g,v,x,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)(d=document.createElement("style")).appendChild(document.createTextNode(":root {\n --popout-status-icon: block !important;\n }")),document.head.appendChild(d);else try{d.remove()}catch(e){}},b=function(t){if(t)(l=document.createElement("style")).appendChild(document.createTextNode(":root {\n --popout-status-mask: url(#svg-mask-avatar-status-round-80) !important;\n }")),document.head.appendChild(l);else try{l.remove()}catch(e){}},k=function(t){if(t)try{m.remove()}catch(e){}else(m=document.createElement("style")).appendChild(document.createTextNode(":root {\n --avatar-radius: 100% !important;\n }")),document.head.appendChild(m)},E=function(t){if(t)try{p.remove()}catch(e){}else(p=document.createElement("style")).appendChild(document.createTextNode(":root {\n --colored-emoji: grayscale(100%) !important;\n }")),document.head.appendChild(p)},w=function(t){try{f.remove()}catch(e){}"#096dc0"!=t&&((f=document.createElement("style")).appendChild(document.createTextNode(":root {\n --user-buttons-color: ".concat(t," !important;\n }"))),document.head.appendChild(f))},N=function(t){try{h.remove()}catch(e){}"#6E85D3"!=t&&((h=document.createElement("style")).appendChild(document.createTextNode(":root {\n --chat-buttons: ".concat(t," !important;\n }"))),document.head.appendChild(h))},S=function(t){if(t)try{y.remove()}catch(e){}else(y=document.createElement("style")).appendChild(document.createTextNode(":root {\n --role-circle: 0px !important;\n }")),document.head.appendChild(y)},j=function(t){if(t)try{g.remove()}catch(e){}else(g=document.createElement("style")).appendChild(document.createTextNode(":root {\n --tooltips: none !important;\n }")),document.head.appendChild(g)},A=function(t){if(t)(v=document.createElement("style")).appendChild(document.createTextNode(":root {\n --seperators: block !important;\n }")),document.head.appendChild(v);else try{v.remove()}catch(e){}},I=function(t){if(t)(x=document.createElement("style")).appendChild(document.createTextNode(":root {\n --discord-logo: block !important;\n }")),document.head.appendChild(x);else try{x.remove()}catch(e){}},M={goosemodHandlers:{onImport:function(){var t=i(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:(s=document.createElement("style")).appendChild(document.createTextNode('@import url("https://raw.githack.com/NYRI4
},{"../goosemodModule.json":"../goosemodModule.json"}]},{},["index.js"], null);parcelRequire('index.js').default