Liferay.Loader.define('frontend-taglib-clay$clay-card@2.24.1/src/ClayImageCard', ['module', 'exports', 'require'], function (module, exports, require) {
	var define = undefined;
	var global = window;
	{
		import 'clay-icon';
		import 'clay-sticker';
		import './ClayCardBase';
		import ClayComponent from 'clay-component';
		import defineWebComponent from 'metal-web-component';
		import Soy from 'metal-soy';
		import { Config } from 'metal-state';

		import actionItemsValidator from './action_items_validator';
		import templates from './ClayImageCard.soy.js';

		/**
   * Metal ClayImageCard component.
   * @extends ClayComponent
   */
		class ClayImageCard extends ClayComponent {
			/**
    * Continues the propagation of the dropdown action item click event
    * @param {!Event} event
    * @private
    * @return {Boolean} If the event has been prevented or not.
    */
			_handleActionItemClicked(event) {
				return !this.emit('itemClicked', event);
			}

			/**
    * Continues the propagation of the checkbox changed event
    * @param {!Event} event
    * @private
    * @return {Boolean} If the event has been prevented or not.
    */
			_handleItemToggled(event) {
				return !this.emit('itemToggled', event);
			}
		}

		/**
   * State definition.
   * @static
   * @type {!Object}
   */
		ClayImageCard.STATE = {
			/**
    * Aria label attribute for the action element.
    * @default undefined
    * @instance
    * @memberof ClayImageCard
    * @type {?(string|undefined)}
    */
			actionAriaLabel: Config.string(),

			/**
    * List of items to display in the actions menu.
    * @default undefined
    * @instance
    * @memberof ClayImageCard
    * @type {?(array|object|undefined)}
    */
			actionItems: actionItemsValidator,

			/**
    * CSS classes for the aspect ratio images
    * @default aspect-ratio-item-center-middle aspect-ratio-item-fluid
    * @instance
    * @memberof ClayImageCard
    * @type {?(string|undefined)}
    */
			aspectRatioClasses: Config.string().value('aspect-ratio-item-center-middle aspect-ratio-item-fluid'),

			/**
    * Data to add to the element.
    * @default undefined
    * @instance
    * @memberof ClayImageCard
    * @type {?object}
    */
			data: Config.object(),

			/**
    * Object that wires events with default listeners
    * @default undefined
    * @instance
    * @memberof ClayImageCard
    * @review
    * @type {?(object|undefined)}
    */
			defaultEventHandler: Config.object(),

			/**
    * Flag to indicate if the card is disabled or not.
    * @default false
    * @instance
    * @memberof ClayImageCard
    * @type {?bool}
    */
			disabled: Config.bool().value(false),

			/**
    * CSS classes to be applied to the element.
    * @default undefined
    * @instance
    * @memberof ClayImageCard
    * @type {?(string|undefined)}
    */
			elementClasses: Config.string(),

			/**
    * Url to be applied to the title of the card.
    * @default undefined
    * @instance
    * @memberof ClayImageCard
    * @type {?(string|undefined)}
    */
			href: Config.string(),

			/**
    * Icon to be rendered in the visual area of the card.
    * @default undefined
    * @instance
    * @memberof ClayImageCard
    * @type {?(string|undefined)}
    */
			icon: Config.string(),

			/**
    * Id to be applied to the element.
    * @default undefined
    * @instance
    * @memberof ClayImageCard
    * @type {?(string|undefined)}
    */
			id: Config.string(),

			/**
    * Alternate text of the image.
    * @default undefined
    * @instance
    * @memberof ClayImageCard
    * @type {?(string|undefined)}
    */
			imageAlt: Config.string(),

			/**
    * Source of the image to be rendered in the visual area of the card.
    * @default undefined
    * @instance
    * @memberof ClayImageCard
    * @type {?(string|undefined)}
    */
			imageSrc: Config.string(),

			/**
    * Name to be applied to the input element.
    * @default undefined
    * @instance
    * @memberof ClayImageCard
    * @type {?(string|undefined)}
    */
			inputName: Config.string(),

			/**
    * Value to be applied to the input element.
    * @default undefined
    * @instance
    * @memberof ClayImageCard
    * @type {?(string|undefined)}
    */
			inputValue: Config.string(),

			/**
    * Labels of the card.
    * @default undefined
    * @instance
    * @memberof ClayImageCard
    * @type {?(array|undefined)}
    */
			labels: Config.arrayOf(Config.oneOfType([Config.string(), Config.shapeOf({
				label: Config.string(),
				style: Config.oneOf(['danger', 'info', 'secondary', 'success', 'warning']).value('secondary')
			})])),

			/**
    * Object that maps specific label values with desired styles.
    * @default undefined
    * @instance
    * @memberof ClayImageCard
    * @type {?(object|undefined)}
    */
			labelStylesMap: Config.object(),

			/**
    * Flag to indicate if the card is selectable or not.
    * @default false
    * @instance
    * @memberof ClayImageCard
    * @type {?bool}
    */
			selectable: Config.bool().value(false),

			/**
    * Flag to indicate if the card is selected or not.
    * @default false
    * @instance
    * @memberof ClayImageCard
    * @type {?bool}
    */
			selected: Config.bool().value(false),

			/**
    * The path to the SVG spritemap file containing the icons.
    * @default undefined
    * @instance
    * @memberof ClayImageCard
    * @type {?(string|undefined)}
    */
			spritemap: Config.string(),

			/**
    * CSS classes for the inside the sticker.
    * @default undefined
    * @instance
    * @memberof ClayImageCard
    * @type {?(string|undefined)}
    */
			stickerClasses: Config.string(),

			/**
    * Icon to be renderer inside the sticker.
    * @default undefined
    * @instance
    * @memberof ClayImageCard
    * @type {?(string|undefined)}
    */
			stickerIcon: Config.string(),

			/**
    * Alternate text of the image to be renderer inside the sticker.
    * @default undefined
    * @instance
    * @memberof ClayImageCard
    * @type {?(string|undefined)}
    */
			stickerImageAlt: Config.string(),

			/**
    * Source of the image to be rendered inside the sticker.
    * @default undefined
    * @instance
    * @memberof ClayImageCard
    * @type {?(string|undefined)}
    */
			stickerImageSrc: Config.string(),

			/**
    * Label for the sticker represented in the card.
    * @default undefined
    * @instance
    * @memberof ClayImageCard
    * @type {?(string|undefined)}
    */
			stickerLabel: Config.string(),

			/**
    * Style of sticker represented in the card.
    * @default primary
    * @instance
    * @memberof ClayImageCard
    * @type {?string}
    */
			stickerStyle: Config.oneOf(['danger', 'dark', 'info', 'light', 'primary', 'secondary', 'success', 'warning']).value('primary'),

			/**
    * Shape for the sticker represented in the card.
    * @default rounded
    * @instance
    * @memberof ClayImageCard
    * @type {?string}
    */
			stickerShape: Config.oneOf(['circle', 'rounded']).value('rounded'),

			/**
    * Subtitle of the card.
    * @default undefined
    * @instance
    * @memberof ClayImageCard
    * @type {?(string|undefined)}
    */
			subtitle: Config.string(),

			/**
    * Title of the card.
    * @default undefined
    * @instance
    * @memberof ClayImageCard
    * @type {!string}
    */
			title: Config.string().required()
		};

		defineWebComponent('clay-image-card', ClayImageCard);

		Soy.register(ClayImageCard, templates);

		export { ClayImageCard };
		export default ClayImageCard;
	}
});
//# sourceMappingURL=ClayImageCard.js.map