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