text: /*!
   * UI development toolkit for HTML5 (OpenUI5)
   * (c) Copyright 2009-2017 SAP SE or an SAP affiliate company.
   * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
   */
  sap.ui.define(['jquery.sap.global','./FlexBoxStylingHelper','sap/m/library','sap/m/FlexBox'],function(q,F,l,a){"use strict";var b=l.FlexDirection;var c=l.FlexRendertype;if(!q.support.flexBoxLayout&&!q.support.newFlexBoxLayout&&!q.support.ie10FlexBoxLayout){q.sap.log.warning("This browser does not support flexible box layouts natively.");}var d={};d.render=function(r,C){if(C.getRenderType()===c.List){r.write('<ul');}else{r.write('<div');}r.writeControlData(C);var p=C.getParent();if(C.getParent()instanceof a){r.addClass("sapMFlexItem");var L=C.getLayoutData();if(L instanceof sap.m.FlexItemData){F.setFlexItemStyles(r,L);}if(p.getRenderType()===c.List){r.write('<li');}}else if(C.getFitContainer()){r.addClass("sapMFlexBoxFit");}r.addClass("sapMFlexBox");if(C.getDisplayInline()){r.addClass("sapMFlexBoxInline");}if(C.getDirection()===b.Column||C.getDirection()===b.ColumnReverse){r.addClass("sapMVBox");}else{r.addClass("sapMHBox");}if(C.getDirection()===b.RowReverse||C.getDirection()===b.ColumnReverse){r.addClass("sapMFlexBoxReverse");}r.addClass("sapMFlexBoxJustify"+C.getJustifyContent());r.addClass("sapMFlexBoxAlignItems"+C.getAlignItems());r.addClass("sapMFlexBoxWrap"+C.getWrap());r.addClass("sapMFlexBoxAlignContent"+C.getAlignContent());r.addClass("sapMFlexBoxBG"+C.getBackgroundDesign());r.writeClasses();if(C.getHeight()){r.addStyle("height",C.getHeight());}if(C.getWidth()){r.addStyle("width",C.getWidth());}r.writeStyles();var t=C.getTooltip_AsString();if(t){r.writeAttributeEscaped("title",t);}r.write(">");d.renderItems(C,r);if(C.getRenderType()===c.List){r.write("</ul>");}else{r.write("</div>");}};d.renderItems=function(C,r){var e=C.getItems(),w='';for(var i=0;i<e.length;i++){if(e[i]instanceof a||C.getRenderType()===c.Bare){w="";}else if(C.getRenderType()===c.List){w="li";}else{w="div";}d.renderItem(e[i],w,r);}};d.renderItem=function(i,w,r){if(w){r.write('<'+w);if(i instanceof sap.m.ScrollContainer){r.addClass("sapMFlexBoxScroll");}if(!i.getVisible()){r.addClass("sapUiHiddenPlaceholder");}}var L=i.getLayoutData();if(w&&!L){i.setAggregation("layoutData",new sap.m.FlexItemData(),true);L=i.getLayoutData();}if(!(L instanceof sap.m.FlexItemData)){q.sap.log.warning(L+" set on "+i+" is not of type sap.m.FlexItemData");}else{if(w&&L.getId()){r.writeAttributeEscaped("id",L.getId());}if(L.getStyleClass()){d.addItemClass(q.sap.encodeHTML(L.getStyleClass()),i,w,r);}d.addItemClass("sapMFlexItemAlign"+L.getAlignSelf(),i,w,r);d.addItemClass("sapMFlexBoxBG"+L.getBackgroundDesign(),i,w,r);if(w){F.setFlexItemStyles(r,L);}}d.addItemClass("sapMFlexItem",i,w,r);if(w){r.writeStyles();r.writeClasses();r.write(">");}r.renderControl(i);if(w){r.write('</'+w+'>');}};d.addItemClass=function(C,i,w,r){if(w){r.addClass(C);}else{i.addStyleClass(C);}};return d;},true);
  