import * as __WEBPACK_EXTERNAL_MODULE__data_source_collection_field_interface_CollectionFieldInterface_mjs__ from "../../data-source/collection-field-interface/CollectionFieldInterface.mjs";
import * as __WEBPACK_EXTERNAL_MODULE__properties_index_mjs__ from "./properties/index.mjs";
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 UnixTimestampFieldInterface extends __WEBPACK_EXTERNAL_MODULE__data_source_collection_field_interface_CollectionFieldInterface_mjs__.CollectionFieldInterface {
    constructor(...args){
        super(...args), _define_property(this, "name", 'unixTimestamp'), _define_property(this, "type", 'object'), _define_property(this, "group", 'datetime'), _define_property(this, "order", 1), _define_property(this, "title", '{{t("Unix Timestamp")}}'), _define_property(this, "sortable", true), _define_property(this, "default", {
            type: 'bigInt',
            uiSchema: {
                type: 'number',
                'x-component': 'UnixTimestamp',
                'x-component-props': {
                    accuracy: 'millisecond',
                    showTime: true
                }
            }
        }), _define_property(this, "availableTypes", [
            'integet',
            'bigInt'
        ]), _define_property(this, "hasDefaultValue", true), _define_property(this, "properties", {
            ...__WEBPACK_EXTERNAL_MODULE__properties_index_mjs__.defaultProps,
            'uiSchema.x-component-props.accuracy': {
                type: 'string',
                title: '{{t("Accuracy")}}',
                'x-component': 'Radio.Group',
                'x-decorator': 'FormItem',
                default: 'millisecond',
                enum: [
                    {
                        value: 'millisecond',
                        label: '{{t("Millisecond")}}'
                    },
                    {
                        value: 'second',
                        label: '{{t("Second")}}'
                    }
                ]
            }
        }), _define_property(this, "filterable", {
            operators: __WEBPACK_EXTERNAL_MODULE__properties_index_mjs__.operators.number
        }), _define_property(this, "titleUsable", true);
    }
}
export { UnixTimestampFieldInterface };
