/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.24/esri/copyright.txt for details.
*/
define(["../chunks/_rollupPluginBabelHelpers","../chunks/tslib.es6","../Color","../core/jsonMap","../core/JSONSupport","../core/screenUtils","../core/accessorSupport/decorators/property","../core/arrayUtils","../core/has","../core/accessorSupport/ensureType","../core/accessorSupport/decorators/enumeration","../core/accessorSupport/decorators/subclass","./mixins/VisualVariablesMixin","./support/AuthoringInfo","./support/LegendOptions"],(function(e,o,t,r,n,i,p,a,s,l,c,d,u,y,h){"use strict";var w;const f=new r.JSONMap({flow_from:"flow-from",flow_to:"flow-to"});let g=w=function(o){function r(e){var r;return(r=o.call(this,e)||this).density=.8,r.color=new t([255,255,255,1]),r.maxPathLength=200,r.trailWidth=1.5,r.flowSpeed=10,r.trailLength=100,r.smoothing=0,r.flowRepresentation="flow-from",r.type="flow",r.authoringInfo=null,r.legendOptions=null,r.trailCap="butt",r.background="none",r}e._inheritsLoose(r,o);var n=r.prototype;return n.clone=function(){var e,o;const{density:t,maxPathLength:r,trailWidth:n,flowSpeed:i,trailLength:p,smoothing:a,flowRepresentation:s,trailCap:l,background:c}=this,d=this.color.clone(),u=(this.visualVariables||[]).map((e=>e.clone())),y=null==(e=this.authoringInfo)?void 0:e.clone(),h=null==(o=this.legendOptions)?void 0:o.clone();return new w({density:t,color:d,maxPathLength:r,trailWidth:n,flowSpeed:i,trailLength:p,trailCap:l,background:c,smoothing:a,flowRepresentation:s,visualVariables:u,authoringInfo:y,legendOptions:h})},n.getSymbol=function(e,o){},n.getSymbolAsync=function(){var o=e._asyncToGenerator((function*(e,o){}));function t(e,t){return o.apply(this,arguments)}return t}(),n.getSymbols=function(){return[]},r}(u.VisualVariablesMixin(n.JSONSupport));o.__decorate([p.property({type:Number,json:{write:!0}})],g.prototype,"density",void 0),o.__decorate([p.property({type:t,json:{write:{allowNull:!0}}})],g.prototype,"color",void 0),o.__decorate([p.property({type:Number,cast:i.toPt,json:{write:!0}})],g.prototype,"maxPathLength",void 0),o.__decorate([p.property({type:Number,cast:i.toPt,json:{write:!0}})],g.prototype,"trailWidth",void 0),o.__decorate([p.property({type:Number,json:{write:!0}})],g.prototype,"flowSpeed",void 0),o.__decorate([p.property({type:Number,json:{write:!0}})],g.prototype,"trailLength",void 0),o.__decorate([p.property({type:Number,cast:i.toPt,json:{write:!1}})],g.prototype,"smoothing",void 0),o.__decorate([p.property({type:f.apiValues,json:{type:f.jsonValues,read:{reader:f.read},write:{writer:f.write}}})],g.prototype,"flowRepresentation",void 0),o.__decorate([c.enumeration({flowRenderer:"flow"})],g.prototype,"type",void 0),o.__decorate([p.property({type:y,json:{write:!0}})],g.prototype,"authoringInfo",void 0),o.__decorate([p.property({type:h.LegendOptions,json:{write:!0}})],g.prototype,"legendOptions",void 0),o.__decorate([p.property({type:String,json:{write:!0}})],g.prototype,"trailCap",void 0),o.__decorate([p.property({type:String,json:{write:!0}})],g.prototype,"background",void 0),g=w=o.__decorate([d.subclass("esri.renderers.FlowRenderer")],g);return g}));
