PageSourceSearch

https://www.rivercanalrescue.co.uk/wp-content/plugins/extensions-f…/js/recaptcha-handler.min.js?ver=2.7.8

js rivercanalrescue.co.uk collected 2026-09-24 20:14:21 UTC 3,228 bytes, 1 lines download raw bytes

1class ReCaptchaHandler extends elementorModules.frontend.handlers.Base{getDefaultSettings(){return{selectors:{recaptcha:".cool-form-recaptcha",submit:'button[type="submit"]',recaptchaResponse:'[name="g-recaptcha-response"]'}}}getDefaultElements(){const{selectors:e}=this.getDefaultSettings(),t={$recaptcha:this.$element.find(e.recaptcha)};return t.$form=t.$recaptcha.parents("form"),t.$submit=t.$form.find(e.submit),t}bindEvents(){this.onRecaptchaApiReady()}isActive(e){const{selectors:t}=this.getDefaultSettings();return e.$element.find(t.recaptcha).length}addRecaptcha(){const e=this.elements.$recaptcha.data(),t="v3"!==e.recaptchaVersion,a=[];a.forEach(e=>window.grecaptcha.reset(e));const o=window.grecaptcha.render(this.elements.$recaptcha[0],e);if(this.elements.$form.on("reset error",()=>{if(window.grecaptcha.reset(o),"compact"==e.size){let e=document.querySelector(".cool-form-recaptcha div");e.style.width="310px"}else if("v3"==e.recaptchaVersion&&"inline"==e.badge||"v3"==e.type&&"inline"==e.badge){let e=document.querySelector(".cool-form-recaptcha div");e.style.width="300px",e.style.boxShadow="none"}else if("v3"==e.recaptchaVersion&&"bottomleft"==e.badge||"v3"==e.type&&"bottomleft"==e.badge){let e=document.querySelector(".cool-form-recaptcha div");e.style.left="0px",e.style.width="300px",e.style.boxShadow="none"}else if("v3"==e.recaptchaVersion&&"bottomright"==e.badge||"v3"==e.type&&"bottomright"==e.badge){let e=document.querySelector(".cool-form-recaptcha div");e.style.right="0px",e.style.boxShadow="none"}}),t?this.elements.$recaptcha.data("widgetId",o):(a.push(o),this.elements.$submit.on("click",e=>this.onV3FormSubmit(e,o))),"compact"==e.size){let e=document.querySelector(".cool-form-recaptcha div");e.style.width="310px"}else if("v3"==e.recaptchaVersion&&"inline"==e.badge||"v3"==e.type&&"inline"==e.badge){let e=document.querySelector(".cool-form-recaptcha div");e.style.width="300px",e.style.boxShadow="none"}else if("v3"==e.recaptchaVersion&&"bottomleft"==e.badge||"v3"==e.type&&"bottomleft"==e.badge){let e=document.querySelector(".cool-form-recaptcha div");e.style.left="0px",e.style.width="300px",e.style.boxShadow="none"}else if("v3"==e.recaptchaVersion&&"bottomright"==e.badge||"v3"==e.type&&"bottomright"==e.badge){let e=document.querySelector(".cool-form-recaptcha div");e.style.right="0px",e.style.boxShadow="none"}}onV3FormSubmit(e,t){e.preventDefault(),window.grecaptcha.ready(()=>{const e=this.elements.$form;grecaptcha.execute(t,{action:this.elements.$recaptcha.data("action")}).then(t=>{this.elements.$recaptchaResponse?this.elements.$recaptchaResponse.val(t):(this.elements.$recaptchaResponse=jQuery("<input>",{type:"hidden",value:t,name:"g-recaptcha-response"}),e.append(this.elements.$recaptchaResponse));const a=!e[0].reportValidity||"function"!=typeof e[0].reportValidity;(a||e[0].reportValidity())&&e.trigger("submit")})})}onRecaptchaApiReady(){window.grecaptcha&&window.grecaptcha.render?this.addRecaptcha():setTimeout(()=>this.onRecaptchaApiReady(),350)}}jQuery(window).on("elementor/frontend/init",()=>{const e=e=>{elementorFrontend.elementsHandler.addHandler(ReCaptchaHandler,{$element:e})};elementorFrontend.hooks.addAction("frontend/element_ready/cool-form.default",e)});

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.