/*
All material copyright Esri, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
*/
import{__decorate as r}from"tslib";import{JSONSupport as e}from"../../core/JSONSupport.js";import{property as t,subclass as o}from"../../core/accessorSupport/decorators.js";import i from"../../geometry/Point.js";import{getTimezoneOffset as s}from"../route/utils.js";import p from"./DirectionsString.js";import{reader as m}from"../../core/accessorSupport/decorators/reader.js";let a=class extends e{constructor(r){super(r),this.arriveTime=null,this.arriveTimeOffset=null,this.geometry=null,this.strings=null}readArriveTimeOffset(r,e){return s(e.ETA,e.arriveTimeUTC)}readGeometry(r,e){return i.fromJSON(e.point)}};r([t({type:Date,json:{read:{source:"arriveTimeUTC"}}})],a.prototype,"arriveTime",void 0),r([t()],a.prototype,"arriveTimeOffset",void 0),r([m("arriveTimeOffset",["arriveTimeUTC","ETA"])],a.prototype,"readArriveTimeOffset",null),r([t({type:i})],a.prototype,"geometry",void 0),r([m("geometry",["point"])],a.prototype,"readGeometry",null),r([t({type:[p]})],a.prototype,"strings",void 0),a=r([o("esri.rest.support.DirectionsEvent")],a);const n=a;export{n as default};
