/*
 * @copyright
 */
sap.ui.define(['jquery.sap.global','sap/ui/core/Renderer'],function(q,R){"use strict";var O={};O.render=function(r,o){var t,T=o.getTextDirection(),s=o.getTextAlign(),p=sap.ui.getCore().getConfiguration().getRTL(),a=sap.ui.getCore().getLibraryResourceBundle("sap.m"),A="";r.write("<div");r.writeControlData(o);t=o.getTooltip_AsString();if(t){r.writeAttributeEscaped("title",t);}r.addClass("sapMObjectNumber");if(o.getEmphasized()){r.addClass("sapMObjectNumberEmph");}r.addClass(o._sCSSPrefixObjNumberStatus+o.getState());T&&r.writeAttribute("dir",T.toLowerCase());if(s){s=R.getTextAlign(s,T);if(s){r.addStyle("text-align",s);}}r.writeClasses();r.writeStyles();r.writeAccessibilityState({labelledby:o.getId()+"-state"});r.write(">");r.write("<span");r.addClass("sapMObjectNumberText");r.writeClasses();r.write(">");r.writeEscaped(o.getNumber());r.write("</span>");r.write("<span");r.addClass("sapMObjectNumberUnit");if((T===sap.ui.core.TextDirection.LTR&&p)||(T===sap.ui.core.TextDirection.RTL&&!p)){r.addClass("sapMRTLOpposite");}r.writeClasses();r.write(">");var u=o.getUnit();if(!u){u=o.getNumberUnit();}r.writeEscaped(u);r.write("</span>");if(o.getState()!=sap.ui.core.ValueState.None){r.write("<span id='"+o.getId()+"-state' class='sapUiInvisibleText' aria-hidden='true'>");switch(o.getState()){case sap.ui.core.ValueState.Error:A=a.getText("OBJECTNUMBER_ARIA_VALUE_STATE_ERROR");break;case sap.ui.core.ValueState.Warning:A=a.getText("OBJECTNUMBER_ARIA_VALUE_STATE_WARNING");break;case sap.ui.core.ValueState.Success:A=a.getText("OBJECTNUMBER_ARIA_VALUE_STATE_SUCCESS");break;}r.write(A);r.write("</span>");}r.write("</div>");};O._getTextAlignment=function(t,T){t=R.getTextAlign(t,T);return t;};return O;},true);
