/* All material copyright ESRI, All Rights Reserved, unless otherwise specified. See https://js.arcgis.com/4.25/esri/copyright.txt for details. */ import{_ as r}from"./chunks/tslib.es6.js";import{JSONSupport as e}from"./core/JSONSupport.js";import{convertTime as t}from"./core/timeUtils.js";import{property as o}from"./core/accessorSupport/decorators/property.js";import"./core/arrayUtils.js";import"./core/accessorSupport/ensureType.js";import{subclass as s}from"./core/accessorSupport/decorators/subclass.js";import{timeUnitKebabDictionary as i}from"./portal/timeUnitKebabDictionary.js";var p;let a=p=class extends e{constructor(r){super(r),this.value=0,this.unit="milliseconds"}toMilliseconds(){return t(this.value,this.unit,"milliseconds")}clone(){return new p({value:this.value,unit:this.unit})}};r([o({type:Number,json:{write:!0},nonNullable:!0})],a.prototype,"value",void 0),r([o({type:i.apiValues,json:{type:i.jsonValues,read:i.read,write:i.write},nonNullable:!0})],a.prototype,"unit",void 0),a=p=r([s("esri.TimeInterval")],a);const l=a;export{l as default};