PageSourceSearch

https://turk3.org/js/google-recaptcha.min.js

js turk3.org collected 2026-09-29 21:36:44 UTC 3,856 bytes, 7 lines download raw bytes

1(function(){'use strict';var registry={ids:ko.observableArray([]),captchaList:ko.observableArray([]),tokenFields:ko.observableArray([])},reCaptchaLoader,nonInlineReCaptchaRenderer;reCaptchaLoader={scriptTagAdded:false,addReCaptchaScriptTag:function(){var element,scriptTag;if(this.scriptTagAdded){return;}
2element=document.createElement('script');scriptTag=document.getElementsByTagName('script')[0];element.async=true;element.src='https://www.google.com/recaptcha/api.js'+'?onload=globalOnRecaptchaOnLoadCallback&render=explicit';scriptTag.parentNode.insertBefore(element,scriptTag);this.scriptTagAdded=true;}};nonInlineReCaptchaRenderer={initialized:false,reCaptchaEntities:[],rendererRecaptchaId:'recaptcha-invisible',rendererReCaptcha:null,add:function(reCaptchaEntity,parameters){if(!this.initialized){this.init();grecaptcha.render(this.rendererRecaptchaId,parameters);setInterval(this.resolveVisibility.bind(this),100);this.initialized=true;}
3this.reCaptchaEntities.push(reCaptchaEntity);},resolveVisibility:function(){this.reCaptchaEntities.some(function(entity){return entity.is(':visible')&&(entity.closest('[data-role=\'modal\']').length===0||entity.zIndex()>900);})?this.rendererReCaptcha.show():this.rendererReCaptcha.hide();},init:function(){this.rendererReCaptcha=$('<div>').attr('id',this.rendererRecaptchaId);this.rendererReCaptcha.hide();$('body').append(this.rendererReCaptcha);}};$.view('googleRecaptcha',{component:'Magento_ReCaptchaFrontendUi/js/reCaptcha',defaults:{template:'Magento_ReCaptchaFrontendUi/reCaptcha',reCaptchaId:'recaptcha'},create:function(){this._loadApi();},_loadApi:function(){if(this._isApiRegistered!==undefined){if(this._isApiRegistered===true){$(window).trigger('recaptchaapiready');}
4return;}
5this._isApiRegistered=false;window.globalOnRecaptchaOnLoadCallback=function(){this._isApiRegistered=true;$(window).trigger('recaptchaapiready');}.bind(this);reCaptchaLoader.addReCaptchaScriptTag();},getIsInvisibleRecaptcha:function(){return this.settings.invisible;},reCaptchaCallback:function(token){if(this.getIsInvisibleRecaptcha()){this.tokenField.value=token;this.$parentForm.submit();}},initCaptcha:function(){var $parentForm,$wrapper,$reCaptcha,widgetId,parameters;if(this.captchaInitialized){return;}
6this.captchaInitialized=true;$wrapper=$('#'+this.getReCaptchaId()+'-wrapper');$reCaptcha=$wrapper.find('.g-recaptcha');$reCaptcha.attr('id',this.getReCaptchaId());$parentForm=$wrapper.parents('form');parameters=_.extend({'callback':function(token){this.reCaptchaCallback(token);this.validateReCaptcha(true);}.bind(this),'expired-callback':function(){this.validateReCaptcha(false);}.bind(this)},this.settings.rendering);if(parameters.size==='invisible'&&parameters.badge!=='inline'){nonInlineReCaptchaRenderer.add($reCaptcha,parameters);}
7widgetId=grecaptcha.render(this.getReCaptchaId(),parameters);this.initParentForm($parentForm,widgetId);registry.ids.push(this.getReCaptchaId());registry.captchaList.push(widgetId);registry.tokenFields.push(this.tokenField);},initParentForm:function(parentForm,widgetId){if(this.getIsInvisibleRecaptcha()&&parentForm.length>0){parentForm.on('submit',function(event){if(!this.tokenField.value){grecaptcha.execute(widgetId);event.preventDefault(event);event.stopImmediatePropagation();}}.bind(this));this.tokenField=$('<input type="text" name="token" style="display: none" />')[0];this.$parentForm=parentForm;parentForm.append(this.tokenField);}else{this.tokenField=null;}},validateReCaptcha:function(state){if(!this.getIsInvisibleRecaptcha()){return $(document).find('input[type=checkbox].required-captcha').prop('checked',state);}},renderReCaptcha:function(){if(window.grecaptcha&&window.grecaptcha.render){this.initCaptcha();}else{$(window).on('recaptchaapiready',function(){this.initCaptcha();}.bind(this));}},getReCaptchaId:function(){return this.reCaptchaId;}});})();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.