"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.CnDepartmentSelect = void 0;
const cn_ui_1 = require("@cainiaofe/cn-ui");
const react_1 = __importDefault(require("react"));
const mapStatus_1 = require("../../mapStatus.js");
const utils_1 = require("../../../index.js");
const { connect, mapProps } = cn_ui_1.formilyReact;
exports.CnDepartmentSelect = connect((props) => {
    const isV2Valid = (0, utils_1.isV2PropsValid)();
    return (react_1.default.createElement(cn_ui_1.CnDepartmentSelect, { ...props, className: "cn-ai-table-schema-field__item--full-width", popupProps: {
            v2: isV2Valid && true,
        } }));
}, mapProps(mapStatus_1.mapStatus, {
    dataSource: true,
}));
exports.CnDepartmentSelect.displayName = 'CnDepartmentSelect';
