<?php
/**
 * @package DJ-Catalog2-Yootheme
 * @copyright Copyright (C) DJ-Extensions.com, All rights reserved.
 * @license http://www.gnu.org/licenses GNU/GPL
 * @author url: http://dj-extensions.com
 * @author email contact@dj-extensions.com
 */

namespace DJExtensions\DJCatalog2\YOOtheme\Config;
defined('_JEXEC') or die;
use YOOtheme\Builder;
use YOOtheme\Path;
use DJExtensions\DJCatalog2\YOOtheme\Config\FormTransform;
use DJExtensions\DJCatalog2\YOOtheme\Config\ExtraFieldsController;
return [
	'routes' =>[
		['get','/djc2filters/extrafields' , ExtraFieldsController::class . '@getExtraField']
	],
	'theme' => [
		'styles' => [
			'components' => [
				"djc_checkout" => Path::get('./assets/less/djc_checkout.less'),
				"djc_modal" => Path::get("./assets/less/djc_modal.less"),
				"djc_product" => Path::get("./assets/less/djc_product.less"),
				"djc_labels" => Path::get('./assets/less/djc_labels.less'),
				"djc_products_list" => Path::get('./assets/less/djc_products_list.less'),
				"djc_cart" => Path::get('./assets/less/djc_cart.less'),
				"djc_price" => Path::get('./assets/less/djc_price.less'),
				"djc_contact_form" => Path::get('./assets/less/djc_contact_form.less'),
			]
		]
	],
	'events' => [
		'customizer.init' => [
			ConfigListener::class => ['initCustomizer', -10],
		],
		'builder.type' => [
			ConfigListener::class => ['addFormPanel', -10]
		],

	],
	'extend' => [
		Builder::class => function (Builder $builder){
			$builder->addTransform('prerender', new FormTransform);
		}
	]

];
