import { CnAsyncSelect as UiCnAsyncSelect, formilyReact } from '@cainiaofe/cn-ui';
import React from 'react';
import { mapStatus } from '../../mapStatus.js';
const { connect, useFieldSchema, mapProps } = formilyReact;
export const CnAsyncSelect = connect((props) => {
    const fieldSchema = useFieldSchema();
    return (React.createElement(UiCnAsyncSelect, { ...props, visible: true, className: "cn-ai-table-schema-field__item--full-width", popupContainer: document.getElementById(fieldSchema === null || fieldSchema === void 0 ? void 0 : fieldSchema.name) }));
}, mapProps(mapStatus, {
    dataSource: true,
}));
CnAsyncSelect.displayName = 'CnAsyncSelect';
