/* COPYRIGHT Esri - https://js.arcgis.com/5.1.0/LICENSE.txt */
import{__decorate as t}from"tslib";import e from"../../../core/Accessor.js";import{property as i,subclass as s}from"../../../core/accessorSupport/decorators.js";import r from"./Units.js";let o=class extends e{constructor(t){super(t),this.directionMode="relative",this.relativeDirectionIsBilateral=!1}get effectiveDirectionMode(){switch(this.directionMode){case"relative":return this.relativeDirectionIsBilateral?"relative-bilateral":"relative";case"absolute":return"absolute"}}get displayUnits(){return this._get("displayUnits")??new r}set displayUnits(t){this._set("displayUnits",t)}get inputUnits(){return this._get("inputUnits")??new r}set inputUnits(t){this._set("inputUnits",t)}};t([i({type:String,nonNullable:!0})],o.prototype,"directionMode",void 0),t([i({type:Boolean,nonNullable:!0})],o.prototype,"relativeDirectionIsBilateral",void 0),t([i()],o.prototype,"effectiveDirectionMode",null),t([i({type:r,nonNullable:!0})],o.prototype,"displayUnits",null),t([i({type:r,nonNullable:!0})],o.prototype,"inputUnits",null),o=t([s("esri.views.interactive.sketch.SketchValueOptions")],o);const n=o;export{n as default};
