ModuleBuilder/dist/module/Overlay User Panel.js

4 lines
3.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) {
var global = arguments[3];
var e=arguments[3];function n(e,n,r,a,t,o,s){try{var u=e[o](s),l=u.value}catch(i){return void r(i)}u.done?n(l):Promise.resolve(l).then(a,t)}function r(e){return function(){var r=this,a=arguments;return new Promise(function(t,o){var s=e.apply(r,a);function u(e){n(s,t,o,u,l,"next",e)}function l(e){n(s,t,o,u,l,"throw",e)}u(void 0)})}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var a="2.1.1";"undefined"!=typeof window&&void 0!==window.document||(e.window={document:{styleSheets:[0]}});var t,o=window.document.styleSheets[0],s={gooseModHandlers:{onImport:function(){var e=r(regeneratorRuntime.mark(function e(){var n;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:o.insertRule('body.user-panel-columns [aria-label="User area"] .container-3baos1 {\n flex-wrap: wrap;\n }',o.cssRules.length),o.insertRule('body.user-panel-columns [aria-label="User area"] .avatarWrapper-2yR4wp {\n transform: translate(0, 35%);\n }',o.cssRules.length),o.insertRule('body.user-panel-columns [aria-label="User area"] .nameTag-3uD-yy {\n width: 80%;\n flex-grow: 0;\n\n transform: translate(0, 35%);\n }',o.cssRules.length),o.insertRule('body.user-panel-columns [aria-label="User area"] .nameTag-3uD-yy + .directionRow-3v3tfG {\n margin: auto;\n\n padding: 3px;\n border-radius: 4px 0 0 0;\n\n transform: scale(1.3) translate(15.5%, -153%);\n\n background-color: var(--background-secondary-alt);\n\n z-index: 1;\n }',o.cssRules.length),o.insertRule('body.user-panel-columns [aria-label="User area"] .wrapper-24pKcD > * {\n margin-bottom: 50px;\n z-index: 2;\n }',o.cssRules.length),document.body.classList.add("user-panel-columns"),o.insertRule('body.user-panel-columns [aria-label="User area"] .nameTag-3uD-yy + .directionRow-3v3tfG .upc-divider {\n width: 0px;\n\n border-left: 1px solid var(--background-tertiary);\n\n background-color: unset;\n\n margin: 3px;\n margin-left: 3.3px;\n }',o.cssRules.length),(t=document.createElement("div")).className="upc-divider",(n=document.querySelector('[aria-label="User area"] .nameTag-3uD-yy + .directionRow-3v3tfG [aria-label="User Settings"]')).parentElement.insertBefore(t,n);case 11:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),onRemove:function(){var e=r(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:document.body.classList.remove("user-panel-columns"),t.remove();case 2:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),logRegionColor:"darkred"}};exports.default=s;
},{}]},{},["index.js"], null);parcelRequire('index.js').default