/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
import{__decorate as t}from"tslib";import o from"../../../core/Accessor.js";import{watch as e,sync as r}from"../../../core/reactiveUtils.js";import{property as s,subclass as i}from"../../../core/accessorSupport/decorators.js";import{getConfig as l}from"./constants.js";import n from"./ElevationProfileResult.js";let a=class extends o{constructor(t){super(t),this.result=new n({computation:this}),this.numSamplesForPreview=30,this.numSamplesPerChunk=200}initialize(){this.addHandles([e(()=>{const{geometry:t,elevationInfo:o}=this.controller.analysis;return[t,o]},()=>this.onInvalidate(this),r)])}setResult(t){this.result.rawResult=t}clearResult(){this.setResult(null)}get progress(){return this.result.progress}get indicatorPoint(){return this.result.indicatorPoint}get available(){return!0}get minDemResolution(){return l().defaultDemResolution}};t([s({constructOnly:!0})],a.prototype,"controller",void 0),t([s({constructOnly:!0})],a.prototype,"profile",void 0),t([s({constructOnly:!0})],a.prototype,"onInvalidate",void 0),t([s()],a.prototype,"result",void 0),t([s({readOnly:!0})],a.prototype,"progress",null),t([s()],a.prototype,"indicatorPoint",null),t([s()],a.prototype,"available",null),t([s()],a.prototype,"numSamplesForPreview",void 0),t([s()],a.prototype,"numSamplesPerChunk",void 0),t([s({readOnly:!0})],a.prototype,"minDemResolution",null),a=t([i("esri.views.analysis.ElevationProfile.ElevationProfileLineComputation")],a);export{a as ElevationProfileLineComputation};
