// packages/block-library/src/more/index.js
import { more as icon } from "@wordpress/icons";
import { __ } from "@wordpress/i18n";
import initBlock from "../utils/init-block";
import edit from "./edit";
import metadata from "./block.json";
import save from "./save";
import transforms from "./transforms";
var { name } = metadata;
var settings = {
  icon,
  example: {},
  __experimentalLabel(attributes, { context }) {
    const customName = attributes?.metadata?.name;
    if (context === "list-view" && customName) {
      return customName;
    }
    if (context === "accessibility") {
      return attributes.customText;
    }
  },
  transforms,
  edit,
  save
};
if (window.__experimentalContentOnlyPatternInsertion) {
  settings.fields = [
    {
      label: __("Content"),
      type: "RichText",
      shownByDefault: true,
      mapping: {
        value: "customText"
      }
    }
  ];
}
var init = () => initBlock({ name, metadata, settings });
export {
  init,
  metadata,
  name,
  settings
};
//# sourceMappingURL=index.js.map
