/* COPYRIGHT Esri - https://js.arcgis.com/5.1.2/LICENSE.txt */
import{__decorate as e}from"tslib";import{property as t,subclass as r}from"../../../core/accessorSupport/decorators.js";import o from"./Input.js";import{reader as i}from"../../../core/accessorSupport/decorators/reader.js";import{writer as n}from"../../../core/accessorSupport/decorators/writer.js";var p;function m(e){return null!=e?new Date(e):null}function a(e){return e?e.getTime():null}let s=p=class extends o{constructor(e){super(e),this.includeTime=!1,this.max=null,this.min=null,this.type="datetime-picker"}readMax(e,t){return m(t.max)}writeMax(e,t){t.max=a(e)}readMin(e,t){return m(t.min)}writeMin(e,t){t.min=a(e)}clone(){return new p({includeTime:this.includeTime,max:this.max,min:this.min})}};e([t({type:Boolean,json:{write:!0}})],s.prototype,"includeTime",void 0),e([t({type:Date,json:{type:Number,write:!0}})],s.prototype,"max",void 0),e([i("max")],s.prototype,"readMax",null),e([n("max")],s.prototype,"writeMax",null),e([t({type:Date,json:{type:Number,write:!0}})],s.prototype,"min",void 0),e([i("min")],s.prototype,"readMin",null),e([n("min")],s.prototype,"writeMin",null),e([t({type:["datetime-picker"],json:{read:!1,write:!0}})],s.prototype,"type",void 0),s=p=e([r("esri.form.elements.inputs.DateTimePickerInput")],s);const u=s;export{u as default};
