"use strict";
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 __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);
var deprecated_exports = {};
__export(deprecated_exports, {
  AlignmentToolbar: () => AlignmentToolbar,
  Autocomplete: () => Autocomplete,
  BlockAlignmentToolbar: () => BlockAlignmentToolbar,
  BlockControls: () => BlockControls,
  BlockEdit: () => BlockEdit,
  BlockEditorKeyboardShortcuts: () => BlockEditorKeyboardShortcuts,
  BlockFormatControls: () => BlockFormatControls,
  BlockIcon: () => BlockIcon,
  BlockInspector: () => BlockInspector,
  BlockList: () => BlockList,
  BlockMover: () => BlockMover,
  BlockNavigationDropdown: () => BlockNavigationDropdown,
  BlockSelectionClearer: () => BlockSelectionClearer,
  BlockSettingsMenu: () => BlockSettingsMenu,
  BlockTitle: () => BlockTitle,
  BlockToolbar: () => BlockToolbar,
  ColorPalette: () => ColorPalette,
  ContrastChecker: () => ContrastChecker,
  CopyHandler: () => CopyHandler,
  DefaultBlockAppender: () => DefaultBlockAppender,
  FontSizePicker: () => FontSizePicker,
  InnerBlocks: () => InnerBlocks,
  Inserter: () => Inserter,
  InspectorAdvancedControls: () => InspectorAdvancedControls,
  InspectorControls: () => InspectorControls,
  MediaPlaceholder: () => MediaPlaceholder,
  MediaUpload: () => MediaUpload,
  MediaUploadCheck: () => MediaUploadCheck,
  MultiSelectScrollIntoView: () => MultiSelectScrollIntoView,
  NavigableToolbar: () => NavigableToolbar,
  ObserveTyping: () => ObserveTyping,
  PanelColorSettings: () => PanelColorSettings,
  PlainText: () => PlainText,
  RichText: () => RichText,
  RichTextShortcut: () => RichTextShortcut,
  RichTextToolbarButton: () => RichTextToolbarButton,
  ServerSideRender: () => import_server_side_render.default,
  SkipToSelectedBlock: () => SkipToSelectedBlock,
  URLInput: () => URLInput,
  URLInputButton: () => URLInputButton,
  URLPopover: () => URLPopover,
  Warning: () => Warning,
  WritingFlow: () => WritingFlow,
  __unstableRichTextInputEvent: () => __unstableRichTextInputEvent,
  createCustomColorsHOC: () => createCustomColorsHOC,
  getColorClassName: () => getColorClassName,
  getColorObjectByAttributeValues: () => getColorObjectByAttributeValues,
  getColorObjectByColorValue: () => getColorObjectByColorValue,
  getFontSize: () => getFontSize,
  getFontSizeClass: () => getFontSizeClass,
  withColorContext: () => withColorContext,
  withColors: () => withColors,
  withFontSizes: () => withFontSizes
});
module.exports = __toCommonJS(deprecated_exports);
var import_jsx_runtime = require("react/jsx-runtime");
var import_deprecated = __toESM(require("@wordpress/deprecated"));
var import_element = require("@wordpress/element");
var import_block_editor = require("@wordpress/block-editor");
var import_server_side_render = __toESM(require("@wordpress/server-side-render"));
function deprecateComponent(name, Wrapped, staticsToHoist = []) {
  const Component = (0, import_element.forwardRef)((props, ref) => {
    (0, import_deprecated.default)("wp.editor." + name, {
      since: "5.3",
      alternative: "wp.blockEditor." + name,
      version: "6.2"
    });
    return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Wrapped, { ref, ...props });
  });
  staticsToHoist.forEach((staticName) => {
    Component[staticName] = deprecateComponent(
      name + "." + staticName,
      Wrapped[staticName]
    );
  });
  return Component;
}
function deprecateFunction(name, func) {
  return (...args) => {
    (0, import_deprecated.default)("wp.editor." + name, {
      since: "5.3",
      alternative: "wp.blockEditor." + name,
      version: "6.2"
    });
    return func(...args);
  };
}
const RichText = deprecateComponent("RichText", import_block_editor.RichText, ["Content"]);
RichText.isEmpty = deprecateFunction(
  "RichText.isEmpty",
  import_block_editor.RichText.isEmpty
);
const Autocomplete = deprecateComponent(
  "Autocomplete",
  import_block_editor.Autocomplete
);
const AlignmentToolbar = deprecateComponent(
  "AlignmentToolbar",
  import_block_editor.AlignmentToolbar
);
const BlockAlignmentToolbar = deprecateComponent(
  "BlockAlignmentToolbar",
  import_block_editor.BlockAlignmentToolbar
);
const BlockControls = deprecateComponent(
  "BlockControls",
  import_block_editor.BlockControls,
  ["Slot"]
);
const BlockEdit = deprecateComponent("BlockEdit", import_block_editor.BlockEdit);
const BlockEditorKeyboardShortcuts = deprecateComponent(
  "BlockEditorKeyboardShortcuts",
  import_block_editor.BlockEditorKeyboardShortcuts
);
const BlockFormatControls = deprecateComponent(
  "BlockFormatControls",
  import_block_editor.BlockFormatControls,
  ["Slot"]
);
const BlockIcon = deprecateComponent("BlockIcon", import_block_editor.BlockIcon);
const BlockInspector = deprecateComponent(
  "BlockInspector",
  import_block_editor.BlockInspector
);
const BlockList = deprecateComponent("BlockList", import_block_editor.BlockList);
const BlockMover = deprecateComponent("BlockMover", import_block_editor.BlockMover);
const BlockNavigationDropdown = deprecateComponent(
  "BlockNavigationDropdown",
  import_block_editor.BlockNavigationDropdown
);
const BlockSelectionClearer = deprecateComponent(
  "BlockSelectionClearer",
  import_block_editor.BlockSelectionClearer
);
const BlockSettingsMenu = deprecateComponent(
  "BlockSettingsMenu",
  import_block_editor.BlockSettingsMenu
);
const BlockTitle = deprecateComponent("BlockTitle", import_block_editor.BlockTitle);
const BlockToolbar = deprecateComponent(
  "BlockToolbar",
  import_block_editor.BlockToolbar
);
const ColorPalette = deprecateComponent(
  "ColorPalette",
  import_block_editor.ColorPalette
);
const ContrastChecker = deprecateComponent(
  "ContrastChecker",
  import_block_editor.ContrastChecker
);
const CopyHandler = deprecateComponent("CopyHandler", import_block_editor.CopyHandler);
const DefaultBlockAppender = deprecateComponent(
  "DefaultBlockAppender",
  import_block_editor.DefaultBlockAppender
);
const FontSizePicker = deprecateComponent(
  "FontSizePicker",
  import_block_editor.FontSizePicker
);
const Inserter = deprecateComponent("Inserter", import_block_editor.Inserter);
const InnerBlocks = deprecateComponent("InnerBlocks", import_block_editor.InnerBlocks, [
  "ButtonBlockAppender",
  "DefaultBlockAppender",
  "Content"
]);
const InspectorAdvancedControls = deprecateComponent(
  "InspectorAdvancedControls",
  import_block_editor.InspectorAdvancedControls,
  ["Slot"]
);
const InspectorControls = deprecateComponent(
  "InspectorControls",
  import_block_editor.InspectorControls,
  ["Slot"]
);
const PanelColorSettings = deprecateComponent(
  "PanelColorSettings",
  import_block_editor.PanelColorSettings
);
const PlainText = deprecateComponent("PlainText", import_block_editor.PlainText);
const RichTextShortcut = deprecateComponent(
  "RichTextShortcut",
  import_block_editor.RichTextShortcut
);
const RichTextToolbarButton = deprecateComponent(
  "RichTextToolbarButton",
  import_block_editor.RichTextToolbarButton
);
const __unstableRichTextInputEvent = deprecateComponent(
  "__unstableRichTextInputEvent",
  import_block_editor.__unstableRichTextInputEvent
);
const MediaPlaceholder = deprecateComponent(
  "MediaPlaceholder",
  import_block_editor.MediaPlaceholder
);
const MediaUpload = deprecateComponent("MediaUpload", import_block_editor.MediaUpload);
const MediaUploadCheck = deprecateComponent(
  "MediaUploadCheck",
  import_block_editor.MediaUploadCheck
);
const MultiSelectScrollIntoView = deprecateComponent(
  "MultiSelectScrollIntoView",
  import_block_editor.MultiSelectScrollIntoView
);
const NavigableToolbar = deprecateComponent(
  "NavigableToolbar",
  import_block_editor.NavigableToolbar
);
const ObserveTyping = deprecateComponent(
  "ObserveTyping",
  import_block_editor.ObserveTyping
);
const SkipToSelectedBlock = deprecateComponent(
  "SkipToSelectedBlock",
  import_block_editor.SkipToSelectedBlock
);
const URLInput = deprecateComponent("URLInput", import_block_editor.URLInput);
const URLInputButton = deprecateComponent(
  "URLInputButton",
  import_block_editor.URLInputButton
);
const URLPopover = deprecateComponent("URLPopover", import_block_editor.URLPopover);
const Warning = deprecateComponent("Warning", import_block_editor.Warning);
const WritingFlow = deprecateComponent("WritingFlow", import_block_editor.WritingFlow);
const createCustomColorsHOC = deprecateFunction(
  "createCustomColorsHOC",
  import_block_editor.createCustomColorsHOC
);
const getColorClassName = deprecateFunction(
  "getColorClassName",
  import_block_editor.getColorClassName
);
const getColorObjectByAttributeValues = deprecateFunction(
  "getColorObjectByAttributeValues",
  import_block_editor.getColorObjectByAttributeValues
);
const getColorObjectByColorValue = deprecateFunction(
  "getColorObjectByColorValue",
  import_block_editor.getColorObjectByColorValue
);
const getFontSize = deprecateFunction("getFontSize", import_block_editor.getFontSize);
const getFontSizeClass = deprecateFunction(
  "getFontSizeClass",
  import_block_editor.getFontSizeClass
);
const withColorContext = deprecateFunction(
  "withColorContext",
  import_block_editor.withColorContext
);
const withColors = deprecateFunction("withColors", import_block_editor.withColors);
const withFontSizes = deprecateFunction(
  "withFontSizes",
  import_block_editor.withFontSizes
);
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  AlignmentToolbar,
  Autocomplete,
  BlockAlignmentToolbar,
  BlockControls,
  BlockEdit,
  BlockEditorKeyboardShortcuts,
  BlockFormatControls,
  BlockIcon,
  BlockInspector,
  BlockList,
  BlockMover,
  BlockNavigationDropdown,
  BlockSelectionClearer,
  BlockSettingsMenu,
  BlockTitle,
  BlockToolbar,
  ColorPalette,
  ContrastChecker,
  CopyHandler,
  DefaultBlockAppender,
  FontSizePicker,
  InnerBlocks,
  Inserter,
  InspectorAdvancedControls,
  InspectorControls,
  MediaPlaceholder,
  MediaUpload,
  MediaUploadCheck,
  MultiSelectScrollIntoView,
  NavigableToolbar,
  ObserveTyping,
  PanelColorSettings,
  PlainText,
  RichText,
  RichTextShortcut,
  RichTextToolbarButton,
  ServerSideRender,
  SkipToSelectedBlock,
  URLInput,
  URLInputButton,
  URLPopover,
  Warning,
  WritingFlow,
  __unstableRichTextInputEvent,
  createCustomColorsHOC,
  getColorClassName,
  getColorObjectByAttributeValues,
  getColorObjectByColorValue,
  getFontSize,
  getFontSizeClass,
  withColorContext,
  withColors,
  withFontSizes
});
//# sourceMappingURL=deprecated.js.map
