/* COPYRIGHT Esri - https://js.arcgis.com/5.0.18/LICENSE.txt */
import{__decorate as e}from"tslib";import{subclass as o}from"../../../../core/accessorSupport/decorators.js";import{DrawHeaderActions as t}from"../components/DrawHeaderActions.js";import{Fields as i}from"./Fields.js";import{TooltipContent as n}from"./TooltipContent.js";import{tsx as r}from"../../../../widgets/support/widget.js";let s=class extends n{_renderContent(){const{fieldContext:e,info:o,mode:t}=this,{xyMode:n,visibleElements:s}=o;return r(i,{context:e,fields:[..."direction-distance"===n?[s.direction?o.direction:void 0,s.distance?o.distance:void 0]:[s.coordinates?o.effectiveX:void 0,s.coordinates?o.effectiveY:void 0],s.elevation?o.elevation:void 0,s.area?o.area:void 0],mode:t})}_renderActions(){const{xyMode:e,sketchOptions:o}=this.info;return r(t,{sketchOptions:o,visibleElements:{direction:"direction-distance"===e}})}};s=e([o("esri.views.interactive.tooltip.content.TooltipContentDrawPolygon")],s);export{s as TooltipContentDrawPolygon};
