<?php if ( $type !== false && $type == 'v3' ):?>
    <?php wp_enqueue_script( 'ihc-login-captcha-google', 'https://www.google.com/recaptcha/api.js?render=' . $key, [], 1.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 $key;?>"></span>
<?php else :?>
    <?php wp_enqueue_script( 'ihc-login-captcha-google', 'https://www.google.com/recaptcha/api.js?hl=' . $langCode, [], 1.1 );?>
    <div class="g-recaptcha-wrapper" class="<?php echo $class;?>">
        <div class="g-recaptcha" data-sitekey="<?php echo $key;?>"></div>
    </div>
<?php endif;?>
