PageSourceSearch

https://www.randstad.it/themes/custom/bluex/dist/assets/components/login_popup/login_popup_mega_menu.js?v=1.x

js randstad.it collected 2026-10-02 02:40:24 UTC 16,711 bytes, 142 lines download raw bytes

1(()=>{function l(i,n,v){var m;var y=window.drupalSettings.currentLanguage,p=window.drupalSettings.defaultLanguage;if(!window.drupalSettings.mrnd_login_routes||!window.drupalSettings.mrnd_login_routes[y])return"/#";if(i==="popup"&&((m=window.drupalSettings.login_popover_settings)==null?void 0:m[`${n}_url`]))return window.drupalSettings.login_popover_settings[`${n}_url`];var g=window.drupalSettings.mrnd_login_routes[window.drupalSettings.currentLanguage][i];for(var b in g)if(g.hasOwnProperty(b)){var u=g[b];if(u.id===n&&!v&&y!==p)return"/"+y+u.url;if(u.id===n&&!v)return u.url;if(u.id===n&&v)return u.title}}function d(i){return!window.drupalSettings.mrnd_translations||!window.drupalSettings.mrnd_translations[window.drupalSettings.currentLanguage]||!window.drupalSettings.mrnd_translations[window.drupalSettings.currentLanguage][i]?i:window.drupalSettings.mrnd_translations[window.drupalSettings.currentLanguage][i]}function C(i){var v,y;let n=document.querySelector('[data-rel-component="navigation"]');if(i){let p=n.querySelector("[data-rel-myrandstad-trigger]"),g=n.querySelector("[data-rel-myrandstad-trigger] > span:first-child"),b=n.querySelector("[data-rel-myrandstad-trigger] > span:last-child"),u=n.querySelector("[data-rel-myrandstad-trigger] ~ a");g.setAttribute("aria-hidden","true"),p.classList.add("rel_c_megamenu__myenv-btn"),g.className="rel_inline-flex rel_flex-shrink-0 rel_items-center rel_justify-center rel_text-link-xs rel_text-on-bg-default-subtle",g.innerHTML='<span class="rel_inline-flex rel_size-6 rel_items-center rel_justify-center rel_rounded-full rel_bg-container-3">'+((v=i.charAt(0))==null?void 0:v.toUpperCase())+"</span>",b.className="rel_ml-2 rel_items-center rel_whitespace-nowrap rel_p-2 group-hover:rel_text-on-bg-default-default group-hover:rel_underline group-active:rel_no-underline lg:rel_inline-flex lg:rel_items-center lg:rel_gap-x-2 lg:rel_p-0",b.innerHTML=i,u&&(u.className="rel_inline-flex rel_items-center rel_p-1 rel_no-underline hover:rel_no-underline lg:rel_hidden",u.setAttribute("aria-label",i),u.innerHTML='<span class="rel_inline-flex rel_size-6 rel_items-center rel_justify-center rel_rounded-full rel_bg-container-3 rel_text-paragraph-xs rel_text-on-bg-default-subtle" aria-hidden="true">'+((y=i.charAt(0))==null?void 0:y.toUpperCase())+"</span>")}}function x(){let i=document.querySelector('[data-rel-component="navigation"]');if(window.relNavFavoritesCounter!==null&&window.relNavFavoritesCounter>-1){let n=i.querySelector("[data-rel-saved-jobs] > a > span ~ span");n.innerHTML=window.relNavFavoritesCounter}}var s=i=>typeof i!="string"?i:i.replace(/&/g,"&amp;").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/%3C/g,"").replace(/%2F/g,"");function _(i){var j;var n=document.querySelector("#navigationPopup");n||(n=document.createElement("div"),n.setAttribute("id","navigationPopup"),n.style.cursor="auto");var v="/themes/custom/bluex/dist/assets/image/icons.svg",y=["se-rs","it-rs","be-rs"];function p(e){return String(e).replace(/\u00A0/g," ")}function g(){var e=document.querySelector("[data-rel-myrandstad-trigger]");if(!e||!e.parentNode)return e;var t=e.cloneNode(!0);return e.parentNode.replaceChild(t,e),t}var b=document.cookie.includes("IdToken")||document.cookie.includes("RefreshToken");!b&&localStorage.getItem("userState")&&localStorage.removeItem("userState");var u=JSON.parse(localStorage.getItem("userState")||"null"),m=u?u.currentUser:null,$=!!(u&&u.loginStatus===!0),L=drupalSettings==null?void 0:drupalSettings.third_party_logins_providers,h=(drupalSettings==null?void 0:drupalSettings.third_party_logins_providers)&&(drupalSettings==null?void 0:drupalSettings.third_party_logins_providers.length),P=!!(drupalSettings==null?void 0:drupalSettings.toggle_job_recommendation);let f=!!(drupalSettings==null?void 0:drupalSettings.is_talent_foundation),T=[{desktop:!0,mobile:!0,state:!0,url:l("main","dashboard"),icon:"dashboard",text:l("main","dashboard",!0)},{desktop:!0,mobile:!0,state:!0,url:l("main","my-applications"),icon:"briefcase",text:l("main","my-applications",!0)},{desktop:!0,mobile:!0,state:P,url:l("main","job-recommendations"),icon:"thumb-up",text:l("main","job-recommendations",!0)},{desktop:!0,mobile:!0,state:!0,url:l("main","job-preferences"),icon:"filter",text:l("main","job-preferences",!0)},{desktop:!0,mobile:!0,state:!0,url:l("main","personal-information"),icon:"account-circle",text:l("main","personal-information",!0)},{desktop:!0,mobile:!1,state:!0,url:l("main","settings"),icon:"settings",text:l("main","settings",!0)},{desktop:!1,mobile:!0,state:!0,url:l("main","my-account"),icon:"settings",text:l("main","my-account",!0)},{desktop:!1,mobile:!0,state:!0,url:l("popup","login")+"?logout=true",icon:"logout",text:d("Shared.Components.Popup.Logout.Title")}];function A(e){return e.filter(t=>t.state&&t.desktop).map(t=>p(`
2\xA0 \xA0 \xA0 \xA0 \xA0 <li class="link-list__item">
3\xA0 \xA0 \xA0 \xA0 \xA0 \xA0 <a href="${t.url}" class="link-list__link">
4\xA0 \xA0 \xA0 \xA0 \xA0 \xA0 \xA0 <span class="icon icon--inline">
5\xA0 \xA0 \xA0 \xA0 \xA0 \xA0 \xA0 \xA0 <svg>
6\xA0 \xA0 \xA0 \xA0 \xA0 \xA0 \xA0 \xA0 \xA0 <use xlink:href="${v}#${t.icon}"></use>
7\xA0 \xA0 \xA0 \xA0 \xA0 \xA0 \xA0 \xA0 </svg>
8\xA0 \xA0 \xA0 \xA0 \xA0 \xA0 \xA0 </span>
9\xA0 \xA0 \xA0 \xA0 \xA0 \xA0 \xA0 ${s(t.text)}
10\xA0 \xA0 \xA0 \xA0 \xA0 \xA0 </a>
11\xA0 \xA0 \xA0 \xA0 \xA0 </li>
12\xA0 \xA0 \xA0 \xA0 `)).join("")}function R(e){var t=drupalSettings.currentLanguage,o=drupalSettings==null?void 0:drupalSettings.third_party_logins_redirect;if(!e||!e.length)return"";var a=e.map(r=>{var c=o+"?provider="+r.title+"&language="+t;return p(`
13\xA0 \xA0 \xA0 \xA0 <a
14\xA0 \xA0 \xA0 \xA0 \xA0 href="${c}"
15\xA0 \xA0 \xA0 \xA0 \xA0 title="${s(r.title)}"
16\xA0 \xA0 \xA0 \xA0 \xA0 class="button button--social p-none ${r.provider}"
17\xA0 \xA0 \xA0 \xA0 >
18\xA0 \xA0 \xA0 \xA0 \xA0 <img
19\xA0 \xA0 \xA0 \xA0 \xA0 \xA0 src="/themes/custom/bluex/src/assets/img/login-providers/${r.provider}.svg"
20\xA0 \xA0 \xA0 \xA0 \xA0 \xA0 alt="${s(r.title)}"
21\xA0 \xA0 \xA0 \xA0 \xA0 />
22\xA0 \xA0 \xA0 \xA0 </a>
23\xA0 \xA0 \xA0 `)});return a.join("")}function E(e){return!e||!e.length?"":p(`
24\xA0 \xA0 \xA0 <div class="bluex-login-providers show-more w-full">
25\xA0 \xA0 \xA0 \xA0 <div class="section-separator section-separator--border">
26\xA0 \xA0 \xA0 \xA0 \xA0 <span>${s(d("Shared.Components.Popup.ThirdPartyProviders.Separator"))}</span>
27\xA0 \xA0 \xA0 \xA0 </div>
28\xA0 \xA0 \xA0 \xA0 <p class="ml-none mb-s">
29\xA0 \xA0 \xA0 \xA0 \xA0 ${s(d("Shared.Components.Popup.ThirdPartyProviders.Title"))}
30\xA0 \xA0 \xA0 \xA0 </p>
31\xA0 \xA0 \xA0 \xA0 <div class="bluex-login-providers__items mb-s">
32\xA0 \xA0 \xA0 \xA0 \xA0 ${R(e)}
33\xA0 \xA0 \xA0 \xA0 </div>
34\xA0 \xA0 \xA0 </div>
35\xA0 \xA0 `)}function N(){return h?E(L):""}function q(){return h&&d("Shared.Components.Popup.Text4")!=="Shared.Components.Popup.Text4"?p(`
36\xA0 \xA0 \xA0 \xA0 </li>
37\xA0 \xA0 \xA0 \xA0 <li style="cursor: text; font-size: 18px;">
38\xA0 \xA0 \xA0 \xA0 \xA0 ${s(d("Shared.Components.Popup.Text4"))}
39\xA0 \xA0 \xA0 \xA0 </li>
40\xA0 \xA0 \xA0 `):""}function I(e){if(!e||!e.personalInfo)return{fullname:"",initials:""};let t=e.personalInfo.givenName||"",o=e.personalInfo.familyName||"",a=`${t} ${o}
40`.trim(),r=t?t.charAt(0).toUpperCase():"";return{fullname:a,initials:r}}function M(){let e=drupalSettings==null?void 0:drupalSettings.my_randstad_base_path,t=(drupalSettings==null?void 0:drupalSettings.currentLanguage)||"en";if(typeof e=="string"&&e.trim())return e;if(e&&typeof e=="object"){if(typeof e[t]=="string"&&e[t].trim())return e[t];if(typeof e.en=="string"&&e.en.trim())return e.en;let o=Object.values(e).find(a=>typeof a=="string"&&a.trim());if(o)return o}return"/my-randstad"}function F(e){let t=document.querySelector("[data-rel-myrandstad-trigger]");if(!t||(f&&t.setAttribute("data-locator-id","landingpage_utility_myrandstad"),!e||!e.personalInfo))return;let{fullname:o,initials:a}=I(e);if(!o||(t.innerHTML=p(`
41\xA0 \xA0 \xA0 <span
42\xA0 \xA0 \xA0 \xA0 style="
43\xA0 \xA0 \xA0 \xA0 \xA0 display:inline-flex;
44\xA0 \xA0 \xA0 \xA0 \xA0 align-items:center;
45\xA0 \xA0 \xA0 \xA0 \xA0 justify-content:center;
46\xA0 \xA0 \xA0 \xA0 \xA0 width:24px;
47\xA0 \xA0 \xA0 \xA0 \xA0 height:24px;
48\xA0 \xA0 \xA0 \xA0 \xA0 min-width:24px;
49\xA0 \xA0 \xA0 \xA0 \xA0 border-radius:9999px;
50\xA0 \xA0 \xA0 \xA0 \xA0 background:#f7f5f0;
51\xA0 \xA0 \xA0 \xA0 \xA0 color:#656c85;
52\xA0 \xA0 \xA0 \xA0 \xA0 font-size:12px;
53\xA0 \xA0 \xA0 \xA0 \xA0 line-height:1;
54\xA0 \xA0 \xA0 \xA0 \xA0 margin-right:8px;
55\xA0 \xA0 \xA0 \xA0 \xA0 flex-shrink:0;
56\xA0 \xA0 \xA0 \xA0 "
57\xA0 \xA0 \xA0 >${s(a)}</span>
58\xA0 \xA0 \xA0 <span class="navigation__service-my-profile-name">${s(o)}</span>
59\xA0 \xA0 `),!f))return;t.removeAttribute("data-rs-popover-trigger"),t.removeAttribute("aria-expanded"),t.removeAttribute("type");let r=M();t.tagName==="A"&&t.setAttribute("href",r),t.addEventListener("click",function(c){c.preventDefault(),c.stopPropagation(),window.location.href=r}),t.addEventListener("keydown",function(c){(c.key==="Enter"||c.key===" ")&&(c.preventDefault(),c.stopPropagation(),window.location.href=r)})}function H(){var e=document.querySelector(".bluex-login-providers__items .itsme");e&&e.addEventListener("click",function(){window.dataLayer=window.dataLayer||[],window.dataLayer.push({event_params:null}),window.dataLayer.push({event:"interaction",event_params:{event_name:"itsme",action:"Login"}})})}function U(e){!e||!e.length||e.forEach(t=>{var o=document.querySelector(`.bluex-login-providers__items .${t.provider}`);o&&o.addEventListener("click",function(){W(t.title)})})}function W(e){window.dataLayer=window.dataLayer||[],window.dataLayer.push({event_params:null}),window.dataLayer.push({event:"interaction",event_params:{event_name:"click",type:"single_sign_on",user_type:"talent",detail:e}})}var B=p(`
60\xA0 \xA0 <div
61\xA0 \xA0 \xA0 class="popover bg-variant-brand-tertiary bluex-popover--mobile"
62\xA0 \xA0 \xA0 data-rs-popover="login-popover"
63\xA0 \xA0 \xA0 role="dialog"
64\xA0 \xA0 \xA0 aria-hidden="true"
65\xA0 \xA0 >
66\xA0 \xA0 \xA0 <div class="popover__dialog" style="text-align: left;">
67\xA0 \xA0 \xA0 \xA0 <div class="popover__title" style="cursor: text;">
68\xA0 \xA0 \xA0 \xA0 \xA0 ${s(d("Shared.Components.Popup.Heading1"))}
69\xA0 \xA0 \xA0 \xA0 \xA0 <span class="text--emphasis">
70\xA0 \xA0 \xA0 \xA0 \xA0 \xA0 ${s(d("Shared.Components.Popup.Heading2"))}
71\xA0 \xA0 \xA0 \xA0 \xA0 </span>
72\xA0 \xA0 \xA0 \xA0 </div>
73\xA0 \xA0 \xA0 \xA0 <div class="body-copy">
74\xA0 \xA0 \xA0 \xA0 \xA0 <ul class="list--checks">
75\xA0 \xA0 \xA0 \xA0 \xA0 \xA0 <li style="cursor: text; font-size: 18px;">
76\xA0 \xA0 \xA0 \xA0 \xA0 \xA0 \xA0 ${s(d("Shared.Components.Popup.Text1"))}
77\xA0 \xA0 \xA0 \xA0 \xA0 \xA0 </li>
78\xA0 \xA0 \xA0 \xA0 \xA0 \xA0 <li style="cursor: text; font-size: 18px;">
79\xA0 \xA0 \xA0 \xA0 \xA0 \xA0 \xA0 ${s(d("Shared.Components.Popup.Text2"))}
80\xA0 \xA0 \xA0 \xA0 \xA0 \xA0 </li>
81\xA0 \xA0 \xA0 \xA0 \xA0 \xA0 <li style="cursor: text; font-size: 18px;">
82\xA0 \xA0 \xA0 \xA0 \xA0 \xA0 \xA0 ${s(d("Shared.Components.Popup.Text3"))}
83\xA0 \xA0 \xA0 \xA0 \xA0 \xA0 </li>
84\xA0 \xA0 \xA0 \xA0 \xA0 \xA0 ${q()}
85\xA0 \xA0 \xA0 \xA0 \xA0 </ul>
86\xA0 \xA0 \xA0 \xA0 </div>
87\xA0 \xA0 \xA0 \xA0 <div class="popover__action flex-wrap">
88\xA0 \xA0 \xA0 \xA0 \xA0 <a
89\xA0 \xA0 \xA0 \xA0 \xA0 \xA0 href="${l("popup","register")}"
90\xA0 \xA0 \xA0 \xA0 \xA0 \xA0 class="button button--m button--filled button--full-width"
91\xA0 \xA0 \xA0 \xA0 \xA0 \xA0 style="border-width: 2px;"
92            ${f?'data-locator-id="landingpage_utility_register"':""}
93\xA0 \xA0 \xA0 \xA0 \xA0 >
94\xA0 \xA0 \xA0 \xA0 \xA0 \xA0 ${s(d("Shared.Components.Popup.Register.Text"))}
95\xA0 \xA0 \xA0 \xA0 \xA0 </a>
96\xA0 \xA0 \xA0 \xA0 \xA0 <a
97\xA0 \xA0 \xA0 \xA0 \xA0 \xA0 href="${l("popup","login")}"
98\xA0 \xA0 \xA0 \xA0 \xA0 \xA0 class="button button--m button--full-width ml-none"
99\xA0 \xA0 \xA0 \xA0 \xA0 \xA0 style="border-width: 2px;"
100            ${f?'data-locator-id="landingpage_utility_login"':""}
101\xA0 \xA0 \xA0 \xA0 \xA0 >
102\xA0 \xA0 \xA0 \xA0 \xA0 \xA0 ${s(d("Shared.Components.Popup.Login.Text"))}
103\xA0 \xA0 \xA0 \xA0 \xA0 </a>
104\xA0 \xA0 \xA0 \xA0 \xA0 ${N()}
105\xA0 \xA0 \xA0 \xA0 </div>
106\xA0 \xA0 \xA0 </div>
107\xA0 \xA0 </div>
108\xA0 \xA0 <div class="modal__overlay modal__overlay--light" data-rs-popover-overlay></div>
109\xA0 `);if($&&m){var S=(j=m.personalInfo.preferredName)!=null?j:m.personalInfo.givenName+" "+m.personalInfo.familyName;if(window.myRandstadUsername=S,!f)try{C(S)}catch(e){}if(f)n.innerHTML="",window.myRandstadMenuItem=null;else{var O=p(`
110\xA0 \xA0 \xA0 \xA0 <div
111\xA0 \xA0 \xA0 \xA0 \xA0 class="popover bg-variant-brand-tertiary bluex-popover--mobile"
112\xA0 \xA0 \xA0 \xA0 \xA0 data-rs-popover="login-popover"
113\xA0 \xA0 \xA0 \xA0 \xA0 role="dialog"
114\xA0 \xA0 \xA0 \xA0 \xA0 aria-hidden="true"
115\xA0 \xA0 \xA0 \xA0 >
116\xA0 \xA0 \xA0 \xA0 \xA0 <div class="popover__dialog">
117\xA0 \xA0 \xA0 \xA0 \xA0 \xA0 <div class="popover__title">
118\xA0 \xA0 \xA0 \xA0 \xA0 \xA0 \xA0 <div class="person-profile" style="cursor: text;">
119\xA0 \xA0 \xA0 \xA0 \xA0 \xA0 \xA0 \xA0 <div class="person-profile__profile" style="text-align: left;">
120\xA0 \xA0 \xA0 \xA0 \xA0 \xA0 \xA0 \xA0 \xA0 <span id="person-profile__name ">
121\xA0 \xA0 \xA0 \xA0 \xA0 \xA0 \xA0 \xA0 \xA0 \xA0 ${s(d("Shared.Components.Popup.Greeting.Hi"))}
122\xA0 \xA0 \xA0 \xA0 \xA0 \xA0 \xA0 \xA0 \xA0 \xA0 <span class="text--emphasis">${s(S)}</span>
123\xA0 \xA0 \xA0 \xA0 \xA0 \xA0 \xA0 \xA0 \xA0 </span>
124\xA0 \xA0 \xA0 \xA0 \xA0 \xA0 \xA0 \xA0 </div>
125\xA0 \xA0 \xA0 \xA0 \xA0 \xA0 \xA0 </div>
126\xA0 \xA0 \xA0 \xA0 \xA0 \xA0 </div>
127\xA0 \xA0 \xA0 \xA0 \xA0 \xA0 <ul class="link-list divider" style="border-bottom-width: 1px;">
128\xA0 \xA0 \xA0 \xA0 \xA0 \xA0 \xA0 ${A(T)}
129\xA0 \xA0 \xA0 \xA0 \xA0 \xA0 </ul>
130\xA0 \xA0 \xA0 \xA0 \xA0 \xA0 <div class="popover__footer">
131\xA0 \xA0 \xA0 \xA0 \xA0 \xA0 \xA0 <a
132\xA0 \xA0 \xA0 \xA0 \xA0 \xA0 \xA0 \xA0 id="logout-link"
133\xA0 \xA0 \xA0 \xA0 \xA0 \xA0 \xA0 \xA0 href="${l("clientRoutes","logout")}"
134\xA0 \xA0 \xA0 \xA0 \xA0 \xA0 \xA0 \xA0 class="popover__footer--link text--alternative"
135\xA0 \xA0 \xA0 \xA0 \xA0 \xA0 \xA0 >
136\xA0 \xA0 \xA0 \xA0 \xA0 \xA0 \xA0 \xA0 ${s(d("Shared.Components.Popup.Logout.Title"))}
137\xA0 \xA0 \xA0 \xA0 \xA0 \xA0 \xA0 </a>
138\xA0 \xA0 \xA0 \xA0 \xA0 \xA0 </div>
139\xA0 \xA0 \xA0 \xA0 \xA0 </div>
140\xA0 \xA0 \xA0 \xA0 </div>
141\xA0 \xA0 \xA0 \xA0 <div class="modal__overlay modal__overlay--light" data-rs-popover-overlay></div>
142\xA0 \xA0 \xA0 `);n.innerHTML=O;var D=window.innerWidth<941;D&&(window.myRandstadMenuItem={title:d("Shared.Components.Popup.myRandstad.Title"),children:T.filter(e=>e.state&&e.mobile).map(e=>({title:e.text,url:e.url}))})}}else n.innerHTML=B,h&&(H(),U(L));function J(){if(!($&&m&&(F(m),x(),f))){var e=g();e&&f&&e.setAttribute("data-locator-id","landingpage_utility_myrandstad"),e&&(e.addEventListener("click",t=>{var o=window.innerWidth<941,a=document.querySelector("[data-rel-myrandstad-trigger]"),r=document.querySelector("#navigationPopup .popover");if(!a||r&&r.contains(t.target)||o&&!f&&!y.includes(drupalSettings.opco))return;t.stopPropagation(),t.preventDefault();let c=document.querySelector("#navigationPopup"),K=!!a.parentElement&&!!c&&a.parentElement.contains(c);a.parentElement&&!K&&(a.style.position="relative",a.after(n)),r=document.querySelector("#navigationPopup .popover");var k=document.querySelector("#navigationPopup .modal__overlay");if(r&&k){let z=r.getAttribute("aria-hidden")==="true",V=a.getAttribute("aria-expanded")==="true";r.classList.toggle("popover--active"),k.classList.toggle("modal__overlay--active"),r.setAttribute("aria-hidden",String(!z)),a.setAttribute("aria-expanded",String(!V)),setTimeout(()=>{let w=r.querySelectorAll('a, button, input, [tabindex="0"]');w.length>0&&document.activeElement!==w[0]&&w[0].focus()},100)}}),x()),window.__authWidgetDocumentClickBound||(window.__authWidgetDocumentClickBound=!0,document.addEventListener("click",t=>{var o=document.querySelector("#navigationPopup .popover"),a=document.querySelector("[data-rel-myrandstad-trigger]");if(o&&o.classList.contains("popover--active")&&!o.contains(t.target)){t.stopPropagation(),t.preventDefault();var r=document.querySelector("#navigationPopup .modal__overlay");o.classList.remove("popover--active"),r&&r.classList.remove("modal__overlay--active"),o.setAttribute("aria-hidden","true"),a&&a.setAttribute("aria-expanded","fal
142se")}}))}}J(),window.__authWidgetDomContentLoadedBound||(window.__authWidgetDomContentLoadedBound=!0,document.addEventListener("DOMContentLoaded",()=>{_(!0)})),window.__authWidgetWindowLoadBound||(window.__authWidgetWindowLoadBound=!0,window.addEventListener("load",()=>{_(!0)}))}_(!0);window.addEventListener("reInitAuthWidget",()=>_(!0));})();

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.