1 line
3.6 KiB
JavaScript
1 line
3.6 KiB
JavaScript
(()=>{var t={292:(t,e,n)=>{var r;(r="undefined"!=typeof process&&"[object process]"==={}.toString.call(process)||"undefined"!=typeof navigator&&"ReactNative"===navigator.product?n.g:self).Proxy||(r.Proxy=function(){function t(){return null}function e(t){return!!t&&("object"==typeof t||"function"==typeof t)}function n(t){if(null!==t&&!e(t))throw new TypeError("Object prototype may only be an Object or null: "+t)}var r=null,o=Object,i=!(!o.create&&{__proto__:null}instanceof o),a=o.create||(i?function(t){return n(t),{__proto__:t}}:function(t){function e(){}if(n(t),null===t)throw new SyntaxError("Native Object.create is required to create objects with null prototype");return e.prototype=t,new e}),u=o.getPrototypeOf||([].__proto__===Array.prototype?function(t){return e(t=t.__proto__)?t:null}:t),c=function(s,l){function p(){}if(void 0===(this&&this instanceof c?this.constructor:void 0))throw new TypeError("Constructor Proxy requires 'new'");if(!e(s)||!e(l))throw new TypeError("Cannot create proxy with a non-object as target or handler");r=function(){s=null,p=function(t){throw new TypeError("Cannot perform '"+t+"' on a proxy that has been revoked")}},setTimeout(function(){r=null},0);var f=l;for(var y in l={get:null,set:null,apply:null,construct:null},f){if(!(y in l))throw new TypeError("Proxy polyfill does not support trap '"+y+"'");l[y]=f[y]}"function"==typeof f&&(l.apply=f.apply.bind(f)),f=u(s);var d=!1,w=!1;if("function"==typeof s){var b=function(){var t=this&&this.constructor===b,e=Array.prototype.slice.call(arguments);return p(t?"construct":"apply"),t&&l.construct?l.construct.call(this,s,e):!t&&l.apply?l.apply(s,this,e):t?(e.unshift(s),new(s.bind.apply(s,e))):s.apply(this,e)};d=!0}else s instanceof Array?(b=[],w=!0):b=i||null!==f?a(f):{};var h=l.get?function(t){return p("get"),l.get(this,t,b)}:function(t){return p("get"),this[t]},v=l.set?function(t,e){p("set"),l.set(this,t,e,b)}:function(t,e){p("set"),this[t]=e},g={};if(o.getOwnPropertyNames(s).forEach(function(t){if(!d&&!w||!(t in b)){var e=o.getOwnPropertyDescriptor(s,t);o.defineProperty(b,t,{enumerable:!!e.enumerable,get:h.bind(s,t),set:v.bind(s,t)}),g[t]=!0}}),y=!0,d||w){var _=o.setPrototypeOf||([].__proto__===Array.prototype?function(t,e){return n(e),t.__proto__=e,t}:t);f&&_(b,f)||(y=!1)}if(l.get||!y)for(var P in s)g[P]||o.defineProperty(b,P,{get:h.bind(s,P)});return o.seal(s),o.seal(b),b};return c.revocable=function(t,e){return{proxy:new c(t,e),revoke:r}},c}(),r.Proxy.revocable=r.Proxy.revocable)}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{"use strict";n(292);var t,e,r,o,i,a,u="page-sidebar-menu-item--disabled",c=function(t,e){t.forEach(function(t){Object.keys(t.nodes).forEach(function(n){var r=t.nodes[n];"webSitesAndDomains"!==n&&-1===r.styleClass.indexOf(u)&&(r.styleClass="".concat(r.styleClass," ").concat(u),delete r.id,delete r.link,r.conhelp=e)})})};t=PleskExt.Galileo.Config.addDomainFirstMessage,e=window.Plesk,r=e.addWidget,o=e.run,i=function(e){return e.data.pageSidebar&&c(e.data.pageSidebar.navigation,t),o(e)},a=function(e,n,o){return e===window.Plesk.PageSidebar&&n.navigation&&c(n.navigation,t),r(e,n,o)},window.Plesk=new Proxy(window.Plesk,{get:function(t,e){return"run"===e?i:"addWidget"===e?a:t[e]}})})()})(); |