import { CnDepartmentSelect as UiCnDepartmentSelect, formilyReact } from '@cainiaofe/cn-ui';
import React from 'react';
import { mapStatus } from '../../mapStatus.js';
import { isV2PropsValid } from '../../../index.js';
const { connect, mapProps } = formilyReact;
export const CnDepartmentSelect = connect((props) => {
    const isV2Valid = isV2PropsValid();
    return (React.createElement(UiCnDepartmentSelect, { ...props, className: "cn-ai-table-schema-field__item--full-width", popupProps: {
            v2: isV2Valid && true,
        } }));
}, mapProps(mapStatus, {
    dataSource: true,
}));
CnDepartmentSelect.displayName = 'CnDepartmentSelect';
