<?php
/**
 * UAEL Config.
 *
 * @package UAEL
 */

namespace UltimateElementor\Classes;

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

use UltimateElementor\Classes\UAEL_Helper;

/**
 * Class UAEL_Config.
 */
class UAEL_Config {

	/**
	 * Widget List
	 *
	 * @var widget_list
	 */
	public static $widget_list = null;

	/**
	 * Post skins List
	 *
	 * @var post_skins_list
	 */
	public static $post_skins_list = null;

	/**
	 * Get Widget List.
	 *
	 * @since 0.0.1
	 *
	 * @return array The Widget List.
	 */
	public static function get_widget_list() {
		if ( null === self::$widget_list ) {
			$options_url     = admin_url( 'admin.php' );
			$integration_url = add_query_arg(
				array(
					'page' => 'uaepro',
					'tab'  => '5',
				),
				$options_url
			) . '#settings';

			$post_url = add_query_arg(
				array(
					'page' => 'uaepro',
					'tab'  => '6',
				),
				$options_url
			) . '#settings';

			$integration_url = esc_url( $integration_url );
			$post_url        = esc_url( $post_url );

			self::$widget_list = array(
				'Advanced_Heading'    => array(
					'slug'        => 'uael-advanced-heading',
					'title'       => __( 'Advanced Heading', 'uael' ),
					'description' => __( 'Create engaging and customizable headings for your pages.', 'uael' ),
					'keywords'    => array( 'uael', 'heading', 'advanced' ),
					'icon'        => 'uael-icon-advanced-heading',
					'title_url'   => '#',
					'default'     => true,
					'doc_url'     => UAEL_DOMAIN . 'docs-category/widgets/advanced-heading/?utm_source=uael-pro-dashboard&utm_medium=uael-menu-page&utm_campaign=uael-pro-plugin',
					'preset'      => '6',
					'category'    => 'content',
					'is_pro'      => true,
					'demo_url'    => UAEL_DOMAIN . 'widgets/advanced-heading/',
				),
				'BaSlider'            => array(
					'slug'        => 'uael-ba-slider',
					'title'       => __( 'Before After Slider', 'uael' ),
					'description' => __( 'Display the before and after versions of an image.', 'uael' ),
					'keywords'    => array( 'uael', 'slider', 'before', 'after' ),
					'icon'        => 'uael-icon-before-after-slider',
					'title_url'   => '#',
					'default'     => true,
					'doc_url'     => UAEL_DOMAIN . 'docs-category/widgets/before-after-slider/?utm_source=uael-pro-dashboard&utm_medium=uael-editor-screen&utm_campaign=uael-pro-plugin',
					'category'    => 'creative',
					'is_pro'      => true,
					'demo_url'    => UAEL_DOMAIN . 'widgets/before-after-slider/',
				),
				'Business_Hours'      => array(
					'slug'        => 'uael-business-hours',
					'title'       => __( 'Business Hours', 'uael' ),
					'description' => __( 'Customize and display your business hours stylishly.', 'uael' ),
					'keywords'    => array( 'uael', 'business', 'hours', 'schedule' ),
					'icon'        => 'uael-icon-business-hour',
					'title_url'   => '#',
					'default'     => true,
					'doc_url'     => UAEL_DOMAIN . 'docs-category/widgets/business-hours/?utm_source=uael-pro-dashboard&utm_medium=uael-menu-page&utm_campaign=uael-pro-plugin',
					'preset'      => '5',
					'category'    => 'content',
					'is_pro'      => true,
					'demo_url'    => UAEL_DOMAIN . 'widgets/business-hours/',
				),
				'Business_Reviews'    => array(
					'slug'         => 'uael-business-reviews',
					'keywords'     => array( 'uael', 'reviews', 'wp reviews', 'business', 'wp business', 'google', 'rating', 'social', 'yelp' ),
					'title'        => __( 'Business Reviews', 'uael' ),
					'description'  => __( 'Display verified reviews from Google and Yelp directly.', 'uael' ),
					'icon'         => 'uael-icon-business-review',
					'title_url'    => '#',
					'default'      => true,
					'doc_url'      => UAEL_DOMAIN . 'docs-category/widgets/business-reviews/?utm_source=uael-pro-dashboard&utm_medium=uael-menu-page&utm_campaign=uael-pro-plugin',
					'setting_url'  => $integration_url,
					'setting_text' => __( 'Settings', 'uael' ),
					'category'     => 'seo',
					'is_pro'       => true,
					'demo_url'     => UAEL_DOMAIN . 'widgets/business-reviews/',
				),
				'CfStyler'            => array(
					'slug'        => 'uael-cf7-styler',
					'title'       => __( 'Contact Form 7 Styler', 'uael' ),
					'description' => __( 'Style and enhance Contact Form 7 to fit your site.', 'uael' ),
					'keywords'    => array( 'uael', 'form', 'cf7', 'contact', 'styler' ),
					'icon'        => 'uael-icon-contact-form-7',
					'title_url'   => '#',
					'default'     => true,
					'doc_url'     => UAEL_DOMAIN . 'docs-category/widgets/contact-form-7-styler/?utm_source=uael-pro-dashboard&utm_medium=uael-menu-page&utm_campaign=uael-pro-plugin',
					'category'    => 'form',
					'is_pro'      => true,
					'demo_url'    => UAEL_DOMAIN . 'widgets/contact-form-7/',
				),
				'ContentToggle'       => array(
					'slug'        => 'uael-content-toggle',
					'title'       => __( 'Content Toggle', 'uael' ),
					'description' => __( 'Let users easily switch between two types of content.', 'uael' ),
					'keywords'    => array( 'uael', 'toggle', 'content', 'show', 'hide' ),
					'icon'        => 'uael-icon-content-toggle',
					'title_url'   => '#',
					'default'     => true,
					'doc_url'     => UAEL_DOMAIN . 'docs-category/widgets/content-toggle/?utm_source=uael-pro-dashboard&utm_medium=uael-menu-page&utm_campaign=uael-pro-plugin',
					'category'    => 'content',
					'is_pro'      => true,
					'demo_url'    => UAEL_DOMAIN . 'widgets/content-toggle/',
				),
				'Countdown'           => array(
					'slug'        => 'uael-countdown',
					'title'       => __( 'Countdown Timer', 'uael' ),
					'description' => __( 'Create urgency with fixed or recurring countdowns.', 'uael' ),
					'keywords'    => array( 'uael', 'count', 'timer', 'countdown' ),
					'icon'        => 'uael-icon-countdown-timer',
					'title_url'   => '#',
					'default'     => true,
					'doc_url'     => UAEL_DOMAIN . 'docs-category/widgets/countdown-timer/?utm_source=uael-pro-dashboard&utm_medium=uael-menu-page&utm_campaign=uael-pro-plugin',
					'preset'      => '6',
					'category'    => 'creative',
					'is_pro'      => true,
					'demo_url'    => UAEL_DOMAIN . 'widgets/countdown-timer/',
				),
				'Dual_Heading'        => array(
					'slug'        => 'uael-dual-color-heading',
					'title'       => __( 'Dual Color Heading', 'uael' ),
					'description' => __( 'Style headings with dual colours and customizable typography.', 'uael' ),
					'keywords'    => array( 'uael', 'dual', 'heading', 'color' ),
					'icon'        => 'uael-icon-dual-color-heading',
					'title_url'   => '#',
					'default'     => true,
					'doc_url'     => UAEL_DOMAIN . 'docs-category/widgets/dual-color-heading/?utm_source=uael-pro-dashboard&utm_medium=uael-editor-screen&utm_campaign=uael-pro-plugin',
					'preset'      => '5',
					'category'    => 'creative',
					'is_pro'      => true,
					'demo_url'    => UAEL_DOMAIN . 'widgets/dual-color-heading/',
				),
				'Fancy_Heading'       => array(
					'slug'        => 'uael-fancy-heading',
					'title'       => __( 'Fancy Heading', 'uael' ),
					'description' => __( 'Add animated text for more engaging page titles.', 'uael' ),
					'keywords'    => array( 'uael', 'fancy', 'heading', 'ticking', 'animate' ),
					'icon'        => 'uael-icon-fancy-heading',
					'title_url'   => '#',
					'default'     => true,
					'doc_url'     => UAEL_DOMAIN . 'docs-category/widgets/fancy-heading/?utm_source=uael-pro-dashboard&utm_medium=uael-menu-page&utm_campaign=uael-pro-plugin',
					'preset'      => '5',
					'category'    => 'creative',
					'is_pro'      => true,
					'demo_url'    => UAEL_DOMAIN . 'widgets/fancy-heading/',
				),
				'FAQ'                 => array(
					'slug'        => 'uael-faq',
					'title'       => __( 'FAQ Schema', 'uael' ),
					'description' => __( 'Add SEO-friendly FAQ sections to pages.', 'uael' ),
					'keywords'    => array( 'uael', 'faq', 'schema', 'question', 'answer', 'accordion', 'toggle' ),
					'icon'        => 'uael-icon-faq-schema',
					'title_url'   => '#',
					'default'     => true,
					'doc_url'     => UAEL_DOMAIN . 'docs-category/widgets/faq/?utm_source=uael-pro-dashboard&utm_medium=uael-menu-page&utm_campaign=uael-pro-plugin',
					'preset'      => '5',
					'category'    => 'seo',
					'is_pro'      => true,
					'demo_url'    => UAEL_DOMAIN . 'widgets/faq/',
				),
				'GoogleMap'           => array(
					'slug'         => 'uael-google-map',
					'title'        => __( 'Google Map', 'uael' ),
					'description'  => __( 'Add customizable, multi-location maps with custom markers.', 'uael' ),
					'keywords'     => array( 'uael', 'google', 'map', 'location', 'address' ),
					'icon'         => 'uael-icon-google-map',
					'title_url'    => '#',
					'default'      => true,
					'setting_url'  => $integration_url,
					'setting_text' => __( 'Settings', 'uael' ),
					'doc_url'      => UAEL_DOMAIN . 'docs-category/widgets/google-maps/?utm_source=uael-pro-dashboard&utm_medium=uael-menu-page&utm_campaign=uael-pro-plugin',
					'category'     => 'content',
					'is_pro'       => true,
					'demo_url'     => UAEL_DOMAIN . 'widgets/google-maps/',
				),
				'GfStyler'            => array(
					'slug'        => 'uael-gf-styler',
					'title'       => __( 'Gravity Form Styler', 'uael' ),
					'description' => __( 'Customize Gravity Forms with advanced styling options.', 'uael' ),
					'keywords'    => array( 'uael', 'form', 'gravity', 'gf', 'styler' ),
					'icon'        => 'uael-icon-gravity-form-styler',
					'title_url'   => '#',
					'default'     => true,
					'doc_url'     => UAEL_DOMAIN . 'docs-category/widgets/gravity-form-styler/?utm_source=uael-pro-dashboard&utm_medium=uael-menu-page&utm_campaign=uael-pro-plugin',
					'category'    => 'form',
					'is_pro'      => true,
					'demo_url'    => UAEL_DOMAIN . 'widgets/gravity-form-styler/',
				),
				'Hotspot'             => array(
					'slug'        => 'uael-hotspot',
					'title'       => __( 'Hotspot', 'uael' ),
					'description' => __( 'Add interactive points on images for detailed visual tours.', 'uael' ),
					'keywords'    => array( 'uael', 'hotspot', 'tour' ),
					'icon'        => 'uael-icon-hotspot',
					'title_url'   => '#',
					'default'     => true,
					'doc_url'     => UAEL_DOMAIN . 'docs-category/widgets/hotspot/?utm_source=uael-pro-dashboard&utm_medium=uael-menu-page&utm_campaign=uael-pro-plugin',
					'category'    => 'creative',
					'is_pro'      => true,
					'demo_url'    => UAEL_DOMAIN . 'widgets/hotspots/',
				),
				'HowTo'               => array(
					'slug'        => 'uael-how-to',
					'title'       => __( 'HowTo', 'uael' ),
					'description' => __( 'Create structured how-to pages with automatic schema markup.', 'uael' ),
					'keywords'    => array( 'uael', 'how-to', 'howto', 'schema', 'steps', 'supply', 'tools', 'steps', 'cost' ),
					'icon'        => 'uael-icon-how-to-schema',
					'title_url'   => '#',
					'default'     => true,
					'doc_url'     => UAEL_DOMAIN . 'docs-category/widgets/how-to-schema/?utm_source=uael-pro-dashboard&utm_medium=uael-menu-page&utm_campaign=uael-pro-plugin',
					'category'    => 'seo',
					'is_pro'      => true,
					'demo_url'    => UAEL_DOMAIN . 'widgets/how-to-schema/',
				),
				'Image_Gallery'       => array(
					'slug'        => 'uael-image-gallery',
					'title'       => __( 'Image Gallery', 'uael' ),
					'description' => __( 'Build attractive, feature-rich galleries with advanced options.', 'uael' ),
					'keywords'    => array( 'uael', 'image', 'gallery', 'carousel', 'slider', 'layout' ),
					'icon'        => 'uael-icon-image-gallery',
					'title_url'   => '#',
					'default'     => true,
					'doc_url'     => UAEL_DOMAIN . 'docs-category/widgets/image-gallery/?utm_source=uael-pro-dashboard&utm_medium=uael-menu-page&utm_campaign=uael-pro-plugin',
					'category'    => 'content',
					'is_pro'      => true,
					'demo_url'    => UAEL_DOMAIN . 'widgets/image-gallery/',
				),
				'Infobox'             => array(
					'slug'        => 'uael-infobox',
					'title'       => __( 'Info Box', 'uael' ),
					'description' => __( 'Add headings, icons, and descriptions in one flexible widget.', 'uael' ),
					'keywords'    => array( 'uael', 'info', 'box', 'bar' ),
					'icon'        => 'uael-icon-info-box',
					'title_url'   => '#',
					'default'     => true,
					'doc_url'     => UAEL_DOMAIN . 'docs-category/widgets/info-box/?utm_source=uael-pro-dashboard&utm_medium=uael-menu-page&utm_campaign=uael-pro-plugin',
					'preset'      => '5',
					'category'    => 'content',
					'is_pro'      => true,
					'demo_url'    => UAEL_DOMAIN . 'widgets/info-box/',
				),
				'Instagram_Feed'      => array(
					'slug'         => 'uael-instagram-feed',
					'title'        => __( 'Instagram Feed', 'uael' ),
					'description'  => __( 'Display an attractive, customizable Instagram feed.', 'uael' ),
					'keywords'     => array( 'insta', 'instagram', 'feed', 'social' ),
					'icon'         => 'uael-icon-instagram-feed',
					'title_url'    => '#',
					'default'      => true,
					'setting_text' => __( 'Settings', 'uael' ),
					'setting_url'  => $integration_url,
					'doc_url'      => UAEL_DOMAIN . 'docs-category/widgets/instagram-feed/?utm_source=uael-pro-dashboard&utm_medium=uael-menu-page&utm_campaign=uael-pro-plugin',
					'category'     => 'creative',
					'is_pro'       => true,
					'demo_url'     => UAEL_DOMAIN . 'widgets/instagram-feed/',
				),
				'LoginForm'           => array(
					'slug'         => 'uael-login-form',
					'title'        => __( 'Login Form', 'uael' ),
					'description'  => __( 'Design beautiful, customizable WordPress login forms.', 'uael' ),
					'keywords'     => array( 'uael', 'form', 'login', 'facebook', 'google', 'user', 'fblogin' ),
					'icon'         => 'uael-icon-login-form',
					'title_url'    => '#',
					'default'      => true,
					'setting_text' => __( 'Settings', 'uael' ),
					'setting_url'  => $integration_url,
					'doc_url'      => UAEL_DOMAIN . 'docs-category/widgets/login-form/?utm_source=uael-pro-dashboard&utm_medium=uael-menu-page&utm_campaign=uael-pro-plugin',
					'preset'       => '5',
					'category'     => 'form',
					'is_pro'       => true,
					'demo_url'     => UAEL_DOMAIN . 'widgets/login-form/',
				),
				'Marketing_Button'    => array(
					'slug'        => 'uael-marketing-button',
					'title'       => __( 'Marketing Button', 'uael' ),
					'description' => __( 'Create High-impact, customizable CTA for promotions and conversions.', 'uael' ),
					'keywords'    => array( 'uael', 'button', 'marketing', 'call to action', 'cta' ),
					'icon'        => 'uael-icon-marketing-button',
					'title_url'   => '#',
					'default'     => true,
					'doc_url'     => UAEL_DOMAIN . 'docs-category/widgets/marketing-button/?utm_source=uael-pro-dashboard&utm_medium=uael-menu-page&utm_campaign=uael-pro-plugin',
					'preset'      => '5',
					'category'    => 'creative',
					'is_pro'      => true,
					'demo_url'    => UAEL_DOMAIN . 'widgets/marketing-button/',
				),
				'Modal_Popup'         => array(
					'slug'        => 'uael-modal-popup',
					'title'       => __( 'Modal Popup', 'uael' ),
					'description' => __( 'Design engaging popups with interactive animations and content.', 'uael' ),
					'keywords'    => array( 'uael', 'modal', 'popup', 'lighbox' ),
					'icon'        => 'uael-icon-modal-popup',
					'title_url'   => '#',
					'default'     => true,
					'doc_url'     => UAEL_DOMAIN . 'docs-category/widgets/modal-popup/?utm_source=uael-pro-dashboard&utm_medium=uael-menu-page&utm_campaign=uael-pro-plugin',
					'category'    => 'content',
					'is_pro'      => true,
					'demo_url'    => UAEL_DOMAIN . 'widgets/modal-popup/',
				),
				'Buttons'             => array(
					'slug'        => 'uael-buttons',
					'title'       => __( 'Multi Buttons', 'uael' ),
					'description' => __( 'Create a versatile dual-button setup for navigation and interactive web elements.', 'uael' ),
					'keywords'    => array( 'uael', 'buttons', 'multi', 'call to action', 'cta' ),
					'icon'        => 'uael-icon-multi-button',
					'title_url'   => '#',
					'default'     => true,
					'doc_url'     => UAEL_DOMAIN . 'docs-category/widgets/multi-buttons/?utm_source=uael-pro-dashboard&utm_medium=uael-menu-page&utm_campaign=uael-pro-plugin',
					'preset'      => '3',
					'category'    => 'creative',
					'is_pro'      => true,
					'demo_url'    => UAEL_DOMAIN . 'widgets/multi-buttons/',
				),
				'Nav_Menu'            => array(
					'slug'        => 'uael-nav-menu',
					'title'       => __( 'Advanced Navigation Menu', 'uael' ),
					'description' => __( 'Build easy-to-navigate, visually appealing site menus.', 'uael' ),
					'keywords'    => array( 'uael', 'menu', 'nav', 'navigation', 'mega' ),
					'icon'        => 'uael-icon-navigation-menu',
					'title_url'   => '#',
					'default'     => true,
					'doc_url'     => UAEL_DOMAIN . 'docs-category/widgets/navigation-menu/?utm_source=uael-pro-dashboard&utm_medium=uael-menu-page&utm_campaign=uael-pro-plugin',
					'category'    => 'creative',
					'is_pro'      => true,
					'demo_url'    => UAEL_DOMAIN . 'widgets/navigation-menu/',
				),
				'Offcanvas'           => array(
					'slug'        => 'uael-offcanvas',
					'title'       => __( 'Off - Canvas', 'uael' ),
					'description' => __( 'Create sliding panels for navigation or extra content.', 'uael' ),
					'keywords'    => array( 'uael', 'off', 'offcanvas', 'off-canvas', 'canvas', 'template', 'floating' ),
					'icon'        => 'uael-icon-off-canvas',
					'title_url'   => '#',
					'default'     => true,
					'doc_url'     => UAEL_DOMAIN . 'docs-category/widgets/off-canvas/?utm_source=uael-pro-dashboard&utm_medium=uael-menu-page&utm_campaign=uael-pro-plugin',
					'category'    => 'creative',
					'is_pro'      => true,
					'demo_url'    => UAEL_DOMAIN . 'widgets/off-canvas/',
				),
				'Posts'               => array(
					'slug'         => 'uael-posts',
					'title'        => __( 'Posts', 'uael' ),
					'description'  => __( 'Display and customize blog posts beautifully on your site.', 'uael' ),
					'keywords'     => array( 'uael', 'post', 'grid', 'masonry', 'carousel', 'content grid', 'content' ),
					'icon'         => 'uael-icon-posts',
					'title_url'    => '#',
					'default'      => true,
					'setting_url'  => $post_url,
					'setting_text' => __( 'Settings', 'uael' ),
					'doc_url'      => UAEL_DOMAIN . 'docs-category/widgets/posts/?utm_source=uael-pro-dashboard&utm_medium=uael-menu-page&utm_campaign=uael-pro-plugin',
					'category'     => 'content',
					'is_pro'       => true,
					'demo_url'     => UAEL_DOMAIN . 'widgets/posts/',
				),
				'Price_Table'         => array(
					'slug'        => 'uael-price-table',
					'title'       => __( 'Price Box', 'uael' ),
					'description' => __( 'Showcase prices and features in customizable layouts.', 'uael' ),
					'keywords'    => array( 'uael', 'price', 'table', 'box', 'pricing' ),
					'icon'        => 'uael-icon-price-box',
					'title_url'   => '#',
					'default'     => true,
					'doc_url'     => UAEL_DOMAIN . 'docs-category/widgets/price-box/?utm_source=uael-pro-dashboard&utm_medium=uael-menu-page&utm_campaign=uael-pro-plugin',
					'preset'      => '5',
					'category'    => 'creative',
					'is_pro'      => true,
					'demo_url'    => UAEL_DOMAIN . 'widgets/price-box/',
				),
				'Price_List'          => array(
					'slug'        => 'uael-price-list',
					'title'       => __( 'Price List', 'uael' ),
					'description' => __( 'Create elegant, customizable lists for menus or product catalogues.', 'uael' ),
					'keywords'    => array( 'uael', 'price', 'list', 'pricing' ),
					'icon'        => 'uael-icon-price-list',
					'title_url'   => '#',
					'default'     => true,
					'doc_url'     => UAEL_DOMAIN . 'docs-category/widgets/price-list/?utm_source=uael-pro-dashboard&utm_medium=uael-menu-page&utm_campaign=uael-pro-plugin',
					'preset'      => '5',
					'category'    => 'content',
					'is_pro'      => true,
					'demo_url'    => UAEL_DOMAIN . 'widgets/price-list/',
				),
				'Retina_Image'        => array(
					'slug'        => 'uael-retina-image',
					'title'       => __( 'Retina Image', 'uael' ),
					'description' => __( 'Ensure images look crisp on high-resolution screens.', 'uael' ),
					'keywords'    => array( 'uael', 'retina', 'image', '2ximage' ),
					'icon'        => 'uael-icon-retina-image',
					'title_url'   => '#',
					'default'     => true,
					'doc_url'     => UAEL_DOMAIN . 'docs-category/widgets/retina-image/?utm_source=uael-pro-dashboard&utm_medium=uael-menu-page&utm_campaign=uael-pro-plugin',
					'category'    => 'creative',
					'is_pro'      => true,
					'demo_url'    => UAEL_DOMAIN . 'widgets/retina-image/',
				),
				'SocialShare'         => array(
					'slug'         => 'uael-social-share',
					'title'        => __( 'Social Share', 'uael' ),
					'description'  => __( 'Enable quick content sharing with social media buttons.', 'uael' ),
					'keywords'     => array( 'uael', 'sharing', 'social', 'icon', 'button', 'like' ),
					'icon'         => 'uael-icon-social-share',
					'title_url'    => '#',
					'default'      => true,
					'setting_text' => __( 'Settings', 'uael' ),
					'setting_url'  => $integration_url,
					'doc_url'      => UAEL_DOMAIN . 'docs-category/widgets/social-share/?utm_source=uael-pro-dashboard&utm_medium=uael-menu-page&utm_campaign=uael-pro-plugin',
					'preset'       => '5',
					'category'     => 'creative',
					'is_pro'       => true,
					'demo_url'     => UAEL_DOMAIN . 'widgets/social-share/',
				),
				'Table'               => array(
					'slug'        => 'uael-table',
					'title'       => __( 'Table', 'uael' ),
					'description' => __( 'Build responsive, styled tables to display data.', 'uael' ),
					'keywords'    => array( 'uael', 'table', 'sort', 'search' ),
					'icon'        => 'uael-icon-table',
					'title_url'   => '#',
					'default'     => true,
					'doc_url'     => UAEL_DOMAIN . 'docs-category/widgets/table/?utm_source=uael-pro-dashboard&utm_medium=uael-menu-page&utm_campaign=uael-pro-plugin',
					'category'    => 'content',
					'is_pro'      => true,
					'demo_url'    => UAEL_DOMAIN . 'widgets/table/',
				),
				'Table_of_Contents'   => array(
					'slug'        => 'uael-table-of-contents',
					'title'       => __( 'Table of Contents', 'uael' ),
					'description' => __( 'Improve page readability with automatic, customizable TOCs.', 'uael' ),
					'keywords'    => array( 'uael', 'table of contents', 'content', 'list', 'toc', 'index' ),
					'icon'        => 'uael-icon-table-of-content',
					'title_url'   => '#',
					'default'     => true,
					'doc_url'     => UAEL_DOMAIN . 'docs-category/widgets/table-of-contents/?utm_source=uael-pro-dashboard&utm_medium=uael-menu-page&utm_campaign=uael-pro-plugin',
					'category'    => 'seo',
					'is_pro'      => true,
					'demo_url'    => UAEL_DOMAIN . 'widgets/table-of-contents/',
				),
				'Team_Member'         => array(
					'slug'        => 'uael-team-member',
					'title'       => __( 'Team Member', 'uael' ),
					'description' => __( 'Highlight team members with customizable layouts.', 'uael' ),
					'keywords'    => array( 'uael', 'team', 'member' ),
					'icon'        => 'uael-icon-team-member',
					'title_url'   => '#',
					'default'     => true,
					'doc_url'     => UAEL_DOMAIN . 'docs-category/widgets/team-member/?utm_source=uael-pro-dashboard&utm_medium=uael-menu-page&utm_campaign=uael-pro-plugin',
					'preset'      => '5',
					'category'    => 'creative',
					'is_pro'      => true,
					'demo_url'    => UAEL_DOMAIN . 'widgets/team-member/',
				),
				'Timeline'            => array(
					'slug'        => 'uael-timeline',
					'title'       => __( 'Timeline', 'uael' ),
					'description' => __( 'Display timelines or roadmaps with advanced styling options.', 'uael' ),
					'keywords'    => array( 'uael', 'timeline', 'history', 'scroll', 'post', 'content timeline' ),
					'icon'        => 'uael-icon-timeline',
					'title_url'   => '#',
					'default'     => true,
					'doc_url'     => UAEL_DOMAIN . 'docs-category/widgets/timeline/?utm_source=uael-pro-dashboard&utm_medium=uael-menu-page&utm_campaign=uael-pro-plugin',
					'preset'      => '5',
					'category'    => 'creative',
					'is_pro'      => true,
					'demo_url'    => UAEL_DOMAIN . 'widgets/timeline/',
				),
				'Twitter'             => array(
					'slug'         => 'uael-twitter',
					'title'        => __( 'Twitter Feed', 'uael' ),
					'description'  => __( 'Embed Twitter feeds to show real-time content updates.', 'uael' ),
					'keywords'     => array( 'uael', 'twitter' ),
					'icon'         => 'uael-icon-twitter-feed-icon',
					'title_url'    => '#',
					'setting_url'  => $integration_url,
					'setting_text' => __( 'Settings', 'uael' ),
					'default'      => true,
					'doc_url'      => UAEL_DOMAIN . 'docs-category/widgets/twitter-feed/?utm_source=uael-pro-dashboard&utm_medium=uael-menu-page&utm_campaign=uael-pro-plugin',
					'category'     => 'creative',
					'is_pro'       => true,
					'demo_url'     => UAEL_DOMAIN . 'widgets/twitter-feed/',
				),
				'RegistrationForm'    => array(
					'slug'         => 'uael-registration-form',
					'title'        => __( 'User Registration Form', 'uael' ),
					'description'  => __( 'Create beautiful, custom registration forms for users.', 'uael' ),
					'keywords'     => array( 'uael', 'form', 'register', 'registration', 'user' ),
					'icon'         => 'uael-icon-registration-form',
					'title_url'    => '#',
					'default'      => true,
					'setting_url'  => $integration_url,
					'setting_text' => __( 'Settings', 'uael' ),
					'doc_url'      => UAEL_DOMAIN . 'docs-category/widgets/user-registration-form/?utm_source=uael-pro-dashboard&utm_medium=uael-menu-page&utm_campaign=uael-pro-plugin',
					'preset'       => '5',
					'category'     => 'form',
					'is_pro'       => true,
					'demo_url'     => UAEL_DOMAIN . 'widgets/user-registration-form/',
				),
				'Video'               => array(
					'slug'        => 'uael-video',
					'title'       => __( 'Video', 'uael' ),
					'description' => __( 'Embed optimized videos with customizable thumbnails and play buttons.', 'uael' ),
					'keywords'    => array( 'uael', 'video', 'youtube', 'vimeo', 'wistia', 'bunny', 'sticky', 'drag', 'float', 'subscribe' ),
					'icon'        => 'uael-icon-video',
					'title_url'   => '#',
					'default'     => true,
					'doc_url'     => UAEL_DOMAIN . 'docs-category/widgets/video/?utm_source=uael-pro-dashboard&utm_medium=uael-menu-page&utm_campaign=uael-pro-plugin',
					'category'    => 'content',
					'is_pro'      => true,
					'demo_url'    => UAEL_DOMAIN . 'widgets/video/',
				),
				'Video_Gallery'       => array(
					'slug'        => 'uael-video-gallery',
					'title'       => __( 'Video Gallery', 'uael' ),
					'description' => __( 'Showcase multiple videos without impacting load times.', 'uael' ),
					'keywords'    => array( 'uael', 'video', 'youtube', 'wistia', 'gallery', 'vimeo' ),
					'icon'        => 'uael-icon-video-gallery',
					'title_url'   => '#',
					'default'     => true,
					'doc_url'     => UAEL_DOMAIN . 'docs-category/widgets/video-gallery/?utm_source=uael-pro-dashboard&utm_medium=uael-menu-page&utm_campaign=uael-pro-plugin',
					'category'    => 'content',
					'is_pro'      => true,
					'demo_url'    => UAEL_DOMAIN . 'widgets/video-gallery/',
				),
				'Welcome_Music'       => array(
					'slug'        => 'uael-welcome-music',
					'title'       => __( 'Welcome Music', 'uael' ),
					'description' => __( 'Play background audio to engage visitors upon page load.', 'uael' ),
					'keywords'    => array( 'uael', 'christmas', 'music', 'background', 'audio', 'welcome' ),
					'icon'        => 'uael-icon-welcome-music',
					'title_url'   => '#',
					'default'     => false,
					'doc_url'     => UAEL_DOMAIN . 'docs-category/widgets/welcome-music/?utm_source=uael-pro-dashboard&utm_medium=uael-menu-page&utm_campaign=uael-pro-plugin',
					'category'    => 'creative',
					'is_pro'      => true,
					'demo_url'    => UAEL_DOMAIN . 'widgets/welcome-music/',
				),
				'Woo_Add_To_Cart'     => array(
					'slug'        => 'uael-woo-add-to-cart',
					'title'       => __( 'Woo - Add To Cart', 'uael' ),
					'description' => __( 'Let users add items to cart with one click.', 'uael' ),
					'keywords'    => array( 'uael', 'woo', 'cart', 'add to cart', 'products' ),
					'icon'        => 'uael-icon-woo-add-to-cart',
					'title_url'   => '#',
					'default'     => true,
					'doc_url'     => UAEL_DOMAIN . 'docs-category/widgets/woo-add-to-cart/?utm_source=uael-pro-dashboard&utm_medium=uael-menu-page&utm_campaign=uael-pro-plugin',
					'category'    => 'woo',
					'is_pro'      => true,
					'demo_url'    => UAEL_DOMAIN . 'widgets/woo-add-to-cart/',
				),
				'Woo_Categories'      => array(
					'slug'        => 'uael-woo-categories',
					'title'       => __( 'Woo - Categories', 'uael' ),
					'description' => __( 'Display product categories beautifully.', 'uael' ),
					'keywords'    => array( 'uael', 'woo', 'categories', 'taxomonies', 'products' ),
					'icon'        => 'uael-icon-woo-category',
					'title_url'   => '#',
					'default'     => true,
					'doc_url'     => UAEL_DOMAIN . 'docs-category/widgets/woo-categories/?utm_source=uael-pro-dashboard&utm_medium=uael-menu-page&utm_campaign=uael-pro-plugin',
					'category'    => 'woo',
					'is_pro'      => true,
					'demo_url'    => UAEL_DOMAIN . 'widgets/woo-categories/',
				),
				'Woo_Checkout'        => array(
					'slug'        => 'uael-woo-checkout',
					'title'       => __( 'Woo - Checkout', 'uael' ),
					'description' => __( 'Design optimized checkout pages for better conversions.', 'uael' ),
					'keywords'    => array( 'uael', 'woo', 'checkout', 'page', 'check' ),
					'icon'        => 'uael-icon-woo-checkout-1',
					'title_url'   => '#',
					'default'     => true,
					'doc_url'     => UAEL_DOMAIN . 'docs-category/widgets/woo-checkout/?utm_source=uael-pro-dashboard&utm_medium=uael-menu-page&utm_campaign=uael-pro-plugin',
					'category'    => 'woo',
					'is_pro'      => true,
					'demo_url'    => UAEL_DOMAIN . 'widgets/woo-checkout/',
				),
				'Woo_Mini_Cart'       => array(
					'slug'        => 'uael-mini-cart',
					'title'       => __( 'Woo - Mini Cart', 'uael' ),
					'description' => __( 'Show a mini-cart for seamless shopping experiences.', 'uael' ),
					'keywords'    => array( 'woo', 'woocommerce', 'cart', 'mini', 'minicart' ),
					'icon'        => 'uael-icon-woo-mini-cart',
					'title_url'   => '#',
					'default'     => true,
					'doc_url'     => UAEL_DOMAIN . 'docs-category/widgets/woo-mini-cart/?utm_source=uael-pro-dashboard&utm_medium=uael-menu-page&utm_campaign=uael-pro-plugin',
					'category'    => 'woo',
					'is_pro'      => true,
					'demo_url'    => UAEL_DOMAIN . 'widgets/woo-mini-cart/',
				),
				'Woo_Products'        => array(
					'slug'        => 'uael-woo-products',
					'title'       => __( 'Woo - Products', 'uael' ),
					'description' => __( 'Present products with detailed, customizable layouts.', 'uael' ),
					'keywords'    => array( 'uael', 'woo', 'products' ),
					'icon'        => 'uael-icon-woo-product',
					'title_url'   => '#',
					'default'     => true,
					'doc_url'     => UAEL_DOMAIN . 'docs-category/widgets/woo-products/?utm_source=uael-pro-dashboard&utm_medium=uael-menu-page&utm_campaign=uael-pro-plugin',
					'category'    => 'woo',
					'is_pro'      => true,
					'demo_url'    => UAEL_DOMAIN . 'widgets/woo-products/',
				),
				'FfStyler'            => array(
					'slug'        => 'uael-ff-styler',
					'title'       => __( 'WP Fluent Forms Styler', 'uael' ),
					'description' => __( 'Style WP Fluent Forms for an attractive, cohesive look.', 'uael' ),
					'keywords'    => array( 'uael', 'fluent', 'forms', 'wp' ),
					'icon'        => 'uael-icon-fluent-form-styler',
					'title_url'   => '#',
					'default'     => true,
					'doc_url'     => UAEL_DOMAIN . 'docs-category/widgets/wp-fluent-forms-styler/?utm_source=uael-pro-dashboard&utm_medium=uael-menu-page&utm_campaign=uael-pro-plugin',
					'category'    => 'form',
					'is_pro'      => true,
					'demo_url'    => UAEL_DOMAIN . 'widgets/wp-fluent-forms-styler/',
				),
				'WpfStyler'           => array(
					'slug'        => 'uael-wpf-styler',
					'title'       => __( 'WPForms Styler', 'uael' ),
					'description' => __( 'Upgrade WPForms with customizable design and layout options.', 'uael' ),
					'keywords'    => array( 'uael', 'form', 'wp', 'wpform', 'styler' ),
					'icon'        => 'uael-icon-wp-form-styler',
					'title_url'   => '#',
					'default'     => true,
					'doc_url'     => UAEL_DOMAIN . 'docs-category/widgets/wpforms-styler/?utm_source=uael-pro-dashboard&utm_medium=uael-menu-page&utm_campaign=uael-pro-plugin',
					'category'    => 'form',
					'is_pro'      => true,
					'demo_url'    => UAEL_DOMAIN . 'widgets/wpforms-styler/',
				),
				'DisplayConditions'   => array(
					'slug'         => 'uael-display-conditions',
					'title'        => __( 'Display Conditions', 'uael' ),
					'description'  => __( 'Show or hide content based on user interactions.', 'uael' ),
					'keywords'     => array(),
					'icon'         => 'uael-icon-display-conditions',
					'title_url'    => '#',
					'default'      => true,
					'setting_text' => __( 'Settings', 'uael' ),
					'setting_url'  => $integration_url,
					'doc_url'      => UAEL_DOMAIN . 'docs-category/widgets/display-conditions/?utm_source=uael-pro-dashboard&utm_medium=uael-menu-page&utm_campaign=uael-pro-plugin',
					'category'     => 'extension',
					'is_pro'       => true,
					'demo_url'     => UAEL_DOMAIN . 'widgets/display-conditions/',
				),
				'Particles'           => array(
					'slug'        => 'uael-particles',
					'title'       => __( 'Particle Backgrounds', 'uael' ),
					'description' => __( 'Add dynamic, animated backgrounds to sections and columns.', 'uael' ),
					'keywords'    => array(),
					'icon'        => 'uael-icon-particles',
					'title_url'   => '#',
					'default'     => true,
					'doc_url'     => UAEL_DOMAIN . 'docs-category/widgets/particles-background-extension/?utm_source=uael-pro-dashboard&utm_medium=uael-menu-page&utm_campaign=uael-pro-plugin',
					'category'    => 'extension',
					'is_pro'      => true,
					'demo_url'    => UAEL_DOMAIN . 'widgets/particle-backgrounds/',
				),
				'StickyHeader'        => array(
					'slug'         => 'uael-sticky-header',
					'title'        => __( 'Sticky Header', 'uael' ),
					'description'  => __( 'Create sticky headers with scroll effects for UAE Headers.', 'uael' ),
					'keywords'     => array( 'uael', 'sticky', 'header', 'scroll', 'fixed', 'navigation' ),
					'icon'         => 'uael-icon-navigation-menu',
					'title_url'    => '#',
					'default'      => true,
					'setting_text' => __( 'Settings', 'uael' ),
					'setting_url'  => $integration_url,
					'doc_url'      => UAEL_DOMAIN . 'docs/how-to-make-ultimate-addons-for-elementor-sticky-header-on-scroll-documentation/?utm_source=uael-pro-dashboard&utm_medium=uael-menu-page&utm_campaign=uael-pro-plugin',
					'category'     => 'extension',
					'is_pro'       => true,
					'demo_url'     => UAEL_DOMAIN . 'widgets/sticky-header/',
				),
				'PartyPropzExtension' => array(
					'slug'        => 'uael-party-propz-extension',
					'title'       => __( 'Party Propz', 'uael' ),
					'description' => __( 'Decorate your site with festive seasonal elements easily.', 'uael' ),
					'keywords'    => array(),
					'icon'        => 'uael-icon-party-propz',
					'title_url'   => '#',
					'default'     => false,
					'doc_url'     => UAEL_DOMAIN . 'docs-category/widgets/party-propz-extensions/?utm_source=uael-pro-dashboard&utm_medium=uael-menu-page&utm_campaign=uael-pro-plugin',
					'category'    => 'extension',
					'is_pro'      => true,
					'demo_url'    => UAEL_DOMAIN . 'widgets/party-propz/',
				),
				'SectionDivider'      => array(
					'slug'        => 'uael-section-divider',
					'title'       => __( 'Shape Divider', 'uael' ),
					'description' => __( 'Add new attractive shape dividers to Elementor sections.', 'uael' ),
					'keywords'    => array(),
					'icon'        => 'uael-icon-shape-divider',
					'title_url'   => '#',
					'default'     => false,
					'doc_url'     => UAEL_DOMAIN . 'docs-category/widgets/uae-shape-dividers/?utm_source=uael-pro-dashboard&utm_medium=uael-menu-page&utm_campaign=uael-pro-plugin',
					'category'    => 'extension',
					'is_pro'      => true,
					'demo_url'    => UAEL_DOMAIN . 'widgets/uae-shape-dividers/',
				),
				'Cross_Domain'        => array(
					'slug'        => 'uael-cross-domain-copy-paste',
					'title'       => __( 'Cross-Site Copy Paste', 'uael' ),
					'description' => __( 'Copy and paste Elementor content between websites.', 'uael' ),
					'keywords'    => array(),
					'icon'        => 'uael-icon-cdcp',
					'title_url'   => '#',
					'default'     => true,
					'doc_url'     => UAEL_DOMAIN . 'docs-category/features/cross-site-copy-paste/?utm_source=uael-pro-dashboard&utm_medium=uael-menu-page&utm_campaign=uael-pro-plugin',
					'category'    => 'feature',
					'is_pro'      => true,
					'demo_url'    => UAEL_DOMAIN . 'widgets/cross-site-copy-paste/',
				),
				'Presets'             => array(
					'slug'        => 'uael-presets',
					'title'       => __( 'Presets', 'uael' ),
					'description' => __( 'Use pre-made widget templates to accelerate your design process.', 'uael' ),
					'keywords'    => array(),
					'icon'        => 'uael-icon-presets',
					'title_url'   => '#',
					'default'     => true,
					'doc_url'     => UAEL_DOMAIN . 'docs-category/features/presets/?utm_source=uael-pro-dashboard&utm_medium=uael-menu-page&utm_campaign=uael-pro-plugin',
					'category'    => 'feature',
					'is_pro'      => true,
					'demo_url'    => UAEL_DOMAIN . 'widgets/presets/',
				),

			);
		}

		if ( class_exists( 'Caldera_Forms' ) || class_exists( 'Caldera_Forms_Forms' ) ) {
			$forms = \Caldera_Forms_Forms::get_forms( true );
			if ( ! empty( $forms ) ) {
				$caldera = array(
					'CafStyler' => array(
						'slug'        => 'uael-caf-styler',
						'title'       => __( 'Caldera Form Styler', 'uael' ),
						'description' => __( 'Style and enhance Caldera Forms to fit your site.', 'uael' ),
						'keywords'    => array( 'uael', 'caldera', 'form', 'styler' ),
						'icon'        => 'uael-icon-wp-form-styler',
						'title_url'   => '#',
						'default'     => true,
						'doc_url'     => UAEL_DOMAIN . 'docs-category/widgets/caldera-form-styler/?utm_source=uael-pro-dashboard&utm_medium=uael-menu-page&utm_campaign=uael-pro-plugin',
						'category'    => 'form',
						'is_pro'      => true,
					),
				);

				self::$widget_list = array_merge_recursive( self::$widget_list, $caldera );
			}
		}

		return self::$widget_list;
	}

