<xf:set var="$extraKeysInput"><xf:macro template="option_macros" name="input_name" arg-id="extraCaptchaKeys" /></xf:set>
<xf:radiorow name="{$inputName}" value="{$option.option_value}"
	label="{$option.title}"
	hint="{$hintHtml}"
	explain="{$explainHtml}"
	rowclass="{$rowClass}">

	<xf:option value="">{{ phrase('none') }}</xf:option>

	<!--[XF:captcha_after_none]-->

	<xf:option value="ReCaptcha" data-hide="true">
		<xf:label>{{ phrase('use_recaptcha') }}</xf:label>
		<xf:hint>{{ phrase('recaptcha_config_hint') }}</xf:hint>
		<xf:dependent>
			<div>{{ phrase('site_key:') }}</div>
			<xf:textbox name="{$extraKeysInput}[reCaptchaSiteKey]" value="{$xf.options.extraCaptchaKeys.reCaptchaSiteKey}" />
		</xf:dependent>
		<xf:dependent>
			<div>{{ phrase('secret_key:') }}</div>
			<xf:textbox name="{$extraKeysInput}[reCaptchaSecretKey]" value="{$xf.options.extraCaptchaKeys.reCaptchaSecretKey}" />
		</xf:dependent>
		<xf:dependent>
			<xf:checkbox>
				<xf:option name="{$extraKeysInput}[reCaptchaInvisible]" selected="{$xf.options.extraCaptchaKeys.reCaptchaInvisible}">{{ phrase('use_invisible_recaptcha') }}</xf:option>
			</xf:checkbox>
		</xf:dependent>
	</xf:option>

	<!--[XF:captcha_after_recaptcha]-->

	<xf:option value="HCaptcha" data-hide="true">
		<xf:label>{{ phrase('use_hcaptcha') }}</xf:label>
		<xf:hint><a href="https://dashboard.hcaptcha.com/" target="_blank">https://dashboard.hcaptcha.com/</a></xf:hint>
		<xf:dependent>
			<div>{{ phrase('site_key:') }}</div>
			<xf:textbox name="{$extraKeysInput}[hCaptchaSiteKey]" value="{$xf.options.extraCaptchaKeys.hCaptchaSiteKey}" />
		</xf:dependent>
		<xf:dependent>
			<div>{{ phrase('secret_key:') }}</div>
			<xf:textbox name="{$extraKeysInput}[hCaptchaSecretKey]" value="{$xf.options.extraCaptchaKeys.hCaptchaSecretKey}" />
		</xf:dependent>
		<xf:dependent>
			<xf:checkbox>
				<xf:option name="{$extraKeysInput}[hCaptchaInvisible]" selected="{$xf.options.extraCaptchaKeys.hCaptchaInvisible}">{{ phrase('use_invisible_hcaptcha') }}</xf:option>
			</xf:checkbox>
		</xf:dependent>
	</xf:option>

	<!--[XF:captcha_after_hcaptcha]-->

	<xf:option value="Question">
		<xf:label>{{ phrase('use_question_captcha') }}</xf:label>
		<xf:hint><a href="{{ link('captcha-questions') }}">{{ phrase('define_your_questions') }}</a></xf:hint>
	</xf:option>
	<xf:option value="TextCaptcha" data-hide="true">
		<xf:label>{{ phrase('use_textcaptcha') }}</xf:label>
		<xf:hint><a href="https://textcaptcha.com/" target="_blank">https://textcaptcha.com/</a></xf:hint>
		<xf:dependent>
			<div>{{ phrase('api_key:') }}</div>
			<xf:textbox name="{$extraKeysInput}[textCaptchaApiKey]" value="{$xf.options.extraCaptchaKeys.textCaptchaApiKey}" />
		</xf:dependent>
	</xf:option>

	<!--[XF:captcha_after_question]-->

	<xf:option value="SolveMedia" data-hide="true">
		<xf:label>{{ phrase('use_solve_media') }}</xf:label>
		<xf:hint><a href="https://www.solvemedia.com/" target="_blank">https://www.solvemedia.com/</a></xf:hint>
		<xf:dependent>
			<div>{{ phrase('challenge_key:') }}</div>
			<xf:textbox name="{$extraKeysInput}[solveMediaCKey]" value="{$xf.options.extraCaptchaKeys.solveMediaCKey}" />
		</xf:dependent>
		<xf:dependent>
			<div>{{ phrase('verification_key:') }}</div>
			<xf:textbox name="{$extraKeysInput}[solveMediaVKey]" value="{$xf.options.extraCaptchaKeys.solveMediaVKey}" />
		</xf:dependent>
	</xf:option>

	<!--[XF:captcha_after_solvemedia]-->

	<xf:option value="KeyCaptcha" data-hide="true">
		<xf:label>{{ phrase('use_keycaptcha') }}</xf:label>
		<xf:hint><a href="https://www.keycaptcha.com/" target="_blank">https://www.keycaptcha.com/</a></xf:hint>
		<xf:dependent>
			<div>{{ phrase('user_id:') }}</div>
			<xf:textbox name="{$extraKeysInput}[keyCaptchaUserId]" value="{$xf.options.extraCaptchaKeys.keyCaptchaUserId}" />
		</xf:dependent>
		<xf:dependent>
			<div>{{ phrase('private_key:') }}</div>
			<xf:textbox name="{$extraKeysInput}[keyCaptchaPrivateKey]" value="{$xf.options.extraCaptchaKeys.keyCaptchaPrivateKey}" />
		</xf:dependent>
	</xf:option>

	<!--[XF:captcha_after_keycaptcha]-->

	<xf:html>
		{$listedHtml}
		<xf:macro template="option_macros" name="listed_html" arg-id="extraCaptchaKeys" />
	</xf:html>
</xf:radiorow>