/* COPYRIGHT Esri - https://js.arcgis.com/5.1.2/LICENSE.txt */
import{__decorate as t}from"tslib";import e from"../../core/Accessor.js";import{measurementAreaUnits as i,measurementLengthUnits as r}from"../../core/units.js";import{property as o,subclass as s}from"../../core/accessorSupport/decorators.js";import{defaultUnitPropertyMetadata as a}from"../../properties/defaultUnit.js";let n=class extends e{constructor(t){super(t),this.activeTool=null,this.activeViewModel=null,this.view=null}get areaUnit(){return this.defaultUnit}set areaUnit(t){this._overrideIfSome("areaUnit",t)}get linearUnit(){return this.defaultUnit}set linearUnit(t){this._overrideIfSome("linearUnit",t)}get state(){const{activeViewModel:t}=this;return t?t.state:"disabled"}};t([o({type:["area","distance","direct-line"]})],n.prototype,"activeTool",void 0),t([o()],n.prototype,"activeViewModel",void 0),t([o({type:i})],n.prototype,"areaUnit",null),t([o(a)],n.prototype,"defaultUnit",void 0),t([o({type:r})],n.prototype,"linearUnit",null),t([o({readOnly:!0})],n.prototype,"state",null),t([o()],n.prototype,"view",void 0),n=t([s("esri.widgets.Measurement.MeasurementViewModel")],n);const l=n;export{l as default};
