"use strict";

// packages/editor/src/hooks/media-upload.js
var import_hooks = require("@wordpress/hooks");
var import_media_utils = require("@wordpress/media-utils");
var import_lock_unlock = require("../lock-unlock");
var { MediaUploadModal: MediaUploadModalComponent } = (0, import_lock_unlock.unlock)(
  import_media_utils.privateApis
);
if (window.__experimentalDataViewsMediaModal) {
  (0, import_hooks.addFilter)(
    "editor.MediaUploadModal",
    "core/editor/components/media-upload-modal",
    () => {
      return MediaUploadModalComponent;
    }
  );
}
(0, import_hooks.addFilter)("editor.MediaUpload", "core/editor/components/media-upload", () => {
  return import_media_utils.MediaUpload;
});
//# sourceMappingURL=media-upload.js.map
