/*
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 t}from"tslib";import{toUnit as o,createLength as r}from"../../../../core/quantity.js";import{property as i,subclass as e}from"../../../../core/accessorSupport/decorators.js";import{makeQuantityParser as s}from"./parsingAndFormattingUtils.js";import{TooltipField as n}from"./TooltipField.js";let a=class extends n{constructor(t){super(t),this.precision=null}normalizeCtorArgs(t){const i=t=>t.inputUnitInfos.length.unit;return{name:"size",actual:null,parse:s({createQuantity:(t,o)=>r(t,i(o))}),format:(t,o)=>o.formatters.length(t),formatForInputMode:(t,r)=>r.formatters.scalar(o(t,i(r))),suffix:t=>t.inputUnitInfos.length.abbreviation,title:t=>t.messages.sketch.size,...t}}};t([i()],a.prototype,"precision",void 0),a=t([e("esri.views.interactive.tooltip.fields.TooltipFieldSize")],a);export{a as TooltipFieldSize};
