import{__decorate as e}from"tslib";import{InvalidOperationError as r}from"../InvalidOperationError.js";import{applyJsonToSublayer as t}from"../json/SublayerJson.js";import{serializable as s}from"../support/Serializable.js";import{isBuildingGroupSublayer as i}from"../utilities/_layers.js";import{checkArg as n}from"../utilities/checkArg.js";import{BuildingSublayerExtension as a}from"./BuildingSublayerExtension.js";import{SublayerExtension as u,SublayerSchema as o,SubSublayerExtensionCollection as l}from"./_SublayerExtension.js";import{ExtensionBaseLayerListSettings as p}from"./support/LayerListSettings.js";const y="SublayerExtension collection for BuildingAGroupSublayerExtension is readonly";let b=class extends a{get supportsSublayers(){return!0}get sublayer(){return super.sublayer}get sublayerExtensions(){return super.sublayerExtensions}_createSublayerExtension(e){return u.factory.create(e,"BuildingGroupSublayer")}_capabilities(){return{...super._capabilities(),supportsStandardizedQueries:!0}}async _createSublayer(e){const r=new((await import("@arcgis/core/layers/buildingSublayers/BuildingGroupSublayer")).default);return await t(e,r),r}_isSupportedSublayer(e){return i(e)}_createSublayerExtensionCollection(){return new c(this)}_createSchema(){return new d(this)}_createLayerListSettings(e){return new m(e,this)}};b=e([s],b);export{b as BuildingGroupSublayerExtension};let d=class extends o{};d=e([s],d);export{d as BuildingGroupSublayerSchema};class c extends l{add(e,t){if(n("sublayerX",e).isNotMissing(),e.sublayer&&this._parent.sublayer.sublayers&&!this._parent.sublayer.sublayers.includes(e.sublayer))throw new r(y);return super.add(e,t)}removeAt(e){throw new r(y)}reorder(e,t){throw new r(y)}}let m=class extends p{get _layerSupportsHideChildren(){return!0}get _esriLayer(){return this._extension.sublayer}get _listModePath(){return"sublayer.listMode"}get _supportsChildren(){return!0}};m=e([s],m);