// All material copyright Esri, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.30/esri/copyright.txt for details. //>>built define("../../chunks/tslib.es6 ../../Graphic ../../PopupTemplate ../../symbols ../../core/Clonable ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass ../../geometry/Point ./networkEnums".split(" "),function(c,h,k,l,b,m,d,r,t,u,n,p,q,e){var f;b=f=class extends b.ClonableMixin(m.JSONSupport){constructor(a){super(a);this.towardName=this.symbol= this.stopId=this.shortVoiceInstruction=this.sequence=this.popupTemplate=this.objectId=this.name=this.level=this.intersectingName=this.geometry=this.exitName=this.displayText=this.directionPointType=this.branchName=this.azimuth=this.arrivalTimeOffset=this.arrivalTime=this.alternateName=null;this.type="direction-point";this.voiceInstruction=null}readArrivalTime(a,g){return null!=g.attributes.ArrivalTime?new Date(g.attributes.ArrivalTime):null}static fromGraphic(a){return new f({alternateName:a.attributes.AlternateName?? null,arrivalTime:null!=a.attributes.ArrivalTime?new Date(a.attributes.ArrivalTime):null,arrivalTimeOffset:a.attributes.ArrivalUTCOffset??null,azimuth:a.attributes.Azimuth??null,branchName:a.attributes.BranchName??null,directionPointType:e.directionPointTypeJsonMap.fromJSON(a.attributes.DirectionPointType),displayText:a.attributes.DisplayText??null,exitName:a.attributes.ExitName??null,geometry:a.geometry,intersectingName:a.attributes.IntersectingName??null,level:a.attributes.Level??null,name:a.attributes.Name?? null,objectId:a.attributes.ObjectID??a.attributes.__OBJECTID,popupTemplate:a.popupTemplate,sequence:a.attributes.Sequence,shortVoiceInstruction:a.attributes.ShortVoiceInstruction??null,stopId:a.attributes.StopID??null,symbol:a.symbol,towardName:a.attributes.TowardName??null,voiceInstruction:a.attributes.VoiceInstruction??null})}toGraphic(){const a={ObjectID:this.objectId,DirectionPointType:null!=this.directionPointType?e.directionPointTypeJsonMap.toJSON(this.directionPointType):null,Sequence:this.sequence, StopID:this.stopId};null!=this.alternateName&&(a.AlternateName=this.alternateName);null!=this.arrivalTime&&(a.ArrivalTime=this.arrivalTime.getTime());null!=this.arrivalTimeOffset&&(a.ArrivalUTCOffset=this.arrivalTimeOffset);null!=this.azimuth&&(a.Azimuth=this.azimuth);null!=this.branchName&&(a.BranchName=this.branchName);null!=this.displayText&&(a.DisplayText=this.displayText);null!=this.exitName&&(a.ExitName=this.exitName);null!=this.intersectingName&&(a.IntersectingName=this.intersectingName);null!= this.level&&(a.Level=this.level);null!=this.name&&(a.Name=this.name);null!=this.shortVoiceInstruction&&(a.ShortVoiceInstruction=this.shortVoiceInstruction);null!=this.towardName&&(a.TowardName=this.towardName);null!=this.voiceInstruction&&(a.VoiceInstruction=this.voiceInstruction);return new h({geometry:this.geometry,attributes:a,symbol:this.symbol,popupTemplate:this.popupTemplate})}};b.fields=[{name:"ObjectID",alias:"ObjectID",type:"esriFieldTypeOID"},{name:"AlternateName",alias:"Alternative Name", type:"esriFieldTypeString"},{name:"ArrivalTime",alias:"Arrival Time",type:"esriFieldTypeDate"},{name:"ArrivalUTCOffset",alias:"Arrival Time Offset",type:"esriFieldTypeInteger"},{name:"Azimuth",alias:"Azimuth",type:"esriFieldTypeDouble"},{name:"BranchName",alias:"Branch Name",type:"esriFieldTypeString"},{name:"DirectionPointType",alias:"Directions Point Type",type:"esriFieldTypeInteger"},{name:"DisplayText",alias:"Display Text",type:"esriFieldTypeString"},{name:"ExitName",alias:"Exit Name",type:"esriFieldTypeString"}, {name:"IntersectingName",alias:"Intersecting Name",type:"esriFieldTypeString"},{name:"Level",alias:"Level",type:"esriFieldTypeInteger"},{name:"Name",alias:"Name",type:"esriFieldTypeString"},{name:"Sequence",alias:"Sequence",type:"esriFieldTypeInteger"},{name:"ShortVoiceInstruction",alias:"Short Voice Instruction",type:"esriFieldTypeString"},{name:"StopID",alias:"Stop ID",type:"esriFieldTypeInteger"},{name:"TowardName",alias:"Toward Name",type:"esriFieldTypeString"},{name:"VoiceInstruction",alias:"Voice Instruction", type:"esriFieldTypeString"}];c.__decorate([d.property({json:{read:{source:"attributes.AlternateName"}}})],b.prototype,"alternateName",void 0);c.__decorate([d.property()],b.prototype,"arrivalTime",void 0);c.__decorate([n.reader("arrivalTime",["attributes.ArrivalTime"])],b.prototype,"readArrivalTime",null);c.__decorate([d.property({json:{read:{source:"attributes.ArrivalUTCOffset"}}})],b.prototype,"arrivalTimeOffset",void 0);c.__decorate([d.property({json:{read:{source:"attributes.Azimuth"}}})],b.prototype, "azimuth",void 0);c.__decorate([d.property({json:{read:{source:"attributes.BranchName"}}})],b.prototype,"branchName",void 0);c.__decorate([d.property({type:e.directionPointTypeJsonMap.apiValues,json:{read:{source:"attributes.DirectionPointType",reader:e.directionPointTypeJsonMap.read}}})],b.prototype,"directionPointType",void 0);c.__decorate([d.property({json:{read:{source:"attributes.DisplayText"}}})],b.prototype,"displayText",void 0);c.__decorate([d.property({json:{read:{source:"attributes.ExitName"}}})], b.prototype,"exitName",void 0);c.__decorate([d.property({type:q})],b.prototype,"geometry",void 0);c.__decorate([d.property({json:{read:{source:"attributes.IntersectingName"}}})],b.prototype,"intersectingName",void 0);c.__decorate([d.property()],b.prototype,"level",void 0);c.__decorate([d.property({json:{read:{source:"attributes.Name"}}})],b.prototype,"name",void 0);c.__decorate([d.property({json:{read:{source:"attributes.ObjectID"}}})],b.prototype,"objectId",void 0);c.__decorate([d.property({type:k})], b.prototype,"popupTemplate",void 0);c.__decorate([d.property({json:{read:{source:"attributes.Sequence"}}})],b.prototype,"sequence",void 0);c.__decorate([d.property({json:{read:{source:"attributes.ShortVoiceInstruction"}}})],b.prototype,"shortVoiceInstruction",void 0);c.__decorate([d.property({json:{read:{source:"attributes.StopID"}}})],b.prototype,"stopId",void 0);c.__decorate([d.property({types:l.symbolTypes})],b.prototype,"symbol",void 0);c.__decorate([d.property({json:{read:{source:"attributes.TowardName"}}})], b.prototype,"towardName",void 0);c.__decorate([d.property({readOnly:!0,json:{read:!1}})],b.prototype,"type",void 0);c.__decorate([d.property({json:{read:{source:"attributes.VoiceInstruction"}}})],b.prototype,"voiceInstruction",void 0);return b=f=c.__decorate([p.subclass("esri.rest.support.DirectionPoint")],b)});