import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__ from "react/jsx-runtime";
import "react";
import * as __WEBPACK_EXTERNAL_MODULE__tachybase_schema__ from "@tachybase/schema";
import * as __WEBPACK_EXTERNAL_MODULE__AssociationFieldProvider_mjs__ from "./AssociationFieldProvider.mjs";
import * as __WEBPACK_EXTERNAL_MODULE__FileManager_mjs__ from "./FileManager.mjs";
import * as __WEBPACK_EXTERNAL_MODULE__hooks_mjs__ from "./hooks.mjs";
import * as __WEBPACK_EXTERNAL_MODULE__InternalNester_mjs__ from "./InternalNester.mjs";
import * as __WEBPACK_EXTERNAL_MODULE__InternalSubTable_mjs__ from "./InternalSubTable.mjs";
import * as __WEBPACK_EXTERNAL_MODULE__InternalTag_mjs__ from "./InternalTag.mjs";
import * as __WEBPACK_EXTERNAL_MODULE__InternalViewer_mjs__ from "./InternalViewer.mjs";
const ReadPrettyAssociationField = (0, __WEBPACK_EXTERNAL_MODULE__tachybase_schema__.observer)((props)=>{
    const { currentMode } = (0, __WEBPACK_EXTERNAL_MODULE__hooks_mjs__.useAssociationFieldContext)();
    return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsxs)(__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.Fragment, {
        children: [
            [
                'Select',
                'Picker',
                'CascadeSelect',
                'Cascader'
            ].includes(currentMode) && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__InternalViewer_mjs__.ReadPrettyInternalViewer, {
                ...props
            }),
            'Tag' === currentMode && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__InternalTag_mjs__.ReadPrettyInternalTag, {
                ...props
            }),
            'Nester' === currentMode && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__InternalNester_mjs__.InternalNester, {
                ...props
            }),
            'SubTable' === currentMode && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__InternalSubTable_mjs__.InternalSubTable, {
                ...props
            }),
            'FileManager' === currentMode && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__FileManager_mjs__.FileManageReadPretty, {
                ...props
            })
        ]
    });
}, {
    displayName: 'ReadPrettyAssociationField'
});
const ReadPretty = (0, __WEBPACK_EXTERNAL_MODULE__tachybase_schema__.observer)((props)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__AssociationFieldProvider_mjs__.AssociationFieldProvider, {
        children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(ReadPrettyAssociationField, {
            ...props
        })
    }), {
    displayName: 'ReadPretty'
});
export { ReadPretty };
