// packages/block-library/src/pullquote/index.js
import { __ } from "@wordpress/i18n";
import { pullquote as icon } from "@wordpress/icons";
import initBlock from "../utils/init-block";
import deprecated from "./deprecated";
import edit from "./edit";
import metadata from "./block.json";
import save from "./save";
import transforms from "./transforms";
var { name } = metadata;
var settings = {
  icon,
  example: {
    attributes: {
      value: (
        // translators: Quote serving as example for the Pullquote block. Attributed to Matt Mullenweg.
        __(
          "One of the hardest things to do in technology is disrupt yourself."
        )
      ),
      citation: __("Matt Mullenweg")
    }
  },
  transforms,
  edit,
  save,
  deprecated
};
if (window.__experimentalContentOnlyPatternInsertion) {
  settings.fields = [
    {
      label: __("Content"),
      type: "RichText",
      shownByDefault: true,
      mapping: {
        value: "value"
      }
    },
    {
      label: __("Citation"),
      type: "RichText",
      shownByDefault: false,
      mapping: {
        value: "citation"
      }
    }
  ];
}
var init = () => initBlock({ name, metadata, settings });
export {
  init,
  metadata,
  name,
  settings
};
//# sourceMappingURL=index.js.map
