/*!
 * SAP UI development toolkit for HTML5 (SAPUI5/OpenUI5)
 * (c) Copyright 2009-2015 SAP SE or an SAP affiliate company.
 * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
 */
sap.ui.define(['jquery.sap.global','sap/ui/core/Renderer','./InputBaseRenderer'],function(q,R,I){"use strict";var a=R.extend(I);a.addOuterClasses=function(r,c){r.addClass("sapMInput");if(c.getShowValueHelp()&&c.getEnabled()&&c.getEditable()){r.addClass("sapMInputVH");if(c.getValueHelpOnly()){r.addClass("sapMInputVHO");}if(sap.ui.Device.browser.internet_explorer&&sap.ui.Device.browser.version<11){r.addClass("sapMInputIE9");}}if(c.getDescription()){r.addClass("sapMInputDescription");}};a.addOuterStyles=function(r,c){};a.writeInnerAttributes=function(r,c){r.writeAttribute("type",c.getType().toLowerCase());if((!c.getEnabled()&&c.getType()=="Password")||(c.getShowSuggestion()&&c._bUseDialog)||(c.getValueHelpOnly()&&c.getEnabled()&&c.getEditable()&&c.getShowValueHelp())){r.writeAttribute("readonly","readonly");}if(c.getShowValueHelp()&&c.getEnabled()&&c.getEditable()){r.writeAccessibilityState({describedby:{value:c._sAriaF4LabelId,append:true}});}};a.addInnerClasses=function(r,c){};a.addInnerStyles=function(r,c){if(c.getDescription()){r.addStyle("width",c.getFieldWidth()||"50%");}};a.writeInnerContent=function(r,c){if(!c.getDescription()){this.writeValueHelpIcon(r,c);}else{var d=c.getDescription();r.write("<span>");this.writeValueHelpIcon(r,c);r.writeEscaped(d);r.write("</span>");}};a.writeValueHelpIcon=function(r,c){if(c.getShowValueHelp()&&c.getEnabled()&&c.getEditable()){r.write('<div class="sapMInputValHelp">');r.renderControl(c._getValueHelpIcon());r.write("</div>");}};a.addPlaceholderStyles=function(r,c){if(c.getDescription()){r.addStyle("width",c.getFieldWidth()||"50%");}};return a;},true);
