"use strict";(function(){var setSliderIndicator=function setSliderIndicator(carousel){var sliderIndex=getSliderIndex(carousel);carousel.closest('.projects-carousel-component').querySelector('.js-projects-carousel-component__count-indicator-counter').innerHTML=sliderIndex+1;};var getSliderIndex=function getSliderIndex(carousel){var elements=carousel.querySelectorAll('.carousel-item');var activeElement=carousel.querySelector('.carousel-item.active');return Array.prototype.indexOf.call(elements,activeElement);};var init=function init(){var projectCarousels=document.getElementsByClassName('projects-carousel-component__carousel');var _loop=function _loop(i){projectCarousels[i].addEventListener('slid.bs.carousel',function(event){setSliderIndicator(projectCarousels[i]);});};for(var i=0;i<projectCarousels.length;i++){_loop(i);}};$(init);})();"use strict";function _createForOfIteratorHelper(o,allowArrayLike){var it=typeof Symbol!=="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!it){if(Array.isArray(o)||(it=_unsupportedIterableToArray(o))||allowArrayLike&&o&&typeof o.length==="number"){if(it)o=it;var i=0;var F=function F(){};return{s:F,n:function n(){if(i>=o.length)return{done:true};return{done:false,value:o[i++]};},e:function e(_e){throw _e;},f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var normalCompletion=true,didErr=false,err;return{s:function s(){it=it.call(o);},n:function n(){var step=it.next();normalCompletion=step.done;return step;},e:function e(_e2){didErr=true;err=_e2;},f:function f(){try{if(!normalCompletion&&it.return!=null)it.return();}finally{if(didErr)throw err;}}};}
function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}
function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2;}
function TriggerCounter(){var counterElms=document.getElementsByClassName("statistics-pod__value");for(var i=0;i<counterElms.length;i++){var counterId=counterElms[i].id;var counterStart=counterElms[i].dataset.counterStart;var counterEnd=counterElms[i].dataset.counterEnd;var counterUnit=counterElms[i].dataset.counterUnit;var separator='';if(counterStart.includes(",")||counterEnd.includes(",")){separator=',';counterStart=counterStart.replaceAll(',','');counterEnd=counterEnd.replaceAll(',','');}
var options={useEasing:true,useGrouping:true,separator:separator,decimal:'.',prefix:'',suffix:counterUnit,enableScrollSpy:true};var counter=new CountUp(counterId,counterStart,counterEnd,0,2.5,options);counter.start();}};function onClassChange(node,callback){var lastClassString=node.classList.toString();var mutationObserver=new MutationObserver(function(mutationList){var _iterator=_createForOfIteratorHelper(mutationList),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var item=_step.value;if(item.attributeName==="class"){var classString=node.classList.toString();if(classString!==lastClassString){callback(mutationObserver);lastClassString=classString;break;}}}}catch(err){_iterator.e(err);}finally{_iterator.f();}});mutationObserver.observe(node,{attributes:true});return mutationObserver;}
window.onload=function(){var components=document.getElementsByClassName('selling-points-component');for(var i=0;i<components.length;i++){TriggerCounter();}};document.addEventListener("DOMContentLoaded",function(){var TestIfCounterShouldBeTriggered=function TestIfCounterShouldBeTriggered(elm){if(elm.classList.contains('js-animate-now')){TriggerCounter();}};var components=document.getElementsByClassName('selling-points-component');var _loop=function _loop(i){onClassChange(components[i],function(){TestIfCounterShouldBeTriggered(components[i]);});};for(var i=0;i<components.length;i++){_loop(i);}});"use strict";(function(){function debounce(fn,ms){var time=null;return function(){var a=arguments,t=this;clearTimeout(time);time=setTimeout(function(){fn.apply(t,a);},ms);};}
function throttle(fn,ms){var time,last=0;return function(){var a=arguments,t=this,now=+new Date(),exe=function exe(){last=now;fn.apply(t,a);};clearTimeout(time);now>=last+ms?exe():time=setTimeout(exe,ms);};}
function hasClass(el,cls){if(el.className.match('(?:^|\\s)'+cls+'(?!\\S)')){return true;}}
function addClass(el,cls){if(!el.className.match('(?:^|\\s)'+cls+'(?!\\S)')){el.className+=' '+cls;}}
function delClass(el,cls){el.className=el.className.replace(new RegExp('(?:^|\\s)'+cls+'(?!\\S)'),'');}
document.documentElement.className+=' js';function elementFromTop(elem,classToAdd,distanceFromTop,unit){var winY=window.innerHeight||document.documentElement.clientHeight,elemLength=elem.length,distTop,distPercent,distPixels,distUnit,i;for(i=0;i<elemLength;++i){distTop=elem[i].getBoundingClientRect().top;distPercent=Math.round(distTop/winY*100);distPixels=Math.round(distTop);distUnit=unit=='percent'?distPercent:distPixels;if(distUnit<=distanceFromTop){if(!hasClass(elem[i],classToAdd)){addClass(elem[i],classToAdd);}}else{delClass(elem[i],classToAdd);}}}
var elmClassToActOn='.component, .o-cross-linking-cards, .o-news-and-insights';window.addEventListener('scroll',throttle(function(){elementFromTop(document.querySelectorAll(elmClassToActOn),'js-animate-before',110,'percent');elementFromTop(document.querySelectorAll(elmClassToActOn),'js-animate-now',75,'percent');},100),false);window.addEventListener('resize',debounce(function(){elementFromTop(document.querySelectorAll(elmClassToActOn),'js-animate-before',110,'percent');elementFromTop(document.querySelectorAll(elmClassToActOn),'js-animate-now',75,'percent');},100),false);})();"use strict";console.log('reporting... 3');;;
