/*! * 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/f/library","sap/base/security/encodeXML"],function(l,e){"use strict";var A=l.AvatarSize;var a=l.AvatarType;var b={};b.render=function(r,o){var i=o.getInitials(),s=o._getActualDisplayType(),d=o.getDisplaySize(),D=o.getDisplayShape(),I=o.getImageFitType(),c=o.getCustomDisplaySize(),C=o.getCustomFontSize(),S=o._getEscapedSrc(),f="sapFAvatar",t=o.getTooltip_AsString(),g=o._getDefaultTooltip(),L=o.getAriaLabelledBy(),h=o.getAriaDescribedBy();r.write("0){r.writeAttributeEscaped("aria-labelledby",L.join(" "));}if(h&&h.length>0){r.writeAttributeEscaped("aria-describedby",h.join(" "));}r.writeClasses();r.writeStyles();r.write(">");if(s===a.Icon){r.renderControl(o._getIcon());}else if(s===a.Initials){r.write("");r.writeEscaped(i);r.write("");}if(o._fnLightBoxOpen){r.write("");}r.write("");};return b;},true);