PageSourceSearch

https://www.randstad.com/themes/custom/bluex/dist/assets/components/login_popup/one_trust_customize.js?tjzuj9

js randstad.com collected 2026-09-24 07:20:01 UTC 6,302 bytes, 1 lines download raw bytes

1(()=>{function j(e){var n;if(console.log("optanon check"),console.log(e),e){let c=(((n=window.OnetrustActiveGroups)==null?void 0:n.split(","))||[]).filter(o=>o.trim());q(c,e)}}function q(e,n){let t=document.querySelectorAll("div.ot-ytube");e.includes("C0007")?t.length>0&&t.forEach(c=>{let o=c.nextElementSibling;o&&o.tagName.toLowerCase()==="iframe"&&o.classList.contains("ot-ytube")&&Array.from(c.attributes).forEach(i=>{o.setAttribute(i.name,i.value),o.classList.remove("no-link")})}):t.forEach(c=>{let o=c.nextElementSibling;o&&o.tagName.toLowerCase()==="iframe"&&o.classList.contains("ot-ytube")&&(Array.from(o.attributes).forEach(i=>{i.name!=="class"&&o.removeAttribute(i.name)}),o.setAttribute("class","ot-ytube no-link"))})}function B(){typeof Optanon!="undefined"&&typeof Optanon.ToggleInfoDisplay=="function"&&Optanon.ToggleInfoDisplay()}function M(){let e=document.querySelector(".info-show");document.querySelectorAll(".ytube-button").forEach(n=>{n.addEventListener("click",function(){let t=this.getAttribute("data-rs-video");if(!t)return;e&&(e.style.display="none"),document.querySelectorAll(".modal--media").forEach(o=>{if(o.getAttribute("data-rs-video-modal")===t){let l=o.querySelectorAll("iframe"),s=Array.from(l).some(a=>a.classList.contains("no-link"));e&&(e.style.display=s?"block":"none")}})})})}(function(e,n,t){n.behaviors.oneTrustReady={attach:function(c,o){var s,a;var i=(s=t==null?void 0:t.youtube_consent)!=null?s:0;if(i){var l=(a=t==null?void 0:t.currentLanguage)!=null?a:"en";new MutationObserver((w,y)=>{var d,f,u,r,m,x,E;if(document.getElementById("onetrust-consent-sdk")){if(j(i),M(),typeof window.OneTrust!="undefined"&&typeof window.OneTrust.OnConsentChanged=="function"){let R=(((d=window.OnetrustActiveGroups)==null?void 0:d.split(","))||[]).filter(C=>C.trim());window.OneTrust.OnConsentChanged(function(){var L;let _=(((L=window.OnetrustActiveGroups)==null?void 0:L.split(","))||[]).filter(g=>g.trim()),W=_.length;q(_,i)});let b=document.querySelector(".info-show"),I=b.querySelector(".info-ctn"),D=b.querySelector(".t-const");I.textContent=(r=(u=(f=t==null?void 0:t.youtube_custom_text)==null?void 0:f[l])==null?void 0:u.consent_alert_text)!=null?r:"",D.textContent=(E=(x=(m=t==null?void 0:t.youtube_custom_text)==null?void 0:m[l])==null?void 0:x.consent_link_text)!=null?E:"",e(".info-show .t-const").click(function(){B(),b.style.display="none"}),e(".info-show .x-close").click(function(){b.style.display="none",document.querySelector(".modal.modal--media.modal--active button.modal__close").click()})}y.disconnect()}}).observe(document.body,{childList:!0,subtree:!0})}}}})(jQuery,Drupal,drupalSettings);function G(){return typeof window.OnetrustActiveGroups!="string"||window.OnetrustActiveGroups===""?!1:window.OnetrustActiveGroups.split(",").includes("C0003")}function A(e){!e||e.dataset.loaded==="true"||(e.querySelectorAll("script[data-config]").forEach(n=>{let t=document.createElement("script");t.text=n.textContent,t.setAttribute("data-injected","true"),e.appendChild(t)}),e.querySelectorAll("script[data-src]").forEach(n=>{let t=document.createElement("script");t.src=n.textContent.trim(),t.async=!0,t.setAttribute("data-injected","true"),e.appendChild(t)}),e.dataset.loaded="true")}function P(e){!e||(e.querySelectorAll("script[data-injected='true']").forEach(n=>n.remove()),delete e.dataset.loaded)}function v(){let e=document.querySelectorAll(".calculator-wrapper, .cost-saving-calculator-wrapper");if(!e.length)return;let n=!!(drupalSettings==null?void 0:drupalSettings.functional_consent),t=G();k(),e.forEach(c=>{let o=c.querySelector("[data-calculator]");if(!n){c.classList.remove("functional-blocked"),o&&A(o);return}t?(c.classList.remove("functional-blocked"),o&&A(o)):(c.classList.add("functional-blocked"),o&&(A(o),P(o)))})}function Y(){let e=document.querySelectorAll(".calculator-overlay");!e.length||e.forEach(n=>{n.dataset.boundClick!=="true"&&(n.addEventListener("click",t=>{if(!G()){t.preventDefault(),t.stopPropagation();let c=n.closest(".calculator-wrapper, .cost-saving-calculator-wrapper");if(c){let o=c.querySelector(".info-show-cal");o&&F(o)}}}),n.dataset.boundClick="true")})}function F(e){!e||(e.classList.add("is-visible"),e.setAttribute("aria-hidden","false"),N())}function k(e){e?(e.classList.remove("is-visible"),e.setAttribute("aria-hidden","true"),T()):(document.querySelectorAll(".info-show-cal").forEach(n=>
1{n.classList.remove("is-visible"),n.setAttribute("aria-hidden","true")}),T())}var O=0;function N(){O=window.scrollY||window.pageYOffset,document.documentElement.classList.add("no-scroll"),document.body.classList.add("no-scroll"),document.body.style.position="fixed",document.body.style.top=`-${O}px`,document.body.style.width="100%"}function T(){document.documentElement.classList.remove("no-scroll"),document.body.classList.remove("no-scroll"),document.body.style.position="",document.body.style.top="",document.body.style.width="",window.scrollTo(0,O)}(function(e,n,t){window.OptanonWrapper=function(){var c;v(),((c=window.OneTrust)==null?void 0:c.OnConsentChanged)&&window.OneTrust.OnConsentChanged(function(){v()})},n.behaviors.oneTrustFunctionalReady={attach(){var l;if(!((l=t==null?void 0:t.functional_consent)!=null?l:0))return;v(),document.querySelectorAll(".info-show-cal").forEach(s=>{var a,h,w,y,p,d,f;if(!s.dataset.textApplied){let u=(a=t==null?void 0:t.currentLanguage)!=null?a:"en",r=s.querySelector(".info-ctn-cal"),m=s.querySelector(".t-const-cal");r&&(r.textContent=(y=(w=(h=t==null?void 0:t.functional_custom_text)==null?void 0:h[u])==null?void 0:w.functional_consent_alert_text)!=null?y:"This content cannot be loaded. Please accept the necessary cookie consent to proceed."),m&&(m.textContent=(f=(d=(p=t==null?void 0:t.functional_custom_text)==null?void 0:p[u])==null?void 0:d.functional_consent_link_text)!=null?f:"Open Cookie Setting"),s.dataset.textApplied="true"}s.dataset.bound||(e(s).find(".t-const-cal").on("click",function(u){var r;u.preventDefault(),(r=window.Optanon)==null||r.ToggleInfoDisplay(),k(s)}),e(s).find(".x-close-cal").on("click",function(){k(s)}),s.dataset.bound="true")}),Y();let i=new MutationObserver(()=>{!document.getElementById("onetrust-consent-sdk")||(v(),i.disconnect())});i.observe(document.body,{childList:!0,subtree:!0})}}})(jQuery,Drupal,drupalSettings);})();

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.