( function ( blocks, element, components, blockEditor, i18n ) {
	'use strict';

	var registerBlockType = blocks.registerBlockType;
	var createElement = element.createElement;
	var Placeholder = components.Placeholder;
	var useBlockProps = blockEditor.useBlockProps;
	var __ = i18n.__;

	registerBlockType( 'lantern-span-people-directory/directory', {
		apiVersion: 3,
		title: __( 'Lantern Span People Directory', 'lantern-span-people-directory' ),
		description: __( 'Display a searchable photo and contact directory.', 'lantern-span-people-directory' ),
		category: 'widgets',
		icon: 'groups',
		supports: {
			html: false
		},
		edit: function () {
			return createElement(
				'div',
				useBlockProps(),
				createElement(
					Placeholder,
					{
						icon: 'groups',
						label: __( 'Lantern Span People Directory', 'lantern-span-people-directory' ),
						instructions: __( 'The searchable photo directory will appear here on the published page. Display options are managed under Lantern Span People Directory → Settings.', 'lantern-span-people-directory' )
					}
				)
			);
		},
		save: function () {
			return null;
		}
	} );
} )( window.wp.blocks, window.wp.element, window.wp.components, window.wp.blockEditor, window.wp.i18n );
