<?php

namespace DropshippingExportFreeVendor\WPDesk\Library\DropshippingExport\Config;

use DropshippingExportFreeVendor\WPDesk\Library\DropshippingExport\Infrastructure\Config\Abstraction\AbstractSingleConfig;
class AssetsConfig extends AbstractSingleConfig
{
    const ID = 'assets';
    public function get(): array
    {
        $dir = $this->get_config()->get_param('plugin.dir')->get();
        $dir_url = $this->get_config()->get_param('plugin.dir_url')->get();
        $core_dir = $this->get_config()->get_param('plugin.core_dir')->get();
        $core_dir_url = $this->get_config()->get_param('plugin.core_dir_url')->get();
        return ['root' => \ABSPATH, 'root_url' => get_site_url(), 'dir' => $dir . 'assets/', 'dir_url' => $dir_url . 'assets/', 'core_dir' => $core_dir . 'assets/', 'core_dir_url' => $core_dir_url . 'assets/', 'css' => ['dir' => $dir . 'assets/css/', 'dir_url' => $dir_url . 'assets/css/', 'core_dir' => $core_dir . 'assets/css/', 'core_dir_url' => $core_dir_url . 'assets/css/'], 'js' => ['dir' => $dir . 'assets/js/', 'dir_url' => $dir_url . 'assets/js/', 'core_dir' => $core_dir . 'assets/js/', 'core_dir_url' => $core_dir_url . 'assets/js/'], 'img' => ['dir' => $dir . 'assets/img/', 'dir_url' => $dir_url . 'assets/img/', 'core_dir' => $core_dir . 'assets/img/', 'core_dir_url' => $core_dir_url . 'assets/img/'], 'data' => ['ceneo' => $core_dir . 'assets/data/ceneo.xml', 'nokaut' => $core_dir . 'assets/data/nokaut.xml', 'ext_ceneo_url' => 'https://developers.ceneo.pl/api/v3/kategorie', 'ext_nokaut_url' => 'https://sprzedawca.nokaut.pl/integracja/kategorie.xml']];
    }
    public function get_id(): string
    {
        return self::ID;
    }
}
