PageSourceSearch

https://www.fikuro.fi/hubfs/hub_generated/template_assets/1/70552917951/1790246846072/template_main.min.js

js fikuro.fi collected 2026-10-04 13:25:58 UTC 18,731 bytes, 2 lines download raw bytes

1!function(){window.VISMA_THEME_SETTINGS={animation:{defaultType:"none",defaultSpeed:"medium",defaultStyle:"animate-in",animationDelay:"medium"}};var nav=document.querySelector(".header__navigation"),langSwitcher=document.querySelector(".header__language-switcher"),stickyHeader=document.querySelector(".header-wrapper.-sticky"),allToggles=document.querySelectorAll(".header--toggle"),navToggle=document.querySelector(".header__navigation--toggle"),langToggle=document.querySelector(".header__language-switcher--toggle"),searchToggle=document.querySelector("#toggle-search-desktop"),closeToggle=document.querySelector(".header__close--toggle"),allElements=document.querySelectorAll(".header--element, .header--toggle"),emailGlobalUnsub=document.querySelector('input[name="globalunsub"]'),footer=document.querySelector(".visma-module-wrapper.footer"),footerLogoLight=document.querySelector(".footer-logo-light"),footerLogoDark=document.querySelector(".footer-logo-dark"),headerWrapper=document.querySelector(".header-wrapper.-sticky.-transparent"),firstModule=document.querySelector(".body-wrapper .background.visma-module-wrapper, .body-wrapper .background.visma-module-full-height-wrapper"),navigationWrapper=document.querySelector(".site-navigation-wrapper"),logoImage=document.querySelector(".site-logo-image"),logoImageDark=document.querySelector(".site-logo-image.dark");function handleScroll(){!headerWrapper||!logoImageDark||window.innerWidth<=1200||(window.scrollY>0?(logoImageDark.classList.remove("hide"),logoImage.classList.add("hide"),headerWrapper.classList.add("-scroll")):(updateLogoBasedOnBackground(),headerWrapper.classList.remove("-scroll"),searchToggle&&"true"===searchToggle.getAttribute("aria-expanded")&&(logoImageDark.classList.remove("hide"),logoImage.classList.add("hide"),headerWrapper.classList.add("-scroll"))))}function updateHeaderAppearance(){if(headerWrapper&&!(window.innerWidth<=1200)){var classes=firstModule.classList.value.split(" "),pick=function(kw){return classes.filter(function(c){return c.includes(kw)})},dark=pick("background-dark"),light=pick("background-light"),image=pick("background-image"),def=pick("background-default"),bLight=pick("text-brand-light"),bDark=pick("text-brand-dark"),tLight=pick("text-light"),tDark=pick("text-dark"),headerBg=headerWrapper.querySelector(".background"),searchBg=document.querySelector(".site-search");[dark,light,image,def,bLight,bDark,tLight,tDark].some(function(arr){return 1===arr.length})&&(["background-default","background-light-1","background-light-2","background-light-3","background-light-4"].forEach(function(cls){headerBg.classList.remove(cls)}),["background","background-light-1","background-light-2","background-light-3","background-light-4"].forEach(function(cls){navigationWrapper.classList.remove(cls)})),1===dark.length?headerBg.classList.add(dark[0]):1===light.length?headerBg.classList.add(light[0]):1===image.length||1===bLight.length||1===tLight.length?headerBg.classList.add("background-image","background-default"):1===def.length&&headerBg.classList.add("background-default"),searchBg&&["background-light-1","background-light-2","background-light-3","background-light-4"].forEach(function(cls){searchBg.classList.remove(cls)})}}function offsetScrollByHeaderHeight(){stickyHeader&&document.documentElement.style.setProperty("scroll-padding-top",stickyHeader.offsetHeight+"px")}function toggleNav(){allToggles.forEach(function(t){t.classList.toggle("hide")}),nav.classList.toggle("open"),navToggle.classList.toggle("open"),closeToggle.classList.toggle("show")}function toggleLang(){allToggles.forEach(function(t){t.classList.toggle("hide")}),langSwitcher.classList.toggle("open"),langToggle.classList.toggle("open"),closeToggle.classList.toggle("show")}function toggleSearch(){var expanded="true"===searchToggle.getAttribute("aria-expanded");expanded&&0===window.scrollY?(headerWrapper.classList.remove("-scroll"),updateLogoBasedOnBackground()):expanded||(headerWrapper.classList.add("-scroll"),logoImage.classList.add("hide"),logoImageDark.classList.remove("hide"))}
1function closeAll(){allElements.forEach(function(el){el.classList.remove("hide","open")}),closeToggle.classList.remove("show")}function toggleDisabled(){document.querySelectorAll("#email-prefs-form .item").forEach(function(item){var input=item.querySelector("input");emailGlobalUnsub.checked?(item.classList.add("disabled"),input.setAttribute("disabled","disabled"),input.checked=!1):(item.classList.remove("disabled"),input.removeAttribute("disabled"))})}window.innerWidth<=1200&&null!==logoImageDark&&(logoImage.classList.add("hide"),logoImageDark.classList.remove("hide")),window.updateLogoBasedOnBackground=function(){if(headerWrapper&&logoImageDark&&!(window.innerWidth<=1200)){var classes=firstModule.classList.value.split(" "),has=function(kw){return classes.some(function(c){return c.includes(kw)})};has("background-dark")||has("background-image")?(logoImage.classList.remove("hide"),logoImageDark.classList.add("hide")):has("background-light")||has("background-default")?(logoImageDark.classList.remove("hide"),logoImage.classList.add("hide")):has("text-light")||has("text-brand-light")?(logoImage.classList.remove("hide"),logoImageDark.classList.add("hide")):(has("text-dark")||has("text-brand-dark"))&&(logoImageDark.classList.remove("hide"),logoImage.classList.add("hide")),searchToggle&&searchToggle.addEventListener("click",toggleSearch)}},updateLogoBasedOnBackground(),updateHeaderAppearance(),window.addEventListener("scroll",handleScroll),window.addEventListener("resize",function(){updateHeaderAppearance(),updateLogoBasedOnBackground(),handleScroll(),offsetScrollByHeaderHeight()}),function(){if(footer&&footerLogoDark&&footerLogoLight){var classes=footer.classList.value.split(" "),has=function(kw){return classes.some(function(c){return c.includes(kw)})};has("background-dark")?(footerLogoLight.classList.remove("hide"),footerLogoDark.classList.add("hide")):(has("background-light")||has("background-default"))&&(footerLogoDark.classList.remove("hide"),footerLogoLight.classList.add("hide"))}}();var DURATION_MAP={slow:"1.6s",medium:"1.2s",fast:"0.8s"},CHILD_DELAY_MAP={slow:200,medium:150,fast:100},ITEM_DELAY_MAP={slow:160,medium:120,fast:80},ANIM_NAME_MAP={"fade-in-up":"fade-in-up","fade-in-down":"fade-in-down","fade-in-left":"fade-in-left","fade-in-right":"fade-in-right"},CHILD_CONTAINERS=["columns__card-container","product-finder__cards-wrapper","two-column-block","list-content__widget","faq-wrapper","blog-posts","pricing__cards-container","tile-block","banner-numbers__item-container","expanded-tile-block","accordion__items-container","customer-stories-posts","dictionary-listing__items","dictionary-alphabet__container","dictionary-content__items","extended-comparison__cards-container","acubiz__product-finder__cards-wrapper","employee-directory__cards-wrapper","quotation-slider__list","hero__text"];window.VISMA_addChildContainers=function(containers){Array.isArray(containers)&&containers.forEach(function(c){"string"==typeof c&&-1===CHILD_CONTAINERS.indexOf(c)&&CHILD_CONTAINERS.push(c)})};var callback,customWrapperQueue=[],animationsReady=!1,preHideSheet=null,injectedWrappers=Object.create(null);function injectPreHide(config){if(config&&config.wrapperClass&&config.containerClass&&!injectedWrappers[config.wrapperClass]){injectedWrappers[config.wrapperClass]=!0;var sheet=function(){if(preHideSheet)return preHideSheet;var el=document.getElementById("visma-anim-prehide");return el||((el=document.createElement("style")).id="visma-anim-prehide",(document.head||document.documentElement).appendChild(el)),preHideSheet=el.sheet}();if(sheet){var base="."+config.wrapperClass+":not([data-no-animation]) ",rules=["."+config.containerClass+" > *"];Array.isArray(config.childContainers)&&config.childContainers.forEach(function(cc){"string"==typeof cc&&cc&&rules.push("."+cc+" > *")}
1),rules.forEach(function(sel){try{sheet.insertRule(base+sel+" { opacity: 0; }",sheet.cssRules.length)}catch(e){}})}}}function resolveWrapperSettings(el){var s=function(element){var defaults_defaultType="none",defaults_defaultSpeed="medium",defaults_defaultStyle="animate-in",defaults_animationDelay="medium",t=window.VISMA_THEME_SETTINGS&&window.VISMA_THEME_SETTINGS.animation||{},theme={defaultType:t.defaultType||defaults_defaultType,defaultSpeed:t.defaultSpeed||defaults_defaultSpeed,defaultStyle:t.defaultStyle||defaults_defaultStyle,animationDelay:t.animationDelay||defaults_animationDelay};if(element&&element.hasAttribute("data-animation-type")){var resolve=function(attr,fallback){var v=element.getAttribute(attr);return v&&"theme-default"!==v?v:fallback};return{defaultType:resolve("data-animation-type",theme.defaultType),defaultSpeed:resolve("data-animation-speed",theme.defaultSpeed),defaultStyle:resolve("data-animation-style",theme.defaultStyle),animationDelay:resolve("data-animation-delay",theme.animationDelay)}}return theme}(el),animName=ANIM_NAME_MAP[s.defaultType];return animName?{animName:animName,duration:DURATION_MAP[s.defaultSpeed]||DURATION_MAP.medium,childDelay:CHILD_DELAY_MAP[s.animationDelay]||CHILD_DELAY_MAP.medium,itemDelay:ITEM_DELAY_MAP[s.animationDelay]||ITEM_DELAY_MAP.medium,style:s.defaultStyle}:null}function initScrollAnimations(){if(!window.matchMedia("(prefers-reduced-motion: reduce)").matches&&"IntersectionObserver"in window){var WRAPPER=":is(.visma-module-wrapper, .visma-module-full-height-wrapper)",ANIM_WRAPPER="visma-anim-wrapper",ACTIVE="is-visible",CONTAINER="is-stagger-container",IGNORE=["header-wrapper","footer"],activeTimeouts=new WeakMap,wrapperSettings=new WeakMap,pendingCascade=new WeakSet,containerObserver=new IntersectionObserver(function(entries){entries.forEach(function(entry){var wrapper=entry.target.closest(WRAPPER)||entry.target.closest("."+ANIM_WRAPPER);if(wrapper&&wrapperSettings.has(wrapper)&&!pendingCascade.has(wrapper)){var settings=wrapperSettings.get(wrapper);if(entry.isIntersecting)clearTimeouts(entry.target),requestAnimationFrame(function(){staggerChildren(entry.target,settings.itemDelay)}),"animate-in"===settings.style&&containerObserver.unobserve(entry.target);else if("animate-out"===settings.style||"animate-in-out"===settings.style){if(!Array.from(entry.target.children).some(function(c){return c.classList.contains(ACTIVE)}))return;if(isAtPageBottom()&&isElementStillVisible(entry.target))return;clearTimeouts(entry.target),Array.from(entry.target.children).forEach(function(c){c.classList.remove(ACTIVE)})}}})},{rootMargin:"0px 0px -80px 0px",threshold:[0,.1]}),moduleObserver=new IntersectionObserver(function(entries){entries.forEach(function(entry){if(wrapperSettings.has(entry.target)&&!pendingCascade.has(entry.target)){var wrapper,module,settings=wrapperSettings.get(entry.target);entry.isIntersecting?(requestAnimationFrame(function(){animateIn(entry.target,settings)}),"animate-in"===settings.style&&moduleObserver.unobserve(entry.target)):"animate-out"!==settings.style&&"animate-in-out"!==settings.style||(wrapper=entry.target,(module=getModule(wrapper))&&Array.from(module.children).some(function(c){return c.classList.contains(ACTIVE)})&&(isAtPageBottom()&&isElementStillVisible(wrapper)||(clearTimeouts(module),Array.from(module.children).forEach(function(c){c.classList.remove(ACTIVE)}),wrapper.classList.add("is-out"))))}})},{rootMargin:"0px 0px -80px 0px",threshold:[0,.2]}),initialAnimated=new WeakSet;document.querySelectorAll(WRAPPER).forEach(function(el){prepareWrapper(el)}),document.querySelectorAll(WRAPPER+"."+ANIM_WRAPPER).forEach(function(el){el.querySelectorAll("."+CONTAINER).forEach(function(child){containerObserver.observe(child)}),moduleObserver.observe(el)}),triggerInitialAnimations(),window.VISMA_processCustomWrappers=function(wrappers){wrappers.forEach(function(config){config.wrapperClass&&config.containerClass&&(config.childContainers&&config.childContainers.forEach(function(c){"string"==typeof c&&-1===CHILD_CONTAINERS.indexOf(c)&&CHILD_CONTAINERS.push(c)}
1),document.querySelectorAll("."+config.wrapperClass).forEach(function(el){prepareWrapper(el,config.containerClass)&&(el.querySelectorAll("."+CONTAINER).forEach(function(child){containerObserver.observe(child)}),moduleObserver.observe(el))}))}),triggerInitialAnimations()};var BUILT_IN_SLIDERS=[{wrapperClass:"card-slider",containerClass:"card-slider__list"},{wrapperClass:"quotation-slider",containerClass:"quotation-slider__list"}],ANIM_ATTRS=["data-animation-type","data-animation-speed","data-animation-style","data-animation-delay"];BUILT_IN_SLIDERS.forEach(function(config){document.querySelectorAll("."+config.wrapperClass).forEach(function(el){if(!el.hasAttribute("data-animation-type")){for(var source=null,sibling=el.previousElementSibling;sibling&&!source;)(sibling.classList.contains("visma-module-wrapper")||sibling.classList.contains("visma-module-full-height-wrapper"))&&sibling.hasAttribute("data-animation-type")&&(source=sibling),sibling=sibling.previousElementSibling;if(!source)for(sibling=el.nextElementSibling;sibling&&!source;)(sibling.classList.contains("visma-module-wrapper")||sibling.classList.contains("visma-module-full-height-wrapper"))&&sibling.hasAttribute("data-animation-type")&&(source=sibling),sibling=sibling.nextElementSibling;source&&ANIM_ATTRS.forEach(function(attr){var val=source.getAttribute(attr);val&&el.setAttribute(attr,val)})}})}),window.VISMA_processCustomWrappers(BUILT_IN_SLIDERS),new MutationObserver(function(mutations){mutations.forEach(function(m){m.addedNodes.forEach(function(node){1===node.nodeType&&(node.classList&&(node.classList.contains("visma-module-wrapper")||node.classList.contains("visma-module-full-height-wrapper"))?handleDynamicWrapper(node):node.querySelectorAll&&node.querySelectorAll(WRAPPER).forEach(handleDynamicWrapper))})})}).observe(document.body,{childList:!0,subtree:!0}),animationsReady=!0,customWrapperQueue.length&&(window.VISMA_processCustomWrappers(customWrapperQueue),customWrapperQueue=[])}function clearTimeouts(el){activeTimeouts.has(el)&&(activeTimeouts.get(el).forEach(clearTimeout),activeTimeouts.delete(el))}function isAtPageBottom(){return window.innerHeight+window.scrollY>=document.documentElement.scrollHeight-200}function isElementStillVisible(el){var r=el.getBoundingClientRect();return r.bottom>0&&r.top<window.innerHeight}function staggerChildren(container,itemDelay){clearTimeouts(container);var timeouts=Array.from(container.children).map(function(child,i){return setTimeout(function(){child.classList.add(ACTIVE)},i*itemDelay)});activeTimeouts.set(container,timeouts)}function getModule(wrapper){return wrapper.querySelector(".visma-anim-module")}function animateIn(wrapper,settings){var module=getModule(wrapper);if(module){clearTimeouts(module),wrapper.classList.remove("is-out");var timeouts=Array.from(module.children).map(function(child,i){return setTimeout(function(){child.classList.add(ACTIVE)},i*settings.childDelay)});activeTimeouts.set(module,timeouts)}}function triggerInitialAnimations(){requestAnimationFrame(function(){var wh=window.innerHeight||document.documentElement.clientHeight,visible=[];document.querySelectorAll("."+ANIM_WRAPPER).forEach(function(wrapper){if(wrapperSettings.has(wrapper)&&!initialAnimated.has(wrapper)){var r=wrapper.getBoundingClientRect();r.top<wh-80&&r.bottom>0&&visible.push(wrapper)}}),visible.forEach(function(wrapper){initialAnimated.add(wrapper),pendingCascade.add(wrapper)}),visible.forEach(function(wrapper,i){var settings=wrapperSettings.get(wrapper);setTimeout(function(){pendingCascade.delete(wrapper),animateIn(wrapper,settings),wrapper.querySelectorAll("."+CONTAINER).forEach(function(container){var cr=container.getBoundingClientRect();cr.top<wh-80&&cr.bottom>0&&(staggerChildren(container,settings.itemDelay),"animate-in"===settings.style&&containerObserver.unobserve(container))}),"animate-in"===settings.style&&moduleObserver.unobserve(wrapper)},500*i)})})}function prepareWrapper(el,containerClass){if(IGNORE.some(function(cls){return el.classList.contains(cls)}))return null;if(function(el){var bodyClasses=(document.body.className||"").split(" "),blogKeywords=["hs-blog-listing","blog-listing","hs_blog_listing","hs-blog-post","blog-post"];return!!bodyClasses.some(function(cls){return blogKeywords.some(function(kw){return 0===cls.indexOf(kw)})})||!!el.closest(".body-container--blog-post")||-1!==(el.className||"").indexOf("body-container--blog-post")}(el))return el.setAttribute("data-no-animation","true"),null;var settings=resolveWrapperSettings(el);if(!settings)return el.setAttribute("data-no-animation","true"),null;var moduleEl=containerClass?el.querySelector("."+containerClass):el.querySelector(".visma-module");return moduleEl?(el.classList.add(ANIM_WRAPPER),moduleEl.classList.add("visma-anim-module"),el.setAttribute("data-anim-name",settings.animName),el.style.setProperty("--anim-name",settings.animName),el.style.setProperty("--anim-duration",settings.duration),wrapperSettings.set(el,settings),el.querySelectorAll("*").forEach(function(child){(function(el){return Array.from(el.classList).some(function(cls){return CH
1ILD_CONTAINERS.some(function(kw){return cls.includes(kw)})})})(child)&&child.classList.add(CONTAINER)}),settings):(el.setAttribute("data-no-animation","true"),null)}function handleDynamicWrapper(el){if(!el.classList.contains(ANIM_WRAPPER)){var settings=prepareWrapper(el);if(settings){el.querySelectorAll("."+CONTAINER).forEach(function(child){containerObserver.observe(child)}),moduleObserver.observe(el);var wh=window.innerHeight||document.documentElement.clientHeight,r=el.getBoundingClientRect();r.top<wh-80&&r.bottom>0&&requestAnimationFrame(function(){animateIn(el,settings),el.querySelectorAll("."+CONTAINER).forEach(function(c){var cr=c.getBoundingClientRect();cr.top<wh-80&&cr.bottom>0&&staggerChildren(c,settings.itemDelay)})})}}}}window.VISMA_addCustomWrappers=function(wrappers){Array.isArray(wrappers)&&(wrappers.forEach(injectPreHide),animationsReady&&window.VISMA_processCustomWrappers?window.VISMA_processCustomWrappers(wrappers):customWrapperQueue.push.apply(customWrapperQueue,wrappers))},callback=function(){document.body&&(stickyHeader&&offsetScrollByHeaderHeight(),langSwitcher&&langToggle.addEventListener("click",toggleLang),navToggle&&navToggle.addEventListener("click",toggleNav),closeToggle&&closeToggle.addEventListener("click",closeAll),emailGlobalUnsub&&emailGlobalUnsub.addEventListener("change",toggleDisabled),initScrollAnimations())},["interactive","complete"].indexOf(document.readyState)>=0?callback():document.addEventListener("DOMContentLoaded",callback)}();
2//# sourceURL=https://26609264.fs1.hubspotusercontent-eu1.net/hubfs/26609264/hub_generated/template_assets/1/70552917951/1790246846072/template_main.js

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.