/*
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/Identifiable","../../core/MultiOriginJSONSupport","../../core/accessorSupport/decorators/property","../../core/arrayUtils","../../core/has","../../core/accessorSupport/ensureType","../../core/accessorSupport/decorators/reader","../../core/accessorSupport/decorators/subclass","../support/commonProperties"],(function(e,r,t,o,i,p,a,n,s,l,c){"use strict";let d=function(r){function t(e){var t;return(t=r.call(this,e)||this).title="",t.id=-1,t.modelName=null,t.isEmpty=null,t.visible=!0,t.opacity=1,t}e._inheritsLoose(t,r);var o=t.prototype;return o.readTitle=function(e,r){return"string"==typeof r.alias?r.alias:"string"==typeof r.name?r.name:""},o.readIdOnlyOnce=function(e){return-1!==this.id?this.id:"number"==typeof e?e:void 0},t}(t.IdentifiableMixin(o.MultiOriginJSONSupport));r.__decorate([i.property({type:String,json:{origins:{"web-scene":{write:!0},"portal-item":{write:!0}}}})],d.prototype,"title",void 0),r.__decorate([s.reader("service","title",["alias","name"])],d.prototype,"readTitle",null),r.__decorate([i.property()],d.prototype,"layer",void 0),r.__decorate([i.property({type:n.Integer,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0}}})],d.prototype,"id",void 0),r.__decorate([s.reader("service","id")],d.prototype,"readIdOnlyOnce",null),r.__decorate([i.property(c.readOnlyService(String))],d.prototype,"modelName",void 0),r.__decorate([i.property(c.readOnlyService(Boolean))],d.prototype,"isEmpty",void 0),r.__decorate([i.property({type:Boolean,json:{name:"visibility",write:!0}})],d.prototype,"visible",void 0),r.__decorate([i.property({type:Number,json:{write:!0}})],d.prototype,"opacity",void 0),d=r.__decorate([l.subclass("esri.layers.buildingSublayers.BuildingSublayer")],d);return d}));
