/*!
* UI development toolkit for HTML5 (OpenUI5)
* (c) Copyright 2009-2018 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/ValueStateSupport'],function(q,V){"use strict";var T={};T.render=function(r,c){var m=0;var R=false;var e=!!c.getEnabled();var a=!!c.getEditable();var i=false;var b=false;var s=c.getSelectionState();var d=s.toLowerCase();if(d=="checked"){d=true;}else if(d=="unchecked"){d=false;}var t=V.enrichTooltip(c,c.getTooltip_AsString());var f="sapUiAriaLabel"+c.getIdForLabel();if(c.getValueState()!=null){i=sap.ui.core.ValueState.Error==c.getValueState();b=sap.ui.core.ValueState.Warning==c.getValueState();}r.write("");r.write("");r.write("");if(c.getText()){this.renderText(f,r,c.getText(),c.getTextDirection());}r.write("");};T.renderText=function(l,r,t,e){var R=r;R.write("");R.writeEscaped(t);}else{R.write(" style=\"direction:"+e.toLowerCase()+";\">");R.writeEscaped(t);}R.write("");};return T;},true);