Liferay.Loader.define('frontend-taglib-clay$clay-management-toolbar@2.24.1/src/validators', ['module', 'exports', 'require'], function (module, exports, require) {
	var define = undefined;
	var global = window;
	{
		import { Config } from 'metal-state';

		let actionItemShape = {
			disabled: Config.bool().value(false),
			href: Config.string().required(),
			icon: Config.string(),
			id: Config.string(),
			label: Config.string().required(),
			quickAction: Config.bool(),
			separator: Config.bool().value(false),
			title: Config.string(),
			type: Config.oneOf(['group', 'item']).value('item')
		};

		const actionItemsValidator = Config.arrayOf(Config.shapeOf(actionItemShape)).value([]);

		actionItemShape.items = actionItemsValidator;

		let creationMenuItem = {
			disabled: Config.bool().value(false),
			href: Config.string().required(),
			icon: Config.string(),
			label: Config.string().required(),
			separator: Config.bool().value(false),
			title: Config.string()
		};

		const creationMenuItemsValidator = Config.arrayOf(Config.shapeOf(creationMenuItem));

		creationMenuItem.items = creationMenuItemsValidator;

		let filterItemShape = {
			active: Config.bool().value(false),
			checked: Config.bool().value(false),
			disabled: Config.bool().value(false),
			href: Config.string(),
			id: Config.string(),
			inputName: Config.string(),
			inputValue: Config.string(),
			label: Config.string().required(),
			separator: Config.bool().value(false),
			title: Config.string(),
			type: Config.oneOf(['checkbox', 'group', 'item', 'radiogroup'])
		};

		const filterItemsValidator = Config.arrayOf(Config.shapeOf(filterItemShape));

		filterItemShape.items = filterItemsValidator;

		const filterLabelsValidator = Config.arrayOf(Config.shapeOf({
			closeable: Config.bool().value(true),
			data: Config.object(),
			label: Config.any().required()
		}));

		export { actionItemsValidator, creationMenuItemsValidator, filterItemsValidator, filterLabelsValidator };
	}
});
//# sourceMappingURL=validators.js.map