Linux cesa-www-main 6.1.0-49-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
Apache/2.4.68 (Debian)
Server IP : 10.218.0.2 & Your IP : 216.73.216.28
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
cesa.co.za /
wp-includes /
js /
dist /
Delete
Unzip
Name
Size
Permission
Date
Action
development
[ DIR ]
drwxr-sr-x
2022-05-24 20:50
script-modules
[ DIR ]
drwxr-sr-x
2026-08-20 16:07
vendor
[ DIR ]
drwxr-sr-x
2026-08-20 16:07
a11y.js
5.56
KB
-rw-r--r--
2026-08-20 16:07
a11y.min.js
2.55
KB
-rw-r--r--
2026-08-20 16:07
annotations.js
15.58
KB
-rw-r--r--
2026-08-20 16:07
annotations.min.js
5.84
KB
-rw-r--r--
2026-08-20 16:07
api-fetch.js
19.53
KB
-rw-r--r--
2026-08-20 16:07
api-fetch.min.js
7.33
KB
-rw-r--r--
2026-08-20 16:07
autop.js
9.78
KB
-rw-r--r--
2026-08-20 16:07
autop.min.js
5.56
KB
-rw-r--r--
2026-08-20 16:07
base-styles.js
115
B
-rw-r--r--
2026-08-20 16:07
base-styles.min.js
142
B
-rw-r--r--
2026-08-20 16:07
blob.js
2.35
KB
-rw-r--r--
2026-08-20 16:07
blob.min.js
1.21
KB
-rw-r--r--
2026-08-20 16:07
block-directory.js
372.69
KB
-rw-r--r--
2026-08-20 16:07
block-directory.min.js
126.54
KB
-rw-r--r--
2026-08-20 16:07
block-editor.js
3.6
MB
-rw-r--r--
2026-08-20 16:07
block-editor.min.js
1.35
MB
-rw-r--r--
2026-08-20 16:07
block-library.js
2.88
MB
-rw-r--r--
2026-08-20 16:07
block-library.min.js
1.24
MB
-rw-r--r--
2026-08-20 16:07
block-serialization-default-parser.js
6.64
KB
-rw-r--r--
2026-08-20 16:07
block-serialization-default-parser.min.js
2.5
KB
-rw-r--r--
2026-08-20 16:07
block-serialization-spec-parser.js
50.58
KB
-rw-r--r--
2026-08-20 16:07
block-serialization-spec-parser.min.js
10.48
KB
-rw-r--r--
2026-08-20 16:07
blocks.js
292.88
KB
-rw-r--r--
2026-08-20 16:07
blocks.min.js
142.99
KB
-rw-r--r--
2026-08-20 16:07
commands.js
128.65
KB
-rw-r--r--
2026-08-20 16:07
commands.min.js
55.89
KB
-rw-r--r--
2026-08-20 16:07
components.js
3.64
MB
-rw-r--r--
2026-08-20 16:07
components.min.js
817.08
KB
-rw-r--r--
2026-08-20 16:07
compose.js
83.74
KB
-rw-r--r--
2026-08-20 16:07
compose.min.js
29.39
KB
-rw-r--r--
2026-08-20 16:07
core-commands.js
29.11
KB
-rw-r--r--
2026-08-20 16:07
core-commands.min.js
12.2
KB
-rw-r--r--
2026-08-20 16:07
core-data.js
660
KB
-rw-r--r--
2026-08-20 16:07
core-data.min.js
226.52
KB
-rw-r--r--
2026-08-20 16:07
customize-widgets.js
111.55
KB
-rw-r--r--
2026-08-20 16:07
customize-widgets.min.js
43.42
KB
-rw-r--r--
2026-08-20 16:07
data-controls.js
4.2
KB
-rw-r--r--
2026-08-20 16:07
data-controls.min.js
1.84
KB
-rw-r--r--
2026-08-20 16:07
data.js
83.69
KB
-rw-r--r--
2026-08-20 16:07
data.min.js
26.04
KB
-rw-r--r--
2026-08-20 16:07
date.js
176.69
KB
-rw-r--r--
2026-08-20 16:07
date.min.js
141.35
KB
-rw-r--r--
2026-08-20 16:07
deprecated.js
3.11
KB
-rw-r--r--
2026-08-20 16:07
deprecated.min.js
1.35
KB
-rw-r--r--
2026-08-20 16:07
dom-ready.js
1.53
KB
-rw-r--r--
2026-08-20 16:07
dom-ready.min.js
881
B
-rw-r--r--
2026-08-20 16:07
dom.js
35.12
KB
-rw-r--r--
2026-08-20 16:07
dom.min.js
12.86
KB
-rw-r--r--
2026-08-20 16:07
edit-post.js
440.78
KB
-rw-r--r--
2026-08-20 16:07
edit-post.min.js
156.4
KB
-rw-r--r--
2026-08-20 16:07
edit-site.js
2.2
MB
-rw-r--r--
2026-08-20 16:07
edit-site.min.js
884.07
KB
-rw-r--r--
2026-08-20 16:07
edit-widgets.js
180.29
KB
-rw-r--r--
2026-08-20 16:07
edit-widgets.min.js
68.81
KB
-rw-r--r--
2026-08-20 16:07
editor.js
3.78
MB
-rw-r--r--
2026-08-20 16:07
editor.min.js
1.5
MB
-rw-r--r--
2026-08-20 16:07
element.js
27.32
KB
-rw-r--r--
2026-08-20 16:07
element.min.js
12.18
KB
-rw-r--r--
2026-08-20 16:07
escape-html.js
2.36
KB
-rw-r--r--
2026-08-20 16:07
escape-html.min.js
1.13
KB
-rw-r--r--
2026-08-20 16:07
format-library.js
229.45
KB
-rw-r--r--
2026-08-20 16:07
format-library.min.js
96.19
KB
-rw-r--r--
2026-08-20 16:07
hooks.js
12.01
KB
-rw-r--r--
2026-08-20 16:07
hooks.min.js
4.99
KB
-rw-r--r--
2026-08-20 16:07
html-entities.js
1.71
KB
-rw-r--r--
2026-08-20 16:07
html-entities.min.js
950
B
-rw-r--r--
2026-08-20 16:07
i18n.js
15.36
KB
-rw-r--r--
2026-08-20 16:07
i18n.min.js
5.66
KB
-rw-r--r--
2026-08-20 16:07
is-shallow-equal.js
2.77
KB
-rw-r--r--
2026-08-20 16:07
is-shallow-equal.min.js
1.17
KB
-rw-r--r--
2026-08-20 16:07
keyboard-shortcuts.js
10.26
KB
-rw-r--r--
2026-08-20 16:07
keyboard-shortcuts.min.js
3.6
KB
-rw-r--r--
2026-08-20 16:07
keycodes.js
8.36
KB
-rw-r--r--
2026-08-20 16:07
keycodes.min.js
2.97
KB
-rw-r--r--
2026-08-20 16:07
list-reusable-blocks.js
13.34
KB
-rw-r--r--
2026-08-20 16:07
list-reusable-blocks.min.js
5.41
KB
-rw-r--r--
2026-08-20 16:07
media-utils.js
1.02
MB
-rw-r--r--
2026-08-20 16:07
media-utils.min.js
381.83
KB
-rw-r--r--
2026-08-20 16:07
notices.js
9.55
KB
-rw-r--r--
2026-08-20 16:07
notices.min.js
3.85
KB
-rw-r--r--
2026-08-20 16:07
nux.js
4.32
KB
-rw-r--r--
2026-08-20 16:07
nux.min.js
1.71
KB
-rw-r--r--
2026-08-20 16:07
patterns.js
88.07
KB
-rw-r--r--
2026-08-20 16:07
patterns.min.js
37.4
KB
-rw-r--r--
2026-08-20 16:07
plugins.js
20.72
KB
-rw-r--r--
2026-08-20 16:07
plugins.min.js
7.08
KB
-rw-r--r--
2026-08-20 16:07
preferences-persistence.js
17.3
KB
-rw-r--r--
2026-08-20 16:07
preferences-persistence.min.js
5.58
KB
-rw-r--r--
2026-08-20 16:07
preferences.js
21.03
KB
-rw-r--r--
2026-08-20 16:07
preferences.min.js
7.84
KB
-rw-r--r--
2026-08-20 16:07
primitives.js
5.15
KB
-rw-r--r--
2026-08-20 16:07
primitives.min.js
2.04
KB
-rw-r--r--
2026-08-20 16:07
priority-queue.js
10.1
KB
-rw-r--r--
2026-08-20 16:07
priority-queue.min.js
3.42
KB
-rw-r--r--
2026-08-20 16:07
private-apis.js
4.42
KB
-rw-r--r--
2026-08-20 16:07
private-apis.min.js
2.95
KB
-rw-r--r--
2026-08-20 16:07
react-i18n.js
3.97
KB
-rw-r--r--
2026-08-20 16:07
react-i18n.min.js
1.59
KB
-rw-r--r--
2026-08-20 16:07
redux-routine.js
24.75
KB
-rw-r--r--
2026-08-20 16:07
redux-routine.min.js
9.72
KB
-rw-r--r--
2026-08-20 16:07
reusable-blocks.js
21.87
KB
-rw-r--r--
2026-08-20 16:07
reusable-blocks.min.js
7.99
KB
-rw-r--r--
2026-08-20 16:07
rich-text.js
104.89
KB
-rw-r--r--
2026-08-20 16:07
rich-text.min.js
42.17
KB
-rw-r--r--
2026-08-20 16:07
router.js
36.21
KB
-rw-r--r--
2026-08-20 16:07
router.min.js
14.21
KB
-rw-r--r--
2026-08-20 16:07
server-side-render.js
11.32
KB
-rw-r--r--
2026-08-20 16:07
server-side-render.min.js
4.1
KB
-rw-r--r--
2026-08-20 16:07
shortcode.js
8.02
KB
-rw-r--r--
2026-08-20 16:07
shortcode.min.js
3.35
KB
-rw-r--r--
2026-08-20 16:07
style-engine.js
18.37
KB
-rw-r--r--
2026-08-20 16:07
style-engine.min.js
6.78
KB
-rw-r--r--
2026-08-20 16:07
theme.js
135.48
KB
-rw-r--r--
2026-08-20 16:07
theme.min.js
59.71
KB
-rw-r--r--
2026-08-20 16:07
token-list.js
6.18
KB
-rw-r--r--
2026-08-20 16:07
token-list.min.js
1.68
KB
-rw-r--r--
2026-08-20 16:07
undo-manager.js
5.36
KB
-rw-r--r--
2026-08-20 16:07
undo-manager.min.js
1.77
KB
-rw-r--r--
2026-08-20 16:07
upload-media.js
115.27
KB
-rw-r--r--
2026-08-20 16:07
upload-media.min.js
48.71
KB
-rw-r--r--
2026-08-20 16:07
url.js
23.4
KB
-rw-r--r--
2026-08-20 16:07
url.min.js
10.18
KB
-rw-r--r--
2026-08-20 16:07
viewport.js
7.14
KB
-rw-r--r--
2026-08-20 16:07
viewport.min.js
2.32
KB
-rw-r--r--
2026-08-20 16:07
warning.js
1.58
KB
-rw-r--r--
2026-08-20 16:07
warning.min.js
816
B
-rw-r--r--
2026-08-20 16:07
widgets.js
50.14
KB
-rw-r--r--
2026-08-20 16:07
widgets.min.js
20.97
KB
-rw-r--r--
2026-08-20 16:07
wordcount.js
7
KB
-rw-r--r--
2026-08-20 16:07
wordcount.min.js
2.51
KB
-rw-r--r--
2026-08-20 16:07
Save
Rename
(function() { "use strict"; var wp; (wp ||= {}).plugins = (() => { var __create = Object.create; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __getProtoOf = Object.getPrototypeOf; var __hasOwnProp = Object.prototype.hasOwnProperty; var __commonJS = (cb, mod) => function __require() { return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; }; var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true }); }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( // If the importer is in node compatibility mode or this is not an ESM // file that has been converted to a CommonJS file using a Babel- // compatible transform (i.e. "__esModule" has not been set), then set // "default" to the CommonJS "module.exports" for node compatibility. isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod )); var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); // package-external:@wordpress/element var require_element = __commonJS({ "package-external:@wordpress/element"(exports, module) { module.exports = window.wp.element; } }); // package-external:@wordpress/hooks var require_hooks = __commonJS({ "package-external:@wordpress/hooks"(exports, module) { module.exports = window.wp.hooks; } }); // package-external:@wordpress/is-shallow-equal var require_is_shallow_equal = __commonJS({ "package-external:@wordpress/is-shallow-equal"(exports, module) { module.exports = window.wp.isShallowEqual; } }); // package-external:@wordpress/compose var require_compose = __commonJS({ "package-external:@wordpress/compose"(exports, module) { module.exports = window.wp.compose; } }); // package-external:@wordpress/deprecated var require_deprecated = __commonJS({ "package-external:@wordpress/deprecated"(exports, module) { module.exports = window.wp.deprecated; } }); // vendor-external:react/jsx-runtime var require_jsx_runtime = __commonJS({ "vendor-external:react/jsx-runtime"(exports, module) { module.exports = window.ReactJSXRuntime; } }); // packages/plugins/node_modules/react-is/cjs/react-is.development.js var require_react_is_development = __commonJS({ "packages/plugins/node_modules/react-is/cjs/react-is.development.js"(exports) { "use strict"; if (true) { (function() { "use strict"; var REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.element"); var REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal"); var REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment"); var REACT_STRICT_MODE_TYPE = /* @__PURE__ */ Symbol.for("react.strict_mode"); var REACT_PROFILER_TYPE = /* @__PURE__ */ Symbol.for("react.profiler"); var REACT_PROVIDER_TYPE = /* @__PURE__ */ Symbol.for("react.provider"); var REACT_CONTEXT_TYPE = /* @__PURE__ */ Symbol.for("react.context"); var REACT_SERVER_CONTEXT_TYPE = /* @__PURE__ */ Symbol.for("react.server_context"); var REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for("react.forward_ref"); var REACT_SUSPENSE_TYPE = /* @__PURE__ */ Symbol.for("react.suspense"); var REACT_SUSPENSE_LIST_TYPE = /* @__PURE__ */ Symbol.for("react.suspense_list"); var REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo"); var REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy"); var REACT_OFFSCREEN_TYPE = /* @__PURE__ */ Symbol.for("react.offscreen"); var enableScopeAPI = false; var enableCacheElement = false; var enableTransitionTracing = false; var enableLegacyHidden = false; var enableDebugTracing = false; var REACT_MODULE_REFERENCE; { REACT_MODULE_REFERENCE = /* @__PURE__ */ Symbol.for("react.module.reference"); } function isValidElementType2(type) { if (typeof type === "string" || typeof type === "function") { return true; } if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) { return true; } if (typeof type === "object" && type !== null) { if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object // types supported by any Flight configuration anywhere since // we don't know which Flight build this will end up being used // with. type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0) { return true; } } return false; } function typeOf(object) { if (typeof object === "object" && object !== null) { var $$typeof = object.$$typeof; switch ($$typeof) { case REACT_ELEMENT_TYPE: var type = object.type; switch (type) { case REACT_FRAGMENT_TYPE: case REACT_PROFILER_TYPE: case REACT_STRICT_MODE_TYPE: case REACT_SUSPENSE_TYPE: case REACT_SUSPENSE_LIST_TYPE: return type; default: var $$typeofType = type && type.$$typeof; switch ($$typeofType) { case REACT_SERVER_CONTEXT_TYPE: case REACT_CONTEXT_TYPE: case REACT_FORWARD_REF_TYPE: case REACT_LAZY_TYPE: case REACT_MEMO_TYPE: case REACT_PROVIDER_TYPE: return $$typeofType; default: return $$typeof; } } case REACT_PORTAL_TYPE: return $$typeof; } } return void 0; } var ContextConsumer = REACT_CONTEXT_TYPE; var ContextProvider = REACT_PROVIDER_TYPE; var Element = REACT_ELEMENT_TYPE; var ForwardRef = REACT_FORWARD_REF_TYPE; var Fragment = REACT_FRAGMENT_TYPE; var Lazy = REACT_LAZY_TYPE; var Memo = REACT_MEMO_TYPE; var Portal = REACT_PORTAL_TYPE; var Profiler = REACT_PROFILER_TYPE; var StrictMode = REACT_STRICT_MODE_TYPE; var Suspense = REACT_SUSPENSE_TYPE; var SuspenseList = REACT_SUSPENSE_LIST_TYPE; var hasWarnedAboutDeprecatedIsAsyncMode = false; var hasWarnedAboutDeprecatedIsConcurrentMode = false; function isAsyncMode(object) { { if (!hasWarnedAboutDeprecatedIsAsyncMode) { hasWarnedAboutDeprecatedIsAsyncMode = true; console["warn"]("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+."); } } return false; } function isConcurrentMode(object) { { if (!hasWarnedAboutDeprecatedIsConcurrentMode) { hasWarnedAboutDeprecatedIsConcurrentMode = true; console["warn"]("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+."); } } return false; } function isContextConsumer(object) { return typeOf(object) === REACT_CONTEXT_TYPE; } function isContextProvider(object) { return typeOf(object) === REACT_PROVIDER_TYPE; } function isElement(object) { return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE; } function isForwardRef(object) { return typeOf(object) === REACT_FORWARD_REF_TYPE; } function isFragment(object) { return typeOf(object) === REACT_FRAGMENT_TYPE; } function isLazy(object) { return typeOf(object) === REACT_LAZY_TYPE; } function isMemo(object) { return typeOf(object) === REACT_MEMO_TYPE; } function isPortal(object) { return typeOf(object) === REACT_PORTAL_TYPE; } function isProfiler(object) { return typeOf(object) === REACT_PROFILER_TYPE; } function isStrictMode(object) { return typeOf(object) === REACT_STRICT_MODE_TYPE; } function isSuspense(object) { return typeOf(object) === REACT_SUSPENSE_TYPE; } function isSuspenseList(object) { return typeOf(object) === REACT_SUSPENSE_LIST_TYPE; } exports.ContextConsumer = ContextConsumer; exports.ContextProvider = ContextProvider; exports.Element = Element; exports.ForwardRef = ForwardRef; exports.Fragment = Fragment; exports.Lazy = Lazy; exports.Memo = Memo; exports.Portal = Portal; exports.Profiler = Profiler; exports.StrictMode = StrictMode; exports.Suspense = Suspense; exports.SuspenseList = SuspenseList; exports.isAsyncMode = isAsyncMode; exports.isConcurrentMode = isConcurrentMode; exports.isContextConsumer = isContextConsumer; exports.isContextProvider = isContextProvider; exports.isElement = isElement; exports.isForwardRef = isForwardRef; exports.isFragment = isFragment; exports.isLazy = isLazy; exports.isMemo = isMemo; exports.isPortal = isPortal; exports.isProfiler = isProfiler; exports.isStrictMode = isStrictMode; exports.isSuspense = isSuspense; exports.isSuspenseList = isSuspenseList; exports.isValidElementType = isValidElementType2; exports.typeOf = typeOf; })(); } } }); // packages/plugins/node_modules/react-is/index.js var require_react_is = __commonJS({ "packages/plugins/node_modules/react-is/index.js"(exports, module) { "use strict"; if (false) { module.exports = null; } else { module.exports = require_react_is_development(); } } }); // package-external:@wordpress/primitives var require_primitives = __commonJS({ "package-external:@wordpress/primitives"(exports, module) { module.exports = window.wp.primitives; } }); // packages/plugins/build-module/index.mjs var index_exports = {}; __export(index_exports, { PluginArea: () => plugin_area_default, getPlugin: () => getPlugin, getPlugins: () => getPlugins, registerPlugin: () => registerPlugin, unregisterPlugin: () => unregisterPlugin, usePluginContext: () => usePluginContext, withPluginContext: () => withPluginContext }); // node_modules/memize/dist/index.js function memize(fn, options) { var size = 0; var head; var tail; options = options || {}; function memoized() { var node = head, len = arguments.length, args, i; searchCache: while (node) { if (node.args.length !== arguments.length) { node = node.next; continue; } for (i = 0; i < len; i++) { if (node.args[i] !== arguments[i]) { node = node.next; continue searchCache; } } if (node !== head) { if (node === tail) { tail = node.prev; } node.prev.next = node.next; if (node.next) { node.next.prev = node.prev; } node.next = head; node.prev = null; head.prev = node; head = node; } return node.val; } args = new Array(len); for (i = 0; i < len; i++) { args[i] = arguments[i]; } node = { args, // Generate the result from original function val: fn.apply(null, args) }; if (head) { head.prev = node; node.next = head; } else { tail = node; } if (size === /** @type {MemizeOptions} */ options.maxSize) { tail = /** @type {MemizeCacheNode} */ tail.prev; tail.next = null; } else { size++; } head = node; return node.val; } memoized.clear = function() { head = null; tail = null; size = 0; }; return memoized; } // packages/plugins/build-module/components/plugin-area/index.mjs var import_element3 = __toESM(require_element(), 1); var import_hooks2 = __toESM(require_hooks(), 1); var import_is_shallow_equal = __toESM(require_is_shallow_equal(), 1); // packages/plugins/build-module/components/plugin-context/index.mjs var import_element = __toESM(require_element(), 1); var import_compose = __toESM(require_compose(), 1); var import_deprecated = __toESM(require_deprecated(), 1); var import_jsx_runtime = __toESM(require_jsx_runtime(), 1); var Context = (0, import_element.createContext)({ name: null, icon: null }); Context.displayName = "PluginContext"; var PluginContextProvider = Context.Provider; function usePluginContext() { return (0, import_element.useContext)(Context); } var withPluginContext = (mapContextToProps) => (0, import_compose.createHigherOrderComponent)((OriginalComponent) => { (0, import_deprecated.default)("wp.plugins.withPluginContext", { since: "6.8.0", alternative: "wp.plugins.usePluginContext" }); return (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Context.Consumer, { children: (context) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)( OriginalComponent, { ...props, ...mapContextToProps(context, props) } ) }); }, "withPluginContext"); // packages/plugins/build-module/components/plugin-error-boundary/index.mjs var import_element2 = __toESM(require_element(), 1); var PluginErrorBoundary = class extends import_element2.Component { constructor(props) { super(props); this.state = { hasError: false }; } static getDerivedStateFromError() { return { hasError: true }; } componentDidCatch(error) { const { name, onError } = this.props; if (onError) { onError(name, error); } } render() { if (!this.state.hasError) { return this.props.children; } return null; } }; // packages/plugins/build-module/api/index.mjs var import_react_is = __toESM(require_react_is(), 1); var import_hooks = __toESM(require_hooks(), 1); // packages/icons/build-module/library/plugins.mjs var import_primitives = __toESM(require_primitives(), 1); var import_jsx_runtime2 = __toESM(require_jsx_runtime(), 1); var plugins_default = /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_primitives.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_primitives.Path, { d: "M10.5 4v4h3V4H15v4h1.5a1 1 0 011 1v4l-3 4v2a1 1 0 01-1 1h-3a1 1 0 01-1-1v-2l-3-4V9a1 1 0 011-1H9V4h1.5zm.5 12.5v2h2v-2l3-4v-3H8v3l3 4z" }) }); // packages/plugins/build-module/api/index.mjs var plugins = {}; function registerPlugin(name, settings) { if (typeof settings !== "object") { console.error("No settings object provided!"); return null; } if (typeof name !== "string") { console.error("Plugin name must be string."); return null; } if (!/^[a-z][a-z0-9-]*$/.test(name)) { console.error( 'Plugin name must include only lowercase alphanumeric characters or dashes, and start with a letter. Example: "my-plugin".' ); return null; } if (plugins[name]) { console.error(`Plugin "${name}" is already registered.`); } settings = (0, import_hooks.applyFilters)( "plugins.registerPlugin", settings, name ); const { render, scope } = settings; if (!(0, import_react_is.isValidElementType)(render)) { console.error( 'The "render" property must be specified and must be a valid component.' ); return null; } if (scope) { if (typeof scope !== "string") { console.error("Plugin scope must be string."); return null; } if (!/^[a-z][a-z0-9-]*$/.test(scope)) { console.error( 'Plugin scope must include only lowercase alphanumeric characters or dashes, and start with a letter. Example: "my-page".' ); return null; } } plugins[name] = { name, icon: plugins_default, ...settings }; (0, import_hooks.doAction)("plugins.pluginRegistered", settings, name); return settings; } function unregisterPlugin(name) { if (!plugins[name]) { console.error('Plugin "' + name + '" is not registered.'); return; } const oldPlugin = plugins[name]; delete plugins[name]; (0, import_hooks.doAction)("plugins.pluginUnregistered", oldPlugin, name); return oldPlugin; } function getPlugin(name) { return plugins[name]; } function getPlugins(scope) { return Object.values(plugins).filter( (plugin) => plugin.scope === scope ); } // packages/plugins/build-module/components/plugin-area/index.mjs var import_jsx_runtime3 = __toESM(require_jsx_runtime(), 1); var getPluginContext = memize( (icon, name) => ({ icon, name }) ); function PluginArea({ scope, onError }) { const store = (0, import_element3.useMemo)(() => { let lastValue = []; return { subscribe(listener) { (0, import_hooks2.addAction)( "plugins.pluginRegistered", "core/plugins/plugin-area/plugins-registered", listener ); (0, import_hooks2.addAction)( "plugins.pluginUnregistered", "core/plugins/plugin-area/plugins-unregistered", listener ); return () => { (0, import_hooks2.removeAction)( "plugins.pluginRegistered", "core/plugins/plugin-area/plugins-registered" ); (0, import_hooks2.removeAction)( "plugins.pluginUnregistered", "core/plugins/plugin-area/plugins-unregistered" ); }; }, getValue() { const nextValue = getPlugins(scope); if (!(0, import_is_shallow_equal.isShallowEqual)(lastValue, nextValue)) { lastValue = nextValue; } return lastValue; } }; }, [scope]); const plugins2 = (0, import_element3.useSyncExternalStore)( store.subscribe, store.getValue, store.getValue ); return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { style: { display: "none" }, children: plugins2.map(({ icon, name, render: Plugin }) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)( PluginContextProvider, { value: getPluginContext(icon, name), children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PluginErrorBoundary, { name, onError, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Plugin, {}) }) }, name )) }); } var plugin_area_default = PluginArea; return __toCommonJS(index_exports); })(); /*! Bundled license information: react-is/cjs/react-is.development.js: (** * @license React * react-is.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. *) */ (window.wp ||= {}).plugins = wp.plugins; })();