1/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */ 2"use strict";(function(a){function b(a){var b=document.documentElement.lang;"fi"!=b&&"en"!=b&&"sv"!=b&&(b="fi");var d="tehy";0<=window.location.hostname.indexOf("tehylehti")&&(d="tehylehti");var e="undefined"==typeof a.translations[b]?{}:a.translations[b],f=null;"tehy"==d?f={or:[{and:[{language:b},{or:[{category:"0xwww.tehy.fi"},{category:"0xwww.tehylehti.fi"}]},{not:{"custom_fields.type":"person"}}]},{category:"0xkilta.tehy.fi"},{or:[{category:"doctype_pdf"},{category:"doctype_doc"},{category:"doctype_docx"},{category:"doctype_ppt"},{category:"doctype_pptx"},{category:"doctype_xls"},{category:"doctype_xlsx"}]}]}:"tehylehti"===d&&(f={and:[{language:b},{category:"0xwww.tehylehti.fi"},{not:{"custom_fields.type":"person"}}]});var g=new AddSearchClient(a.public_api_key),h=new AddSearchUI(g,{baseFilters:f,searchResultsPageUrl:e.search_results_page_url,collectAnalytics:0>window.location.hostname.indexOf(".lndo.site")}),i="\n <div class=\"number-of-results\">\n {{total_hits}}{{#equals total_hits 10000}}+{{/equals}} ".concat(e.number_of_results,"\n </div>\n "),j="\n <div class=\"addsearch-searchresults addsearch-searchresults-no-results\" role=\"status\">\n <h2>".concat(e.no_results,"</h2>\n </div>\n ");g.setFuzzyMatch("auto"),h.registerHandlebarsHelper("formatType",function(a,b,c,f){for(var g in (0<=a.indexOf("2xfiles")||0<=a.indexOf("3xfiles"))&&(b=["m_files_document"]),b=Array.isArray(b)?b:[b],c=Array.isArray(c)?c:[c],f=Array.isArray(f)?f:[f],b){var h=b[g];return "tehy"===d?"current"===h?h="current_"+f[0]:"0xkilta.tehy.fi"===a[0]?h="event":"0xwww.tehylehti.fi"===a[0]&&(h="tehymagazine"):"tehylehti"==d&&"magazine_article"===h&&(h="magazine_article_"+f[0]),"undefined"==typeof e.content_types[d][h]&&(h="default"),e.content_types[d][h];}return "";}),h.registerHandlebarsHelper("formatDate",function(a,b){if(a=Array.isArray(a)?a:[a],"tehy"===d&&(-1!==a.indexOf("current")||-1!==a.indexOf("blog")||-1!==a.indexOf("magazine_article")||-1!==a.indexOf("rich_article"))||"tehylehti"===d&&-1===a.indexOf("page")){var c=new Date(b);return new Intl.DateTimeFormat("fi-FI",{timeZone:"Europe/Helsinki",day:"numeric",month:"numeric",year:"numeric"}).format(c);}return "";}),h.searchField({containerId:"sitesearch-header-searchfield",placeholder:e.search_field,button:e.search_button,searchAsYouType:!0}),h.searchResults({containerId:"sitesearch-header-results",template_resultcount:i,template_noresults:j,template:"\n <div class=\"addsearch-searchresults\">\n {{#if resultcount}}\n {{> numberOfResultsTemplate }}\n {{/if}}\n\n {{#each hits}}\n <div class=\"hit{{#equals type \"PROMOTED\"}} promoted{{/equals}}\">\n <div class=\"info\">\n <div class=\"type\">{{formatType categories custom_fields.type custom_fields.blog_category custom_fields.article_category}}</div>\n <div class=\"date\">{{formatDate custom_fields.type ts}}</div>\n </div>\n <h3>\n <a href=\"{{url}}\" data-analytics-click=\"{{id}}\">{{#if title}} {{title}} {{else}} {{removeTrailingQueriesFromUrl url}} {{/if}}</a>\n </h3>\n <div class=\"highlight\">\n {{#if meta_description}} {{{meta_description}}} {{else}} {{{highlight}}} {{/if}}{{#not type \"PROMOTED\"}}…{{/not}}\n </div>\n </div>\n {{/each}}\n </div>\n "}),h.start(),document.addEventListener("click",function(a){var b;"INPUT"==a.target.tagName||"BUTTON"==a.target.tagName||a.target.classList.contains("block__content")||a.target.classList.contains("addsearch-searchfield-container")||a.target.classList.contains("addsearch-searchresults")||a.target.classList.contains("number-of-results")||a.target.classList.contains("hit")||null!==(b=a.target.parent)&&void 0!==b&&b.classList.contains("hit")||c();}),document.addEventListener("keyup",function(a){"Escape"===a.key&&c();});}function c(){var a=document.querySelector(".block-sitesearch-header");null!=a&&a.classList.remove("open");}var d=!1;a.behaviors.block_sitesearch_header={attach:function attach(a,c){var e=document.querySelector(".header .button--search");null!=e&&"undefined"!=typeof c.sitesearch&&(e.onclick=function(){d||(d=!0,b(c.sitesearch));var a=document.querySelector(".block-sitesearch-header");null!=a&&(a.classList.add("open"),a.querySelector("input").focus());});}};})(Drupal);; 3(function(Drupal,once){Drupal.behaviors.socialShareToggle={attach:function(context){const widgets=context.querySelectorAll?context.querySelectorAll('.addtoany_list'):[];
3once('addtoany-toggle',widgets).forEach((widget,i)=>{const links=widget.querySelector('.social-share-links');const buttons=widget.querySelectorAll('button');if(!links)return;links.setAttribute('id','social-share-links-'+i);buttons.forEach((button)=>{button.addEventListener('click',()=>{links.classList.toggle('open');buttons.forEach((b)=>{b.setAttribute('aria-expanded',(button.getAttribute('aria-expanded')==='true')?'false':'true');});});button.setAttribute('aria-controls','social-share-links-'+i);});});const wrapperSelector='.social-wrapper';const wrappers=new Set();if(context.matches&&context.matches(wrapperSelector))wrappers.add(context);if(context.closest){const ancestor=context.closest(wrapperSelector);if(ancestor)wrappers.add(ancestor);}if(context.querySelectorAll)context.querySelectorAll(wrapperSelector).forEach((wrapper)=>wrappers.add(wrapper));wrappers.forEach((wrapper)=>{const hasButtons=!!wrapper.querySelector('.addtoany_list');wrapper.classList.toggle('hidden',!hasButtons);if(hasButtons){const bottomButtons=wrapper.closest('.bottom-buttons');if(bottomButtons)bottomButtons.classList.remove('hidden');}});}};})(Drupal,once);; 4"use strict";(function(a,b){a.behaviors.scrollTables={attach:function attach(a){once("scrollTables",".text-long table, .view table",a).forEach(function(a){b(a).wrap("<div class=\"table-wrapper\"></div>");});}};})(Drupal,jQuery);; 5"use strict";(function(a,b){function c(){var a=document.querySelector(".hero-adjacent_text_and_large_image");if(a){if(1024>window.innerWidth)return void (a.style.marginTop="");var b=document.querySelector(".topbar_v2")||document.querySelector(".topbar.sticky");if(b){a.style.marginTop="0";var c=b.getBoundingClientRect().bottom,d=a.getBoundingClientRect().top,e=d-c;0<e&&(a.style.marginTop="-"+e+"px");}}}b.behaviors.topbar={attach:function attach(b){'use strict';var d=a(".topbar",b);d.hasClass("sticky")&&a("body",b).addClass("topbar-sticky"),a(window,b).on("resize load scroll",function(){d.hasClass("sticky")&&(a(this).width()>=1024?a(this).scrollTop()?d.addClass("topbar--scrolldown"):d.removeClass("topbar--scrolldown"):d.removeClass("topbar--scrolldown"));}),a(window,b).on("load resize",c),c();}};})(jQuery,Drupal);; 6"use strict";(function(a){function b(){var b=a("iframe[data-consent-src*=\"youtu\"], iframe[data-consent-src*=\"vimeo\"], iframe[src*=\"youtu\"], iframe[src*=\"vimeo\"]");if(!b.length)return !1;
6a(b).each(function(){a(this).parents(".field-media-oembed-video, .embed-media").length||a(this).wrap("<div class=\"video-wrapper\"></div>");});}function c(){var b=a(".field-media-oembed-video, .embed-media");return !!b.length&&void b.each(function(){a(this).parents("figure").length&&a(this).parents("figure").addClass("contains-video");});}a("document").ready(function(){b(),c();});})(jQuery,Drupal);; 7"use strict";(function(a){a.behaviors.social_menu={attach:function attach(){var a=document.querySelectorAll(".addtoany_list");once("addtoany",a).forEach(function(a,b){var c=a.querySelector(".social-share-links"),d=a.querySelectorAll("button");c.setAttribute("id","social-share-links-"+b),d.forEach(function(a){a.addEventListener("click",function(){c.classList.toggle("open"),d.forEach(function(c){c.setAttribute("aria-expanded","true"===a.getAttribute("aria-expanded")?"false":"true");});}),a.setAttribute("aria-controls","social-share-links-"+b);});});}};})(Drupal);; 8"use strict";(function(a){'use strict';var b=!1,c={initMenuItems:function initMenuItems(a){a.forEach(function(a){var b=a.querySelector("button"),d=a.parentNode;b.addEventListener("click",function(f){return c.getAriaState(b)?c.toggleElement(a,!1):(c.closeSubmenus(a,d),c.toggleElement(a,!0)),f.preventDefault(),!1;});}),document.addEventListener("keyup",function(a){27===a.keyCode&&c.closeAllSubmenus();}),document.addEventListener("click",function(a){var b=document.querySelector(".tehy_magazine_main_menu");null==b||a.target==b||b.contains(a.target)||c.closeAllSubmenus();});},initMenuToggle:function initMenuToggle(a){a.addEventListener("click",function(){var b=document.getElementById("main-navbar"),d=!c.getAriaState(a);a.setAttribute("aria-expanded",d),!0===d?b.classList.add("expanded"):b.classList.remove("expanded");});},getAriaState:function getAriaState(a){return "true"===a.getAttribute("aria-expanded");},toggleElement:function toggleElement(a,b){var d=a.querySelector("a");d&&d.setAttribute("aria-expanded",b),a.querySelector("button").setAttribute("aria-expanded",b),!0===b?(a.classList.add("open"),c.updateHeight()):a.classList.remove("open");},closeSubmenus:function closeSubmenus(a,b){if(a.classList.contains("nav-item"))var d=document;else var d=b;d.querySelectorAll(".has-submenu.open").forEach(function(b){a.contains(b)||c.toggleElement(b,!1);});},closeAllSubmenus:function closeAllSubmenus(){var a=document.querySelectorAll(".tehy_magazine_main_menu .open");a&&a.forEach(function(a){c.toggleElement(a,!1);});},updateHeight:function updateHeight(){var a=document.querySelector(".tehy_magazine_main_menu .level-1 > .open > .level-2");if(a){var b=0;a.querySelectorAll(".open > ul").forEach(function(a){b=Math.max(b,a.offsetHeight);}),a.offsetHeight<b&&(a.style.height=b+"px");}}};a.behaviors.main_menu={attach:function attach(){if(!b){var a=document.querySelectorAll(".tehy_magazine_main_menu li.has-submenu");0<a.length&&(b=!0,c.initMenuItems(a));var d=document.querySelector("#main-menu-toggle");null!==d&&c.initMenuToggle(d);}}};})(Drupal);; 9"use strict";(function(a){'use strict';var b=!1,c={initMenuItems:function initMenuItems(a){a.forEach(function(a){var b=a.querySelector("button"),d=a.parentNode;b.addEventListener("click",function(f){return c.getAriaState(b)?c.toggleElement(a,!1):(c.closeSubmenus(a,d),c.toggleElement(a,!0)),f.preventDefault(),!1;});}),document.addEventListener("keyup",function(a){27===a.keyCode&&c.closeAllSubmenus();}),document.addEventListener("click",function(a){var b=document.querySelector(".tehy_magazine_secondary_menu");null==b||a.target==b||b.contains(a.target)||c.closeAllSubmenus();});},getAriaState:function getAriaState(a){return "true"===a.getAttribute("aria-expanded");},toggleElement:function toggleElement(a,b){var d=a.querySelector("a");d&&d.setAttribute("aria-expanded",b),a.querySelector("button").setAttribute("aria-expanded",b),!0===b?(a.classList.add("open"),c.updateHeight()):a.classList.remove("open");},closeSubmenus:function closeSubmenus(a,b){if(a.classList.contains("nav-item"))var d=document;else var d=b;d.querySelectorAll(".has-submenu.open").forEach(function(b){a.contains(b)||c.toggleElement(b,!1);});},closeAllSubmenus:function closeAllSubmenus(){var a=document.querySelectorAll(".tehy_magazine_secondary_menu .open");a&&a.forEach(function(a){c.toggleElement(a,!1);});},updateHeight:function updateHeight(){var a=document.querySelector(".tehy_magazine_secondary_menu .level-1 > .open > .level-2");
9if(a){var b=0;a.querySelectorAll(".open > ul").forEach(function(a){b=Math.max(b,a.offsetHeight);}),a.offsetHeight<b&&(a.style.height=b+"px");}}};a.behaviors.secondary_menu={attach:function attach(){if(!b){var a=document.querySelectorAll(".tehy_magazine_secondary_menu li.has-submenu");0<a.length&&(b=!0,c.initMenuItems(a));}}};})(Drupal);;
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.