<xf:set var="$extraKeysInput"><xf:macro id="option_macros::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="HCaptcha" data-hide="true">
		<xf:label>{{ phrase('use_hcaptcha') }}</xf:label>
		<xf:hint>{{ phrase('hcaptcha_config_hint') }}</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="Turnstile" data-hide="true">
		<xf:label>{{ phrase('use_cloudflare_turnstile') }}</xf:label>
		<xf:hint>{{ phrase('turnstile_config_hint') }}</xf:hint>
		<xf:dependent>
			<div>{{ phrase('site_key:') }}</div>
			<xf:textbox name="{$extraKeysInput}[turnstileSiteKey]" value="{$xf.options.extraCaptchaKeys.turnstileSiteKey}" />
		</xf:dependent>
		<xf:dependent>
			<div>{{ phrase('secret_key:') }}</div>
			<xf:textbox name="{$extraKeysInput}[turnstileSecretKey]" value="{$xf.options.extraCaptchaKeys.turnstileSecretKey}" />
		</xf:dependent>
	</xf:option>

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

	<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="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: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 id="option_macros::listed_html" arg-id="extraCaptchaKeys" />
	</xf:html>
</xf:radiorow>