/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
import{__decorate as r}from"tslib";import e from"../../core/Accessor.js";import{MultiOriginJSONSupportMixin as t}from"../../core/MultiOriginJSONSupport.js";import{property as i,subclass as o}from"../../core/accessorSupport/decorators.js";import s from"./TraceConfiguration.js";import{traceTypeKebabDict as a}from"./typeUtils.js";import n from"./UNTraceConfiguration.js";import{reader as p}from"../../core/accessorSupport/decorators/reader.js";let d=class extends(t(e)){constructor(r){super(r),this.globalId=null,this.title=null,this.traceConfiguration=null,this.creationDate=null,this.creator=null,this.description=null,this.minStartingPoints=null,this.resultTypes=[],this.tags=[],this.traceType=null}readTraceConfiguration(r,e){return void 0!==r.tierName?n.fromJSON(r):s.fromJSON(r)}};r([i({type:String,nonNullable:!0,json:{origins:{"web-map":{read:{source:"id"},write:{target:"id",isRequired:!0}},service:{read:{source:"globalId"},write:{target:"globalId",isRequired:!0}}},read:!1}})],d.prototype,"globalId",void 0),r([i({type:String,nonNullable:!0,json:{origins:{"web-map":{read:{source:"title"},write:{target:"title",isRequired:!0}},service:{read:{source:"name"},write:{target:"name",isRequired:!0}}},read:!1}})],d.prototype,"title",void 0),r([i({type:s,json:{origins:{service:{read:!0,write:!0}},read:!1}})],d.prototype,"traceConfiguration",void 0),r([p("service","traceConfiguration")],d.prototype,"readTraceConfiguration",null),r([i({type:Date,json:{origins:{service:{read:!0,write:!0}},read:!1}})],d.prototype,"creationDate",void 0),r([i({type:String,json:{origins:{service:{read:!0,write:!0}},read:!1}})],d.prototype,"creator",void 0),r([i({type:String,json:{origins:{service:{read:!0,write:!0}},read:!1}})],d.prototype,"description",void 0),r([i({type:["none","one","many"],json:{origins:{service:{read:{source:"minNumStartingPoints"},write:{target:"minNumStartingPoints"}}},read:!1}})],d.prototype,"minStartingPoints",void 0),r([i({json:{origins:{service:{read:!0,write:!0}},read:!1}})],d.prototype,"resultTypes",void 0),r([i({type:[String],json:{origins:{service:{read:!0,write:!0}},read:!1}})],d.prototype,"tags",void 0),r([i({type:a.apiValues,json:{type:a.jsonValues,origins:{service:{read:a.read,write:a.write}},read:!1}})],d.prototype,"traceType",void 0),d=r([o("esri.networks.support.NamedTraceConfiguration")],d);const c=d;export{c as default};
