'use strict';

Liferay.Loader.define('frontend-taglib-clay$clay-card@2.24.1/lib/ClayImageCard.soy', ['module', 'exports', 'require', 'frontend-js-metal-web$metal-component', 'frontend-js-metal-web$metal-soy'], function (module, exports, require) {
  var define = undefined;
  var global = window;
  {
    Object.defineProperty(exports, "__esModule", {
      value: true
    });
    exports.templates = exports.ClayImageCard = undefined;

    var _metalComponent = require('frontend-js-metal-web$metal-component');

    var _metalComponent2 = _interopRequireDefault(_metalComponent);

    var _metalSoy = require('frontend-js-metal-web$metal-soy');

    var _metalSoy2 = _interopRequireDefault(_metalSoy);

    function _interopRequireDefault(obj) {
      return obj && obj.__esModule ? obj : { default: obj };
    }

    function _classCallCheck(instance, Constructor) {
      if (!(instance instanceof Constructor)) {
        throw new TypeError("Cannot call a class as a function");
      }
    }

    function _possibleConstructorReturn(self, call) {
      if (!self) {
        throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
      }return call && (typeof call === "object" || typeof call === "function") ? call : self;
    }

    function _inherits(subClass, superClass) {
      if (typeof superClass !== "function" && superClass !== null) {
        throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
      }subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
    } /* jshint ignore:start */

    var templates;
    goog.loadModule(function (exports) {
      var soy = goog.require('soy');

      goog.require('soydata');

      // This file was automatically generated from ClayImageCard.soy.
      // Please don't edit this file by hand.

      /**
       * @fileoverview Templates in namespace ClayImageCard.
       * @hassoydeltemplate {ClayCardBase.VisualArea.idom}
       * @public
       */

      goog.module('ClayImageCard.incrementaldom');

      goog.require('goog.soy.data.SanitizedContent');
      var incrementalDom = goog.require('incrementaldom');
      goog.require('soy');
      goog.require('soy.asserts');

      goog.require('soy.idom');

      var $templateAlias1 = _metalSoy2.default.getTemplate('ClayCardBase.incrementaldom', 'render');

      var $templateAlias2 = _metalSoy2.default.getTemplate('ClayIcon.incrementaldom', 'render');

      var $templateAlias3 = _metalSoy2.default.getTemplate('ClaySticker.incrementaldom', 'render');

      /**
       * @param {{
       *  title: (!goog.soy.data.SanitizedContent|string),
       *  _handleActionItemClicked: (*|null|undefined),
       *  _handleItemToggled: (*|null|undefined),
       *  actionAriaLabel: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  actionItems: (!Array<{href: (!goog.soy.data.SanitizedContent|string), label: (!goog.soy.data.SanitizedContent|string), separator: boolean}>|null|undefined),
       *  aspectRatioClasses: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  disabled: (boolean|null|undefined),
       *  elementClasses: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  href: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  icon: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  id: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  imageAlt: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  imageSrc: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  inputName: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  inputValue: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  labels: (!Array<?>|null|undefined),
       *  labelStylesMap: (?),
       *  selectable: (boolean|null|undefined),
       *  selected: (boolean|null|undefined),
       *  spritemap: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  stickerClasses: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  stickerIcon: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  stickerImageAlt: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  stickerImageSrc: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  stickerLabel: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  stickerShape: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  stickerStyle: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  subtitle: (!goog.soy.data.SanitizedContent|null|string|undefined)
       * }} opt_data
       * @param {Object<string, *>=} opt_ijData
       * @param {Object<string, *>=} opt_ijData_deprecated
       * @return {void}
       * @suppress {checkTypes}
       */
      function $render(opt_data, opt_ijData, opt_ijData_deprecated) {
        opt_ijData = opt_ijData_deprecated || opt_ijData;
        /** @type {!goog.soy.data.SanitizedContent|string} */
        var title = soy.asserts.assertType(goog.isString(opt_data.title) || opt_data.title instanceof goog.soy.data.SanitizedContent, 'title', opt_data.title, '!goog.soy.data.SanitizedContent|string');
        /** @type {*|null|undefined} */
        var _handleActionItemClicked = opt_data._handleActionItemClicked;
        /** @type {*|null|undefined} */
        var _handleItemToggled = opt_data._handleItemToggled;
        /** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */
        var actionAriaLabel = soy.asserts.assertType(opt_data.actionAriaLabel == null || goog.isString(opt_data.actionAriaLabel) || opt_data.actionAriaLabel instanceof goog.soy.data.SanitizedContent, 'actionAriaLabel', opt_data.actionAriaLabel, '!goog.soy.data.SanitizedContent|null|string|undefined');
        /** @type {!Array<{href: (!goog.soy.data.SanitizedContent|string), label: (!goog.soy.data.SanitizedContent|string), separator: boolean}>|null|undefined} */
        var actionItems = soy.asserts.assertType(opt_data.actionItems == null || goog.isArray(opt_data.actionItems), 'actionItems', opt_data.actionItems, '!Array<{href: (!goog.soy.data.SanitizedContent|string), label: (!goog.soy.data.SanitizedContent|string), separator: boolean}>|null|undefined');
        /** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */
        var aspectRatioClasses = soy.asserts.assertType(opt_data.aspectRatioClasses == null || goog.isString(opt_data.aspectRatioClasses) || opt_data.aspectRatioClasses instanceof goog.soy.data.SanitizedContent, 'aspectRatioClasses', opt_data.aspectRatioClasses, '!goog.soy.data.SanitizedContent|null|string|undefined');
        /** @type {boolean|null|undefined} */
        var disabled = soy.asserts.assertType(opt_data.disabled == null || goog.isBoolean(opt_data.disabled) || opt_data.disabled === 1 || opt_data.disabled === 0, 'disabled', opt_data.disabled, 'boolean|null|undefined');
        /** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */
        var elementClasses = soy.asserts.assertType(opt_data.elementClasses == null || goog.isString(opt_data.elementClasses) || opt_data.elementClasses instanceof goog.soy.data.SanitizedContent, 'elementClasses', opt_data.elementClasses, '!goog.soy.data.SanitizedContent|null|string|undefined');
        /** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */
        var href = soy.asserts.assertType(opt_data.href == null || goog.isString(opt_data.href) || opt_data.href instanceof goog.soy.data.SanitizedContent, 'href', opt_data.href, '!goog.soy.data.SanitizedContent|null|string|undefined');
        /** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */
        var icon = soy.asserts.assertType(opt_data.icon == null || goog.isString(opt_data.icon) || opt_data.icon instanceof goog.soy.data.SanitizedContent, 'icon', opt_data.icon, '!goog.soy.data.SanitizedContent|null|string|undefined');
        /** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */
        var id = soy.asserts.assertType(opt_data.id == null || goog.isString(opt_data.id) || opt_data.id instanceof goog.soy.data.SanitizedContent, 'id', opt_data.id, '!goog.soy.data.SanitizedContent|null|string|undefined');
        /** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */
        var imageAlt = soy.asserts.assertType(opt_data.imageAlt == null || goog.isString(opt_data.imageAlt) || opt_data.imageAlt instanceof goog.soy.data.SanitizedContent, 'imageAlt', opt_data.imageAlt, '!goog.soy.data.SanitizedContent|null|string|undefined');
        /** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */
        var imageSrc = soy.asserts.assertType(opt_data.imageSrc == null || goog.isString(opt_data.imageSrc) || opt_data.imageSrc instanceof goog.soy.data.SanitizedContent, 'imageSrc', opt_data.imageSrc, '!goog.soy.data.SanitizedContent|null|string|undefined');
        /** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */
        var inputName = soy.asserts.assertType(opt_data.inputName == null || goog.isString(opt_data.inputName) || opt_data.inputName instanceof goog.soy.data.SanitizedContent, 'inputName', opt_data.inputName, '!goog.soy.data.SanitizedContent|null|string|undefined');
        /** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */
        var inputValue = soy.asserts.assertType(opt_data.inputValue == null || goog.isString(opt_data.inputValue) || opt_data.inputValue instanceof goog.soy.data.SanitizedContent, 'inputValue', opt_data.inputValue, '!goog.soy.data.SanitizedContent|null|string|undefined');
        /** @type {!Array<?>|null|undefined} */
        var labels = soy.asserts.assertType(opt_data.labels == null || goog.isArray(opt_data.labels), 'labels', opt_data.labels, '!Array<?>|null|undefined');
        /** @type {?} */
        var labelStylesMap = opt_data.labelStylesMap;
        /** @type {boolean|null|undefined} */
        var selectable = soy.asserts.assertType(opt_data.selectable == null || goog.isBoolean(opt_data.selectable) || opt_data.selectable === 1 || opt_data.selectable === 0, 'selectable', opt_data.selectable, 'boolean|null|undefined');
        /** @type {boolean|null|undefined} */
        var selected = soy.asserts.assertType(opt_data.selected == null || goog.isBoolean(opt_data.selected) || opt_data.selected === 1 || opt_data.selected === 0, 'selected', opt_data.selected, 'boolean|null|undefined');
        /** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */
        var spritemap = soy.asserts.assertType(opt_data.spritemap == null || goog.isString(opt_data.spritemap) || opt_data.spritemap instanceof goog.soy.data.SanitizedContent, 'spritemap', opt_data.spritemap, '!goog.soy.data.SanitizedContent|null|string|undefined');
        /** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */
        var stickerClasses = soy.asserts.assertType(opt_data.stickerClasses == null || goog.isString(opt_data.stickerClasses) || opt_data.stickerClasses instanceof goog.soy.data.SanitizedContent, 'stickerClasses', opt_data.stickerClasses, '!goog.soy.data.SanitizedContent|null|string|undefined');
        /** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */
        var stickerIcon = soy.asserts.assertType(opt_data.stickerIcon == null || goog.isString(opt_data.stickerIcon) || opt_data.stickerIcon instanceof goog.soy.data.SanitizedContent, 'stickerIcon', opt_data.stickerIcon, '!goog.soy.data.SanitizedContent|null|string|undefined');
        /** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */
        var stickerImageAlt = soy.asserts.assertType(opt_data.stickerImageAlt == null || goog.isString(opt_data.stickerImageAlt) || opt_data.stickerImageAlt instanceof goog.soy.data.SanitizedContent, 'stickerImageAlt', opt_data.stickerImageAlt, '!goog.soy.data.SanitizedContent|null|string|undefined');
        /** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */
        var stickerImageSrc = soy.asserts.assertType(opt_data.stickerImageSrc == null || goog.isString(opt_data.stickerImageSrc) || opt_data.stickerImageSrc instanceof goog.soy.data.SanitizedContent, 'stickerImageSrc', opt_data.stickerImageSrc, '!goog.soy.data.SanitizedContent|null|string|undefined');
        /** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */
        var stickerLabel = soy.asserts.assertType(opt_data.stickerLabel == null || goog.isString(opt_data.stickerLabel) || opt_data.stickerLabel instanceof goog.soy.data.SanitizedContent, 'stickerLabel', opt_data.stickerLabel, '!goog.soy.data.SanitizedContent|null|string|undefined');
        /** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */
        var stickerShape = soy.asserts.assertType(opt_data.stickerShape == null || goog.isString(opt_data.stickerShape) || opt_data.stickerShape instanceof goog.soy.data.SanitizedContent, 'stickerShape', opt_data.stickerShape, '!goog.soy.data.SanitizedContent|null|string|undefined');
        /** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */
        var stickerStyle = soy.asserts.assertType(opt_data.stickerStyle == null || goog.isString(opt_data.stickerStyle) || opt_data.stickerStyle instanceof goog.soy.data.SanitizedContent, 'stickerStyle', opt_data.stickerStyle, '!goog.soy.data.SanitizedContent|null|string|undefined');
        /** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */
        var subtitle = soy.asserts.assertType(opt_data.subtitle == null || goog.isString(opt_data.subtitle) || opt_data.subtitle instanceof goog.soy.data.SanitizedContent, 'subtitle', opt_data.subtitle, '!goog.soy.data.SanitizedContent|null|string|undefined');
        var classes__soy629 = '';
        classes__soy629 += 'image-card';
        classes__soy629 += elementClasses ? ' ' + elementClasses : '';
        $templateAlias1({ actionAriaLabel: actionAriaLabel, actionItems: actionItems, aspectRatioClasses: aspectRatioClasses, contentRenderer: 'image', disabled: disabled, elementClasses: classes__soy629, events: { itemClicked: _handleActionItemClicked, itemToggled: _handleItemToggled }, href: href, icon: icon, id: id, imageAlt: imageAlt, imageSrc: imageSrc, inputName: inputName, inputValue: inputValue, labels: labels, labelStylesMap: labelStylesMap, ref: 'card', selectable: selectable, selected: selected, spritemap: spritemap, stickerClasses: stickerClasses, stickerIcon: stickerIcon, stickerImageAlt: stickerImageAlt, stickerImageSrc: stickerImageSrc, stickerLabel: stickerLabel, stickerShape: stickerShape, stickerStyle: stickerStyle, subtitle: subtitle, title: title }, null, opt_ijData);
      }
      exports.render = $render;
      /**
       * @typedef {{
       *  title: (!goog.soy.data.SanitizedContent|string),
       *  _handleActionItemClicked: (*|null|undefined),
       *  _handleItemToggled: (*|null|undefined),
       *  actionAriaLabel: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  actionItems: (!Array<{href: (!goog.soy.data.SanitizedContent|string), label: (!goog.soy.data.SanitizedContent|string), separator: boolean}>|null|undefined),
       *  aspectRatioClasses: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  disabled: (boolean|null|undefined),
       *  elementClasses: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  href: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  icon: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  id: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  imageAlt: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  imageSrc: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  inputName: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  inputValue: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  labels: (!Array<?>|null|undefined),
       *  labelStylesMap: (?),
       *  selectable: (boolean|null|undefined),
       *  selected: (boolean|null|undefined),
       *  spritemap: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  stickerClasses: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  stickerIcon: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  stickerImageAlt: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  stickerImageSrc: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  stickerLabel: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  stickerShape: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  stickerStyle: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  subtitle: (!goog.soy.data.SanitizedContent|null|string|undefined)
       * }}
       */
      $render.Params;
      if (goog.DEBUG) {
        $render.soyTemplateName = 'ClayImageCard.render';
      }

      /**
       * @param {{
       *  aspectRatioClasses: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  icon: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  imageAlt: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  imageSrc: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  spritemap: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  stickerClasses: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  stickerIcon: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  stickerImageAlt: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  stickerImageSrc: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  stickerLabel: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  stickerShape: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  stickerStyle: (!goog.soy.data.SanitizedContent|null|string|undefined)
       * }} opt_data
       * @param {Object<string, *>=} opt_ijData
       * @param {Object<string, *>=} opt_ijData_deprecated
       * @return {void}
       * @suppress {checkTypes}
       */
      function __deltemplate_s669_970abbf1(opt_data, opt_ijData, opt_ijData_deprecated) {
        opt_ijData = opt_ijData_deprecated || opt_ijData;
        var $$temp;
        opt_data = opt_data || {};
        /** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */
        var aspectRatioClasses = soy.asserts.assertType(opt_data.aspectRatioClasses == null || goog.isString(opt_data.aspectRatioClasses) || opt_data.aspectRatioClasses instanceof goog.soy.data.SanitizedContent, 'aspectRatioClasses', opt_data.aspectRatioClasses, '!goog.soy.data.SanitizedContent|null|string|undefined');
        /** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */
        var icon = soy.asserts.assertType(opt_data.icon == null || goog.isString(opt_data.icon) || opt_data.icon instanceof goog.soy.data.SanitizedContent, 'icon', opt_data.icon, '!goog.soy.data.SanitizedContent|null|string|undefined');
        /** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */
        var imageAlt = soy.asserts.assertType(opt_data.imageAlt == null || goog.isString(opt_data.imageAlt) || opt_data.imageAlt instanceof goog.soy.data.SanitizedContent, 'imageAlt', opt_data.imageAlt, '!goog.soy.data.SanitizedContent|null|string|undefined');
        /** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */
        var imageSrc = soy.asserts.assertType(opt_data.imageSrc == null || goog.isString(opt_data.imageSrc) || opt_data.imageSrc instanceof goog.soy.data.SanitizedContent, 'imageSrc', opt_data.imageSrc, '!goog.soy.data.SanitizedContent|null|string|undefined');
        /** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */
        var spritemap = soy.asserts.assertType(opt_data.spritemap == null || goog.isString(opt_data.spritemap) || opt_data.spritemap instanceof goog.soy.data.SanitizedContent, 'spritemap', opt_data.spritemap, '!goog.soy.data.SanitizedContent|null|string|undefined');
        /** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */
        var stickerClasses = soy.asserts.assertType(opt_data.stickerClasses == null || goog.isString(opt_data.stickerClasses) || opt_data.stickerClasses instanceof goog.soy.data.SanitizedContent, 'stickerClasses', opt_data.stickerClasses, '!goog.soy.data.SanitizedContent|null|string|undefined');
        /** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */
        var stickerIcon = soy.asserts.assertType(opt_data.stickerIcon == null || goog.isString(opt_data.stickerIcon) || opt_data.stickerIcon instanceof goog.soy.data.SanitizedContent, 'stickerIcon', opt_data.stickerIcon, '!goog.soy.data.SanitizedContent|null|string|undefined');
        /** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */
        var stickerImageAlt = soy.asserts.assertType(opt_data.stickerImageAlt == null || goog.isString(opt_data.stickerImageAlt) || opt_data.stickerImageAlt instanceof goog.soy.data.SanitizedContent, 'stickerImageAlt', opt_data.stickerImageAlt, '!goog.soy.data.SanitizedContent|null|string|undefined');
        /** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */
        var stickerImageSrc = soy.asserts.assertType(opt_data.stickerImageSrc == null || goog.isString(opt_data.stickerImageSrc) || opt_data.stickerImageSrc instanceof goog.soy.data.SanitizedContent, 'stickerImageSrc', opt_data.stickerImageSrc, '!goog.soy.data.SanitizedContent|null|string|undefined');
        /** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */
        var stickerLabel = soy.asserts.assertType(opt_data.stickerLabel == null || goog.isString(opt_data.stickerLabel) || opt_data.stickerLabel instanceof goog.soy.data.SanitizedContent, 'stickerLabel', opt_data.stickerLabel, '!goog.soy.data.SanitizedContent|null|string|undefined');
        /** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */
        var stickerShape = soy.asserts.assertType(opt_data.stickerShape == null || goog.isString(opt_data.stickerShape) || opt_data.stickerShape instanceof goog.soy.data.SanitizedContent, 'stickerShape', opt_data.stickerShape, '!goog.soy.data.SanitizedContent|null|string|undefined');
        /** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */
        var stickerStyle = soy.asserts.assertType(opt_data.stickerStyle == null || goog.isString(opt_data.stickerStyle) || opt_data.stickerStyle instanceof goog.soy.data.SanitizedContent, 'stickerStyle', opt_data.stickerStyle, '!goog.soy.data.SanitizedContent|null|string|undefined');
        var defaultAspectRatioClasses__soy683 = ($$temp = aspectRatioClasses) == null ? 'aspect-ratio-item-center-middle aspect-ratio-item-fluid' : $$temp;
        if (imageSrc) {
          var imageAttributes__soy688 = function imageAttributes__soy688() {
            incrementalDom.attr('alt', imageAlt ? imageAlt : '');
            incrementalDom.attr('class', 'aspect-ratio-item ' + defaultAspectRatioClasses__soy683);
            incrementalDom.attr('src', imageSrc);
          };
          incrementalDom.elementOpenStart('img');
          imageAttributes__soy688();
          incrementalDom.elementOpenEnd();
          incrementalDom.elementClose('img');
        } else if (icon && spritemap) {
          var iconAspectRatioClasses__soy705 = '';
          iconAspectRatioClasses__soy705 += defaultAspectRatioClasses__soy683;
          iconAspectRatioClasses__soy705 += !imageSrc && icon && spritemap ? ' card-type-asset-icon' : '';
          incrementalDom.elementOpenStart('div');
          incrementalDom.attr('class', iconAspectRatioClasses__soy705);
          incrementalDom.elementOpenEnd();
          $templateAlias2({ spritemap: spritemap, symbol: icon }, null, opt_ijData);
          incrementalDom.elementClose('div');
        }
        if (stickerLabel || stickerImageSrc || stickerIcon && spritemap) {
          $templateAlias3({ elementClasses: stickerClasses, icon: stickerIcon, imageAlt: stickerImageAlt, imageSrc: stickerImageSrc, label: stickerLabel, position: 'bottom-left', shape: ($$temp = stickerShape) == null ? 'rounded' : $$temp, spritemap: spritemap, style: ($$temp = stickerStyle) == null ? 'primary' : $$temp }, null, opt_ijData);
        }
      }
      exports.__deltemplate_s669_970abbf1 = __deltemplate_s669_970abbf1;
      /**
       * @typedef {{
       *  aspectRatioClasses: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  icon: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  imageAlt: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  imageSrc: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  spritemap: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  stickerClasses: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  stickerIcon: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  stickerImageAlt: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  stickerImageSrc: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  stickerLabel: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  stickerShape: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  stickerStyle: (!goog.soy.data.SanitizedContent|null|string|undefined)
       * }}
       */
      __deltemplate_s669_970abbf1.Params;
      if (goog.DEBUG) {
        __deltemplate_s669_970abbf1.soyTemplateName = 'ClayImageCard.__deltemplate_s669_970abbf1';
      }
      soy.$$registerDelegateFn(soy.$$getDelTemplateId('ClayCardBase.VisualArea.idom'), 'image', 0, __deltemplate_s669_970abbf1);

      exports.render.params = ["title", "_handleActionItemClicked", "_handleItemToggled", "actionAriaLabel", "actionItems", "aspectRatioClasses", "disabled", "elementClasses", "href", "icon", "id", "imageAlt", "imageSrc", "inputName", "inputValue", "labels", "labelStylesMap", "selectable", "selected", "spritemap", "stickerClasses", "stickerIcon", "stickerImageAlt", "stickerImageSrc", "stickerLabel", "stickerShape", "stickerStyle", "subtitle"];
      exports.render.types = { "title": "string", "_handleActionItemClicked": "any", "_handleItemToggled": "any", "actionAriaLabel": "string", "actionItems": "list<[\n\t\thref: string,\n\t\tlabel: string,\n\t\tseparator: bool\n\t]>", "aspectRatioClasses": "string", "disabled": "bool", "elementClasses": "string", "href": "string", "icon": "string", "id": "string", "imageAlt": "string", "imageSrc": "string", "inputName": "string", "inputValue": "string", "labels": "list<?>", "labelStylesMap": "?", "selectable": "bool", "selected": "bool", "spritemap": "string", "stickerClasses": "string", "stickerIcon": "string", "stickerImageAlt": "string", "stickerImageSrc": "string", "stickerLabel": "string", "stickerShape": "string", "stickerStyle": "string", "subtitle": "string" };
      exports.templates = templates = exports;
      return exports;
    });

    var ClayImageCard = function (_Component) {
      _inherits(ClayImageCard, _Component);

      function ClayImageCard() {
        _classCallCheck(this, ClayImageCard);

        return _possibleConstructorReturn(this, (ClayImageCard.__proto__ || Object.getPrototypeOf(ClayImageCard)).apply(this, arguments));
      }

      return ClayImageCard;
    }(_metalComponent2.default);

    _metalSoy2.default.register(ClayImageCard, templates);
    exports.ClayImageCard = ClayImageCard;
    exports.templates = templates;
    exports.default = templates;
    /* jshint ignore:end */
    //# sourceMappingURL=ClayImageCard.soy.js.map
  }
});
//# sourceMappingURL=ClayImageCard.soy.js.map