<?php
/**
 * Field content tab controls
 * @var string $prefix
 * @var string $widget_id
 * @var Repeater $field
 */

use Elementor\Controls_Manager;
use Elementor\Repeater;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

$field->add_control(
	$prefix . 'placeholder',
	[
		'label'       => esc_attr__( 'Placeholder', 'advanced-fields-for-elementor-forms' ),
		'type'        => Controls_Manager::TEXT,
		'control_tab' => Controls_Manager::TAB_CONTENT,
		'default'     => '',
	]
);

$field->add_control(
	$prefix . 'min',
	[
		'label'          => esc_html__( 'Min. Date', 'advanced-fields-for-elementor-forms' ),
		'type'           => Controls_Manager::DATE_TIME,
		'control_tab'    => Controls_Manager::TAB_CONTENT,
		'label_block'    => false,
		'picker_options' => [
			'enableTime'  => false,
			'weekNumbers' => true,
		],
		'ai'             => [
			'active' => false,
		],
	]
);

$field->add_control(
	$prefix . 'max',
	[
		'label'          => esc_html__( 'Max. Date', 'advanced-fields-for-elementor-forms' ),
		'type'           => Controls_Manager::DATE_TIME,
		'control_tab'    => Controls_Manager::TAB_CONTENT,
		'label_block'    => false,
		'picker_options' => [
			'enableTime'  => false,
			'weekNumbers' => true,
		],
		'ai'             => [
			'active' => false,
		],
	]
);