	/**
	 * Get Post skins.
	 *
	 * @since 1.21.0
	 *
	 * @return array Post skins.
	 */
	public static function get_post_skin_list() {

		if ( null === self::$post_skins_list ) {
			self::$post_skins_list = array(
				'Skin_Card'     => array(
					'slug'    => 'uael-skin-card',
					'title'   => __( 'Card Skin', 'uael' ),
					'default' => true,
					'image'   => UAEL_URL . 'assets/img/uae-post-skin-card.png',
				),
				'Skin_Feed'     => array(
					'slug'    => 'uael-skin-feed',
					'title'   => __( 'Creative Feed Skin', 'uael' ),
					'default' => true,
					'image'   => UAEL_URL . 'assets/img/uae-post-skin-feed.png',
				),
				'Skin_News'     => array(
					'slug'    => 'uael-skin-news',
					'title'   => __( 'News Skin', 'uael' ),
					'default' => true,
					'image'   => UAEL_URL . 'assets/img/uae-post-skin-news.png',
				),
				'Skin_Business' => array(
					'slug'    => 'uael-skin-business',
					'title'   => __( 'Business Skin', 'uael' ),
					'default' => true,
					'image'   => UAEL_URL . 'assets/img/uae-post-skin-business.png',
				),
			);
		}

		return self::$post_skins_list;
	}

