/* COPYRIGHT Esri - https://js.arcgis.com/5.1.2/LICENSE.txt */
import{__decorate as t}from"tslib";import{property as e,subclass as o}from"../../../../core/accessorSupport/decorators.js";import{makeAreaField as l,makeTotalLengthField as i}from"../fields/fields.js";import{SketchTooltipInfo as r}from"./SketchTooltipInfo.js";import{TooltipInfoWithCoordinates as s}from"./TooltipInfoWithCoordinates.js";let p=class extends(s(r)){constructor(t){super(t),this.type="selected-vertex",this.area=l(),this.totalLength=i(),this.geometryType="polyline",this.allFields.forEach(t=>{t.lockable=!1,t.setActual(null)})}get allFields(){const{longitude:t,latitude:e,x:o,y:l,elevation:i,area:r,totalLength:s,geometryType:p}=this;return[t,e,o,l,i,..."multipoint"===p?[]:["polygon"===p?r:s]]}};t([e()],p.prototype,"geometryType",void 0),t([e()],p.prototype,"allFields",null),p=t([o("esri.views.interactive.tooltip.infos.SelectedVertexTooltipInfo")],p);export{p as SelectedVertexTooltipInfo};
