<?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);
?>
<select id="<?= $arParams['ID']; ?>" class="regions_select">
	<option value="">Все регионы</option>
	<? $c = 0; ?>
	<? foreach($arResult['REGIONS'] AS $region): ?>
		<option value="<?= $region['ID']; ?>" <?= $c === 0 ? "selected" : ""; ?> data-geo="<?= $region['PROPERTIES']['GEO']['VALUE']; ?>" data-zoom="<?= $region['PROPERTIES']['ZOOM']['VALUE']; ?>"><?= $region['NAME']; ?></option>
		<? $c++; ?>
	<? endforeach; ?>
</select>