@doegis/core
Version:
DOE GIS API
3 lines (1 loc) • 1.27 kB
JavaScript
import{_ as r}from"../../chunks/tslib.es6.js";import"../../geometry.js";import{JSONSupport as e}from"../../core/JSONSupport.js";import{property as o}from"../../core/accessorSupport/decorators/property.js";import"../../core/accessorSupport/ensureType.js";import"../../core/arrayUtils.js";import{reader as t}from"../../core/accessorSupport/decorators/reader.js";import{subclass as s}from"../../core/accessorSupport/decorators/subclass.js";import{getTimezoneOffset as i}from"../route/utils.js";import p from"./DirectionsString.js";import m from"../../geometry/Point.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 i(e.ETA,e.arriveTimeUTC)}readGeometry(r,e){return m.fromJSON(e.point)}};r([o({type:Date,json:{read:{source:"arriveTimeUTC"}}})],a.prototype,"arriveTime",void 0),r([o()],a.prototype,"arriveTimeOffset",void 0),r([t("arriveTimeOffset",["arriveTimeUTC","ETA"])],a.prototype,"readArriveTimeOffset",null),r([o({type:m})],a.prototype,"geometry",void 0),r([t("geometry",["point"])],a.prototype,"readGeometry",null),r([o({type:[p]})],a.prototype,"strings",void 0),a=r([s("esri.rest.support.DirectionsEvent")],a);const c=a;export{c as default};