"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__, {
    TableColumnDesigner: ()=>TableColumnDesigner,
    useLabelFields: ()=>useLabelFields,
    useColorFields: ()=>useColorFields
});
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
require("react");
const schema_namespaceObject = require("@tachybase/schema");
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("../../../block-provider/index.js");
const external_collection_manager_index_js_namespaceObject = require("../../../collection-manager/index.js");
const external_schema_settings_index_js_namespaceObject = require("../../../schema-settings/index.js");
const useIsAllowToSetDefaultValue_js_namespaceObject = require("../../../schema-settings/hooks/useIsAllowToSetDefaultValue.js");
const isPatternDisabled_js_namespaceObject = require("../../../schema-settings/isPatternDisabled.js");
const SchemaSettingsDataScope_js_namespaceObject = require("../../../schema-settings/SchemaSettingsDataScope.js");
const SchemaSettingsDateFormat_js_namespaceObject = require("../../../schema-settings/SchemaSettingsDateFormat.js");
const SchemaSettingsDefaultValue_js_namespaceObject = require("../../../schema-settings/SchemaSettingsDefaultValue.js");
const SchemaSettingsSortingRule_js_namespaceObject = require("../../../schema-settings/SchemaSettingsSortingRule.js");
const external_hooks_index_js_namespaceObject = require("../../hooks/index.js");
const hooks_js_namespaceObject = require("../association-field/hooks.js");
const external_filter_index_js_namespaceObject = require("../filter/index.js");
const useLabelFields = (collectionName)=>{
    var _targetFields_map;
    const compile = (0, external_hooks_index_js_namespaceObject.useCompile)();
    const { getCollectionFields } = (0, external_collection_manager_index_js_namespaceObject.useCollectionManager_deprecated)();
    if (!collectionName) return [];
    const targetFields = getCollectionFields(collectionName);
    return null == targetFields ? void 0 : null === (_targetFields_map = targetFields.map) || void 0 === _targetFields_map ? void 0 : _targetFields_map.call(targetFields, (field)=>{
        var _field_uiSchema;
        return {
            value: field.name,
            label: compile((null == field ? void 0 : null === (_field_uiSchema = field.uiSchema) || void 0 === _field_uiSchema ? void 0 : _field_uiSchema.title) || field.name)
        };
    });
};
const useColorFields = (collectionName)=>{
    var _targetFields_filter_map, _targetFields_filter, _targetFields_filter1;
    const compile = (0, external_hooks_index_js_namespaceObject.useCompile)();
    const { getCollectionFields } = (0, external_collection_manager_index_js_namespaceObject.useCollectionManager_deprecated)();
    if (!collectionName) return [];
    const targetFields = getCollectionFields(collectionName);
    return null == targetFields ? void 0 : null === (_targetFields_filter1 = targetFields.filter) || void 0 === _targetFields_filter1 ? void 0 : null === (_targetFields_filter = _targetFields_filter1.call(targetFields, (field)=>(null == field ? void 0 : field.interface) === 'color')) || void 0 === _targetFields_filter ? void 0 : null === (_targetFields_filter_map = _targetFields_filter.map) || void 0 === _targetFields_filter_map ? void 0 : _targetFields_filter_map.call(_targetFields_filter, (field)=>{
        var _field_uiSchema;
        return {
            value: field.name,
            label: compile((null == field ? void 0 : null === (_field_uiSchema = field.uiSchema) || void 0 === _field_uiSchema ? void 0 : _field_uiSchema.title) || field.name)
        };
    });
};
const TableColumnDesigner = (props)=>{
    var _fieldSchema_xcomponentprops, _uiSchema_xcomponentprops, _fieldSchema_xcomponentprops1, _collectionField_uiSchema, _fieldSchema_xcomponentprops_service_params, _fieldSchema_xcomponentprops_service, _fieldSchema_xcomponentprops2, _columnSchema_xcomponentprops, _fieldSchema_xcomponentprops3, _fieldSchema_xcomponentprops4;
    const { uiSchema, fieldSchema, collectionField } = props;
    const { form } = (0, index_js_namespaceObject.useFormBlockContext)();
    const { getInterface, getCollection } = (0, external_collection_manager_index_js_namespaceObject.useCollectionManager_deprecated)();
    const field = (0, schema_namespaceObject.useField)();
    const { t } = (0, external_react_i18next_namespaceObject.useTranslation)();
    const columnSchema = (0, schema_namespaceObject.useFieldSchema)();
    const { dn } = (0, external_hooks_index_js_namespaceObject.useDesignable)();
    const fieldNames = (null == fieldSchema ? void 0 : null === (_fieldSchema_xcomponentprops = fieldSchema['x-component-props']) || void 0 === _fieldSchema_xcomponentprops ? void 0 : _fieldSchema_xcomponentprops['fieldNames']) || (null == uiSchema ? void 0 : null === (_uiSchema_xcomponentprops = uiSchema['x-component-props']) || void 0 === _uiSchema_xcomponentprops ? void 0 : _uiSchema_xcomponentprops['fieldNames']);
    var _collectionField_target;
    const options = useLabelFields(null !== (_collectionField_target = null == collectionField ? void 0 : collectionField.target) && void 0 !== _collectionField_target ? _collectionField_target : null == collectionField ? void 0 : collectionField.targetCollection);
    var _collectionField_target1;
    const colorFieldOptions = useColorFields(null !== (_collectionField_target1 = null == collectionField ? void 0 : collectionField.target) && void 0 !== _collectionField_target1 ? _collectionField_target1 : null == collectionField ? void 0 : collectionField.targetCollection);
    const interfaceCfg = getInterface(null == collectionField ? void 0 : collectionField.interface);
    const targetCollection = getCollection(null == collectionField ? void 0 : collectionField.target);
    const isFileField = isFileCollection(targetCollection);
    const isSubTableColumn = [
        'QuickEdit',
        'FormItem'
    ].includes(fieldSchema['x-decorator']);
    const { currentMode } = (0, hooks_js_namespaceObject.useAssociationFieldContext)();
    const { isAllowToSetDefaultValue } = (0, useIsAllowToSetDefaultValue_js_namespaceObject.useIsAllowToSetDefaultValue)({
        collectionField,
        fieldSchema
    });
    const isDateField = [
        'datetime',
        'createdAt',
        'updatedAt'
    ].includes(null == collectionField ? void 0 : collectionField.interface);
    const isAssociationField = [
        'obo',
        'oho',
        'o2o',
        'o2m',
        'm2m',
        'm2o',
        'snapshot'
    ].includes(null == collectionField ? void 0 : collectionField.interface);
    const fieldModeOptions = (0, external_hooks_index_js_namespaceObject.useFieldModeOptions)({
        fieldSchema
    });
    const fieldMode = (null == fieldSchema ? void 0 : null === (_fieldSchema_xcomponentprops1 = fieldSchema['x-component-props']) || void 0 === _fieldSchema_xcomponentprops1 ? void 0 : _fieldSchema_xcomponentprops1['mode']) || 'Select';
    let readOnlyMode = 'editable';
    if (true === fieldSchema['x-disabled']) readOnlyMode = 'readonly';
    if (true === fieldSchema['x-read-pretty']) readOnlyMode = 'read-pretty';
    const isSelectFieldMode = isAssociationField && 'Select' === fieldMode;
    return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_schema_settings_index_js_namespaceObject.GeneralSchemaDesigner, {
        disableInitializer: true,
        children: [
            /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_schema_settings_index_js_namespaceObject.SchemaSettingsModalItem, {
                title: t('Custom column title'),
                schema: {
                    type: 'object',
                    title: t('Custom column title'),
                    properties: {
                        title: {
                            title: t('Column title'),
                            default: null == columnSchema ? void 0 : columnSchema.title,
                            description: "".concat(t('Original field title: ')).concat((null == collectionField ? void 0 : null === (_collectionField_uiSchema = collectionField.uiSchema) || void 0 === _collectionField_uiSchema ? void 0 : _collectionField_uiSchema.title) || (null == fieldSchema ? void 0 : fieldSchema.title)),
                            'x-decorator': 'FormItem',
                            'x-component': 'Input',
                            'x-component-props': {}
                        }
                    }
                },
                onSubmit: (param)=>{
                    let { title } = param;
                    if (title) {
                        field.title = title;
                        columnSchema.title = title;
                        dn.emit('patch', {
                            schema: {
                                'x-uid': columnSchema['x-uid'],
                                title: columnSchema.title
                            }
                        });
                    }
                    dn.refresh();
                }
            }),
            isSelectFieldMode && !field.readPretty && !(null == uiSchema ? void 0 : uiSchema['x-read-pretty']) && isSubTableColumn && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(SchemaSettingsDataScope_js_namespaceObject.SchemaSettingsDataScope, {
                collectionName: null == collectionField ? void 0 : collectionField.target,
                defaultFilter: (null == fieldSchema ? void 0 : null === (_fieldSchema_xcomponentprops2 = fieldSchema['x-component-props']) || void 0 === _fieldSchema_xcomponentprops2 ? void 0 : null === (_fieldSchema_xcomponentprops_service = _fieldSchema_xcomponentprops2.service) || void 0 === _fieldSchema_xcomponentprops_service ? void 0 : null === (_fieldSchema_xcomponentprops_service_params = _fieldSchema_xcomponentprops_service.params) || void 0 === _fieldSchema_xcomponentprops_service_params ? void 0 : _fieldSchema_xcomponentprops_service_params.filter) || {},
                form: form,
                onSubmit: (param)=>{
                    let { filter } = param;
                    var _field_path, _field_path1;
                    filter = (0, external_filter_index_js_namespaceObject.removeNullCondition)(filter);
                    (0, external_lodash_namespaceObject.set)(field.componentProps, 'service.params.filter', filter);
                    fieldSchema['x-component-props'] = field.componentProps;
                    const path = null === (_field_path1 = field.path) || void 0 === _field_path1 ? void 0 : _field_path1.splice((null === (_field_path = field.path) || void 0 === _field_path ? void 0 : _field_path.length) - 1, 1);
                    field.form.query("".concat(path.concat("*." + fieldSchema.name))).forEach((f)=>{
                        f.componentProps.service = f.componentProps.service || {
                            params: {}
                        };
                        f.componentProps.service.params.filter = filter;
                    });
                    dn.emit('patch', {
                        schema: {
                            ['x-uid']: fieldSchema['x-uid'],
                            'x-component-props': field.componentProps
                        }
                    });
                }
            }),
            /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_schema_settings_index_js_namespaceObject.SchemaSettingsModalItem, {
                title: t('Column width'),
                schema: {
                    type: 'object',
                    title: t('Column width'),
                    properties: {
                        width: {
                            default: (null == columnSchema ? void 0 : null === (_columnSchema_xcomponentprops = columnSchema['x-component-props']) || void 0 === _columnSchema_xcomponentprops ? void 0 : _columnSchema_xcomponentprops['width']) || 200,
                            'x-decorator': 'FormItem',
                            'x-component': 'InputNumber',
                            'x-component-props': {}
                        }
                    }
                },
                onSubmit: (param)=>{
                    let { width } = param;
                    const props = columnSchema['x-component-props'] || {};
                    props['width'] = width;
                    const schema = {
                        ['x-uid']: columnSchema['x-uid']
                    };
                    schema['x-component-props'] = props;
                    columnSchema['x-component-props'] = props;
                    field.componentProps.width = width;
                    dn.emit('patch', {
                        schema
                    });
                    dn.refresh();
                }
            }),
            interfaceCfg && true === interfaceCfg.sortable && !currentMode && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_schema_settings_index_js_namespaceObject.SchemaSettingsSwitchItem, {
                title: t('Sortable'),
                checked: field.componentProps.sorter,
                onChange: (v)=>{
                    const schema = {
                        ['x-uid']: columnSchema['x-uid']
                    };
                    columnSchema['x-component-props'] = {
                        ...columnSchema['x-component-props'],
                        sorter: v
                    };
                    schema['x-component-props'] = columnSchema['x-component-props'];
                    field.componentProps.sorter = v;
                    dn.emit('patch', {
                        schema
                    });
                    dn.refresh();
                }
            }),
            [
                'linkTo',
                'm2m',
                'm2o',
                'o2m',
                'obo',
                'oho',
                'snapshot',
                'createdBy',
                'updatedBy'
            ].includes(null == collectionField ? void 0 : collectionField.interface) && !isFileField && ('read-pretty' === readOnlyMode || field.readPretty || field.readOnly) && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_schema_settings_index_js_namespaceObject.SchemaSettingsSwitchItem, {
                title: t('Enable link'),
                checked: (null === (_fieldSchema_xcomponentprops3 = fieldSchema['x-component-props']) || void 0 === _fieldSchema_xcomponentprops3 ? void 0 : _fieldSchema_xcomponentprops3.enableLink) !== false,
                onChange: (flag)=>{
                    fieldSchema['x-component-props'] = {
                        ...null == fieldSchema ? void 0 : fieldSchema['x-component-props'],
                        enableLink: flag
                    };
                    field.componentProps = {
                        ...null == fieldSchema ? void 0 : fieldSchema['x-component-props'],
                        enableLink: flag
                    };
                    dn.emit('patch', {
                        schema: {
                            'x-uid': fieldSchema['x-uid'],
                            'x-component-props': {
                                ...null == fieldSchema ? void 0 : fieldSchema['x-component-props']
                            }
                        }
                    });
                    dn.refresh();
                }
            }),
            [
                'linkTo',
                'm2m',
                'm2o',
                'o2m',
                'obo',
                'oho',
                'snapshot'
            ].includes(null == collectionField ? void 0 : collectionField.interface) && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_schema_settings_index_js_namespaceObject.SchemaSettingsSelectItem, {
                title: t('Title field'),
                options: options,
                value: null == fieldNames ? void 0 : fieldNames['label'],
                onChange: (label)=>{
                    var _collectionField_uiSchema_xcomponentprops, _collectionField_uiSchema, _fieldSchema_xcomponentprops, _field_path, _field_path1;
                    const fieldNames = {
                        ...null == collectionField ? void 0 : null === (_collectionField_uiSchema = collectionField.uiSchema) || void 0 === _collectionField_uiSchema ? void 0 : null === (_collectionField_uiSchema_xcomponentprops = _collectionField_uiSchema['x-component-props']) || void 0 === _collectionField_uiSchema_xcomponentprops ? void 0 : _collectionField_uiSchema_xcomponentprops['fieldNames'],
                        ...null == fieldSchema ? void 0 : null === (_fieldSchema_xcomponentprops = fieldSchema['x-component-props']) || void 0 === _fieldSchema_xcomponentprops ? void 0 : _fieldSchema_xcomponentprops['fieldNames'],
                        label
                    };
                    external_lodash_default().set(fieldSchema, 'x-component-props.fieldNames', fieldNames);
                    const path = null === (_field_path1 = field.path) || void 0 === _field_path1 ? void 0 : _field_path1.splice((null === (_field_path = field.path) || void 0 === _field_path ? void 0 : _field_path.length) - 1, 1);
                    field.form.query("".concat(path.concat("*." + fieldSchema.name))).forEach((f)=>{
                        f.componentProps.fieldNames = fieldNames;
                    });
                    dn.emit('patch', {
                        schema: {
                            'x-uid': fieldSchema['x-uid'],
                            'x-component-props': {
                                ...fieldSchema['x-component-props']
                            }
                        }
                    });
                    dn.refresh();
                }
            }),
            isAssociationField && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_schema_settings_index_js_namespaceObject.SchemaSettingsSelectItem, {
                title: t('Field component'),
                options: 'read-pretty' === readOnlyMode ? [
                    {
                        label: t('Title'),
                        value: 'Select'
                    },
                    isFileField && {
                        label: t('File manager'),
                        value: 'FileManager'
                    },
                    {
                        label: t('Tag'),
                        value: 'Tag'
                    }
                ].filter(Boolean) : fieldModeOptions,
                value: fieldMode,
                onChange: (mode)=>{
                    const schema = {
                        ['x-uid']: fieldSchema['x-uid']
                    };
                    fieldSchema['x-component-props'] = fieldSchema['x-component-props'] || {};
                    fieldSchema['x-component-props']['mode'] = mode;
                    schema['x-component-props'] = fieldSchema['x-component-props'];
                    field.componentProps = field.componentProps || {};
                    field.componentProps.mode = mode;
                    dn.emit('patch', {
                        schema
                    });
                    dn.refresh();
                }
            }, "field-mode"),
            [
                'Tag'
            ].includes(fieldMode) && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_schema_settings_index_js_namespaceObject.SchemaSettingsSelectItem, {
                title: t('Tag color field'),
                options: colorFieldOptions,
                value: null == fieldSchema ? void 0 : null === (_fieldSchema_xcomponentprops4 = fieldSchema['x-component-props']) || void 0 === _fieldSchema_xcomponentprops4 ? void 0 : _fieldSchema_xcomponentprops4.tagColorField,
                onChange: (tagColorField)=>{
                    const schema = {
                        ['x-uid']: fieldSchema['x-uid']
                    };
                    fieldSchema['x-component-props'] = fieldSchema['x-component-props'] || {};
                    fieldSchema['x-component-props']['tagColorField'] = tagColorField;
                    schema['x-component-props'] = fieldSchema['x-component-props'];
                    field.componentProps.tagColorField = tagColorField;
                    dn.emit('patch', {
                        schema
                    });
                    dn.refresh();
                }
            }, "title-field"),
            isSubTableColumn && !field.readPretty && !(null == uiSchema ? void 0 : uiSchema['x-read-pretty']) && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_schema_settings_index_js_namespaceObject.SchemaSettingsSwitchItem, {
                title: t('Required'),
                checked: fieldSchema.required,
                onChange: (required)=>{
                    var _field_path, _field_path1;
                    const schema = {
                        ['x-uid']: fieldSchema['x-uid']
                    };
                    fieldSchema['required'] = required;
                    schema['required'] = required;
                    const path = null === (_field_path1 = field.path) || void 0 === _field_path1 ? void 0 : _field_path1.splice((null === (_field_path = field.path) || void 0 === _field_path ? void 0 : _field_path.length) - 1, 1);
                    field.form.query("".concat(path.concat("*." + fieldSchema.name))).forEach((f)=>{
                        f.required = required;
                    });
                    dn.emit('patch', {
                        schema
                    });
                    dn.refresh();
                }
            }, "required"),
            isSubTableColumn && !(null == field ? void 0 : field.readPretty) && (null == collectionField ? void 0 : collectionField.interface) !== 'o2m' && !(0, isPatternDisabled_js_namespaceObject.isPatternDisabled)(fieldSchema) && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_schema_settings_index_js_namespaceObject.SchemaSettingsSelectItem, {
                title: t('Pattern'),
                options: [
                    {
                        label: t('Editable'),
                        value: 'editable'
                    },
                    {
                        label: t('Readonly'),
                        value: 'readonly'
                    },
                    {
                        label: t('Easy-reading'),
                        value: 'read-pretty'
                    }
                ],
                value: readOnlyMode,
                onChange: (v)=>{
                    var _field_path, _field_path1;
                    const schema = {
                        ['x-uid']: fieldSchema['x-uid']
                    };
                    const path = null === (_field_path1 = field.path) || void 0 === _field_path1 ? void 0 : _field_path1.splice((null === (_field_path = field.path) || void 0 === _field_path ? void 0 : _field_path.length) - 1, 1);
                    switch(v){
                        case 'readonly':
                            fieldSchema['x-read-pretty'] = false;
                            fieldSchema['x-disabled'] = true;
                            schema['x-read-pretty'] = false;
                            schema['x-disabled'] = true;
                            field.form.query("".concat(path.concat("*." + fieldSchema.name))).forEach((f)=>{
                                f.readonly = true;
                                f.disabled = true;
                            });
                            break;
                        case 'read-pretty':
                            fieldSchema['x-read-pretty'] = true;
                            fieldSchema['x-disabled'] = false;
                            schema['x-read-pretty'] = true;
                            schema['x-disabled'] = false;
                            field.form.query("".concat(path.concat("*." + fieldSchema.name))).forEach((f)=>{
                                f.readPretty = true;
                            });
                            break;
                        default:
                            fieldSchema['x-read-pretty'] = false;
                            fieldSchema['x-disabled'] = false;
                            schema['x-read-pretty'] = false;
                            schema['x-disabled'] = false;
                            field.form.query("".concat(path.concat("*." + fieldSchema.name))).forEach((f)=>{
                                f.readPretty = false;
                                f.disabled;
                            });
                            break;
                    }
                    dn.emit('patch', {
                        schema
                    });
                    dn.refresh();
                }
            }, "pattern"),
            isDateField && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(SchemaSettingsDateFormat_js_namespaceObject.SchemaSettingsDateFormat, {
                fieldSchema: fieldSchema
            }),
            isSubTableColumn && !(null == field ? void 0 : field.readPretty) && [
                'obo',
                'oho',
                'o2o',
                'o2m',
                'm2m',
                'm2o'
            ].includes(null == collectionField ? void 0 : collectionField.interface) && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(SchemaSettingsSortingRule_js_namespaceObject.SchemaSettingsSortingRule, {
                fieldSchema: fieldSchema,
                onSubmitCallBack: (sortArr)=>{
                    var _field_path, _field_path1;
                    const path = null === (_field_path1 = field.path) || void 0 === _field_path1 ? void 0 : _field_path1.splice((null === (_field_path = field.path) || void 0 === _field_path ? void 0 : _field_path.length) - 1, 1);
                    field.form.query("".concat(path.concat("*." + fieldSchema.name))).forEach((f)=>{
                        f.componentProps.service = f.componentProps.service || {
                            params: {}
                        };
                        f.componentProps.service.params.sort = sortArr;
                    });
                }
            }),
            isAllowToSetDefaultValue(isSubTableColumn) && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(SchemaSettingsDefaultValue_js_namespaceObject.SchemaSettingsDefaultValue, {
                fieldSchema: fieldSchema
            }),
            props.children,
            /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_schema_settings_index_js_namespaceObject.SchemaSettingsDivider, {}),
            /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_schema_settings_index_js_namespaceObject.SchemaSettingsRemove, {
                removeParentsIfNoChildren: !isSubTableColumn,
                breakRemoveOn: {
                    'x-component': 'Grid'
                },
                confirm: {
                    title: t('Delete table column')
                }
            })
        ]
    });
};
function isFileCollection(collection) {
    return (null == collection ? void 0 : collection.template) === 'file';
}
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
});
