/**
 * External dependencies
 */
import { __ } from '@wordpress/i18n';

export default {
	ref: {
		type: 'number' as const,
	},
	subject: {
		type: 'string',
		default: window.jpFormsBlocks?.defaults?.subject || '',
	},
	to: {
		type: 'string',
		default: window.jpFormsBlocks?.defaults?.to || '',
	},
	customThankyou: {
		type: 'string',
		default: '',
	},
	customThankyouHeading: {
		type: 'string',
		default: __( 'Thank you for your response.', 'jetpack-forms' ),
	},
	customThankyouMessage: {
		type: 'string',
		default: '',
	},
	customThankyouRedirect: {
		type: 'string',
		default: '',
	},
	confirmationType: {
		enum: [ 'text', 'redirect' ],
		default: 'text',
	},
	jetpackCRM: {
		type: 'boolean',
	},
	formTitle: {
		type: 'string',
		default: '',
	},
	variationName: {
		type: 'string',
		default: '',
	},
	salesforceData: {
		type: 'object',
		default: {
			organizationId: '',
		},
	},
	mailpoet: {
		type: 'object',
		default: {
			listId: null,
			listName: null,
		},
	},
	hostingerReach: {
		type: 'object',
		default: {
			groupName: '',
		},
	},
	saveResponses: {
		type: 'boolean',
		default: true,
	},
	emailNotifications: {
		type: 'boolean',
		default: true,
	},
	disableGoBack: {
		type: 'boolean',
		default: false,
	},
	disableSummary: {
		type: 'boolean',
		default: false,
	},
	formNotifications: {
		type: 'boolean',
		default: true,
	},
	notificationRecipients: {
		type: 'array',
		default: [],
	},
	webhooks: {
		type: 'array',
		default: [],
	},
};
