<?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 . 'min',
	[
		'label'       => esc_html__( 'Min. Value', 'advanced-fields-for-elementor-forms' ),
		'type'        => Controls_Manager::NUMBER,
		'control_tab' => Controls_Manager::TAB_CONTENT,
		'default'     => 0,
		'label_block' => false,
	]
);

$field->add_control(
	$prefix . 'max',
	[
		'label'       => esc_html__( 'Max. Value', 'advanced-fields-for-elementor-forms' ),
		'type'        => Controls_Manager::NUMBER,
		'control_tab' => Controls_Manager::TAB_CONTENT,
		'default'     => 100,
		'label_block' => false,
	]
);

$field->add_control(
	$prefix . 'step',
	[
		'label'       => esc_html__( 'Step', 'advanced-fields-for-elementor-forms' ),
		'type'        => Controls_Manager::NUMBER,
		'control_tab' => Controls_Manager::TAB_CONTENT,
		'default'     => 1,
		'label_block' => false,
	]
);

$field->add_control(
	$prefix . 'show_input',
	[
		'label'        => esc_html__( 'Show Input', 'advanced-fields-for-elementor-forms' ),
		'type'         => Controls_Manager::SWITCHER,
		'control_tab'  => Controls_Manager::TAB_CONTENT,
		'label_on'     => esc_html__( 'Show', 'advanced-fields-for-elementor-forms' ),
		'label_off'    => esc_html__( 'Hide', 'advanced-fields-for-elementor-forms' ),
		'return_value' => 'yes',
		'default'      => 'yes',
	]
);
