import{__decorate as e}from"tslib";import{serializable as t}from"../support/Serializable.js";import{getLogger as i}from"../utilities/log.js";import{ArcGISSublayerExtension as r}from"./ArcGISSublayerExtension.js";import{SublayerExtension as s}from"./_SublayerExtension.js";const n=i("TileSublayerExtension");let o=class extends r{get layerExtension(){return super.layerExtension}get sublayerExtensions(){return super.sublayerExtensions}get canToggleVisibility(){return!1}get canChangeOpacity(){return!1}get canChangeScale(){return!1}_createSublayerExtension(e){return s.factory.create(e,"ArcGISTiledSublayer")}_getSerializableProperties(){const e=super._getSerializableProperties();return{...e,visibilityMode:{...this._toPropertyDef(e.visibilityMode),serialize:()=>"inherited",deserialize:e=>{"inherited"!==e&&n.error(`SublayerExtension (id: ${this.id}, title: ${this.title}) visibilityMode cannot be set to ${e}.`)},default:"inherited"}}}};o=e([t],o);export{o as TileSublayerExtension};