"use strict";
var __webpack_require__ = {};
(()=>{
    __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__, {
    getConfigurableProperties: ()=>getConfigurableProperties,
    defaultConfigurableProperties: ()=>defaultConfigurableProperties
});
const PresetFields_js_namespaceObject = require("../components/PresetFields.js");
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': PresetFields_js_namespaceObject.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;
};
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
});
