/*
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{MultiOriginJSONSupport as e}from"../../core/MultiOriginJSONSupport.js";import{property as t,subclass as i}from"../../core/accessorSupport/decorators.js";import o from"./TraceConfiguration.js";import{traceTypeKebabDict as s}from"./typeUtils.js";import a from"./UNTraceConfiguration.js";import{reader as n}from"../../core/accessorSupport/decorators/reader.js";let p=class extends 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?a.fromJSON(r):o.fromJSON(r)}};r([t({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}})],p.prototype,"globalId",void 0),r([t({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}})],p.prototype,"title",void 0),r([t({type:o,json:{origins:{service:{read:!0,write:!0}},read:!1}})],p.prototype,"traceConfiguration",void 0),r([n("service","traceConfiguration")],p.prototype,"readTraceConfiguration",null),r([t({type:Date,json:{origins:{service:{read:!0,write:!0}},read:!1}})],p.prototype,"creationDate",void 0),r([t({type:String,json:{origins:{service:{read:!0,write:!0}},read:!1}})],p.prototype,"creator",void 0),r([t({type:String,json:{origins:{service:{read:!0,write:!0}},read:!1}})],p.prototype,"description",void 0),r([t({type:["none","one","many"],json:{origins:{service:{read:{source:"minNumStartingPoints"},write:{target:"minNumStartingPoints"}}},read:!1}})],p.prototype,"minStartingPoints",void 0),r([t({json:{origins:{service:{read:!0,write:!0}},read:!1}})],p.prototype,"resultTypes",void 0),r([t({type:[String],json:{origins:{service:{read:!0,write:!0}},read:!1}})],p.prototype,"tags",void 0),r([t({type:s.apiValues,json:{type:s.jsonValues,origins:{service:{read:s.read,write:s.write}},read:!1}})],p.prototype,"traceType",void 0),p=r([i("esri.networks.support.NamedTraceConfiguration")],p);const d=p;export{d as default};
