"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__, {
    TimeFieldInterface: ()=>TimeFieldInterface
});
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 TimeFieldInterface extends CollectionFieldInterface_js_namespaceObject.CollectionFieldInterface {
    constructor(...args){
        super(...args), _define_property(this, "name", 'time'), _define_property(this, "type", 'object'), _define_property(this, "group", 'datetime'), _define_property(this, "order", 2), _define_property(this, "title", '{{t("Time")}}'), _define_property(this, "sortable", true), _define_property(this, "default", {
            type: 'time',
            uiSchema: {
                type: 'string',
                'x-component': 'TimePicker'
            }
        }), _define_property(this, "availableTypes", [
            'time'
        ]), _define_property(this, "hasDefaultValue", true), _define_property(this, "properties", {
            ...index_js_namespaceObject.defaultProps,
            'uiSchema.x-component-props.format': {
                type: 'string',
                title: '{{t("Time format")}}',
                'x-component': 'Radio.Group',
                'x-decorator': 'FormItem',
                default: 'HH:mm:ss',
                enum: [
                    {
                        label: '{{t("12 hour")}}',
                        value: 'hh:mm:ss a'
                    },
                    {
                        label: '{{t("24 hour")}}',
                        value: 'HH:mm:ss'
                    }
                ]
            }
        }), _define_property(this, "filterable", {
            operators: index_js_namespaceObject.operators.time
        }), _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
});
