// packages/block-library/src/details/transforms.js
import { createBlock, cloneBlock } from "@wordpress/blocks";
var transforms_default = {
  from: [
    {
      type: "block",
      isMultiBlock: true,
      blocks: ["*"],
      isMatch({}, blocks) {
        return !(blocks.length === 1 && blocks[0].name === "core/details");
      },
      __experimentalConvert(blocks) {
        return createBlock(
          "core/details",
          {},
          blocks.map((block) => cloneBlock(block))
        );
      }
    }
  ]
};
export {
  transforms_default as default
};
//# sourceMappingURL=transforms.js.map
