/*
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 o from"../../core/Accessor.js";import{IdentifiableMixin as r}from"../../core/Identifiable.js";import{MultiOriginJSONMixin as t}from"../../core/MultiOriginJSONSupport.js";import{property as i,subclass as s}from"../../core/accessorSupport/decorators.js";import{Integer as p}from"../../core/accessorSupport/ensureType.js";import{readOnlyService as l}from"../support/commonProperties.js";import{reader as n}from"../../core/accessorSupport/decorators/reader.js";let a=class extends(r(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,o){return"string"==typeof o.alias?o.alias:"string"==typeof o.name?o.name:""}readIdOnlyOnce(e){return-1!==this.id?this.id:"number"==typeof e?e:-1}};e([i({type:String,json:{origins:{"web-scene":{write:!0},"portal-item":{write:!0}}}})],a.prototype,"title",void 0),e([n("service","title",["alias","name"])],a.prototype,"readTitle",null),e([i()],a.prototype,"layer",void 0),e([i({type:p,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,isRequired:!0}}})],a.prototype,"id",void 0),e([n("service","id")],a.prototype,"readIdOnlyOnce",null),e([i(l(String))],a.prototype,"modelName",void 0),e([i(l(Boolean))],a.prototype,"isEmpty",void 0),e([i({type:Boolean,nonNullable:!0})],a.prototype,"legendEnabled",void 0),e([i({type:Boolean,json:{name:"visibility",write:!0}})],a.prototype,"visible",void 0),e([i({type:Number,json:{write:!0}})],a.prototype,"opacity",void 0),a=e([s("esri.layers.buildingSublayers.BuildingSublayer")],a);export{a as default};
