<?php

namespace WPQT\Asset;

if (!defined('ABSPATH')) {
    exit;
}

if (!class_exists('WPQT\Asset\AssetRepository')) {
    class AssetRepository
    {
        public static function getWPQTScriptBildAssets()
        {
            return require(WP_QUICKTASKER_PLUGIN_FOLDER_DIR . '/build/app.asset.php');
        }

        public static function getWPQTVendorScriptBildAssets()
        {
            return require(WP_QUICKTASKER_PLUGIN_FOLDER_DIR . '/build/vendors.asset.php');
        }

        public static function getWPQTScriptDependencies()
        {
            $build_asset = require(WP_QUICKTASKER_PLUGIN_FOLDER_DIR . '/build/app.asset.php');
            $dependencies = array_merge(['wp-element', 'wp-api-fetch', 'wpqt-vendors'], $build_asset['dependencies']);

            return $dependencies;
        }
    }
}
