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