<template name="messagePopup">
	{{#if isOpen}}
		<div class="message-popup-position">
			<div class="message-popup content-background-color {{cls}}">
				{{#if title}}
					<div class="message-popup-title secondary-background-color">
						{{title}}
					</div>
				{{/if}}
				<div class="message-popup-items">
					{{#each data}}
						<div class="popup-item" data-id="{{_id}}">
							{{> Template.dynamic template=../template}}
						</div>
					{{/each}}
				</div>
				{{#unless data}}
					{{#unless isLoading.get}}
						{{#if emptyTemplate}}
							{{> Template.dynamic template=emptyTemplate}}
						{{/if}}
					{{/unless}}
				{{/unless}}
				{{#if isLoading.get}}
					{{> loading}}
				{{/if}}
			</div>
		</div>
	{{/if}}
</template>
