function _define_property(obj, key, value) {
    if (key in obj) {
        Object.defineProperty(obj, key, {
            value: value,
            enumerable: true,
            configurable: true,
            writable: true
        });
    } else {
        obj[key] = value;
    }
    return obj;
}
function _object_spread(target) {
    for(var i = 1; i < arguments.length; i++){
        var source = arguments[i] != null ? arguments[i] : {};
        var ownKeys = Object.keys(source);
        if (typeof Object.getOwnPropertySymbols === "function") {
            ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
                return Object.getOwnPropertyDescriptor(source, sym).enumerable;
            }));
        }
        ownKeys.forEach(function(key) {
            _define_property(target, key, source[key]);
        });
    }
    return target;
}
import React from "react";
import { debugInfo } from "../../../../Utils/debugUtils";
/**
 * ReadonlyBlockquote 组件 - 只读引用块预览组件
 *
 * 专门针对 readonly 模式优化的引用块组件，移除了拖拽功能。
 * 简化渲染逻辑，提升预览模式性能。
 *
 * @component
 * @description 只读引用块预览组件，用于预览模式下的引用块渲染
 * @param {ElementProps<BlockQuoteNode>} props - 组件属性
 * @param {BlockQuoteNode} props.element - 引用块节点元素
 * @param {React.ReactNode} props.children - 子组件内容
 * @param {Object} props.attributes - 元素属性
 *
 * @example
 * ```tsx
 * <ReadonlyBlockquote
 *   element={blockquoteNode}
 *   attributes={attributes}
 * >
 *   引用内容
 * </ReadonlyBlockquote>
 * ```
 *
 * @returns {React.ReactElement} 渲染的只读引用块组件
 *
 * @remarks
 * - 移除拖拽相关事件处理
 * - 使用 React.memo 优化性能
 * - 保持预览模式的视觉效果
 */ export var ReadonlyBlockquote = /*#__PURE__*/ React.memo(function(props) {
    var _props_element_children;
    debugInfo('ReadonlyBlockquote - 渲染只读引用块', {
        childrenCount: (_props_element_children = props.element.children) === null || _props_element_children === void 0 ? void 0 : _props_element_children.length
    });
    return /*#__PURE__*/ React.createElement("blockquote", _object_spread({
        "data-be": 'blockquote'
    }, props.attributes), props.children);
});
ReadonlyBlockquote.displayName = 'ReadonlyBlockquote';
