/* COPYRIGHT Esri - https://js.arcgis.com/5.1.0/LICENSE.txt */
import{__decorate as e}from"tslib";import{property as t,subclass as r}from"../../core/accessorSupport/decorators.js";import{ExportImageParameters as o}from"../../layers/support/ExportImageParameters.js";import{combineTimeExtent as s}from"../../layers/support/timeSupport.js";const i=i=>{const a=i;let p=class extends a{initialize(){this.exportImageParameters=new o({layer:this.layer})}destroy(){this.exportImageParameters.destroy(),this.exportImageParameters=null}get floors(){return this.view?.floors??null}get exportImageVersion(){return this.exportImageParameters?.commitProperty("version"),this.commitProperty("timeExtent"),this.commitProperty("floors"),(this._get("exportImageVersion")||0)+1}get timeExtent(){return s(this.layer,this.view?.timeExtent,this._get("timeExtent"))}canResume(){return!!super.canResume()&&!this.timeExtent?.isEmpty}};return e([t()],p.prototype,"exportImageParameters",void 0),e([t({readOnly:!0})],p.prototype,"floors",null),e([t({readOnly:!0})],p.prototype,"exportImageVersion",null),e([t()],p.prototype,"layer",void 0),e([t()],p.prototype,"suspended",void 0),e([t({readOnly:!0})],p.prototype,"timeExtent",null),p=e([r("esri.views.layers.MapImageLayerView")],p),p};export{i as default};
