/*
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","../../../core/JSONSupport","../../../core/accessorSupport/decorators/property","../../../core/arrayUtils","../../../core/has","../../../core/accessorSupport/ensureType","../../../core/accessorSupport/decorators/reader","../../../core/accessorSupport/decorators/subclass","../../../core/accessorSupport/decorators/writer","../../../webdoc/support/opacityUtils"],(function(r,e,t,o,a,p,c,s,i,n,u){"use strict";var l;let y=l=function(e){function t(r){var t;return(t=e.call(this,r)||this).label=null,t.opacity=null,t.value=null,t}r._inheritsLoose(t,e);var o=t.prototype;return o.readOpacity=function(r,e){return u.transparencyToOpacity(e.transparency)},o.writeOpacity=function(r,e,t){e[t]=u.opacityToTransparency(r)},o.clone=function(){return new l({label:this.label,opacity:this.opacity,value:this.value})},t}(t.JSONSupport);e.__decorate([o.property({type:String,json:{write:!0}})],y.prototype,"label",void 0),e.__decorate([o.property({type:Number,json:{type:c.Integer,write:{target:"transparency"}}})],y.prototype,"opacity",void 0),e.__decorate([s.reader("opacity",["transparency"])],y.prototype,"readOpacity",null),e.__decorate([n.writer("opacity")],y.prototype,"writeOpacity",null),e.__decorate([o.property({type:Number,json:{write:!0}})],y.prototype,"value",void 0),y=l=e.__decorate([i.subclass("esri.renderers.visualVariables.support.OpacityStop")],y);return y}));
