<?php
$slides_to_show = range( 1, 10 );
$slides_to_show = array_combine( $slides_to_show, $slides_to_show );

pxl_add_custom_widget(
    array(
        'name' => 'pxl_slider_carousel',
        'title' => esc_html__('BR Slider Carousel', 'kaitex'),
        'icon' => 'eicon-slider-push',
        'categories' => array('pxltheme-core'),
        'scripts' => array(
            'swiper',
            'pxl-swiper',
            'elementor-waypoints',
            'jquery-numerator',
            'pxl-counter',
            'kaitex-counter',
        ),
        'params' => array(
            'sections' => array(
                array(
                    'name' => 'section_layout',
                    'label' => esc_html__('Layout', 'kaitex' ),
                    'tab' => \Elementor\Controls_Manager::TAB_LAYOUT,
                    'controls' => array(
                        array(
                            'name' => 'layout',
                            'label' => esc_html__('Templates', 'kaitex' ),
                            'type' => 'layoutcontrol',
                            'default' => '1',
                            'options' => [
                                '1' => [
                                    'label' => esc_html__('Layout 1', 'kaitex' ),
                                    'image' => get_template_directory_uri() . '/elements/templates/pxl_slider_carousel/img-layout/layout1.webp'
                                ],
                                '2' => [
                                    'label' => esc_html__('Layout 2', 'kaitex' ),
                                    'image' => get_template_directory_uri() . '/elements/templates/pxl_slider_carousel/img-layout/layout2.webp'
                                ],
                            ],
                        ),
                    ),
                ),
                array(
                    'name' => 'section_content',
                    'label' => esc_html__('Content', 'kaitex'),
                    'tab' => \Elementor\Controls_Manager::TAB_CONTENT,
                    'condition' => [
                        'layout' => '1',
                    ],
                    'controls' => array(
                        array(
                            'name' => 'list',
                            'label' => esc_html__('Content', 'kaitex'),
                            'type' => \Elementor\Controls_Manager::REPEATER,
                            'default' => [],
                            'condition' => [
                                'style_ly1' => 'style1',
                            ],
                            'controls' => array(
                                array(
                                    'name' => 'image',
                                    'label' => esc_html__( 'Background', 'kaitex' ),
                                    'type' => \Elementor\Controls_Manager::MEDIA,
                                ),
                                array(
                                    'name' => 'title',
                                    'label' => esc_html__('Title', 'kaitex'),
                                    'type' => \Elementor\Controls_Manager::TEXTAREA,
                                    'label_block' => true,
                                ),
                                array(
                                    'name' => 'video_text_ly1',
                                    'label' => esc_html__('Video Text', 'kaitex' ),
                                    'type' => \Elementor\Controls_Manager::TEXT,
                                    'default' => esc_html__('Click Here', 'kaitex'),
                                    'separator' => 'before',
                                ),
                                array(
                                    'name' => 'video_link_ly1',
                                    'label' => esc_html__('Video Link', 'kaitex'),
                                    'type' => \Elementor\Controls_Manager::TEXT,
                                    'label_block' => true,
                                    'default' => esc_html__('#', 'kaitex'),
                                ),
                            ),
                            'title_field' => '{{{ title }}}',
                        ),
                        array(
                            'name' => 'list1_b',
                            'label' => esc_html__('Content', 'kaitex'),
                            'type' => \Elementor\Controls_Manager::REPEATER,
                            'default' => [],
                            'condition' => [
                                'style_ly1' => 'style2',
                            ],
                            'controls' => array(
                                array(
                                    'name' => 'image1_b',
                                    'label' => esc_html__( 'Background', 'kaitex' ),
                                    'type' => \Elementor\Controls_Manager::MEDIA,
                                ),
                                array(
                                    'name' => 'sub_title1_b',
                                    'label' => esc_html__('Sub Title', 'kaitex'),
                                    'type' => \Elementor\Controls_Manager::TEXT,
                                    'label_block' => true,
                                ),
                                array(
                                    'name' => 'title1_b',
                                    'label' => esc_html__('Title', 'kaitex'),
                                    'type' => \Elementor\Controls_Manager::TEXTAREA,
                                    'label_block' => true,
                                ),
                                array(
                                    'name' => 'video_link_ly1_b',
                                    'label' => esc_html__('Video Link', 'kaitex'),
                                    'type' => \Elementor\Controls_Manager::TEXT,
                                    'label_block' => true,
                                    'default' => esc_html__('#', 'kaitex'),
                                ),
                            ),
                            'title_field' => '{{{ title1_b }}}',
                        ),
                        array(
                            'name' => 'style_ly1',
                            'label' => esc_html__('Style', 'kaitex' ),
                            'type' => \Elementor\Controls_Manager::SELECT,
                            'options' => [
                                'style1' => 'Style 1',
                                'style2' => 'Style 2',
                            ],
                            'default' => 'style1',
                        ),
                    ),
                ),
                array(
                    'name' => 'section_content_ly2',
                    'label' => esc_html__('Content', 'kaitex'),
                    'tab' => \Elementor\Controls_Manager::TAB_CONTENT,
                    'condition' => [
                        'layout' => '2',
                    ],
                    'controls' => array(
                        array(
                            'name' => 'list2',
                            'label' => esc_html__('Content', 'kaitex'),
                            'type' => \Elementor\Controls_Manager::REPEATER,
                            'default' => [],
                            'controls' => array(
                                array(
                                    'name' => 'image_ly2',
                                    'label' => esc_html__( 'Image', 'kaitex' ),
                                    'type' => \Elementor\Controls_Manager::MEDIA,
                                ),
                                array(
                                    'name' => 'title_ly2',
                                    'label' => esc_html__('Title', 'kaitex'),
                                    'type' => \Elementor\Controls_Manager::TEXTAREA,
                                    'label_block' => true,
                                ),
                                array(
                                    'name' => 'description_ly2',
                                    'label' => esc_html__('Description', 'kaitex'),
                                    'type' => \Elementor\Controls_Manager::TEXTAREA,
                                    'label_block' => true,
                                ),
                                array(
                                    'name' => 'client_image_ly2',
                                    'label' => esc_html__( 'Clients Image', 'kaitex' ),
                                    'type' => \Elementor\Controls_Manager::MEDIA,
                                    'separator' => 'before',
                                ),
                                array(
                                    'name' => 'client_text_ly2',
                                    'label' => esc_html__('Clients Text', 'kaitex'),
                                    'type' => \Elementor\Controls_Manager::TEXTAREA,
                                ),
                                array(
                                    'name' => 'counter_01_ly2',
                                    'label' => esc_html__('Counter Number 01', 'kaitex'),
                                    'type' => \Elementor\Controls_Manager::NUMBER,
                                    'default' => 100,
                                    'separator' => 'before',
                                ),
                                array(
                                    'name' => 'counter_prefix_01_ly2',
                                    'label' => esc_html__('Text Prefix 01', 'kaitex'),
                                    'type' => \Elementor\Controls_Manager::TEXT,
                                    'default' => '',
                                ),
                                array(
                                    'name' => 'counter_suffix_01_ly2',
                                    'label' => esc_html__('Text Suffix 01', 'kaitex'),
                                    'type' => \Elementor\Controls_Manager::TEXT,
                                    'default' => '',
                                ),
                                array(
                                    'name' => 'counter_title_01_ly2',
                                    'label' => esc_html__('Counter Title 01', 'kaitex'),
                                    'type' => \Elementor\Controls_Manager::TEXT,
                                    'default' => '',
                                ),
                                array(
                                    'name' => 'counter_02_ly2',
                                    'label' => esc_html__('Counter Number 02', 'kaitex'),
                                    'type' => \Elementor\Controls_Manager::NUMBER,
                                    'default' => 100,
                                    'separator' => 'before',
                                ),
                                array(
                                    'name' => 'counter_prefix_02_ly2',
                                    'label' => esc_html__('Text Prefix 02', 'kaitex'),
                                    'type' => \Elementor\Controls_Manager::TEXT,
                                    'default' => '',
                                ),
                                array(
                                    'name' => 'counter_suffix_02_ly2',
                                    'label' => esc_html__('Text Suffix 02', 'kaitex'),
                                    'type' => \Elementor\Controls_Manager::TEXT,
                                    'default' => '',
                                ),
                                array(
                                    'name' => 'counter_title_02_ly2',
                                    'label' => esc_html__('Counter Title 02', 'kaitex'),
                                    'type' => \Elementor\Controls_Manager::TEXT,
                                    'default' => '',
                                ),
                                array(
                                    'name' => 'video_text_ly2',
                                    'label' => esc_html__('Video Text', 'kaitex' ),
                                    'type' => \Elementor\Controls_Manager::TEXT,
                                    'default' => esc_html__('Click Here', 'kaitex'),
                                    'separator' => 'before',
                                ),
                                array(
                                    'name' => 'video_link_ly2',
                                    'label' => esc_html__('Video Link', 'kaitex'),
                                    'type' => \Elementor\Controls_Manager::TEXT,
                                    'label_block' => true,
                                    'default' => esc_html__('#', 'kaitex'),
                                ),
                                array(
                                    'name' => 'video_text_color',
                                    'label' => esc_html__('Video Text Color', 'kaitex' ),
                                    'type' => \Elementor\Controls_Manager::COLOR,
                                    'selectors' => [
                                        '{{WRAPPER}} {{CURRENT_ITEM}} .item--video .text--circle text' => 'fill: {{VALUE}};',
                                    ],
                                ),
                            ),
                            'title_field' => '{{{ title_ly2 }}}',
                        ),
                    ),
                ),
                array(
                    'name' => 'section_social_ly2',
                    'label' => esc_html__('Social', 'kaitex'),
                    'tab' => \Elementor\Controls_Manager::TAB_CONTENT,
                    'condition' => [
                        'layout' => ['2'],
                    ],
                    'controls' => array(
                        array(
                            'name' => 'social_ly2',
                            'label' => esc_html__('Social', 'kaitex'),
                            'type' => \Elementor\Controls_Manager::REPEATER,
                            'default' => [],
                            'controls' => array(
                                array(
                                    'name' => 'social_text_ly2',
                                    'label' => esc_html__('Social Text', 'kaitex' ),
                                    'type' => \Elementor\Controls_Manager::TEXT,
                                ),
                                array(
                                    'name' => 'social_link_ly2',
                                    'label' => esc_html__('Social Link', 'kaitex'),
                                    'type' => \Elementor\Controls_Manager::URL,
                                    'label_block' => true,
                                ),
                            ),
                            'title_field' => '{{{ social_text_ly2 }}}',
                        ),
                    ),
                ),
                array(
                    'name' => 'section_style_image',
                    'label' => esc_html__('Image', 'kaitex' ),
                    'tab' => \Elementor\Controls_Manager::TAB_STYLE,
                    'condition' => [
                        'layout' => ['2'],
                    ],
                    'controls' => array(
                        array(
                            'name' => 'img_size',
                            'label' => esc_html__('Image Size', 'kaitex' ),
                            'type' => \Elementor\Controls_Manager::TEXT,
                            'description' => esc_html__('Enter image size (Example: "thumbnail", "medium", "large", "full" or other sizes defined by theme). Alternatively enter size in pixels (Example: 200x100 (Width x Height).', 'kaitex' ),
                        ),
                    ),
                ),
                array(
                    'name' => 'section_style_title_sub',
                    'label' => esc_html__('Sub Title', 'kaitex' ),
                    'tab' => \Elementor\Controls_Manager::TAB_STYLE,
                    'condition' => [
                        'layout' => '1',
                        'style_ly1' => 'style2',
                    ],
                    'controls' => array(
                        array(
                            'name' => 'sub_title_color',
                            'label' => esc_html__('Sub Title Color', 'kaitex' ),
                            'type' => \Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .item--subtitle' => 'color: {{VALUE}};',
                            ],
                        ),
                        array(
                            'name' => 'sub_title_typography',
                            'label' => esc_html__('Sub Title Typography', 'kaitex' ),
                            'type' => \Elementor\Group_Control_Typography::get_type(),
                            'control_type' => 'group',
                            'selector' => '{{WRAPPER}} .item--subtitle',
                        ),
                        array(
                            'name' => 'sub_title_max_width',
                            'label' => esc_html__( 'Sub Title Max Width', 'kaitex' ),
                            'type' => \Elementor\Controls_Manager::SLIDER,
                            'control_type' => 'responsive',
                            'size_units' => [ 'px', '%' ],
                            'default' => [
                                'unit' => 'px',
                            ],
                            'range' => [
                                'px' => [
                                    'min' => 0,
                                    'max' => 3000,
                                ],
                                '%' => [
                                    'min' => 0,
                                    'max' => 100,
                                ],
                            ],
                            'selectors' => [
                                '{{WRAPPER}} .item--subtitle' => 'max-width: {{SIZE}}{{UNIT}};',
                            ],
                        ),
                        array(
                            'name' => 'sub_title_margin',
                            'label' => esc_html__('Sub Title Margin', 'kaitex' ),
                            'type' => 'dimensions',
                            'control_type' => 'responsive',
                            'size_units' => [ 'px', '%' ],
                            'default' => [
                                'unit' => 'px',
                            ],
                            'range' => [
                                'px' => [
                                    'min' => 0,
                                    'max' => 3000,
                                ],
                                '%' => [
                                    'min' => 0,
                                    'max' => 100,
                                ],
                            ],
                            'selectors' => [
                                '{{WRAPPER}} .item--subtitle' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
                            ],
                        ),
                    ),
                ),
                array(
                    'name' => 'section_style_title',
                    'label' => esc_html__('Title', 'kaitex' ),
                    'tab' => \Elementor\Controls_Manager::TAB_STYLE,
                    'controls' => array(
                        array(
                            'name' => 'title_color',
                            'label' => esc_html__('Title Color', 'kaitex' ),
                            'type' => \Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .item--title' => 'color: {{VALUE}};',
                            ],
                        ),
                        array(
                            'name' => 'title_typography',
                            'label' => esc_html__('Title Typography', 'kaitex' ),
                            'type' => \Elementor\Group_Control_Typography::get_type(),
                            'control_type' => 'group',
                            'selector' => '{{WRAPPER}} .item--title',
                        ),
                        array(
                            'name' => 'title_max_width',
                            'label' => esc_html__( 'Title Max Width', 'kaitex' ),
                            'type' => \Elementor\Controls_Manager::SLIDER,
                            'control_type' => 'responsive',
                            'size_units' => [ 'px', '%' ],
                            'default' => [
                                'unit' => 'px',
                            ],
                            'range' => [
                                'px' => [
                                    'min' => 0,
                                    'max' => 3000,
                                ],
                                '%' => [
                                    'min' => 0,
                                    'max' => 100,
                                ],
                            ],
                            'selectors' => [
                                '{{WRAPPER}} .item--title' => 'max-width: {{SIZE}}{{UNIT}};',
                            ],
                        ),
                        array(
                            'name' => 'title_margin',
                            'label' => esc_html__('Title Margin', 'kaitex' ),
                            'type' => 'dimensions',
                            'control_type' => 'responsive',
                            'size_units' => [ 'px', '%' ],
                            'default' => [
                                'unit' => 'px',
                            ],
                            'range' => [
                                'px' => [
                                    'min' => 0,
                                    'max' => 3000,
                                ],
                                '%' => [
                                    'min' => 0,
                                    'max' => 100,
                                ],
                            ],
                            'selectors' => [
                                '{{WRAPPER}} .item--title' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
                            ],
                        ),
                    ),
                ),
                array(
                    'name' => 'section_style_description',
                    'label' => esc_html__('Description', 'kaitex' ),
                    'tab' => \Elementor\Controls_Manager::TAB_STYLE,
                    'condition' => [
                        'layout' => ['2'],
                    ],
                    'controls' => array(
                        array(
                            'name' => 'description_color',
                            'label' => esc_html__('Description Color', 'kaitex' ),
                            'type' => \Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .item--description' => 'color: {{VALUE}};',
                            ],
                        ),
                        array(
                            'name' => 'description_typography',
                            'label' => esc_html__('Description Typography', 'kaitex' ),
                            'type' => \Elementor\Group_Control_Typography::get_type(),
                            'control_type' => 'group',
                            'selector' => '{{WRAPPER}} .item--description',
                        ),
                        array(
                            'name' => 'description_max_width',
                            'label' => esc_html__( 'Description Max Width', 'kaitex' ),
                            'type' => \Elementor\Controls_Manager::SLIDER,
                            'control_type' => 'responsive',
                            'size_units' => [ 'px', '%' ],
                            'default' => [
                                'unit' => 'px',
                            ],
                            'range' => [
                                'px' => [
                                    'min' => 0,
                                    'max' => 3000,
                                ],
                                '%' => [
                                    'min' => 0,
                                    'max' => 100,
                                ],
                            ],
                            'selectors' => [
                                '{{WRAPPER}} .item--description' => 'max-width: {{SIZE}}{{UNIT}};',
                            ],
                        ),
                        array(
                            'name' => 'description_margin',
                            'label' => esc_html__('Description Margin', 'kaitex' ),
                            'type' => 'dimensions',
                            'control_type' => 'responsive',
                            'size_units' => [ 'px', '%' ],
                            'default' => [
                                'unit' => 'px',
                            ],
                            'range' => [
                                'px' => [
                                    'min' => 0,
                                    'max' => 3000,
                                ],
                                '%' => [
                                    'min' => 0,
                                    'max' => 100,
                                ],
                            ],
                            'selectors' => [
                                '{{WRAPPER}} .item--description' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
                            ],
                        ),
                    ),
                ),
                array(
                    'name' => 'section_style_clients',
                    'label' => esc_html__('Clients', 'kaitex' ),
                    'tab' => \Elementor\Controls_Manager::TAB_STYLE,
                    'condition' => [
                        'layout' => ['2'],
                    ],
                    'controls' => array(
                        array(
                            'name' => 'clients_color',
                            'label' => esc_html__('Clients Color', 'kaitex' ),
                            'type' => \Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .client--text' => 'color: {{VALUE}};',
                            ],
                        ),
                        array(
                            'name' => 'clients_bg_color',
                            'label' => esc_html__('Clients Background Color', 'kaitex' ),
                            'type' => \Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .client--text:before' => 'background-color: {{VALUE}};',
                            ],
                        ),
                        array(
                            'name' => 'clients_typography',
                            'label' => esc_html__('Clients Typography', 'kaitex' ),
                            'type' => \Elementor\Group_Control_Typography::get_type(),
                            'control_type' => 'group',
                            'selector' => '{{WRAPPER}} .client--text',
                        ),
                        array(
                            'name' => 'clients_margin',
                            'label' => esc_html__('Clients Margin', 'kaitex' ),
                            'type' => 'dimensions',
                            'control_type' => 'responsive',
                            'size_units' => [ 'px', '%' ],
                            'default' => [
                                'unit' => 'px',
                            ],
                            'range' => [
                                'px' => [
                                    'min' => 0,
                                    'max' => 3000,
                                ],
                                '%' => [
                                    'min' => 0,
                                    'max' => 100,
                                ],
                            ],
                            'selectors' => [
                                '{{WRAPPER}} .item--clients' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
                            ],
                        ),
                    ),
                ),
                array(
                    'name' => 'section_style_counter',
                    'label' => esc_html__('Counter', 'kaitex' ),
                    'tab' => \Elementor\Controls_Manager::TAB_STYLE,
                    'condition' => [
                        'layout' => ['2'],
                    ],
                    'controls' => array(
                        array(
                            'name' => 'counter_svg_size',
                            'label' => esc_html__( 'SVG Size', 'kaitex' ),
                            'type' => \Elementor\Controls_Manager::SLIDER,
                            'control_type' => 'responsive',
                            'size_units' => [ 'px', '%', 'vw', 'vh' ],
                            'range' => [
                                'px' => [
                                    'min' => 0,
                                    'max' => 3000,
                                ],
                            ],
                            'selectors' => [
                                '{{WRAPPER}} .item--counter .counter--number svg' => 'width: {{SIZE}}{{UNIT}}; height: {{SIZE}}{{UNIT}};',
                            ],
                        ),
                        array(
                            'name' => 'counter_svg_color',
                            'label' => esc_html__('SVG Color', 'kaitex' ),
                            'type' => \Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .item--counter .counter--number svg circle' => 'stroke: {{VALUE}};',
                            ],
                            'separator' => 'after',
                        ),
                        array(
                            'name' => 'counter_text_color',
                            'label' => esc_html__('Text Color', 'kaitex' ),
                            'type' => \Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .item--counter .pxl--counter-value' => 'color: {{VALUE}};',
                            ],
                        ),
                        array(
                            'name' => 'counter_number_typography',
                            'label' => esc_html__('Number Typography', 'kaitex' ),
                            'type' => \Elementor\Group_Control_Typography::get_type(),
                            'control_type' => 'group',
                            'selector' => '{{WRAPPER}} .item--counter .counter--number .pxl--counter-value, {{WRAPPER}} .item--counter .counter--number .pxl--counter-value-hide',
                        ),
                        array(
                            'name' => 'counter_duration',
                            'label' => esc_html__('Animation Duration', 'kaitex'),
                            'type' => \Elementor\Controls_Manager::NUMBER,
                            'default' => 2000,
                            'min' => 100,
                            'step' => 100,
                        ),
                        array(
                            'name' => 'counter_title_color',
                            'label' => esc_html__('Title Color', 'kaitex' ),
                            'type' => \Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .item--counter .counter--title' => 'color: {{VALUE}};',
                            ],
                            'separator' => 'before',
                        ),
                        array(
                            'name' => 'counter_title_typography',
                            'label' => esc_html__( 'Title Typography', 'kaitex' ),
                            'type' => \Elementor\Group_Control_Typography::get_type(),
                            'control_type' => 'group',
                            'selector' => '{{WRAPPER}} .item--counter .counter--title',
                        ),
                        array(
                            'name' => 'counter_title_width',
                            'label' => esc_html__( 'Title Max Width', 'kaitex' ),
                            'type' => \Elementor\Controls_Manager::SLIDER,
                            'control_type' => 'responsive',
                            'size_units' => [ '%', 'px' ],
                            'default' => [
                                'unit' => '%',
                            ],
                            'range' => [
                                '%' => [
                                    'min' => 0,
                                    'max' => 100,
                                ],
                                'px' => [
                                    'min' => 0,
                                    'max' => 3000,
                                ],
                            ],
                            'selectors' => [
                                '{{WRAPPER}} .item--counter .counter--title' => 'max-width: {{SIZE}}{{UNIT}};',
                            ],
                        ),
                        array(
                            'name' => 'counter_margin',
                            'label' => esc_html__('Counter Margin', 'kaitex' ),
                            'type' => 'dimensions',
                            'control_type' => 'responsive',
                            'size_units' => [ 'px', '%' ],
                            'default' => [
                                'unit' => 'px',
                            ],
                            'range' => [
                                'px' => [
                                    'min' => 0,
                                    'max' => 3000,
                                ],
                                '%' => [
                                    'min' => 0,
                                    'max' => 100,
                                ],
                            ],
                            'selectors' => [
                                '{{WRAPPER}} .item--counter' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
                            ],
                        ),
                    ),
                ),
                array(
                    'name' => 'section_style_social',
                    'label' => esc_html__('Social', 'kaitex' ),
                    'tab' => \Elementor\Controls_Manager::TAB_STYLE,
                    'condition' => [
                        'layout' => ['2'],
                    ],
                    'controls' => array(
                        array(
                            'name' => 'social_color',
                            'label' => esc_html__('Social Color', 'kaitex' ),
                            'type' => \Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .item--social li a' => 'color: {{VALUE}};',
                            ],
                        ),
                        array(
                            'name' => 'social_hover_color',
                            'label' => esc_html__('Social Hover Color', 'kaitex' ),
                            'type' => \Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .item--social li a:hover' => 'color: {{VALUE}};',
                            ],
                        ),
                        array(
                            'name' => 'social_line_color',
                            'label' => esc_html__('Social Line Color', 'kaitex' ),
                            'type' => \Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .item--social li:not(:last-child):after' => 'background-color: {{VALUE}};',
                            ],
                        ),
                        array(
                            'name' => 'social_typography',
                            'label' => esc_html__('Social Typography', 'kaitex' ),
                            'type' => \Elementor\Group_Control_Typography::get_type(),
                            'control_type' => 'group',
                            'selector' => '{{WRAPPER}} .item--social li a',
                        ),
                    ),
                ),
                array(
                    'name' => 'section_style_particle',
                    'label' => esc_html__('Particle', 'kaitex' ),
                    'tab' => \Elementor\Controls_Manager::TAB_STYLE,
                    'condition' => [
                        'layout' => ['1'],
                    ],
                    'controls' => array(
                        array(
                            'name' => 'show_particle_01_ly1',
                            'label' => esc_html__('Show Particle 01', 'kaitex' ),
                            'type' => \Elementor\Controls_Manager::SWITCHER,
                            'default' => 'true',
                        ),
                        array(
                            'name' => 'particle_01_color',
                            'label' => esc_html__('Particle 01 - Color', 'kaitex' ),
                            'type' => \Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .pxl-slider-carousel .particle-01 svg path' => 'stroke: {{VALUE}};',
                            ],
                            'separator' => 'after',
                            'condition' => [
                                'show_particle_01_ly1' => 'true',
                            ],
                        ),
                        array(
                            'name' => 'show_particle_02_ly1',
                            'label' => esc_html__('Show Particle 02', 'kaitex' ),
                            'type' => \Elementor\Controls_Manager::SWITCHER,
                            'default' => 'true',
                        ),
                        array(
                            'name' => 'particle_02_stroke_color',
                            'label' => esc_html__('Particle 02 - Stroke Color', 'kaitex' ),
                            'type' => \Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .pxl-slider-carousel .particle-02 svg circle' => 'stroke: {{VALUE}};',
                            ],
                            'condition' => [
                                'show_particle_02_ly1' => 'true',
                            ],
                        ),
                        array(
                            'name' => 'particle_02_fill_color',
                            'label' => esc_html__('Particle 02 - Fill Color', 'kaitex' ),
                            'type' => \Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .pxl-slider-carousel .particle-02 svg circle' => 'fill: {{VALUE}};',
                            ],
                            'separator' => 'after',
                            'condition' => [
                                'show_particle_02_ly1' => 'true',
                            ],
                        ),
                        array(
                            'name' => 'show_particle_03_ly1',
                            'label' => esc_html__('Show Particle 03', 'kaitex' ),
                            'type' => \Elementor\Controls_Manager::SWITCHER,
                            'default' => 'true',
                        ),
                        array(
                            'name' => 'particle_03_stroke_color',
                            'label' => esc_html__('Particle 03 - Stroke Color', 'kaitex' ),
                            'type' => \Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .pxl-slider-carousel .particle-03 svg path' => 'stroke: {{VALUE}};',
                            ],
                            'condition' => [
                                'show_particle_03_ly1' => 'true',
                            ],
                        ),
                        array(
                            'name' => 'particle_03_dot_color',
                            'label' => esc_html__('Particle 03 - Dot Color', 'kaitex' ),
                            'type' => \Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .pxl-slider-carousel .particle-03 svg rect' => 'fill: {{VALUE}};',
                            ],
                            'condition' => [
                                'show_particle_03_ly1' => 'true',
                            ],
                        ),
                        array(
                            'name' => 'particle_03_fill_color',
                            'label' => esc_html__('Particle 03 - Fill Color', 'kaitex' ),
                            'type' => \Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .pxl-slider-carousel .particle-03 svg path' => 'fill: {{VALUE}};',
                            ],
                            'separator' => 'after',
                            'condition' => [
                                'show_particle_03_ly1' => 'true',
                            ],
                        ),
                        array(
                            'name' => 'show_particle_04_ly1',
                            'label' => esc_html__('Show Particle 04', 'kaitex' ),
                            'type' => \Elementor\Controls_Manager::SWITCHER,
                            'default' => 'true',
                        ),
                        array(
                            'name' => 'particle_04_color',
                            'label' => esc_html__('Particle 04 - Color', 'kaitex' ),
                            'type' => \Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .pxl-slider-carousel .particle-04 svg ellipse' => 'fill: {{VALUE}};',
                            ],
                            'separator' => 'after',
                            'condition' => [
                                'show_particle_04_ly1' => 'true',
                            ],
                        ),
                        array(
                            'name' => 'show_particle_05_ly1',
                            'label' => esc_html__('Show Particle 05', 'kaitex' ),
                            'type' => \Elementor\Controls_Manager::SWITCHER,
                            'default' => 'true',
                        ),
                        array(
                            'name' => 'particle_05_color',
                            'label' => esc_html__('Particle 05 - Color', 'kaitex' ),
                            'type' => \Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .pxl-slider-carousel .particle-05 svg circle' => 'fill: {{VALUE}};',
                            ],
                            'separator' => 'after',
                            'condition' => [
                                'show_particle_05_ly1' => 'true',
                            ],
                        ),
                        array(
                            'name' => 'show_particle_06_ly1',
                            'label' => esc_html__('Show Particle 06', 'kaitex' ),
                            'type' => \Elementor\Controls_Manager::SWITCHER,
                            'default' => 'true',
                        ),
                        array(
                            'name' => 'particle_06_color',
                            'label' => esc_html__('Particle 06 - Color', 'kaitex' ),
                            'type' => \Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .pxl-slider-carousel .particle-06 svg path' => 'stroke: {{VALUE}};',
                            ],
                            'separator' => 'after',
                            'condition' => [
                                'show_particle_06_ly1' => 'true',
                            ],
                        ),
                        array(
                            'name' => 'show_particle_07_ly1',
                            'label' => esc_html__('Show Particle 07', 'kaitex' ),
                            'type' => \Elementor\Controls_Manager::SWITCHER,
                            'default' => 'true',
                        ),
                        array(
                            'name' => 'particle_07_color',
                            'label' => esc_html__('Particle 07 - Color', 'kaitex' ),
                            'type' => \Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .pxl-slider-carousel .particle-07 svg path' => 'fill: {{VALUE}};',
                            ],
                            'separator' => 'after',
                            'condition' => [
                                'show_particle_07_ly1' => 'true',
                            ],
                        ),
                        array(
                            'name' => 'show_particle_08_ly1',
                            'label' => esc_html__('Show Particle 08', 'kaitex' ),
                            'type' => \Elementor\Controls_Manager::SWITCHER,
                            'default' => 'true',
                        ),
                        array(
                            'name' => 'particle_08_color',
                            'label' => esc_html__('Particle 08 - Color', 'kaitex' ),
                            'type' => \Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .pxl-slider-carousel .particle-08 svg path' => 'fill: {{VALUE}};',
                            ],
                            'separator' => 'after',
                            'condition' => [
                                'show_particle_08_ly1' => 'true',
                            ],
                        ),
                        array(
                            'name' => 'show_particle_09_ly1',
                            'label' => esc_html__('Show Particle 09', 'kaitex' ),
                            'type' => \Elementor\Controls_Manager::SWITCHER,
                            'default' => 'true',
                        ),
                        array(
                            'name' => 'particle_09_color',
                            'label' => esc_html__('Particle 09 - Color', 'kaitex' ),
                            'type' => \Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .pxl-slider-carousel .particle-09 svg rect' => 'fill: {{VALUE}};',
                            ],
                            'condition' => [
                                'show_particle_09_ly1' => 'true',
                            ],
                        ),
                    ),
                ),
                array(
                    'name' => 'section_style_particle_ly2',
                    'label' => esc_html__('Particle', 'kaitex' ),
                    'tab' => \Elementor\Controls_Manager::TAB_STYLE,
                    'condition' => [
                        'layout' => ['2'],
                    ],
                    'controls' => array(
                        array(
                            'name' => 'show_particle_01_ly2',
                            'label' => esc_html__('Show Particle 01', 'kaitex' ),
                            'type' => \Elementor\Controls_Manager::SWITCHER,
                            'default' => 'true',
                        ),
                        array(
                            'name' => 'particle_01_stroke_color_ly2',
                            'label' => esc_html__('Particle 01 - Stroke Color', 'kaitex' ),
                            'type' => \Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .pxl-slider-carousel .item--particle-01 svg path' => 'stroke: {{VALUE}};',
                            ],
                            'condition' => [
                                'show_particle_01_ly2' => 'true',
                            ],
                        ),
                        array(
                            'name' => 'particle_01_dot_color_ly2',
                            'label' => esc_html__('Particle 01 - Dot Color', 'kaitex' ),
                            'type' => \Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .pxl-slider-carousel .item--particle-01 svg rect' => 'fill: {{VALUE}};',
                            ],
                            'separator' => 'after',
                            'condition' => [
                                'show_particle_01_ly2' => 'true',
                            ],
                        ),
                        array(
                            'name' => 'show_particle_02_ly2',
                            'label' => esc_html__('Show Particle 02', 'kaitex' ),
                            'type' => \Elementor\Controls_Manager::SWITCHER,
                            'default' => 'true',
                        ),
                        array(
                            'name' => 'particle_02_color_ly2',
                            'label' => esc_html__('Particle 02 - Color', 'kaitex' ),
                            'type' => \Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .pxl-slider-carousel .item--particle-02 svg path' => 'fill: {{VALUE}};',
                            ],
                            'separator' => 'after',
                            'condition' => [
                                'show_particle_02_ly2' => 'true',
                            ],
                        ),
                        array(
                            'name' => 'show_particle_03_ly2',
                            'label' => esc_html__('Show Particle 03', 'kaitex' ),
                            'type' => \Elementor\Controls_Manager::SWITCHER,
                            'default' => 'true',
                        ),
                        array(
                            'name' => 'particle_03_color_ly2',
                            'label' => esc_html__('Particle 03 - Color', 'kaitex' ),
                            'type' => \Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .pxl-slider-carousel .item--particle-03 svg circle' => 'stroke: {{VALUE}};',
                            ],
                            'separator' => 'after',
                            'condition' => [
                                'show_particle_03_ly2' => 'true',
                            ],
                        ),
                        array(
                            'name' => 'show_particle_04_ly2',
                            'label' => esc_html__('Show Particle 04', 'kaitex' ),
                            'type' => \Elementor\Controls_Manager::SWITCHER,
                            'default' => 'true',
                        ),
                        array(
                            'name' => 'particle_04_color_ly2',
                            'label' => esc_html__('Particle 04 - Color', 'kaitex' ),
                            'type' => \Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .pxl-slider-carousel .item--particle-04 svg ellipse' => 'fill: {{VALUE}};',
                            ],
                            'condition' => [
                                'show_particle_04_ly2' => 'true',
                            ],
                        ),
                    ),
                ),
                array(
                    'name' => 'section_style_video',
                    'label' => esc_html__('Video', 'kaitex' ),
                    'tab' => \Elementor\Controls_Manager::TAB_STYLE,
                    'controls' => array(
                        array(
                            'name' => 'video_icon_color',
                            'label' => esc_html__('Icon Color', 'kaitex' ),
                            'type' => \Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .item--video .video--button svg path' => 'fill: {{VALUE}};',
                            ],
                        ),
                        array(
                            'name'  => 'video_icon_size',
                            'label' => esc_html__( 'Icon Size', 'kaitex' ),
                            'type'  => 'slider',
                            'size_units' => [ 'px', '%', 'vw', 'vh' ],
                            'range' => [
                                '%' => [
                                    'min' => 0,
                                    'max' => 100,
                                ],
                                'px' => [
                                    'min' => 0,
                                    'max' => 3000,
                                ],
                                'vw' => [
                                    'min' => 0,
                                    'max' => 3000,
                                ],
                                'vh' => [
                                    'min' => 0,
                                    'max' => 3000,
                                ],
                            ],
                            'control_type' => 'responsive',
                            'selectors' => [
                                '{{WRAPPER}} .item--video .video--button svg' => 'width: {{SIZE}}{{UNIT}}; height: {{SIZE}}{{UNIT}};',
                            ],
                        ),
                        array(
                            'name' => 'video_button_text_color',
                            'label' => esc_html__('Text Color', 'kaitex' ),
                            'type' => \Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .item--video .text--circle text' => 'fill: {{VALUE}};',
                            ],
                            'separator' => 'before',
                        ),
                        array(
                            'name' => 'video_button_typography',
                            'label' => esc_html__('Text Typography', 'kaitex' ),
                            'type' => \Elementor\Group_Control_Typography::get_type(),
                            'control_type' => 'group',
                            'selector' => '{{WRAPPER}} .item--video .text--circle text',
                        ),
                        array(
                            'name' => 'video_button_bg_color',
                            'label' => esc_html__('Background Color', 'kaitex' ),
                            'type' => \Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .pxl-slider-carousel1.style1 .item--video .video--button, {{WRAPPER}} .pxl-slider-carousel2 .item--video .video--button' => 'background-color: {{VALUE}};',
                                '{{WRAPPER}} .pxl-slider-carousel1.style2 .item--video .video--button svg circle' => 'fill: {{VALUE}};',
                            ],
                            'separator' => 'before',
                        ),
                        array(
                            'name'  => 'video_button_width',
                            'label' => esc_html__( 'Button Width', 'kaitex' ),
                            'type'  => 'slider',
                            'size_units' => [ 'px', '%', 'vw', 'vh' ],
                            'range' => [
                                '%' => [
                                    'min' => 0,
                                    'max' => 100,
                                ],
                                'px' => [
                                    'min' => 0,
                                    'max' => 3000,
                                ],
                                'vw' => [
                                    'min' => 0,
                                    'max' => 3000,
                                ],
                                'vh' => [
                                    'min' => 0,
                                    'max' => 3000,
                                ],
                            ],
                            'control_type' => 'responsive',
                            'selectors' => [
                                '{{WRAPPER}} .item--video .video--button' => 'width: {{SIZE}}{{UNIT}}; height: {{SIZE}}{{UNIT}};',
                            ],
                        ),
                        array(
                            'name'  => 'video_text_width',
                            'label' => esc_html__( 'Text Width', 'kaitex' ),
                            'type'  => 'slider',
                            'size_units' => [ 'px', '%', 'vw', 'vh' ],
                            'range' => [
                                '%' => [
                                    'min' => 0,
                                    'max' => 100,
                                ],
                                'px' => [
                                    'min' => 0,
                                    'max' => 3000,
                                ],
                                'vw' => [
                                    'min' => 0,
                                    'max' => 3000,
                                ],
                                'vh' => [
                                    'min' => 0,
                                    'max' => 3000,
                                ],
                            ],
                            'control_type' => 'responsive',
                            'selectors' => [
                                '{{WRAPPER}} .item--video, {{WRAPPER}} .item--video .text--circle' => 'width: {{SIZE}}{{UNIT}}; height: {{SIZE}}{{UNIT}};',
                            ],
                        ),
                    ),
                ),
                array(
                    'name' => 'section_style_box',
                    'label' => esc_html__('Box', 'kaitex' ),
                    'tab' => \Elementor\Controls_Manager::TAB_STYLE,
                    'controls' => array(
                        array(
                            'name' => 'box_min_height',
                            'label' => esc_html__('Box Min Height', 'kaitex' ),
                            'type' => \Elementor\Controls_Manager::SLIDER,
                            'description' => esc_html__('Enter number.', 'kaitex' ),
                            'size_units' => [ 'px', '%', 'vw', 'vh' ],
                            'range' => [
                                '%' => [
                                    'min' => 0,
                                    'max' => 100,
                                ],
                                'px' => [
                                    'min' => 0,
                                    'max' => 3000,
                                ],
                                'vw' => [
                                    'min' => 0,
                                    'max' => 3000,
                                ],
                                'vh' => [
                                    'min' => 0,
                                    'max' => 3000,
                                ],
                            ],
                            'default' => [
                                'unit' => 'px',
                            ],
                            'control_type' => 'responsive',
                            'selectors' => [
                                '{{WRAPPER}} .pxl-item--inner' => 'min-height: {{SIZE}}{{UNIT}};',
                            ],
                        ),
                    ),
                ),
                array(
                    'name' => 'section_carousel_settings',
                    'label' => esc_html__('Carousel', 'kaitex' ),
                    'tab' => \Elementor\Controls_Manager::TAB_SETTINGS,
                    'controls' => array_merge(
                        kaitex_widget_carousel_settings(array(
                            'col_xs' => '1',
                            'col_sm' => '1',
                            'col_md' => '1',
                            'col_lg' => '1',
                            'col_xl' => '1',
                        ))
                    ),
                ),
                kaitex_widget_animation_settings()
            ),
        ),
    ),
    kaitex_get_class_widget_path()
);