/*
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","./labelUtils"],(function(e,r,o,t,s,n,p,i,l,a,c){"use strict";var u;let d=u=function(r){function o(){var e;return(e=r.apply(this,arguments)||this).expression=null,e.title=null,e.value=null,e}e._inheritsLoose(o,r);var t=o.prototype;return t.readExpression=function(e,r){return r.value?c.convertTemplatedStringToArcade(r.value):e},t.writeExpression=function(e,r,o){null!=this.value&&(e=c.convertTemplatedStringToArcade(this.value)),null!=e&&(r[o]=e)},t.clone=function(){return new u({expression:this.expression,title:this.title,value:this.value})},o}(o.JSONSupport);r.__decorate([t.property({type:String,json:{write:{writerEnsuresNonNull:!0}}})],d.prototype,"expression",void 0),r.__decorate([i.reader("expression",["expression","value"])],d.prototype,"readExpression",null),r.__decorate([a.writer("expression")],d.prototype,"writeExpression",null),r.__decorate([t.property({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],d.prototype,"title",void 0),r.__decorate([t.property({json:{read:!1,write:!1}})],d.prototype,"value",void 0),d=u=r.__decorate([l.subclass("esri.layers.support.LabelExpressionInfo")],d);return d}));
