/**
 * @fileoverview Ace编辑器容器组件
 * 负责Ace编辑器DOM的渲染和内容副本的显示
 */ import React from "react";
export function AceEditorContainer(param) {
    var dom = param.dom, element = param.element, children = param.children;
    var _element_value;
    return /*#__PURE__*/ React.createElement(React.Fragment, null, /*#__PURE__*/ React.createElement("div", {
        "data-testid": "ace-editor-container",
        ref: dom,
        style: {
            height: 200,
            lineHeight: 1.6
        }
    }), /*#__PURE__*/ React.createElement("div", {
        "data-testid": "code-content-copy",
        style: {
            height: '0.5px',
            overflow: 'hidden',
            opacity: 0,
            pointerEvents: 'none'
        }
    }, element === null || element === void 0 ? void 0 : (_element_value = element.value) === null || _element_value === void 0 ? void 0 : _element_value.replaceAll('\n', ' '), children));
}
