"use strict";
var __webpack_require__ = {};
(()=>{
    __webpack_require__.d = (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 = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
})();
(()=>{
    __webpack_require__.r = (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__, {
    CreatedByFieldInterface: ()=>CreatedByFieldInterface
});
const external_lodash_namespaceObject = require("lodash");
const CollectionFieldInterface_js_namespaceObject = require("../../data-source/collection-field-interface/CollectionFieldInterface.js");
const index_js_namespaceObject = require("./properties/index.js");
function _define_property(obj, key, value) {
    if (key in obj) Object.defineProperty(obj, key, {
        value: value,
        enumerable: true,
        configurable: true,
        writable: true
    });
    else obj[key] = value;
    return obj;
}
class CreatedByFieldInterface extends CollectionFieldInterface_js_namespaceObject.CollectionFieldInterface {
    schemaInitialize(schema, param) {
        let { block } = param;
        schema['properties'] = {
            viewer: (0, external_lodash_namespaceObject.cloneDeep)(index_js_namespaceObject.recordPickerViewer)
        };
        if ([
            'Table',
            'Kanban'
        ].includes(block)) {
            schema['x-component-props'] = schema['x-component-props'] || {};
            schema['x-component-props']['ellipsis'] = true;
        }
    }
    constructor(...args){
        super(...args), _define_property(this, "name", 'createdBy'), _define_property(this, "type", 'object'), _define_property(this, "group", 'systemInfo'), _define_property(this, "order", 3), _define_property(this, "title", '{{t("Created by")}}'), _define_property(this, "isAssociation", true), _define_property(this, "default", {
            type: 'belongsTo',
            target: 'users',
            foreignKey: 'createdById',
            uiSchema: {
                type: 'object',
                title: '{{t("Created by")}}',
                'x-component': 'AssociationField',
                'x-component-props': {
                    fieldNames: {
                        value: 'id',
                        label: 'nickname'
                    }
                },
                'x-read-pretty': true
            }
        }), _define_property(this, "availableTypes", [
            'belongsTo'
        ]), _define_property(this, "properties", {
            ...index_js_namespaceObject.defaultProps
        }), _define_property(this, "filterable", {
            nested: true,
            children: []
        });
    }
}
exports.CreatedByFieldInterface = __webpack_exports__.CreatedByFieldInterface;
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
    "CreatedByFieldInterface"
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
Object.defineProperty(exports, '__esModule', {
    value: true
});
