import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__ from "react/jsx-runtime";
import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
import * as __WEBPACK_EXTERNAL_MODULE__tachybase_schema__ from "@tachybase/schema";
import * as __WEBPACK_EXTERNAL_MODULE__CodeMirror_mjs__ from "./CodeMirror.mjs";
import * as __WEBPACK_EXTERNAL_MODULE__Input_mjs__ from "./Input.mjs";
import * as __WEBPACK_EXTERNAL_MODULE__JSONInput_mjs__ from "./JSONInput.mjs";
import * as __WEBPACK_EXTERNAL_MODULE__RawTextArea_mjs__ from "./RawTextArea.mjs";
import * as __WEBPACK_EXTERNAL_MODULE__TextArea_mjs__ from "./TextArea.mjs";
const VariableScopeContext = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.createContext)([]);
VariableScopeContext.displayName = 'VariableScopeContext';
function VariableScopeProvider(param) {
    let { scope = [], children } = param;
    return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(VariableScopeContext.Provider, {
        value: scope,
        children: children
    });
}
function useVariableScope() {
    return (0, __WEBPACK_EXTERNAL_MODULE_react__.useContext)(VariableScopeContext);
}
function Variable() {
    return null;
}
Variable.Input = (0, __WEBPACK_EXTERNAL_MODULE__tachybase_schema__.connect)(__WEBPACK_EXTERNAL_MODULE__Input_mjs__.Input);
Variable.TextArea = (0, __WEBPACK_EXTERNAL_MODULE__tachybase_schema__.connect)(__WEBPACK_EXTERNAL_MODULE__TextArea_mjs__.TextArea, (0, __WEBPACK_EXTERNAL_MODULE__tachybase_schema__.mapReadPretty)(__WEBPACK_EXTERNAL_MODULE__TextArea_mjs__.TextArea.ReadPretty));
Variable.RawTextArea = (0, __WEBPACK_EXTERNAL_MODULE__tachybase_schema__.connect)(__WEBPACK_EXTERNAL_MODULE__RawTextArea_mjs__.RawTextArea);
Variable.JSON = (0, __WEBPACK_EXTERNAL_MODULE__tachybase_schema__.connect)(__WEBPACK_EXTERNAL_MODULE__JSONInput_mjs__.JSONInput);
Variable.CodeMirror = (0, __WEBPACK_EXTERNAL_MODULE__tachybase_schema__.connect)(__WEBPACK_EXTERNAL_MODULE__CodeMirror_mjs__.CodeMirror);
const Variable_rslib_entry_ = Variable;
export { Variable, VariableScopeProvider, Variable_rslib_entry_ as default, useVariableScope };
