import * as __WEBPACK_EXTERNAL_MODULE__components_PresetFields_mjs__ from "../components/PresetFields.mjs";
const defaultConfigurableProperties = {
    title: {
        type: 'string',
        title: '{{ t("Collection display name") }}',
        required: true,
        'x-decorator': 'FormItem',
        'x-component': 'Input'
    },
    name: {
        type: 'string',
        title: '{{t("Collection name")}}',
        required: true,
        'x-disabled': '{{ !createOnly }}',
        'x-decorator': 'FormItem',
        'x-component': 'Input',
        'x-validator': 'uid',
        description: "{{t('Randomly generated and can be modified. Support letters, numbers and underscores, must start with an letter.')}}"
    },
    inherits: {
        title: '{{t("Inherits")}}',
        type: 'hasMany',
        name: 'inherits',
        'x-decorator': 'FormItem',
        'x-component': 'Select',
        'x-component-props': {
            mode: 'multiple'
        },
        'x-disabled': '{{ !createOnly }}',
        'x-visible': '{{ enableInherits}}',
        'x-reactions': [
            '{{useAsyncDataSource(loadCollections, ["file"])}}'
        ]
    },
    category: {
        title: '{{t("Categories")}}',
        type: 'hasMany',
        name: 'category',
        'x-decorator': 'FormItem',
        'x-component': 'Select',
        'x-component-props': {
            mode: 'multiple'
        },
        'x-reactions': [
            '{{useAsyncDataSource(loadCategories)}}'
        ]
    },
    description: {
        title: '{{t("Description")}}',
        type: 'string',
        name: 'description',
        'x-decorator': 'FormItem',
        'x-component': 'Input.TextArea'
    },
    presetFields: {
        title: '{{t("Preset fields")}}',
        type: 'void',
        'x-decorator': 'FormItem',
        'x-visible': '{{ createOnly }}',
        'x-component': __WEBPACK_EXTERNAL_MODULE__components_PresetFields_mjs__.PresetFields
    }
};
const getConfigurableProperties = function() {
    for(var _len = arguments.length, keys = new Array(_len), _key = 0; _key < _len; _key++)keys[_key] = arguments[_key];
    const props = {};
    for (const key of keys)if (defaultConfigurableProperties[key]) props[key] = defaultConfigurableProperties[key];
    return props;
};
export { defaultConfigurableProperties, getConfigurableProperties };
