var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); ( function ( $ ) { $( window ).on( 'load', function() { let doingAjax = false; if ( window.gform ) { window.gform.addAction( 'gform_input_change', function( elem, formId, fieldId ) { if ( doingAjax ) { return; } const $form = $( '#gform_' + formId ); if ( $form && $form.length ) { const $recaptchaPlaceholder = $form.find( '.js-kaspersky-gform-recaptcha-placeholder' ); if ( ! $recaptchaPlaceholder || ! $recaptchaPlaceholder.length ) { return; } const formClasses = $form.closest( '.gform_wrapper' ).attr( 'class' ).split( ' ' ); let fakeId = ''; if ( formClasses ) { formClasses.forEach( function( cssClass ) { if ( cssClass.includes( 'gform_wrapper_original_id_' ) ) { fakeId = parseInt( cssClass.replace( 'gform_wrapper_original_id_', '' ), 10 ); } } ); } if ( fakeId ) { formId = fakeId; } $.ajax( { url: window.kasperskyDynamicaReCaptchaData.ajaxUrl, method: 'get', data: { action: 'kaspersky_gform_dynamic_recaptcha', formId: formId, }, beforeSend: function() { doingAjax = true; }, success: function( data ) { let prevId = $recaptchaPlaceholder.attr( 'id' ); $recaptchaPlaceholder.replaceWith( data.success ); const $recaptcha = $( '.ginput_recaptcha' ); if ( ! $recaptcha || ! $recaptcha.length ) { return; } $recaptcha.closest( '.gfield' ).attr( 'id', prevId ); const parameters = { 'sitekey': $recaptcha.data( 'sitekey' ), 'theme': $recaptcha.data( 'theme' ), 'tabindex': $recaptcha.data( 'tabindex' ) }; $recaptcha.data( 'widget-id', grecaptcha.render( $recaptcha[0], parameters ) ); if ( parameters.tabindex ) { $recaptcha.find( 'iframe' ).attr( 'tabindex', parameters.tabindex ); } doingAjax = false; }, error: function() { doingAjax = false; } } ); } }, 10, 3 ); } $(document).on('gform_post_render', function(event, formId){ const $form = $( '#gform_' + formId ); if ( $form && $form.length ) { const $recaptcha = $form.find( '.ginput_recaptcha' ); if ( ! $recaptcha || ! $recaptcha.length ) { return; } const parameters = { 'sitekey': $recaptcha.data( 'sitekey' ), 'theme': $recaptcha.data( 'theme' ), 'tabindex': $recaptcha.data( 'tabindex' ) }; $recaptcha.data( 'widget-id', grecaptcha.render( $recaptcha[0], parameters ) ); if ( parameters.tabindex ) { $recaptcha.find( 'iframe' ).attr( 'tabindex', parameters.tabindex ); } } }); } ); }(jQuery)); } /* FILE ARCHIVED ON 10:11:54 Sep 02, 2021 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 09:14:55 Nov 18, 2024. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ /* playback timings (ms): captures_list: 0.916 exclusion.robots: 0.041 exclusion.robots.policy: 0.024 esindex: 0.014 cdx.remote: 9.266 LoadShardBlock: 95.649 (3) PetaboxLoader3.datanode: 91.29 (5) PetaboxLoader3.resolve: 103.718 (2) load_resource: 138.53 loaddict: 46.493 */