PageSourceSearch

https://www.randstad.pt/scripts/pt/captcha.js

js randstad.pt collected 2026-10-02 04:25:58 UTC 3,588 bytes, 1 lines download raw bytes

1(function(){const a={scriptSrc:"https://www.google.com/recaptcha/api.js",isReady:function(){return"undefined"!=typeof window.grecaptcha},render:function(a,b,c,d){window&&window.grecaptcha&&window.grecaptcha.ready(async function(){if(!b.has(a)){const e=document.querySelector(`[data-captcha-widget-id='${a}']`);try{const f=window.grecaptcha.render(e,{sitekey:d,callback:function(b){c.set(a,b),e&&e.dataset&&"invisible"===e.dataset.size&&"cms_captcha"===a&&document.dispatchEvent(new CustomEvent("invisible_recaptcha_was_solved"))},"expired-callback":function(){c.delete(a)},"error-callback":function(){c.delete(a)}});b.set(a,f)}catch(a){if(a.message&&!a.message.includes("reCAPTCHA has already been rendered in this element"))throw a}}})},reset:function(a){window&&window.grecaptcha&&window.grecaptcha.hasOwnProperty("reset")&&window.grecaptcha.reset(a)},execute:function(a){window&&window.grecaptcha&&window.grecaptcha.hasOwnProperty("execute")&&window.grecaptcha.execute(a)}},b={scriptSrc:"https://cdn.jsdelivr.net/npm/friendly-challenge/widget.min.js",isReady:function(){return"undefined"!=typeof window.friendlyChallenge},render:function(a,b,c,d){const e=document.querySelector(`[data-captcha-widget-id='${a}']`);e&&(e.classList.add("bluex-friendly-captcha"),window[`friendly-${a}`]=function(b){c.set(a,b)},!b.has(a)&&b.set(a,new window.friendlyChallenge.WidgetInstance(e,{doneCallback:window[`friendly-${a}`],sitekey:d})))},reset:function(a){a&&"function"==typeof a.reset&&a.reset()},execute:function(){console.log("Friendly challenge do not support execute method.")}};window.captcha=function(){function c(a,b,c="google_recaptcha"){if(!b)return void console.error("siteKey is not set!");if("friendly_challenge"!==c&&"google_recaptcha"!==c)return void console.error(`Invalid captchaType provided: ${c}`);if(n=m[c],h.has(a)&&(f(a),j.delete(a),h.delete(a)),!l.has(a)){const c=Promise.all([d(n),e(a)]).then(function(){!n||h.has(a)||(n.render(a,j,i,b),h.set(a,!0))}).catch(function(b){console.error(`Captcha initialization failed for ${a}`,b)}).finally(function(){l.delete(a)});l.set(a,c)}}function d(a){const b=a.scriptSrc,c=a.isReady;if(c())return Promise.resolve();if(k.has(b))return k.get(b);const d=Array.from(document.scripts).find(function(a){return a.src===b||a.getAttribute("src")===b}),e=new Promise(function(a,e){const f=function(){c()?a():e(new Error(`Captcha SDK loaded without exposing its global: ${b}`))},g=function(){e(new Error(`Unable to load captcha SDK: ${b}`))};if(d)return d.addEventListener("load",f,{once:!0}),d.addEventListener("error",g,{once:!0}),void(c()&&f());const h=document.createElement("script");h.src=b,h.async=!0,h.addEventListener("load",f,{once:!0}),h.addEventListener("error",g,{once:!0}),document.head.appendChild(h)});return k.set(b,e),e.catch(function(){k.get(b)===e&&k.delete(b)}),e}function e(a){const b=document.querySelector(`[data-captcha-widget-id='${a}']`);return b&&b.isConnected?Promise.resolve(b):new Promise(function(b,c){if(!document.body)return void c(new Error(`Captcha container is unavailable: ${a}`));const d=new MutationObserver(function(){const c=document.querySelector(`[data-captcha-widget-id='${a}']`);c&&c.isConnected&&(d.disconnect(),b(c))});d.observe(document.body,{childList:!0,subtree:!0})})}function f(a){n&&n.hasOwnProperty("reset")&&(n.reset(j.get(a)),i.delete(a))}function g(a){n&&n.hasOwnProperty("execute")&&n.execute(j.get(a))}const h=new Map,i=new Map,j=new Map,k=new Map,l=new Map,m={google_recaptcha:a,friendly_challenge:b};let n;return{init:c,getToken:function(a){return i.get(a)},reset:f,execute:g}}()})();

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.