<?php
/**
 * Direct access is not allowed.
 *
 * @package config/app.php
 */

if (! defined('ABSPATH')) {

    exit;
}

$env_mode = 'development' === blockera_core_env('APP_MODE', 'production');

return [
    'root_url'       => BLOCKERA_SB_URI,
    'root_path'      => BLOCKERA_SB_PATH,
    'name'           => 'blockera',
    'dashboard_page' => 'blockera-settings-dashboard',
    'dist_url'       => BLOCKERA_SB_URI . 'dist/',
    'dist_path'      => BLOCKERA_SB_PATH . 'dist/',
    'packages_url'   => BLOCKERA_SB_URI . 'packages/',
    'packages_path'  => blockera_core_env('APP_MODE', 'production') === 'development' ? BLOCKERA_SB_PATH . 'packages/' : BLOCKERA_SB_PATH . 'vendor/',
    'vendor_path'    => BLOCKERA_SB_PATH . 'vendor/',
    'version'        => defined('BLOCKERA_SB_VERSION') ? BLOCKERA_SB_VERSION : blockera_core_env('VERSION'),
    'namespaces'     => [
        'controllers' => '\Blockera\Setup\Http\Controllers\\',
    ],
    'debug'          => defined('BLOCKERA_SB_MODE') && 'development' === BLOCKERA_SB_MODE && $env_mode,
    'upgrade_url' 	 => 'https://blockera.ai/products/site-builder/upgrade/?utm_source=blockera-admin&utm_medium=referral&utm_campaign=upgrade-page&utm_content=cta-link',
    /**
     * Extendable blockera application providers by external developers.
     *
     * @since 1.0.0
     */
    'providers'      => apply_filters(
        'blockera.application.providers',
        [
            \Blockera\Admin\Providers\AdminProvider::class,
            \Blockera\Setup\Providers\EditorAssetsProvider::class,
            \Blockera\Setup\Providers\RestAPIProvider::class,
            \Blockera\Setup\Providers\AppServiceProvider::class,
			\Blockera\Editor\Providers\StyleDefinitionsProvider::class,
            \Blockera\Admin\Providers\AdminAssetsProvider::class,
        ]
    ),
];
