/* COPYRIGHT Esri - https://js.arcgis.com/5.1.2/LICENSE.txt */
import{__decorate as r}from"tslib";import{JSONSupport as t}from"../../../core/JSONSupport.js";import{property as e,subclass as o}from"../../../core/accessorSupport/decorators.js";import{Integer as p}from"../../../core/accessorSupport/ensureType.js";import{transparencyToOpacity as s,opacityToTransparency as a}from"../../../webdoc/support/opacityUtils.js";import{reader as i}from"../../../core/accessorSupport/decorators/reader.js";import{writer as c}from"../../../core/accessorSupport/decorators/writer.js";var l;let u=l=class extends t{constructor(r){super(r),this.label=null,this.opacity=null,this.value=null}readOpacity(r,t){return s(t.transparency)}writeOpacity(r,t,e){t[e]=a(r)}clone(){return new l({label:this.label,opacity:this.opacity,value:this.value})}};r([e({type:String,json:{write:!0}})],u.prototype,"label",void 0),r([e({type:Number,json:{type:p,write:{target:"transparency",isRequired:!0}}})],u.prototype,"opacity",void 0),r([i("opacity",["transparency"])],u.prototype,"readOpacity",null),r([c("opacity")],u.prototype,"writeOpacity",null),r([e({type:Number,json:{write:{isRequired:!0}}})],u.prototype,"value",void 0),u=l=r([o("esri.renderers.visualVariables.support.OpacityStop")],u);const y=u;export{y as default};
