/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.24/esri/copyright.txt for details.
*/
define(["exports","../../../../chunks/_rollupPluginBabelHelpers","../../../../chunks/tslib.es6","../../../../core/Logger","../../../../core/accessorSupport/ensureType","../../../../core/arrayUtils","../../../../core/has","../../../../core/accessorSupport/set","../../../../core/accessorSupport/decorators/subclass","../css","./TooltipContent","../support/TooltipField","../support/ValueByValue","../../../../widgets/support/widgetUtils","../../../../widgets/support/jsxFactory"],(function(t,e,o,s,l,i,r,n,a,c,u,p,d,h,T){"use strict";const S=`${c.CONTENT}--extent-scale`,x={base:`${c.CONTENT} ${S}`};t.TooltipContentExtentScale=function(t){function o(){return t.apply(this,arguments)||this}return e._inheritsLoose(o,t),o.prototype.render=function(){var t;const{xScale:e,yScale:o,xSize:s,ySize:l}=this.info,i=null==(t=this._messagesTooltip)?void 0:t.sketch;return T.tsx("div",{class:x.base},T.tsx(p.TooltipField,{title:null==i?void 0:i.size,value:T.tsx(d.ValueByValue,{left:this._formatLength(s),right:this._formatLength(l)})}),T.tsx(p.TooltipField,{title:null==i?void 0:i.scale,value:T.tsx(d.ValueByValue,{left:this._formatScale(e),right:this._formatScale(o)})}))},o}(u.TooltipContent),t.TooltipContentExtentScale=o.__decorate([a.subclass("esri.views.interactive.tooltip.content.TooltipContentExtentScale")],t.TooltipContentExtentScale),Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
