1 line
2.9 KiB
JavaScript
1 line
2.9 KiB
JavaScript
(()=>{"use strict";const e=window.PleskUiLibrary;function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function n(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(n=function(){return!!e})()}function o(e){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},o(e)}function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}function i(e){var n=function(e){if("object"!=t(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==t(n)?n:n+""}var a=function(a){function c(r){var a,u,l,s;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),a=function(e,r,i){return r=o(r),function(e,n){if(n&&("object"==t(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,n()?Reflect.construct(r,i||[],o(e).constructor):r.apply(e,i))}(this,c,[r]),u=a,s=function(){return(0,e.createElement)(e.StatusMessage,{id:"add-domain-info-block",intent:"warning",className:a.props.baseClassName},(0,e.createElement)(e.Translate,{content:"addDomainInfoBlock.message",unsafe:!0}))},(l=i(l="render"))in u?Object.defineProperty(u,l,{value:s,enumerable:!0,configurable:!0,writable:!0}):u[l]=s,a.state={isDisplayed:!0},a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)}(c,a),u=c,Object.defineProperty(u,"prototype",{writable:!1}),u;var u}(e.Component);a.propTypes={baseClassName:e.PropTypes.string},a.defaultProps={baseClassName:"".concat("ext-galileo","-add-domain-info-block")};const c=a;var u=function(t){return(0,e.createElement)(e.LocaleProvider,{messages:t.addDomainInfoBlock},(0,e.createElement)(c,null))};u.propTypes={addDomainInfoBlock:e.PropTypes.array.isRequired};const l=u;!function(){var e=document.evaluate('//div[@id="domainName-name-form-row" or @id="subscription-domainInfo-domainName-form-row"]//div[@class="field-value"]',document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue;if(0!==e.length){var t=document.createElement("div");e.parentNode.appendChild(t,e),window.Plesk.addWidget(l,{addDomainInfoBlock:PleskExt.Galileo.Config.locale},t)}}()})(); |