	/**
	 * Returns Script array.
	 *
	 * @return array()
	 * @since 0.0.1
	 */
	public static function get_widget_script() {
		$folder = UAEL_Helper::get_js_folder();
		$suffix = UAEL_Helper::get_js_suffix();

		$js_files = array(
			'uael-frontend-script'   => array(
				'path'      => 'assets/' . $folder . '/uael-frontend' . $suffix . '.js',
				'dep'       => array( 'jquery' ),
				'in_footer' => true,
			),
			'uael-modal-popup'       => array(
				'path'      => 'assets/' . $folder . '/uael-modal-popup' . $suffix . '.js',
				'dep'       => array( 'jquery', 'uael-cookie-lib' ),
				'in_footer' => true,
			),
			'uael-offcanvas'         => array(
				'path'      => 'assets/' . $folder . '/uael-offcanvas' . $suffix . '.js',
				'dep'       => array( 'jquery' ),
				'in_footer' => true,
			),
			'uael-google-maps'       => array(
				'path'      => 'assets/' . $folder . '/uael-google-map' . $suffix . '.js',
				'dep'       => array( 'jquery' ),
				'in_footer' => true,
			),
			'uael-posts'             => array(
				'path'      => 'assets/' . $folder . '/uael-posts' . $suffix . '.js',
				'dep'       => array( 'jquery', 'imagesloaded' ),
				'in_footer' => true,
			),
			'uael-business-reviews'  => array(
				'path'      => 'assets/' . $folder . '/uael-business-reviews' . $suffix . '.js',
				'dep'       => array( 'jquery', 'imagesloaded' ),
				'in_footer' => true,
			),
			'uael-woocommerce'       => array(
				'path'      => 'assets/' . $folder . '/uael-woocommerce' . $suffix . '.js',
				'dep'       => array( 'jquery' ),
				'in_footer' => true,
			),
			'uael-table'             => array(
				'path'      => 'assets/' . $folder . '/uael-table' . $suffix . '.js',
				'dep'       => array( 'jquery' ),
				'in_footer' => true,
			),
			'uael-table-of-contents' => array(
				'path'      => 'assets/' . $folder . '/uael-table-of-contents' . $suffix . '.js',
				'dep'       => array( 'jquery' ),
				'in_footer' => true,
			),
			'uael-registration'      => array(
				'path'      => 'assets/' . $folder . '/uael-registration' . $suffix . '.js',
				'dep'       => array( 'jquery' ),
				'in_footer' => true,
			),
			'uael-countdown'         => array(
				'path'      => 'assets/' . $folder . '/uael-countdown' . $suffix . '.js',
				'dep'       => array( 'jquery' ),
				'in_footer' => true,
			),
			'uael-nav-menu'          => array(
				'path'      => 'assets/' . $folder . '/uael-nav-menu' . $suffix . '.js',
				'dep'       => array( 'jquery' ),
				'in_footer' => true,
			),
			'uael-faq'               => array(
				'path'      => 'assets/' . $folder . '/uael-faq' . $suffix . '.js',
				'dep'       => array( 'jquery' ),
				'in_footer' => true,
			),
			'uael-particles'         => array(
				'path'      => 'assets/' . $folder . '/uael-particles' . $suffix . '.js',
				'dep'       => array( 'jquery' ),
				'in_footer' => true,
			),
			'uael-social-share'      => array(
				'path'      => 'assets/' . $folder . '/uael-social-share' . $suffix . '.js',
				'dep'       => array( 'jquery' ),
				'in_footer' => true,
			),
			/* Libraries */
			'uael-hotspot'           => array(
				'path'      => 'assets/lib/tooltipster/tooltipster.min.js',
				'dep'       => array( 'jquery' ),
				'in_footer' => true,
			),
			'uael-datatable'         => array(
				'path'      => 'assets/lib/jquery-datatables/jquery.datatables.min.js',
				'dep'       => array( 'jquery' ),
				'in_footer' => true,
			),
			'uael-twenty-twenty'     => array(
				'path'      => 'assets/lib/jquery-twentytwenty/jquery_twentytwenty.min.js',
				'dep'       => array( 'jquery' ),
				'in_footer' => true,
			),
			'uael-isotope'           => array(
				'path'      => 'assets/lib/isotope/isotope.min.js',
				'dep'       => array( 'jquery' ),
				'in_footer' => true,
			),
			'uael-move'              => array(
				'path'      => 'assets/lib/jquery-event-move/jquery_event_move.min.js',
				'dep'       => array( 'jquery' ),
				'in_footer' => true,
			),
			'uael-fancytext-typed'   => array(
				'path'      => 'assets/lib/typed/typed.min.js',
				'dep'       => array( 'jquery' ),
				'in_footer' => true,
			),
			'uael-element-resize'    => array(
				'path'      => 'assets/lib/jquery-element-resize/jquery_resize.min.js',
				'dep'       => array( 'jquery' ),
				'in_footer' => true,
			),
			'uael-fancytext-slidev'  => array(
				'path'      => 'assets/lib/rvticker/rvticker.min.js',
				'dep'       => array( 'jquery' ),
				'in_footer' => true,
			),
			'uael-cookie-lib'        => array(
				'path'      => 'assets/lib/js-cookie/js_cookie.min.js',
				'dep'       => array( 'jquery' ),
				'in_footer' => true,
			),
			'uael-element-resize'    => array(
				'path'      => 'assets/lib/jquery-element-resize/jquery_resize.min.js',
				'dep'       => array( 'jquery' ),
				'in_footer' => true,
			),
			'uael-infinitescroll'    => array(
				'path'      => 'assets/lib/infinitescroll/jquery.infinitescroll.min.js',
				'dep'       => array( 'jquery' ),
				'in_footer' => true,
			),
			'uael-fancybox'          => array(
				'path'      => 'assets/lib/fancybox/jquery_fancybox.min.js',
				'dep'       => array( 'jquery' ),
				'in_footer' => true,
			),
			'uael-justified'         => array(
				'path'      => 'assets/lib/justifiedgallery/justifiedgallery.min.js',
				'dep'       => array( 'jquery', 'uael-frontend-script' ),
				'in_footer' => true,
			),
			'uael-slick'             => array(
				'path'      => 'assets/lib/slick/slick.min.js',
				'dep'       => array( 'jquery' ),
				'in_footer' => true,
			),
		);

		return $js_files;
	}

