/*!
* 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'],function(q){"use strict";var I={};I.render=function(r,i){var c=i.getContent();var w;if(c){if(c.getWidth){w=c.getWidth();}if(c.getVisible&&!c.getVisible()){q.sap.log.warning("Content is not visivle - nothing is rendered",this);return;}}else{q.sap.log.warning("No content provided - nothing is rendered",this);return;}r.write("
");if(i._sOldTextAvailable||c.getMetadata().getName()=="sap.ui.commons.Link"){r.write("
");}if(i._bEditMode){this.renderEditContent(r,i);}else{this.renderDisplayContent(r,i);}if(i._sOldTextAvailable||c.getMetadata().getName()=="sap.ui.commons.Link"){r.write("
");if(i.getUndoEnabled()&&i._sOldTextAvailable){r.renderControl(i._oUndoButton);}}r.write("
");};I.renderDisplayContent=function(r,i){if(i._oDisplayControl){r.renderControl(i._oDisplayControl);if(i.getEditable()&&i._oDisplayControl.getMetadata().getName()=="sap.ui.commons.Link"){r.renderControl(i._oEditButton);}}};I.renderEditContent=function(r,i){if(i._oEditControl){r.renderControl(i._oEditControl);}};return I;},true);