// All material copyright Esri, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.30/esri/copyright.txt for details. //>>built define("../../chunks/tslib.es6 ../../core/Identifiable ../../core/MultiOriginJSONSupport ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/RandomLCG ../../core/has ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass ../support/commonProperties".split(" "),function(b,a,h,c,k,m,n,f,l,g){a=class extends a.IdentifiableMixin(h.MultiOriginJSONSupport){constructor(d){super(d);this.title="";this.id=-1;this.isEmpty=this.modelName= null;this.visible=this.legendEnabled=!0;this.opacity=1}readTitle(d,e){return"string"===typeof e.alias?e.alias:"string"===typeof e.name?e.name:""}readIdOnlyOnce(d){return-1!==this.id?this.id:"number"===typeof d?d:-1}};b.__decorate([c.property({type:String,json:{origins:{"web-scene":{write:!0},"portal-item":{write:!0}}}})],a.prototype,"title",void 0);b.__decorate([f.reader("service","title",["alias","name"])],a.prototype,"readTitle",null);b.__decorate([c.property()],a.prototype,"layer",void 0);b.__decorate([c.property({type:k.Integer, readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0}}})],a.prototype,"id",void 0);b.__decorate([f.reader("service","id")],a.prototype,"readIdOnlyOnce",null);b.__decorate([c.property(g.readOnlyService(String))],a.prototype,"modelName",void 0);b.__decorate([c.property(g.readOnlyService(Boolean))],a.prototype,"isEmpty",void 0);b.__decorate([c.property({type:Boolean,nonNullable:!0})],a.prototype,"legendEnabled",void 0);b.__decorate([c.property({type:Boolean,json:{name:"visibility",write:!0}})],a.prototype, "visible",void 0);b.__decorate([c.property({type:Number,json:{write:!0}})],a.prototype,"opacity",void 0);return a=b.__decorate([l.subclass("esri.layers.buildingSublayers.BuildingSublayer")],a)});