<?php if ( $type !== false && $type == 'v3' ):?>
    <?php wp_enqueue_script( 'ihc-login-captcha-google', 'https://www.google.com/recaptcha/api.js?render=' . $key, ['jquery'], 10.1 );?>
    <?php wp_enqueue_script( 'ihc-login-captcha', IHC_URL . 'assets/js/captcha.js', [], 1.1 );?>
    <div class="js-ump-recaptcha-v3-item"></div>
    <span class="ihc-js-recaptcha-v3-key" data-value="<?php echo esc_attr($key);?>"></span>
<?php else :?>
    <?php wp_enqueue_script( 'ihc-login-captcha-google', 'https://www.google.com/recaptcha/api.js?hl=' . $langCode, ['jquery'], 10.1 );?>
    <div class="g-recaptcha-wrapper" class="<?php echo esc_attr($class);?>">
        <div class="g-recaptcha" data-sitekey="<?php echo esc_attr($key);?>"></div>
    </div>
<?php endif;?>