	/**
	 * Returns Style array.
	 *
	 * @return array()
	 * @since 0.0.1
	 */
	public static function get_widget_style() {

		$is_rtl = is_rtl();

		if ( ( defined( 'UAE_DEBUG' ) && UAE_DEBUG ) ) {
			$css_files = UAEL_Helper::get_active_widget_stylesheet();
		} else {
			$path = $is_rtl ? 'assets/min-css/uael-frontend-rtl.min.css' : 'assets/min-css/uael-frontend.min.css';

			$css_files = array(
				'uael-frontend' => array(
					'path' => $path,
					'dep'  => array(),
				),
			);
		}

		return $css_files;
	}

	

	/**
	 * Function for Astra Pro white labels with defaults.
	 *
	 * @since 1.37.0
	 * @return array
	 */
	public static function get_astra_white_label() {

		$white_labels = is_callable( 'Astra_Admin_Helper::get_admin_settings_option' ) ? \Astra_Admin_Helper::get_admin_settings_option( '_astra_ext_white_label', true ) : array();

		$theme_name = ! empty( $white_labels['astra']['name'] ) ? $white_labels['astra']['name'] : 'Astra Theme';

		return array(
			'theme_name'  => $theme_name,
			/* translators: %s: theme name */
			'description' => ! empty( $white_labels['astra']['description'] ) ? $white_labels['astra']['description'] : esc_html( sprintf( __( 'Free & Fastest WordPress Theme.', 'uael' ), esc_html( $theme_name ) ) ),
			'theme_icon'  => ! empty( $white_labels['astra']['icon'] ) ? $white_labels['astra']['icon'] : '',
			'author_url'  => ! empty( $white_labels['astra']['author_url'] ) ? $white_labels['astra']['author_url'] : 'https://wpastra.com/',
		);
	}

