/*
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{createAbortError as s}from"../../core/promiseUtils.js";import{property as i,subclass as t}from"../../core/accessorSupport/decorators.js";const l=l=>{const a=l;let r=class extends a{constructor(...e){super(...e),this.layer=null}get interactive(){return null!=this.analysisView&&this.analysisView.interactive}set interactive(e){null!=this.analysisView&&(this.analysisView.interactive=e)}get selectedViewshed(){return null!=this.analysisView?this.analysisView.selectedViewshed:null}set selectedViewshed(e){null!=this.analysisView&&(this.analysisView.selectedViewshed=e)}async createViewsheds(e){await(this.analysisView?.createViewsheds(e))}place(e){if(null!=this.analysisView)return this.analysisView.place(e);throw s()}};return e([i()],r.prototype,"layer",void 0),e([i()],r.prototype,"interactive",null),e([i()],r.prototype,"selectedViewshed",null),r=e([t("esri.views.layers.ViewshedLayerViewMixin")],r),r};export{l as ViewshedLayerViewMixin};
