"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__, {
    DatetimeFieldInterface: ()=>DatetimeFieldInterface
});
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 DatetimeFieldInterface extends CollectionFieldInterface_js_namespaceObject.CollectionFieldInterface {
    constructor(...args){
        super(...args), _define_property(this, "name", 'datetime'), _define_property(this, "type", 'object'), _define_property(this, "group", 'datetime'), _define_property(this, "order", 1), _define_property(this, "title", '{{t("Datetime")}}'), _define_property(this, "sortable", true), _define_property(this, "default", {
            type: 'date',
            uiSchema: {
                type: 'string',
                'x-component': 'DatePicker',
                'x-component-props': {
                    showTime: false
                }
            }
        }), _define_property(this, "availableTypes", [
            'date',
            'dateOnly'
        ]), _define_property(this, "hasDefaultValue", true), _define_property(this, "properties", {
            ...index_js_namespaceObject.defaultProps,
            ...index_js_namespaceObject.dateTimeProps,
            'uiSchema.x-component-props.gmt': {
                type: 'boolean',
                title: '{{t("GMT")}}',
                'x-hidden': true,
                'x-component': 'Checkbox',
                'x-content': '{{t("Use the same time zone (GMT) for all users")}}',
                'x-decorator': 'FormItem',
                default: false
            }
        }), _define_property(this, "filterable", {
            operators: index_js_namespaceObject.operators.datetime
        }), _define_property(this, "titleUsable", true);
    }
}
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
});