	/**
	 * List of plugins that we propose to install.
	 *
	 * @since 1.6.0
	 *
	 * @return array
	 */
	public static function get_bsf_plugins() {

		$white_labels   = self::get_astra_white_label();
		$is_lite_active = UAEL_Helper::is_lite_active();
		$images_url     = UAEL_URL . 'assets/images/settings/';

		$uaelite_title        = UAEL_PLUGIN_NAME . esc_html__( ' - Lite', 'uael' );
		$uaelite_logo         = $is_lite_active ? $images_url . 'uaelite.svg' : $images_url . 'uaelite.svg';
		$uaelite_settings_url = $is_lite_active ? admin_url( 'admin.php?page=uaepro' ) : admin_url( 'edit.php?post_type=elementor-hf' );
		$uaelite_site         = $is_lite_active ? 'https://ultimateelementor.com/' : 'https://wordpress.org/plugins/header-footer-elementor/';

		$plugins = array(

			'surerank/surerank.php'           => array(
				'icon'         => $images_url . 'surerank.svg',
				'type'         => 'plugin',
				'name'         => esc_html__( 'Boost Your Traffic with Easy SEO Optimization!', 'uael' ),
				'desc'         => esc_html__( 'Rank higher with effortless SEO optimization. SureRank offers a simple, clutter-free interface with lightweight code, minimal setup, clear meta and schema settings, and smart content optimization that actually makes sense, helping you grow your traffic easily.', 'uael' ),
				'wporg'        => 'https://wordpress.org/plugins/surerank/',
				'url'          => 'https://downloads.wordpress.org/plugin/surerank.zip',
				'siteurl'      => 'https://surerank.com/',
				'isFree'       => true,
				'slug'         => 'surerank',
				'status'       => self::get_plugin_status( 'surerank/surerank.php' ),
				'settings_url' => admin_url( 'admin.php?page=surerank_onboarding' ),
			),
			'surecart/surecart.php'           => array(
				'icon'         => $images_url . 'surecart.svg',
				'type'         => 'plugin',
				'name'         => esc_html__( 'Sell Products Effortlessly with SureCart!', 'uael' ),
				'desc'         => esc_html__( 'Sell your products effortlessly with a modern, flexible eCommerce system. SureCart makes it easy to set up one-click checkout, manage subscriptions, recover abandoned carts, and collect secure payments, helping you launch and grow your online store confidently.', 'uael' ),
				'wporg'        => 'https://wordpress.org/plugins/surecart/',
				'url'          => 'https://downloads.wordpress.org/plugin/surecart.zip',
				'siteurl'      => 'https://surecart.com/',
				'isFree'       => true,
				'slug'         => 'surecart',
				'status'       => self::get_plugin_status( 'surecart/surecart.php' ),
				'settings_url' => admin_url( 'admin.php?page=sc-getting-started' ),
			),
			'sureforms/sureforms.php'         => array(
				'icon'         => $images_url . 'sureforms.svg',
				'type'         => 'plugin',
				'name'         => esc_html__( 'Build Powerful Forms in Minutes with SureForms!', 'uael' ),
				'desc'         => esc_html__( 'Build powerful forms in minutes without complexity. SureForms lets you create contact forms, payment forms, and surveys using an AI-assisted, clean interface with conversational layouts, conditional logic, payment collection, and mobile optimization for a seamless experience.', 'uael' ),
				'wporg'        => 'https://wordpress.org/plugins/sureforms/',
				'url'          => 'https://downloads.wordpress.org/plugin/sureforms.zip',
				'siteurl'      => 'https://sureforms.com/',
				'slug'         => 'sureforms',
				'isFree'       => true,
				'status'       => self::get_plugin_status( 'sureforms/sureforms.php' ),
				'settings_url' => admin_url( 'admin.php?page=sureforms_menu' ),
			),
			'presto-player/presto-player.php' => array(
				'icon'         => $images_url . 'pplayer.svg',
				'type'         => 'plugin',
				'name'         => esc_html__( 'Add Engaging Videos Seamlessly with Presto Player!', 'uael' ),
				'desc'         => html_entity_decode( esc_html__( 'Add engaging videos seamlessly in minutes without complexity. Presto Player lets you enhance your website with videos using branding, chapters, and call-to-actions while providing fast load times, detailed analytics, and user-friendly controls for a seamless viewing experience.', 'uael' ) ),
				'wporg'        => 'https://wordpress.org/plugins/presto-player/',
				'url'          => 'https://downloads.wordpress.org/plugin/presto-player.zip',
				'siteurl'      => 'https://prestoplayer.com/',
				'slug'         => 'presto-player',
				'isFree'       => true,
				'status'       => self::get_plugin_status( 'presto-player/presto-player.php' ),
				'settings_url' => admin_url( 'edit.php?post_type=pp_video_block' ),
			),
			'suretriggers/suretriggers.php'   => array(
				'icon'         => $images_url . 'OttoKit-Symbol-Primary.svg',
				'type'         => 'plugin',
				'name'         => esc_html__( 'Automate Your Workflows Easily with Ottokit!', 'uael' ),
				'desc'         => esc_html__( 'Automate workflows effortlessly in minutes without complexity. Ottokit lets you connect your WordPress site with web apps to automate tasks, sync data, and run actions using a clean visual builder with scheduling, filters, conditions, and webhooks for a seamless experience.', 'uael' ),
				'wporg'        => 'https://wordpress.org/plugins/suretriggers/',
				'url'          => 'https://downloads.wordpress.org/plugin/suretriggers.zip',
				'siteurl'      => 'https://ottokit.com/',
				'slug'         => 'suretriggers',
				'isFree'       => true,
				'status'       => self::get_plugin_status( 'suretriggers/suretriggers.php' ),
				'settings_url' => admin_url( 'admin.php?page=suretriggers' ),
			),

		);

		foreach ( $plugins as $key => $plugin ) {
			// Check if it's a plugin and is active.
			if ( 'plugin' === $plugin['type'] && is_plugin_active( $key ) ) {
				unset( $plugins[ $key ] );
			}
			
			if ( 'plugin' === $plugin['type'] && 'astra-sites/astra-sites.php' === $key ) {
				$st_pro_status = self::get_plugin_status( 'astra-pro-sites/astra-pro-sites.php' );
				if ( 'Installed' === $st_pro_status || 'Activated' === $st_pro_status ) {
					unset( $plugins[ $key ] );
				}
			}

			if ( 'theme' === $plugin['type'] ) {
				$current_theme = wp_get_theme();
				if ( $current_theme->get_stylesheet() === $plugin['slug'] ) {
					unset( $plugins[ $key ] );
				}
			}
		}

		return $plugins;
	}

	/**
	 * Get plugin status
	 *
	 * @since 0.0.1
	 *
	 * @param  string $plugin_init_file Plugin init file.
	 * @return string
	 */
	public static function get_plugin_status( $plugin_init_file ) {

		$installed_plugins = get_plugins();

		if ( ! isset( $installed_plugins[ $plugin_init_file ] ) ) {
			return 'Install';
		} elseif ( is_plugin_active( $plugin_init_file ) ) {
			return 'Activated';
		} else {
			return 'Installed';
		}
	}

	/**
	 * Get theme status
	 *
	 * @since 0.0.1
	 *
	 * @param  string $theme_slug Plugin init file.
	 * @return string
	 */
	public static function get_theme_status( $theme_slug ) {
		$installed_themes = wp_get_themes();
		
		// Check if the theme is installed.
		if ( isset( $installed_themes[ $theme_slug ] ) ) {
			$current_theme = wp_get_theme();
			
			// Check if the current theme slug matches the provided theme slug.
			if ( $current_theme->get_stylesheet() === $theme_slug ) {
				return 'Activated'; // Theme is active.
			} else {
				return 'Installed'; // Theme is installed but not active.
			}
		} else {
			return 'Install'; // Theme is not installed at all.
		}
	}
}
