// packages/block-library/src/search/index.js
import { __ } from "@wordpress/i18n";
import { search as icon } from "@wordpress/icons";
import initBlock from "../utils/init-block";
import metadata from "./block.json";
import edit from "./edit";
import variations from "./variations";
var { name } = metadata;
var settings = {
  icon,
  example: {
    attributes: { buttonText: __("Search"), label: __("Search") },
    viewportWidth: 400
  },
  variations,
  edit
};
if (window.__experimentalContentOnlyPatternInsertion) {
  settings.fields = [
    {
      label: __("Label"),
      type: "RichText",
      shownByDefault: true,
      mapping: {
        value: "label"
      }
    },
    {
      label: __("Button text"),
      type: "RichText",
      shownByDefault: false,
      mapping: {
        value: "buttonText"
      }
    },
    {
      label: __("Placeholder"),
      type: "RichText",
      shownByDefault: false,
      mapping: {
        value: "placeholder"
      }
    }
  ];
}
var init = () => initBlock({ name, metadata, settings });
export {
  init,
  metadata,
  name,
  settings
};
//# sourceMappingURL=index.js.map
