/*
All material copyright Esri, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
*/
import{__decorate as e}from"tslib";import{IdentifiableMixin as t}from"../../core/Identifiable.js";import{MultiOriginJSONSupport as o}from"../../core/MultiOriginJSONSupport.js";import{property as r,subclass as i}from"../../core/accessorSupport/decorators.js";import{Integer as s}from"../../core/accessorSupport/ensureType.js";import{readOnlyService as p}from"../support/commonProperties.js";import{reader as l}from"../../core/accessorSupport/decorators/reader.js";let n=class extends(t(o)){constructor(e){super(e),this.title="",this.id=-1,this.modelName=null,this.isEmpty=null,this.legendEnabled=!0,this.visible=!0,this.opacity=1}readTitle(e,t){return"string"==typeof t.alias?t.alias:"string"==typeof t.name?t.name:""}readIdOnlyOnce(e){return-1!==this.id?this.id:"number"==typeof e?e:-1}};e([r({type:String,json:{origins:{"web-scene":{write:!0},"portal-item":{write:!0}}}})],n.prototype,"title",void 0),e([l("service","title",["alias","name"])],n.prototype,"readTitle",null),e([r()],n.prototype,"layer",void 0),e([r({type:s,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,isRequired:!0}}})],n.prototype,"id",void 0),e([l("service","id")],n.prototype,"readIdOnlyOnce",null),e([r(p(String))],n.prototype,"modelName",void 0),e([r(p(Boolean))],n.prototype,"isEmpty",void 0),e([r({type:Boolean,nonNullable:!0})],n.prototype,"legendEnabled",void 0),e([r({type:Boolean,json:{name:"visibility",write:!0}})],n.prototype,"visible",void 0),e([r({type:Number,json:{write:!0}})],n.prototype,"opacity",void 0),n=e([i("esri.layers.buildingSublayers.BuildingSublayer")],n);export{n as default};
