PageSourceSearch

https://www.hel.fi/rekry-assets/sites/default/files/js/js_fZfrGPAw…R9ER3zCMeh-cHSGYA45OM3T84NJRo--OEkvHH7TY2Oo

js hel.fi collected 2026-09-24 08:26:21 UTC 15,491 bytes, 11 lines download raw bytes

1/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
2(()=>{var t=Object.defineProperty;var e=(e,o)=>t(e,"name",{value:o,configurable:true});(Drupal=>{const t=8;const o=16;const n="(min-width: 993px)";const s=new Map;const r=new WeakMap;const i=new WeakMap;function a(e,n,s){const{flipVertical:r=false,defaultAbove:i=true}=s||{};const a=e.getBoundingClientRect();const c=window.innerHeight;const l=document.documentElement.clientWidth;n.style.top="";n.style.bottom="";n.style.left="";n.style.right="";n.style.transform="";if(r){const e=n.offsetHeight;const s=a.top;const r=c-a.bottom;const l=e+t+o;const u=i?s>=l||s>=r:r<l&&s>=l;if(u){n.style.top="auto";n.style.bottom=`calc(100% + ${t}px)`}else{n.style.bottom="auto";n.style.top=`calc(100% + ${t}px)`}n.classList.toggle("toast-wrapper--opens-above",u);n.classList.toggle("toast-wrapper--opens-below",!u);const g=n.querySelector(".toast");if(g){g.classList.toggle("toast--border-bottom",u);g.classList.toggle("toast--border-top",!u)}}const u=n.getBoundingClientRect();const g=n.offsetParent||document.documentElement;const d=g.getBoundingClientRect().left;const f=u.right-(l-o);const p=o-u.left;if(f>0){n.style.left=`${u.left-d-f}px`;n.style.transform="none"}else if(p>0){n.style.left=`${o-d}px`;n.style.right="auto";n.style.transform="none"}const m=n.getBoundingClientRect();const y=a.left-m.left+a.width/2;const w=y-t;const h=Math.max(0,Math.min(w,m.width-t*2));n.style.setProperty("--toast-arrow-left",`${h}px`);n.style.setProperty("--toast-arrow-right","auto");n.style.setProperty("--toast-arrow-transform","0")}e(a,"positionToast");function c(t,o,s,a){const{onlyDesktop:c=false,delay:l}=a||{};const u=s||[];const g=r.get(t);if(g){t.removeEventListener("focusout",g)}const d=i.get(t);if(d){window.removeEventListener("resize",d)}const f=e(e=>{if(e.relatedTarget&&u.includes(e.relatedTarget))return;const n=l??(e.relatedTarget?10:300);setTimeout(()=>{const e=document.activeElement;if(!t.contains(e)&&!u.includes(e)){o()}},n)},"handler");r.set(t,f);const p=e(()=>{t.removeEventListener("focusout",f);if(!c||window.matchMedia(n).matches){t.addEventListener("focusout",f)}},"attachHandler");p();window.addEventListener("resize",p);i.set(t,p)}e(c,"attachFocusOut");function l(t,e,o){s.set(e,{trigger:t,options:o||{}})}e(l,"registerOpen");function u(t){s.delete(t)}e(u,"unregisterOpen");window.addEventListener("resize",()=>{s.forEach(({trigger:t,options:e},o)=>{a(t,o,e)});document.querySelectorAll(".nav-toggle-dropdown--language-toast:not(.nav-toggle-dropdown--closed)").forEach(t=>{const e=t.previousElementSibling;const o=e?.querySelector(".nav-toggle__button");if(o){a(o,t)}})});Drupal.toastPositioner={positionToast:a,attachFocusOut:c,registerOpen:l,unregisterOpen:u}})(Drupal)})();;
3(()=>{(Drupal=>{Drupal.behaviors.languageToastPositioning={attach(t){if(t!==document||window.languageToastInitialized){return}const a=t.querySelectorAll(".nav-toggle__button.has-toast");a.forEach(t=>{if(t.dataset.toastInitialized)return;t.addEventListener("click",()=>{const a=t.parentElement;const n=a?.nextElementSibling;if(!n?.classList.contains("nav-toggle-dropdown--language-toast")){return}Drupal.toastPositioner.positionToast(t,n)});t.dataset.toastInitialized="true"});window.languageToastInitialized=true}}})(Drupal)})();;
4(()=>{var e=Object.defineProperty;var t=(t,l)=>e(t,"name",{value:l,configurable:true});(Drupal=>{Drupal.behaviors.mobileLanguageSwitcher={attach(e){if(e!==document||window.mobileLanguageSwitcherInitialized){return}const l=0;const o=1;const c=2;const i=document.documentElement;const n=window;const r=document.querySelector(".language-wrapper");let a=n.scrollY||i.scrollTop;let s;let u=l;let d=l;const g=t((e,t)=>{if(e===c&&t>r.clientHeight){r.classList.add("scroll-up");d=e}else if(e===o){r.classList.remove("scroll-up");d=e}},"toggleLanguageSwitcher");const w=t(()=>{s=n.scrollY||i.scrollTop;if(s>a){u=c}else if(s<a){u=o}if(u!==d){g(u,s)}a=s},"checkScroll");if(r){window.addEventListener("scroll",w,{passive:true})}window.mobileLanguageSwitcherInitialized=true}}})(Drupal)})();;
5(()=>{var t=Object.defineProperty;var e=(e,a)=>t(e,"name",{value:a,configurable:true});(Drupal=>{Drupal.behaviors.searchMonitorHelper={attach:e(t=>{const e=t.querySelectorAll('.hdbt-search__search-monitor__button[data-hds-component="button"]');e.forEach(t=>{if(t.dataset.searchMonitorAttached)return;t.dataset.searchMonitorAttached="1";t.addEventListener("click",e=>{e.preventDefault();const a=new CustomEvent("hdbt:search-monitor:open",{detail:{button:t}});window.dispatchEvent(a);t.setAttribute("aria-expanded","true")})})},"attach")}})(Drupal)})();;
6(()=>{var e=Object.defineProperty;var t=(t,s)=>e(t,"name",{value:s,configurable:true});((Drupal,drupalSettings,once)=>{const e={};function s(t){if(!e[t]){e[t]=fetch(`/${t}/api/v1/search-suggestions`).then(e=>e.ok?e.json():[]).catch(()=>[])}return e[t]}t(s,"fetchSuggestions");Drupal.behaviors.hdbtSearchSuggestions={attach(e){once("hdbt-search-suggestions","[data-search-suggestions]",e).forEach(e
6=>{const n=e.closest(".helfi-search__form");const a=e.closest(".hds-search-input__input")||e;if(!n)return;const i=e.parentElement||n;const r=document.createElement("ul");r.id=`${e.id}-suggestions`;r.className="hdbt-search-suggestions";r.hidden=true;r.setAttribute("role","group");r.setAttribute("aria-label",Drupal.t("Search suggestions",{},{context:"Accessible label for the search suggestions list"}));a.insertAdjacentElement("afterend",r);e.setAttribute("aria-haspopup","true");e.setAttribute("aria-controls",r.id);e.setAttribute("aria-expanded","false");const o=t(()=>{r.hidden=true;r.innerHTML="";e.setAttribute("aria-expanded","false")},"close");r.addEventListener("mousedown",e=>{const t=e.target===r&&e.offsetX>=r.clientWidth;if(!t&&!e.target.closest("button")){o()}});const c=t(t=>{r.innerHTML="";if(!t.length){o();return}t.forEach(({term:t})=>{const s=document.createElement("li");const a=document.createElement("button");s.className="hdbt-search-suggestions__option";a.type="button";a.className="hdbt-search-suggestions__option__button";a.textContent=t;a.addEventListener("click",()=>{e.value=t;o();n.requestSubmit()});s.appendChild(a);r.appendChild(s)});r.hidden=false;e.setAttribute("aria-expanded","true")},"open");const u=t(()=>{s(drupalSettings.path?.currentLanguage||"en").then(c)},"showSuggestions");e.addEventListener("focus",()=>{if(e.value===""){u()}});e.addEventListener("input",()=>{if(e.value===""){u()}else{o()}});i.addEventListener("keydown",e=>{if(e.key==="Escape"&&!r.hidden){o();e.stopPropagation()}});Drupal.toastPositioner.attachFocusOut(i,o,[],{delay:10})})}}})(Drupal,drupalSettings,once)})();;
7(()=>{document.querySelectorAll(".user-edited-content figure").forEach(e=>{e.setAttribute("tabindex","0");const t=e.querySelector("figcaption");if(t){t.remove();e.insertBefore(t,e.firstChild)}})})();;
8(()=>{var e=Object.defineProperty;var t=(t,n)=>e(t,"name",{value:n,configurable:true});((Drupal)=>{const e=t(()=>{if(Drupal.cookieConsent.getConsentStatus(["statistics"])){const e=document;const t=e.body;const n=e.createElement("script");n.type="text/javascript";n.async=true;n.src="//siteimproveanalytics.com/js/siteanalyze_6047173.js";t.appendChild(n);}},"loadSiteimproveAnalytics");if(Drupal.cookieConsent.initialized())e();else Drupal.cookieConsent.loadFunction(e);})(Drupal);})();;
9(()=>{var e=Object.defineProperty;var n=(n,t)=>e(n,"name",{value:t,configurable:true});((Drupal,once,drupalSettings)=>{Drupal.HeadingIdInjector={reservedIds:[],anchors:[],injectedHeadings:[],generatedAttribute:"data-helfi-heading-id",mismatchAttribute:"data-helfi-heading-id-mismatch",exclusions:n(()=>":not(.hide-from-table-of-contents *)","exclusions"),titleComponents:n((e=Drupal.HeadingIdInjector.exclusions())=>[`h2${e}`,`h3${e}`,`h4${e}`,`h5${e}`,`h6${e}`],"titleComponents"),findAvailableId:n((e,n)=>{let t=e;if(n>0){t+=`-${n}`}if(Drupal.HeadingIdInjector.reservedIds.includes(t)){return Drupal.HeadingIdInjector.findAvailableId(e,n+1)}if(Drupal.HeadingIdInjector.anchors.includes(t)){if(n===0){n+=1}return Drupal.HeadingIdInjector.findAvailableId(e,n+1)}return t},"findAvailableId"),mainLanguages:n(()=>["en","fi","sv"],"mainLanguages"),localeConversions:n(()=>({0:"[°₀۰0]",1:"[¹₁۱1]",2:"[²₂۲2]",3:"[³₃۳3]",4:"[⁴₄۴٤4]",5:"[⁵₅۵٥5]",6:"[⁶₆۶٦6]",7:"[⁷₇۷7]",8:"[⁸₈۸8]",9:"[⁹₉۹9]",a:"[àáảãạăắằẳẵặâấầẩẫậāąåαάἀἁἂἃἄἅἆἇᾀᾁᾂᾃᾄᾅᾆᾇὰᾰᾱᾲᾳᾴᾶᾷаأအာါǻǎªაअاaä]",aa:"[عआآ]",ae:"[æǽ]",ai:"[ऐ]",b:"[бβبဗბbब]",c:"[çćčĉċc©]",ch:"[чჩჭچ]",d:"[ďðđƌȡɖɗᵭᶁᶑдδدضဍဒდdᴅᴆ]",dj:"[ђđ]",dz:"[џძ]",e:"[éèẻẽẹêếềểễệëēęěĕėεέἐἑἒἓἔἕὲеёэєəဧေဲეएإئe]",ei:"[ऍ]",f:"[фφفƒფf]",g:"[ĝğġģгґγဂგگg]",gh:"[غღ]",gx:"[ĝ]",h:"[ĥħηήحهဟှჰh]",hx:"[Ä¥]",i:"[íìỉĩịîïīĭįıιίϊΐἰἱἲἳἴἵἶἷὶῐῑῒῖῗіїиဣိီည်ǐიइیii̇ϒ]",ii:"[ई]",ij:"[ij]",j:"[ĵјჯجj]",jx:"[ĵ]",k:"[ķĸкκقكကკქکk]",kh:"[хخხ]",l:"[łľĺļŀлλلလლlल]",lj:"[љ]",m:"[мμمမმm]",n:"[ñńňņʼnŋνнنနნn]",nj:"[њ]",o:"[óòỏõọôốồổỗộơớờởỡợøōőŏοὀὁὂὃὄὅὸόоوθိုǒǿºოओoöө]",oe:"[öœؤ]",oi:"[ऑ]",oii:"[ऒ]",p:"[пπပპپp]",ps:"[ψ]",q:"[ყq]",r:"[ŕřŗрρرრr]",s:"[śšşсσșςسصစſსsŝ]",sh:"[шშش]",shch:"[щ]",ss:"[ß]",sx:"[ŝ]",t:"[ťţтτțتطဋတŧთტt]",th:"[þϑثذظ]",ts:"[цცწ]",u:"[úùủũụưứừửữựûūůűŭųµуဉုူǔǖǘǚǜუउuÑ
9žÃ¼]",ue:"[ü]",uu:"[ऊ]",v:"[вვϐv]",w:"[ŵωώဝွw]",x:"[χξx]",y:"[ýỳỷỹỵÿŷйыυϋύΰيယyῠῡὺ]",ya:"[я]",yu:"[ю]",z:"[źžżзζزဇზz]",zh:"[жჟژ]"}),"localeConversions"),injectIds:n(e=>{let n=e.textContent.toLowerCase().trim();if(!Drupal.HeadingIdInjector.mainLanguages().includes(drupalSettings.path.currentLanguage)){Object.keys(Drupal.HeadingIdInjector.localeConversions()).forEach(e=>{n=n.replace(new RegExp(Drupal.HeadingIdInjector.localeConversions()[e],"g"),e)})}else{n=n.replace(/ä/gi,"a").replace(/ö/gi,"o").replace(/Ã¥/gi,"a")}n=n.replace(/\W/g,"-").replace(/-(\d+)$/g,"_$1");let t=e.nodeName.toLowerCase();if(t==="button"){t=e.parentElement.nodeName.toLowerCase()}const i=e.hasAttribute(Drupal.HeadingIdInjector.generatedAttribute)?e.id:null;const a=i===null?e.id:"";const d=a?a:Drupal.HeadingIdInjector.findAvailableId(n,0);Drupal.HeadingIdInjector.anchors.push(d);if(i!==null&&i!==d){e.setAttribute(Drupal.HeadingIdInjector.mismatchAttribute,i)}e.setAttribute("id",d);e.setAttribute("tabindex","-1");return{nodeName:t,anchorName:d}},"injectIds")};Drupal.behaviors.headingIdInjector={attach:n(function e(n){if(window.headingIdInjectorInitialized&&n===document){return}const t=n.querySelector("main.layout-main-wrapper");if(!t){return}const i=n.querySelectorAll("[id]");i.forEach(e=>{if(e.hasAttribute(Drupal.HeadingIdInjector.generatedAttribute)){return}Drupal.HeadingIdInjector.reservedIds.push(e.id)});once("heading-id-injector",Drupal.HeadingIdInjector.titleComponents().join(","),t).forEach(e=>{const{nodeName:n,anchorName:t}=Drupal.HeadingIdInjector.injectIds(e);Drupal.HeadingIdInjector.injectedHeadings.push({nodeName:n,anchorName:t,content:e})});window.headingIdInjectorInitialized=true;document.dispatchEvent(new CustomEvent("helfiHeadingIdsInjected",{detail:{headings:Drupal.HeadingIdInjector.injectedHeadings}}))},"attach")}})(Drupal,once,drupalSettings)})();;
10(()=>{var e=Object.defineProperty;var n=(n,o)=>e(n,"name",{value:o,configurable:true});((Drupal,drupalSettings)=>{let e=false;const o=n(()=>{if(e)return;e=true;window.askem={settings:{apiKey:drupalSettings.reactAndShareApiKey,disableFonts:true}};if(drupalSettings.siteName!==void 0){window.askem.settings.categories=[drupalSettings.siteName]}function o(e){const n=e.target;const o=n.src||"inline-script";const t=new Error(`Askem script failed to load: ${o}`);console.warn("error reporting works")}n(o,"handleScriptError");const t=document.createElement("script");t.crossOrigin="anonymous";t.src="https://cdn.askem.com/plugin/askem.js";if(drupalSettings.askemMonitoringEnabled){t.onerror=o}document.body.appendChild(t)},"loadScript");const t=n((e,n)=>{document.querySelectorAll(e).forEach(e=>{e.style.display=n?"":"none"})},"toggle");const s=n(()=>{const e=".js-askem__container .askem:not(.js-askem-cookie-compliance)";const n=".js-askem__container .js-askem-cookie-compliance";if(Drupal.cookieConsent.getConsentStatus(["statistics"])){o();t(n,false);t(e,true)}else{t(e,false);t(n,true)}},"loadReactAndShare");if(Drupal.cookieConsent.initialized()){s()}else{Drupal.cookieConsent.loadFunction(s)}window.addEventListener("hds-cookie-consent-changed",s)})(Drupal,drupalSettings)})();;
11(()=>{var e=Object.defineProperty;var t=(t,n)=>e(t,"name",{value:n,configurable:true});((drupalSettings,e)=>{if(drupalSettings.raven===void 0){return}const n={type:"TypeError",value:"Load failed"};const o={type:"TypeError",value:"Failed to fetch"};const r={type:"TypeError",value:"reading 'digest'"};const s={type:"ReferenceError",value:"Can't find variable: SCDynimacBridge"};const c={type:"ReferenceError",value:"Can't find variable: localStorage"};const a={type:"ReferenceError",value:"Can't find variable: indexedDB"};const i={type:"UnknownError",value:"The user denied permission to access the database"};const u={type:"AbortError",value:"Fetch is aborted"};const l={type:"Error",value:"Your focus-trap must have at least one container with at least one tabbable node in it at all times"};const d=[n,o,r,s,c,a,i,u,l];const p=t(e=>{const t=e?.exception?.values||[];return t.some(e=>{if(e?.type!=="SecurityError"){return false}const t=e?.stacktrace?.frames||[];const n=t.some(e=>{const t=e?.filename||"";return t.includes("hds-cookie-consent.min.js")||t.includes("/hdbt_cookie_banner/")});if(n){return true}return typeof e?.value==="string"&&(e.value.includes("The operation is insecure")||e.value.includes("An attempt was made to break through the security policy"))})},"isCookieConsentInsecureOperation");const v=t(e=>{const t=e?.exception?.values||[];return t.some(e=>d.some(t=>e?.type===t.type&&typeof e?.value==="string"&&e.value.includes(t.value)))},"isListedError");const f=t(e=>{const t=document.cookie.split("; ").map(e=>e.split("=")).find(([t])=>t===e);return t?t[1]:null},"getCookie");const y=t(()=>{const e=f("helfi-cookie-consents");if(!e){return"No consent given"}try{const t=decodeURIComponent(e);const n=JSON.parse(t);const o=n?.groups;if(!o){return"No consent given"}const r=["essential","admin"];const s=Object.keys(o);const c=s.length===r.length&&s.every(e=>r.includes(e));return c?"Required cookies accepted":"All cookies accepted"}catch(e){return"No consent given"}},"getCookieConsentSummary");const m=t(e=>{if(v(e)||p(e)){return null}e.breadcrumbs=[...e.breadcrumbs||[],{category:"cookie-consent",level:"info",message:y()}];return e},"processEvent");
11if(typeof e?.addEventProcessor==="function"){e.addEventProcessor(m)}else{const e=drupalSettings.raven.options||{};const t=e.beforeSend;drupalSettings.raven.options=e;drupalSettings.raven.options.beforeSend=(e,n)=>{const o=m(e);if(o===null)return null;if(typeof t==="function"){return t(o,n)}return o}}})(drupalSettings,window.Sentry)})();;

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.