text: /*!
   * OpenUI5
   * (c) Copyright 2009-2020 SAP SE or an SAP affiliate company.
   * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
   */
  sap.ui.define(["sap/m/library"],function(e){"use strict";var a={};a.render=function(a,t){var i=t.getState();var r=t.getWithMargin();var s=r?"":"WithoutMargin";a.write("<div");a.writeControlData(t);var d=t.getTooltip_AsString();if(typeof d!=="string"){d=""}a.writeAttributeEscaped("aria-label",d);a.writeAttribute("role","img");if(i===e.LoadState.Failed||i===e.LoadState.Loading){a.writeAttribute("aria-disabled","true")}if(t.getAnimateTextChange()){a.addClass("sapMNCAnimation")}if(t.getWidth()){a.addStyle("width",t.getWidth())}a.writeStyles();a.addClass("sapMNC");a.addClass(s);if(t.hasListeners("press")){a.writeAttribute("tabindex","0");a.addClass("sapMPointer")}a.writeClasses();a.write(">");a.write("<div");a.addClass("sapMNCInner");a.addClass(s);a.writeClasses();a.write(">");this._renderValue(a,t,s);a.write("</div>");a.write("</div>")};a._prepareAndRenderIcon=function(a,t,i,r){if(i){var s,d=e.LoadState,l=t.getState();for(s in d){if(d.hasOwnProperty(s)&&s!==l){i.removeStyleClass(s)}else if(d.hasOwnProperty(s)&&s===l){i.addStyleClass(s)}}i.addStyleClass("sapMNCIconImage");var n={sapMNCLargeFontSize:false,sapMNCMediumFontSize:false,sapMNCSmallFontSize:false};n[r]=true;Object.keys(n).forEach(function(e){i.toggleStyleClass(e,n[e])});a.renderControl(i)}};a._renderScaleAndIndicator=function(a,t,i,r,s,d){var l=e.DeviationIndicator.None!==t.getIndicator()&&r!=="";var n=s&&r;if(l||n){var o=t.getState();var C=t.getValueColor();a.write("<div");a.writeAttribute("id",t.getId()+"-indicator");a.addClass("sapMNCIndScale");a.addClass(i);a.addClass(C);a.addClass(o);if(d){a.addClass(d)}a.writeClasses();a.write(">");a.renderControl(t._oIndicatorIcon);if(n){a.write("<div");a.writeAttribute("id",t.getId()+"-scale");a.addClass("sapMNCScale");a.addClass(o);a.addClass(C);a.writeClasses();a.write(">");a.writeEscaped(s);a.write("</div>")}a.write("</div>")}};a._renderValue=function(e,a,t){var i=a.getValue();var r=a.getScale();if(a.getFormatterValue()){var s=a._parseFormattedValue(i);r=s.scale;i=s.value}var d=a.getNullifyValue()?"0":"";e.write("<div");e.writeAttribute("id",a.getId()+"-value");e.addClass("sapMNCValue");e.addClass(t);e.addClass(a.getValueColor());e.addClass(a.getState());e.writeClasses();e.write(">");var l=a._getMaxDigitsData();this._prepareAndRenderIcon(e,a,a._oIcon,l.fontClass);var n=a.getTruncateValueTo()||l.maxLength;e.write('<span id="'+a.getId()+'-value-inner"');if(l.fontClass){e.addClass(l.fontClass)}e.writeClasses();e.write(">");if(i.length>=n&&(i[n-1]==="."||i[n-1]===",")){e.writeEscaped(i.substring(0,n-1))}else{e.writeEscaped(i?i.substring(0,n):d)}e.write("</span>");this._renderScaleAndIndicator(e,a,t,i,r,l.fontClass);e.write("</div>")};return a},true);