/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.24/esri/copyright.txt for details.
*/
define(["exports","../../../intl","../../../intl/substitute"],(function(e,t,n){"use strict";function i(e,t){return t}function r(e){const t=this;e.appendChild(t)}function o(e,t,r){if(!t)return;if("string"==typeof t||"number"==typeof t)return t;if("value"in t||"unit"in t)return n.substitute(e.dotValue,t);if("colorName"in t||"bandName"in t)return e[t.colorName]+": "+(e[t.bandName]||t.bandName);if("showCount"in t)return t.showCount?e.clusterCountTitle:null;let o=null;return i(t,r)?o=t.ratioPercentTotal?"showRatioPercentTotal":t.ratioPercent?"showRatioPercent":t.ratio?"showRatio":t.normField?"showNormField":t.field?"showField":null:l(t,r)&&(o=t.normField?"showNormField":t.normByPct?"showNormPct":t.field?"showField":null),o?n.substitute("showField"===o?"{field}":e[o],{field:t.field,normField:t.normField}):null}function l(e,t){return!t}function u(e,t){return!!(t&&"Stretched"===t&&e.version>=10.3&&"esri.layers.ImageryLayer"===e.declaredClass)}e.attachToNode=r,e.getTitle=o,e.isImageryStretchedLegend=u,e.isRendererTitle=l,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
