/*
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{subclass as o}from"../../../../core/accessorSupport/decorators.js";import{DrawHeaderActions as e}from"../components/DrawHeaderActions.js";import{Fields as i}from"./Fields.js";import{TooltipContent as s}from"./TooltipContent.js";import{tsx as n}from"../../../../widgets/support/widget.js";let r=class extends s{_renderContent(){const{fieldContext:t,info:o,mode:e}=this;return n(i,{context:t,fields:o.allFields,mode:e})}_renderActions(){const{xyMode:t,sketchOptions:o}=this.info,i=this.info.allFields.some(t=>"direction"===t.name);return n(e,{sketchOptions:o,visibleElements:{direction:"direction-distance"===t&&i}})}};r=t([o("esri.views.interactive.tooltip.content.TooltipContentDynamic")],r);export{r as TooltipContentDynamic};
