text: /*!
   * OpenUI5
   * (c) Copyright 2009-2019 SAP SE or an SAP affiliate company.
   * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
   */
  sap.ui.define(["sap/m/library","sap/base/security/encodeCSS"],function(e,t){"use strict";var i=e.ImageMode;var a={};a.render=function(e,a){var r=a.getMode(),s=a.getAlt(),d=a.getTooltip_AsString(),g=a.hasListeners("press"),n=a.getDetailBox(),o=a.getUseMap(),l=a.getAriaLabelledBy(),c=a.getAriaDescribedBy();if(n){e.write('<span class="sapMLightBoxImage"');e.writeControlData(a);e.write(">");e.write('<span class="sapMLightBoxMagnifyingGlass"></span>')}e.write(r===i.Image?"<img":"<span");if(!n){e.writeControlData(a)}if(!a.getDecorative()&&l&&l.length>0){e.writeAttributeEscaped("aria-labelledby",l.join(" "))}if(!a.getDecorative()&&c&&c.length>0){e.writeAttributeEscaped("aria-describedby",c.join(" "))}if(r===i.Image){e.writeAttributeEscaped("src",a._getDensityAwareSrc())}else{a._preLoadImage(a._getDensityAwareSrc());if(a._isValidBackgroundSizeValue(a.getBackgroundSize())){e.addStyle("background-size",a.getBackgroundSize())}if(a._isValidBackgroundPositionValue(a.getBackgroundPosition())){e.addStyle("background-position",a.getBackgroundPosition())}e.addStyle("background-repeat",t(a.getBackgroundRepeat()))}e.addClass("sapMImg");if(a.hasListeners("press")||a.hasListeners("tap")){e.addClass("sapMPointer")}if(o||!a.getDecorative()||g){e.addClass("sapMImgFocusable")}e.writeClasses();if(o){if(!o.startsWith("#")){o="#"+o}e.writeAttributeEscaped("useMap",o)}if(a.getDecorative()&&!o&&!g){e.writeAttribute("role","presentation");e.writeAttribute("aria-hidden","true");e.write(" alt=''")}else{if(s||d){e.writeAttributeEscaped("alt",s||d)}}if(s||d){e.writeAttributeEscaped("aria-label",s||d)}if(d){e.writeAttributeEscaped("title",d)}if(g){e.writeAttribute("role","button");e.writeAttribute("tabIndex",0)}if(a.getWidth()&&a.getWidth()!=""){e.addStyle("width",a.getWidth())}if(a.getHeight()&&a.getHeight()!=""){e.addStyle("height",a.getHeight())}e.writeStyles();e.write(" />");if(n){e.write("</span>")}};return a},true);