import { jsx } from "react/jsx-runtime";
import "react";
import { connect, mapProps, mapReadPretty } from "@tachybase/schema";
import { LoadingOutlined } from "@ant-design/icons";
import { TreeSelect } from "antd";
import { ReadPretty } from "./ReadPretty.mjs";
const TreeSelect_TreeSelect = connect(TreeSelect, mapProps({
    dataSource: 'treeData'
}, (props, field)=>({
        ...props,
        suffixIcon: (null == field ? void 0 : field['loading']) || (null == field ? void 0 : field['validating']) ? /*#__PURE__*/ jsx(LoadingOutlined, {}) : props.suffixIcon
    })), mapReadPretty(ReadPretty));
const tree_select_TreeSelect = TreeSelect_TreeSelect;
export { TreeSelect_TreeSelect as TreeSelect, tree_select_TreeSelect as default };
