/*!
 * 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'],function(q){"use strict";var R={};R.render=function(r,o){var a=r;var C=o.getColumns();var e=o.getEnabled();var s=o.getTextDirection();var g=sap.ui.getCore().getConfiguration().getRTL();if(e){var b=o.getButtons();e=false;for(var i=0;i<b.length;i++){if(b[i].getEnabled()){e=true;break;}}}a.write("<div");a.writeControlData(o);a.addClass("sapMRbG");if(C>1){if(C==o.aRBs.length){a.addClass("sapMRbG1Row");}else{a.addClass("sapMRbGTab");if(o.getWidth()&&o.getWidth()!=""){a.addClass("sapMRbGTabFlex");}}}if(o.getWidth()&&o.getWidth()!=""){a.addStyle("width",o.getWidth());}if(o.getTooltip_AsString()){a.writeAttributeEscaped("title",o.getTooltip_AsString());}if(!g&&s!=sap.ui.core.TextDirection.Inherit){a.writeAttribute("dir",s.toLowerCase());}if(e){a.writeAttribute("tabindex","0");}else{a.writeAttribute("tabindex","-1");}a.writeAccessibilityState(o,{role:"radiogroup"});a.writeClasses();a.writeStyles();a.write(">");for(var c=0;c<C;c++){if(C>1&&C!=o.aRBs.length){a.write("<div");a.addClass("sapMRbGCol");a.writeClasses();a.write(">");}for(var i=c;i<o.aRBs.length;i=i+C){a.renderControl(o.aRBs[i]);}if(C>1&&C!=o.aRBs.length){a.write("</div>");}}if(C>1&&C!=o.aRBs.length){a.write('<div class="sapMRbGDummy"> </div>');}a.write("</div>");};return R;},true);
