ModuleBuilder/dist/module/Comfy Theme.js

3 lines
8.0 KiB
JavaScript
Raw Normal View History

2021-01-23 14:19:51 +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}({"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){}},M=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){}},j={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/BetterDiscor
},{}]},{},["index.js"], null);parcelRequire('index.js').default