/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
import{__decorate as t}from"tslib";import{createAngle as r}from"../../../../core/quantity.js";import{formatAngle as o}from"../../../../core/quantityFormatUtils.js";import{property as i,subclass as e}from"../../../../core/accessorSupport/decorators.js";import{makeQuantityParser as s,sanitizeAngle as n}from"./parsingAndFormattingUtils.js";import{TooltipField as a}from"./TooltipField.js";import{getNormalizedGeographicOrientation as p}from"../../../support/angularMeasurementUtils.js";let m=class extends a{constructor(t){super(t),this.precision=1}normalizeCtorArgs(t){const i=t=>t.inputUnitInfos.angle.unit;return{name:"orientation",actual:null,parse:s({createQuantity:(t,o)=>r(t,i(o),"geographic"),sanitize:n}),format:t=>{const r=p(t);return o(r,"geographic",this.precision)},formatForInputMode:(t,r)=>{const o=p(t);return r.formatters.scalar(o)},suffix:t=>t.inputUnitInfos.angle.abbreviation,title:t=>t.messages.sketch.orientation,...t}}};t([i()],m.prototype,"precision",void 0),m=t([e("esri.views.interactive.tooltip.fields.TooltipFieldOrientation")],m);export{m as TooltipFieldOrientation};
