<?php
/* Smarty version 4.5.3, created on 2025-02-06 20:37:14
  from '/home/w/wmaster77/corp.site-77.ru/public_html/design/default/html/system/captcha.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '4.5.3',
  'unifunc' => 'content_67a4f34a6a7771_11512482',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '8c3c80af6f9bb516e7eedf816bfa0caf4cfcbb42' => 
    array (
      0 => '/home/w/wmaster77/corp.site-77.ru/public_html/design/default/html/system/captcha.tpl',
      1 => 1730230961,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_67a4f34a6a7771_11512482 (Smarty_Internal_Template $_smarty_tpl) {
if ($_smarty_tpl->tpl_vars['settings']->value->site_key) {?>
<style>.grecaptcha-badge { visibility: hidden; }</style>
<?php echo '<script'; ?>
 src="https://www.google.com/recaptcha/api.js?render=<?php echo $_smarty_tpl->tpl_vars['settings']->value->site_key;?>
"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
>
    grecaptcha.ready(function() {
        grecaptcha.execute('<?php echo $_smarty_tpl->tpl_vars['settings']->value->site_key;?>
', { action: 'submit' }).then(function(token) {
            grecaptcha.value = token;
            $("form").find("input[name='recaptcha_response']").val(token);
        });
    });
<?php echo '</script'; ?>
>
<?php }
}
}
