<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();
/** @var array $arParams */
/** @var array $arResult */
/** @global CMain $APPLICATION */
/** @global CUser $USER */
/** @global CDatabase $DB */
/** @var CBitrixComponentTemplate $this */
/** @var string $templateName */
/** @var string $templateFile */
/** @var string $templateFolder */
/** @var string $componentPath */
/** @var CBitrixComponent $component */
$this->setFrameMode(true);
?>
<? if($arResult['PROPERTIES']['CATALOG']['VALUE_XML_ID'] != ""): ?>
	<?
		$APPLICATION->IncludeComponent(
			"evolution:catalog.program",
			isset($_REQUEST['ajax']) ? "ajax" : "", 
			array_merge([
				"PAGINATION" => "Y", 
				"leasing_program" => $arResult['PROPERTIES']['CATALOG']['VALUE_XML_ID'], 
				//"section_code" => $arResult['DETAIL_PAGE_URL'], 
				"top_banners" => false, 
				"FILTER_SMALL" => [ "PROPERTY_TAXI_VALUE" => "Да" ], 
				"BRAND" => $_REQUEST['BRAND'], 
				"MODEL" => $_REQUEST['MODEL'], 
				"MODIFICATION" => $_REQUEST['MODIFICATION'], 
				"DRIVE" => $_REQUEST['DRIVE'], 
				"BODY" => $_REQUEST['BODY'], 
				"BODY_SLUG" => $_REQUEST['BODY_SLUG'], 
				"GEAR" => $_REQUEST['GEAR'], 
				"ENGINE_FUEL" => $_REQUEST['ENGINE_FUEL'], 
				"ENGINE_POWER_FROM" => $_REQUEST['ENGINE_POWER_FROM'], 
				"ENGINE_POWER_TO" => $_REQUEST['ENGINE_POWER_TO'], 
				"ENGINE_VOLUME_FROM" => $_REQUEST['ENGINE_VOLUME_FROM'], 
				"ENGINE_VOLUME_TO" => $_REQUEST['ENGINE_VOLUME_TO'], 
				"SORT" => $_REQUEST['SORT'], 
				"PATH" => $arResult['DETAIL_PAGE_URL'], 
				"PROGRAM" => $arResult['PROPERTIES']['CATALOG']['VALUE_XML_ID'], 
				"BANNERS" => $arResult['PROPERTIES']['SPECIAL_OFFERS_BANNERS']['VALUE'], 
				"OFFERS" => $arResult['PROPERTIES']['OFFERS']['~VALUE'], 
			], $arParams)
		);
	?>
<? endif; ?>
<?
//	$APPLICATION->IncludeComponent(
//		"evolution:programs.offers",
//		"",
//		Array()
//	);
?>