"use strict";
var __webpack_require__ = {};
(()=>{
    __webpack_require__.n = function(module) {
        var getter = module && module.__esModule ? function() {
            return module['default'];
        } : function() {
            return module;
        };
        __webpack_require__.d(getter, {
            a: getter
        });
        return getter;
    };
})();
(()=>{
    __webpack_require__.d = function(exports1, definition) {
        for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
            enumerable: true,
            get: definition[key]
        });
    };
})();
(()=>{
    __webpack_require__.o = function(obj, prop) {
        return Object.prototype.hasOwnProperty.call(obj, prop);
    };
})();
(()=>{
    __webpack_require__.r = function(exports1) {
        if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
            value: 'Module'
        });
        Object.defineProperty(exports1, '__esModule', {
            value: true
        });
    };
})();
var __webpack_exports__ = {};
__webpack_require__.r(__webpack_exports__);
__webpack_require__.d(__webpack_exports__, {
    Table: ()=>Table
});
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
const external_react_namespaceObject = require("react");
var external_react_default = /*#__PURE__*/ __webpack_require__.n(external_react_namespaceObject);
const schema_namespaceObject = require("@tachybase/schema");
const client_namespaceObject = require("@tachybase/utils/client");
const icons_namespaceObject = require("@ant-design/icons");
const sortable_namespaceObject = require("@dnd-kit/sortable");
const external_ahooks_namespaceObject = require("ahooks");
const external_antd_namespaceObject = require("antd");
const external_classnames_namespaceObject = require("classnames");
var external_classnames_default = /*#__PURE__*/ __webpack_require__.n(external_classnames_namespaceObject);
const external_lodash_namespaceObject = require("lodash");
var external_lodash_default = /*#__PURE__*/ __webpack_require__.n(external_lodash_namespaceObject);
const external_react_i18next_namespaceObject = require("react-i18next");
const index_js_namespaceObject = require("../__builtins__/index.js");
const external_index_js_namespaceObject = require("../../index.js");
const external_index_js_namespaceObject_1 = require("../../../index.js");
const withDynamicSchemaProps_js_namespaceObject = require("../../../application/hoc/withDynamicSchemaProps.js");
const isNewRecord_js_namespaceObject = require("../../../data-source/collection-record/isNewRecord.js");
const DeclareVariable_js_namespaceObject = require("../../../modules/variable/DeclareVariable.js");
const hooks_js_namespaceObject = require("../association-field/hooks.js");
const ColumnFieldProvider_js_namespaceObject = require("./components/ColumnFieldProvider.js");
const external_Table_styles_js_namespaceObject = require("./Table.styles.js");
const external_utils_js_namespaceObject = require("./utils.js");
const useArrayField = (props)=>{
    const field = (0, schema_namespaceObject.useField)();
    return props.field || field;
};
const useTableColumns = (props)=>{
    var _field_value_slice_filter, _field_value_slice, _field_value_slice1, _field_value, _schema_reduceProperties;
    const { t } = (0, external_react_i18next_namespaceObject.useTranslation)();
    const { styles } = (0, external_Table_styles_js_namespaceObject.useStyles)();
    const field = useArrayField(props);
    const schema = (0, schema_namespaceObject.useFieldSchema)();
    const { schemaInWhitelist } = (0, external_index_js_namespaceObject_1.useACLFieldWhitelist)();
    const { designable } = (0, external_index_js_namespaceObject.useDesignable)();
    const { exists, render } = (0, external_index_js_namespaceObject_1.useSchemaInitializerRender)(schema['x-initializer'], schema['x-initializer-props']);
    const parentRecordData = (0, external_index_js_namespaceObject_1.useCollectionParentRecordData)();
    const collection = (0, external_index_js_namespaceObject_1.useCollection)();
    const dataSource = (null == field ? void 0 : null === (_field_value = field.value) || void 0 === _field_value ? void 0 : null === (_field_value_slice1 = _field_value.slice) || void 0 === _field_value_slice1 ? void 0 : null === (_field_value_slice = _field_value_slice1.call(_field_value)) || void 0 === _field_value_slice ? void 0 : null === (_field_value_slice_filter = _field_value_slice.filter) || void 0 === _field_value_slice_filter ? void 0 : _field_value_slice_filter.call(_field_value_slice, Boolean)) || [];
    const columns = null === (_schema_reduceProperties = schema.reduceProperties((buf, s)=>{
        if ((0, external_utils_js_namespaceObject.isColumnComponent)(s) && schemaInWhitelist(Object.values(s.properties || {}).pop())) return buf.concat([
            s
        ]);
        return buf;
    }, [])) || void 0 === _schema_reduceProperties ? void 0 : _schema_reduceProperties.map((s)=>{
        var _s_xcomponentprops;
        const collectionFields = s.reduceProperties((buf, s)=>{
            if ((0, external_utils_js_namespaceObject.isCollectionFieldComponent)(s)) return buf.concat([
                s
            ]);
        }, []);
        const dataIndex = (null == collectionFields ? void 0 : collectionFields.length) > 0 ? collectionFields[0].name : s.name;
        return {
            title: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(schema_namespaceObject.RecursionField, {
                name: s.name,
                schema: s,
                onlyRenderSelf: true
            }),
            dataIndex,
            key: s.name,
            sorter: null === (_s_xcomponentprops = s['x-component-props']) || void 0 === _s_xcomponentprops ? void 0 : _s_xcomponentprops['sorter'],
            width: 200,
            ...s['x-component-props'],
            render: (v, record)=>{
                var _field_value;
                const index = null === (_field_value = field.value) || void 0 === _field_value ? void 0 : _field_value.indexOf(record);
                return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(DeclareVariable_js_namespaceObject.DeclareVariable, {
                    name: "$nPopupRecord",
                    title: t('Current popup record'),
                    value: record,
                    collection: collection,
                    children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(hooks_js_namespaceObject.SubFormProvider, {
                        value: {
                            value: record,
                            collection
                        },
                        children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_index_js_namespaceObject_1.RecordIndexProvider, {
                            index: record.__index || index,
                            children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_index_js_namespaceObject_1.RecordProvider, {
                                isNew: (0, isNewRecord_js_namespaceObject.isNewRecord)(record),
                                record: record,
                                parent: parentRecordData,
                                children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(ColumnFieldProvider_js_namespaceObject.ColumnFieldProvider, {
                                    schema: s,
                                    basePath: field.address.concat(record.__index || index),
                                    children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
                                        role: "button",
                                        className: styles.toolbar,
                                        children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(schema_namespaceObject.RecursionField, {
                                            basePath: field.address.concat(record.__index || index),
                                            schema: s,
                                            onlyRenderProperties: true
                                        })
                                    })
                                })
                            })
                        })
                    })
                });
            }
        };
    });
    if (!exists) return columns;
    const tableColumns = columns.concat({
        title: render(),
        fixed: 'right',
        dataIndex: 'TABLE_COLUMN_INITIALIZER',
        key: 'TABLE_COLUMN_INITIALIZER',
        render: designable ? ()=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {}) : null
    });
    if (props.showDel) tableColumns.push({
        title: '',
        key: 'delete',
        width: 60,
        align: 'center',
        fixed: 'right',
        render: (v, record, index)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment, {
                children: [
                    /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(icons_namespaceObject.CopyOutlined, {
                        style: {
                            cursor: 'pointer',
                            marginRight: '10px'
                        },
                        onClick: ()=>{
                            (0, schema_namespaceObject.action)(()=>{
                                if (!Array.isArray(field.value)) field.value = [];
                                (0, schema_namespaceObject.spliceArrayState)(field, {
                                    startIndex: index + 1,
                                    insertCount: 1
                                });
                                field.value.splice(index + 1, 0, (0, isNewRecord_js_namespaceObject.markRecordAsNew)(external_lodash_default().cloneDeep(record)));
                                (0, external_lodash_namespaceObject.each)(field.form.fields, (targetField, key)=>{
                                    if (!targetField) delete field.form.fields[key];
                                });
                                return field.onInput(field.value);
                            });
                        }
                    }),
                    /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(icons_namespaceObject.DeleteOutlined, {
                        style: {
                            cursor: 'pointer'
                        },
                        onClick: ()=>{
                            (0, schema_namespaceObject.action)(()=>{
                                var _field_initialValue;
                                const index = dataSource.indexOf(record);
                                (0, schema_namespaceObject.spliceArrayState)(field, {
                                    startIndex: index,
                                    deleteCount: 1
                                });
                                field.value.splice(index, 1);
                                null === (_field_initialValue = field.initialValue) || void 0 === _field_initialValue || _field_initialValue.splice(index, 1);
                                props.setFieldValue([
                                    ...field.value
                                ]);
                                return field.onInput(field.value);
                            });
                        }
                    })
                ]
            })
    });
    return [
        ...tableColumns.filter((column)=>'left' === column.fixed),
        ...tableColumns.filter((column)=>!column.fixed || 'left' !== column.fixed && 'right' !== column.fixed),
        ...tableColumns.filter((column)=>'right' === column.fixed)
    ];
};
const SortableRow = (props)=>{
    var _props_datarowkey, _active_data_current, _over_data_current_sortable, _over_data_current;
    const { styles } = (0, external_Table_styles_js_namespaceObject.useStyles)();
    const id = null === (_props_datarowkey = props['data-row-key']) || void 0 === _props_datarowkey ? void 0 : _props_datarowkey.toString();
    const { setNodeRef, isOver, active, over } = (0, sortable_namespaceObject.useSortable)({
        id
    });
    var _active_data_current_sortable_index, _over_data_current_sortable_index;
    const className = (null !== (_active_data_current_sortable_index = null == active ? void 0 : null === (_active_data_current = active.data.current) || void 0 === _active_data_current ? void 0 : _active_data_current.sortable.index) && void 0 !== _active_data_current_sortable_index ? _active_data_current_sortable_index : -1) > (null !== (_over_data_current_sortable_index = null == over ? void 0 : null === (_over_data_current = over.data.current) || void 0 === _over_data_current ? void 0 : null === (_over_data_current_sortable = _over_data_current.sortable) || void 0 === _over_data_current_sortable ? void 0 : _over_data_current_sortable.index) && void 0 !== _over_data_current_sortable_index ? _over_data_current_sortable_index : -1) ? styles.topActive : styles.bottomActive;
    return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("tr", {
        ref: (null == active ? void 0 : active.id) !== id ? setNodeRef : null,
        ...props,
        className: external_classnames_default()(props.className, {
            [className]: active && isOver
        })
    });
};
const SortHandle = (props)=>{
    const { id, ...otherProps } = props;
    const { listeners } = (0, sortable_namespaceObject.useSortable)({
        id
    });
    return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(icons_namespaceObject.MenuOutlined, {
        ...otherProps,
        ...listeners,
        style: {
            cursor: 'grab'
        }
    });
};
const TableIndex = (props)=>{
    const { index, ...otherProps } = props;
    return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
        className: external_classnames_default()('tb-table-index'),
        style: {
            padding: '0 8px 0 16px'
        },
        ...otherProps,
        children: index
    });
};
const usePaginationProps = (pagination1, pagination2)=>{
    const { t } = (0, external_react_i18next_namespaceObject.useTranslation)();
    const showTotal = (0, external_react_namespaceObject.useCallback)((total)=>t('Total {{count}} items', {
            count: total
        }), [
        t
    ]);
    if (false === pagination2) return false;
    if (!pagination2 && false === pagination1) return false;
    const result = {
        showTotal,
        showSizeChanger: true,
        ...pagination1,
        ...pagination2
    };
    return !(result.total <= result.pageSize) && result;
};
const Table = (0, withDynamicSchemaProps_js_namespaceObject.withDynamicSchemaProps)((0, schema_namespaceObject.observer)((props)=>{
    var _schema_parent, _field_data, _field_value_slice_filter, _field_value_slice, _field_value_slice1, _field_value, _fieldSchema_parent_xdecoratorprops, _fieldSchema_parent;
    const { token } = (0, index_js_namespaceObject.useToken)();
    const { styles } = (0, external_Table_styles_js_namespaceObject.useStyles)();
    const { pagination: pagination1, useProps, ...others1 } = props;
    const { pagination: pagination2, ...others2 } = (null == useProps ? void 0 : useProps()) || {};
    const { dragSort = false, showIndex = true, onRowSelectionChange, onChange: onTableChange, rowSelection, rowKey, required, onExpand, onClickRow, ...others } = {
        ...others1,
        ...others2
    };
    const field = useArrayField(others);
    const columns = useTableColumns(others);
    const schema = (0, schema_namespaceObject.useFieldSchema)();
    const collection = (0, external_index_js_namespaceObject_1.useCollection_deprecated)();
    const isTableSelector = (null == schema ? void 0 : null === (_schema_parent = schema.parent) || void 0 === _schema_parent ? void 0 : _schema_parent['x-decorator']) === 'TableSelectorProvider';
    const ctx = isTableSelector ? (0, external_index_js_namespaceObject_1.useTableSelectorContext)() : (0, external_index_js_namespaceObject_1.useTableBlockContext)();
    const { expandFlag, allIncludesChildren } = ctx;
    const onRowDragEnd = (0, external_ahooks_namespaceObject.useMemoizedFn)(others.onRowDragEnd || (()=>{}));
    const paginationProps = usePaginationProps(pagination1, pagination2);
    const [expandedKeys, setExpandesKeys] = (0, external_react_namespaceObject.useState)([]);
    const [selectedRowKeys, setSelectedRowKeys] = (0, external_react_namespaceObject.useState)((null == field ? void 0 : null === (_field_data = field.data) || void 0 === _field_data ? void 0 : _field_data.selectedRowKeys) || []);
    const [selectedRow, setSelectedRow] = (0, external_react_namespaceObject.useState)([]);
    const dataSource = (null == field ? void 0 : null === (_field_value = field.value) || void 0 === _field_value ? void 0 : null === (_field_value_slice1 = _field_value.slice) || void 0 === _field_value_slice1 ? void 0 : null === (_field_value_slice = _field_value_slice1.call(_field_value)) || void 0 === _field_value_slice ? void 0 : null === (_field_value_slice_filter = _field_value_slice.filter) || void 0 === _field_value_slice_filter ? void 0 : _field_value_slice_filter.call(_field_value_slice, Boolean)) || [];
    const isRowSelect = (null == rowSelection ? void 0 : rowSelection.type) !== 'none';
    const defaultRowKeyMap = (0, external_react_namespaceObject.useRef)(new Map());
    let onRow = null, highlightRow = '';
    if (onClickRow) {
        onRow = (record)=>({
                onClick: (e)=>{
                    if ((0, client_namespaceObject.isPortalInBody)(e.target)) return;
                    onClickRow(record, setSelectedRow, selectedRow);
                }
            });
        highlightRow = styles.highlightRow;
    }
    (0, external_react_namespaceObject.useEffect)(()=>{
        expandFlag ? setExpandesKeys(allIncludesChildren) : setExpandesKeys([]);
    }, [
        expandFlag,
        allIncludesChildren
    ]);
    const components = (0, external_react_namespaceObject.useMemo)(()=>({
            header: {
                wrapper: (props)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_index_js_namespaceObject.DndContext, {
                        children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("thead", {
                            ...props
                        })
                    }),
                cell: (props)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("th", {
                        ...props,
                        className: external_classnames_default()(props.className, styles.headerCellDesigner)
                    })
            },
            body: {
                wrapper: (props)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_index_js_namespaceObject.DndContext, {
                        onDragEnd: (e)=>{
                            var _e_active_data_current_sortable, _e_active_data_current, _e_active, _e_over_data_current_sortable, _e_over_data_current, _e_over;
                            if (!e.active || !e.over) {
                                console.warn('move cancel');
                                return;
                            }
                            const fromIndex = null === (_e_active = e.active) || void 0 === _e_active ? void 0 : null === (_e_active_data_current = _e_active.data.current) || void 0 === _e_active_data_current ? void 0 : null === (_e_active_data_current_sortable = _e_active_data_current.sortable) || void 0 === _e_active_data_current_sortable ? void 0 : _e_active_data_current_sortable.index;
                            const toIndex = null === (_e_over = e.over) || void 0 === _e_over ? void 0 : null === (_e_over_data_current = _e_over.data.current) || void 0 === _e_over_data_current ? void 0 : null === (_e_over_data_current_sortable = _e_over_data_current.sortable) || void 0 === _e_over_data_current_sortable ? void 0 : _e_over_data_current_sortable.index;
                            const from = field.value[fromIndex] || e.active;
                            const to = field.value[toIndex] || e.over;
                            field.move(fromIndex, toIndex);
                            onRowDragEnd({
                                from,
                                to
                            });
                        },
                        children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("tbody", {
                            ...props
                        })
                    }),
                row: (props)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(SortableRow, {
                        ...props
                    }),
                cell: (props)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("td", {
                        ...props,
                        className: external_classnames_default()(props.className, styles.bodyCell)
                    })
            }
        }), [
        field,
        onRowDragEnd,
        dragSort
    ]);
    const defaultRowKey = (record)=>{
        if (record.key) return record.key;
        if (defaultRowKeyMap.current.has(record)) return defaultRowKeyMap.current.get(record);
        const key = (0, schema_namespaceObject.uid)();
        defaultRowKeyMap.current.set(record, key);
        return key;
    };
    const getRowKey = (record)=>{
        if ('string' == typeof rowKey) {
            var _record_rowKey;
            return null === (_record_rowKey = record[rowKey]) || void 0 === _record_rowKey ? void 0 : _record_rowKey.toString();
        }
        var _this;
        return null === (_this = (null != rowKey ? rowKey : defaultRowKey)(record)) || void 0 === _this ? void 0 : _this.toString();
    };
    const restProps = {
        rowSelection: rowSelection ? {
            type: 'checkbox',
            selectedRowKeys: selectedRowKeys,
            onChange (selectedRowKeys, selectedRows) {
                field.data = field.data || {};
                field.data.selectedRowKeys = selectedRowKeys;
                setSelectedRowKeys(selectedRowKeys);
                null == onRowSelectionChange || onRowSelectionChange(selectedRowKeys, selectedRows);
            },
            getCheckboxProps (record) {
                return {
                    'aria-label': "checkbox"
                };
            },
            renderCell: (checked, record, index, originNode)=>{
                var _props_pagination, _props_pagination1;
                if (!dragSort && !showIndex) return originNode;
                const current = null == props ? void 0 : null === (_props_pagination = props.pagination) || void 0 === _props_pagination ? void 0 : _props_pagination.current;
                const pageSize = (null == props ? void 0 : null === (_props_pagination1 = props.pagination) || void 0 === _props_pagination1 ? void 0 : _props_pagination1.pageSize) || 20;
                if (current) index = index + (current - 1) * pageSize + 1;
                else index += 1;
                if (record.__index) index = (0, external_utils_js_namespaceObject.extractIndex)(record.__index);
                return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
                    role: "button",
                    "aria-label": "table-index-".concat(index),
                    className: external_classnames_default()(checked ? 'checked' : null, styles.rowSelect, {
                        [styles.rowSelectHover]: isRowSelect
                    }),
                    children: [
                        /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
                            className: external_classnames_default()(checked ? 'checked' : null, styles.cellChecked),
                            children: [
                                dragSort && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(SortHandle, {
                                    id: getRowKey(record)
                                }),
                                showIndex && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(TableIndex, {
                                    index: index
                                })
                            ]
                        }),
                        isRowSelect && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
                            className: external_classnames_default()('tb-origin-node', checked ? 'checked' : null, styles.cellCheckedNode),
                            children: originNode
                        })
                    ]
                });
            },
            ...rowSelection
        } : void 0
    };
    const SortableWrapper = (0, external_react_namespaceObject.useCallback)((param)=>{
        let { children } = param;
        var _field_value_map, _field_value;
        return dragSort ? /*#__PURE__*/ external_react_default().createElement(sortable_namespaceObject.SortableContext, {
            items: (null === (_field_value = field.value) || void 0 === _field_value ? void 0 : null === (_field_value_map = _field_value.map) || void 0 === _field_value_map ? void 0 : _field_value_map.call(_field_value, getRowKey)) || []
        }, children) : /*#__PURE__*/ external_react_default().createElement(external_react_default().Fragment, {}, children);
    }, [
        field,
        dragSort
    ]);
    const fieldSchema = (0, schema_namespaceObject.useFieldSchema)();
    const fixedBlock = null == fieldSchema ? void 0 : null === (_fieldSchema_parent = fieldSchema.parent) || void 0 === _fieldSchema_parent ? void 0 : null === (_fieldSchema_parent_xdecoratorprops = _fieldSchema_parent['x-decorator-props']) || void 0 === _fieldSchema_parent_xdecoratorprops ? void 0 : _fieldSchema_parent_xdecoratorprops.fixedBlock;
    const { height: tableHeight, tableSizeRefCallback } = (0, external_index_js_namespaceObject.useTableSize)();
    const scroll = (0, external_react_namespaceObject.useMemo)(()=>fixedBlock ? {
            x: 'max-content',
            y: tableHeight
        } : {
            x: 'max-content'
        }, [
        fixedBlock,
        tableHeight
    ]);
    return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
        className: styles.container,
        children: [
            /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(SortableWrapper, {
                children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_antd_namespaceObject.Table, {
                    ref: tableSizeRefCallback,
                    rowKey: null != rowKey ? rowKey : defaultRowKey,
                    dataSource: dataSource,
                    tableLayout: "auto",
                    ...others,
                    ...restProps,
                    pagination: paginationProps,
                    components: components,
                    onChange: (pagination, filters, sorter, extra)=>{
                        null == onTableChange || onTableChange(pagination, filters, sorter, extra);
                    },
                    onRow: onRow,
                    rowClassName: (record)=>selectedRow.includes(record[rowKey]) ? highlightRow : '',
                    scroll: scroll,
                    columns: columns,
                    expandable: {
                        onExpand: (flag, record)=>{
                            const newKeys = flag ? [
                                ...expandedKeys,
                                record[collection.getPrimaryKey()]
                            ] : expandedKeys.filter((i)=>record[collection.getPrimaryKey()] !== i);
                            setExpandesKeys(newKeys);
                            null == onExpand || onExpand(flag, record);
                        },
                        expandedRowKeys: expandedKeys
                    }
                })
            }),
            field.errors.length > 0 && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
                className: "ant-formily-item-error-help ant-formily-item-help ant-formily-item-help-enter ant-formily-item-help-enter-active",
                children: field.errors.map((error)=>error.messages.map((message)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
                            children: message
                        }, message)))
            })
        ]
    });
}), {
    displayName: 'Table'
});
var __webpack_export_target__ = exports;
for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', {
    value: true
});
