/*! * 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(["sap/ui/core/library"],function(c){'use strict';var P=c.Priority;var N={};var a='sapMNLI';var b='sapMNLB';var d='sapMNLI-TextWrapper';var e='sapMLIB';var f='sapMNLB-AuthorPicture';var g='sapMNLB-Priority';var h='sapMNLB-Header';var i='sapMNLI-Header';var j='sapMNLI-Body';var k='sapMNLI-Description';var l='sapMNLI-Details';var m='sapMNLB-Bullet';var n='sapMNLB-Footer';var o='sapMNLI-Footer';var p='sapMNLI-No-Footer';var q='sapMNLB-CloseButton';var r='sapMNLI-CollapseButton';var s='sapMNLI-TitleWrapper--initial-overwrite';var t='sapMNLI-TextWrapper--initial-overwrite';N.render=function(R,C){if(C.getVisible()){var v=C.getId();var w=(v+'-title')+' '+(v+'-body')+' '+(v+'-info');R.write('');this.renderPriorityArea(R,C);this.renderMessageStrip(R,C);this.renderHeader(R,C);this.renderBody(R,C);this.renderFooter(R,C);R.write('');}else{this.renderInvisibleItem(R,C);}};N.renderPriorityArea=function(R,C){R.write('');R.write('');};N.renderMessageStrip=function(R,C){R.renderControl(C.getProcessingMessage());};N.renderAuthorPicture=function(R,C){if(!C.getAuthorPicture()){return;}R.write('');R.renderControl(C._getAuthorImage());R.write('');};N.renderCloseButton=function(R,C){if(C.getShowCloseButton()){R.renderControl(C.getAggregation('_closeButton').addStyleClass(q));}};N.renderCollapseButton=function(R,C){R.renderControl(C.getAggregation('_collapseButton').addStyleClass(r));};N.renderHeader=function(R,C){R.write('');this.renderCloseButton(R,C);this.renderTitle(R,C);R.write('');};N.renderTitle=function(R,C){R.renderControl(C._getHeaderTitle());};N.renderBody=function(R,C){if(!C._getDescriptionText().getText()&&!C.getAuthorName()&&!C.getDatetime()&&!C.getAuthorPicture()){return;}R.write('');this.renderAuthorPicture(R,C);R.write('
');this.renderDescription(R,C);this.renderDetails(R,C);R.write('
');this.renderAriaText(R,C);R.write('');};N.renderDescription=function(R,C){if(!C._getDescriptionText().getText()){return;}R.write('');R.renderControl(C._getDescriptionText());R.write('');};N.renderDetails=function(R,C){if(!C.getAuthorName()&&!C.getDatetime()){return;}R.write('
');this.renderAuthorName(R,C);if(C.getAuthorName()){R.write('·');}this.renderDatetime(R,C);R.write('
');};N.renderDatetime=function(R,C){R.renderControl(C._getDateTimeText());};N.renderAuthorName=function(R,C){R.renderControl(C._getAuthorName());};N.renderAriaText=function(R,C){R.renderControl(C._ariaDetailsText);};N.renderFooter=function(R,C){var B=C.getButtons();R.write('');this.renderCollapseButton(R,C);if(B&&B.length&&C.getShowButtons()){R.renderControl(C.getAggregation('_overflowToolbar'));}R.write('');};N.renderInvisibleItem=function(R,C){R.write("");R.write("");};function u(C){return C.getHideShowMoreButton()&&(!C.getShowButtons()||!C.getButtons());}return N;},true);