+ {/* Enable toggle */}
+
+
+
{t('admin.paymentMethods.methodEnabled', 'Метод включён')}
+ {!config.is_provider_configured && (
+
{t('admin.paymentMethods.providerNotConfigured', 'Провайдер не настроен в env')}
+ )}
+
+
+
+
+ {/* Display name */}
+
+
+
setCustomName(e.target.value)}
+ placeholder={config.default_display_name}
+ className="w-full px-4 py-2.5 rounded-xl bg-dark-900/50 border border-dark-700 text-dark-100 placeholder:text-dark-500 focus:outline-none focus:border-accent-500/50 transition-colors"
+ />
+
+ {t('admin.paymentMethods.displayNameHint', 'Оставьте пустым для имени по умолчанию')}: {config.default_display_name}
+
+
+
+ {/* Sub-options */}
+ {config.available_sub_options && config.available_sub_options.length > 0 && (
+
+
+
+ {config.available_sub_options.map(opt => {
+ const enabled = subOptions[opt.id] !== false
+ return (
+
+ )
+ })}
+
+
+ )}
+
+ {/* Min/Max amounts */}
+
+
+ {/* Display conditions */}
+
+
+ {t('admin.paymentMethods.conditions', 'Условия отображения')}
+
+
+ {/* User type filter */}
+
+
+
+ {(['all', 'telegram', 'email'] as const).map(val => (
+
+ ))}
+
+
+
+ {/* First topup filter */}
+
+
+
+ {(['any', 'yes', 'no'] as const).map(val => (
+
+ ))}
+
+
+
+ {/* Promo groups filter */}
+
+
+
+ {(['all', 'selected'] as const).map(val => (
+
+ ))}
+
+
+ {promoGroupFilterMode === 'selected' && (
+
+ {promoGroups.length === 0 ? (
+
+ {t('admin.paymentMethods.noPromoGroups', 'Нет промо-групп')}
+
+ ) : (
+ promoGroups.map(group => {
+ const selected = selectedPromoGroupIds.includes(group.id)
+ return (
+
+ )
+ })
+ )}
+
+ )}
+
+
+