/*
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/JSONSupport","../core/lang","../core/accessorSupport/decorators/property","../core/accessorSupport/ensureType","../core/accessorSupport/decorators/enumeration","../core/accessorSupport/decorators/reader","../core/accessorSupport/decorators/subclass","../core/accessorSupport/decorators/writer","./support/lineMarkers"],(function(e,r,o,t,l,n,c,s,p,i,a,u){"use strict";var y;let d=y=function(r){function o(e){var o;return(o=r.call(this,e)||this).placement="begin-end",o.type="line-marker",o.style="arrow",o}e._inheritsLoose(o,r);var t=o.prototype;return t.writeStyle=function(e,r,o,t){"web-map"===(null==t?void 0:t.origin)?r[o]="arrow":r[o]=e},t.readColor=function(e){return e&&null!=e[0]?[e[0],e[1],e[2],e[3]/255]:e},t.writeColor=function(e,r,o,t){"web-map"===(null==t?void 0:t.origin)||(r[o]=e)},t.clone=function(){return new y({color:l.clone(this.color),placement:this.placement,style:this.style})},t.hash=function(){var e;return`${this.placement}.${null==(e=this.color)?void 0:e.hash()}.${this.style}`},e._createClass(o,[{key:"color",set:function(e){this._set("color",e)}}]),o}(t.JSONSupport);r.__decorate([n.property({type:["begin","end","begin-end"],json:{write:!0}})],d.prototype,"placement",void 0),r.__decorate([s.enumeration({"line-marker":"line-marker"},{readOnly:!0}),n.property({json:{origins:{"web-map":{write:!1}}}})],d.prototype,"type",void 0),r.__decorate([n.property({type:u.lineMarkerStyles})],d.prototype,"style",void 0),r.__decorate([a.writer("style")],d.prototype,"writeStyle",null),r.__decorate([n.property({type:o,value:null,json:{write:{allowNull:!0}}})],d.prototype,"color",null),r.__decorate([p.reader("color")],d.prototype,"readColor",null),r.__decorate([a.writer("color")],d.prototype,"writeColor",null),d=y=r.__decorate([i.subclass("esri.symbols.LineSymbolMarker")],d);return d}));
