var __extends=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function o(){this.constructor=e}e.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}}();import{B as BaseField}from"./BaseField-461b6d0c.js";var DateDataType;(function(t){t["Unix"]="unix";t["ISO"]="iso"})(DateDataType||(DateDataType={}));var DateField=function(t){__extends(e,t);function e(e,r,o,n){var a=t.call(this,e,"date")||this;a.dateFormat="YYYY-MM-DD";a.timeFormat="HH:mm:ss";a.inputType="date";a.dateDataType=DateDataType.ISO;a.title=r;a.placeholder=o;a.description=n;return a}e.prototype.setDataType=function(t){this.dateDataType=t;return this};e.prototype.setDateFormat=function(t){this.dateFormat=t;return this};e.prototype.setInputType=function(t){this.inputType=t;return this};e.prototype.setTimeFormat=function(t){this.timeFormat=t;return this};e.prototype.setTimePlaceholder=function(t){this.timePlaceholder=t;return this};e.prototype.showPreview=function(){this.preview=true;return this};return e}(BaseField);DateField.type="date";export{DateField as D,DateDataType as a};