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