"use strict";function initialiseBlock(n){var t=[].slice.call(n.querySelectorAll(".js-feature-block"),0);generateFeatureControls(t,n)}function removeHeightFromBlocks(n){n.forEach(function(n){n.style.height=""})}function checkBlockHeights(n){window.innerWidth>800?setTimeout(function(){getCorrectHeightOfBlocks(n)},100):n.length>0&&setTimeout(function(){removeHeightFromBlocks(n)},100)}var generateFeatureControls=function(n,t){if(n.map(function(i){var r=i.querySelector(".js-feature-figure"),u=i.querySelector(".js-feature-control");u.addEventListener("click",function(u){u.preventDefault();i.classList.toggle("key-feature--active__mob");n.forEach(function(n){i!==n?n.classList.remove("key-feature--active"):(i.classList.add("key-feature--active"),window.innerWidth>800&&(t.style.height=r.clientHeight+"px"))})})}),n.length!=0&&!(window.innerWidth<=800)){var i=n[0].querySelector(".js-feature-figure");t.style.height=i.clientHeight+"px"}},getCorrectHeightOfBlocks=function(n){n.forEach(function(n){var i=[].slice.call(n.querySelectorAll(".js-feature-block"),0),t;n.style.opacity=0;n.style.height="";t=n.clientHeight;i.forEach(function(n){var i=n.querySelector(".js-feature-figure");i.clientHeight>t&&(t=i.clientHeight)});n.style.height=t+"px";n.style.opacity=1})};document.addEventListener("DOMContentLoaded",function(){var u=[].slice.call(document.querySelectorAll(".js-feature-block-contain"),0),f=[].slice.call(document.querySelectorAll(".js-feature-block-contain li"),0),t,r,n,i;for(u.forEach(function(n){initialiseBlock(n)}),window.addEventListener("resize",function(){}),t=document.querySelectorAll(".meet-the-team-tabset button"),r=function(n){var i=t[n];i.setAttribute("data-tab",i.innerText.trim().replace(/[^a-z0-9]+/gim,"-").toLowerCase());i.addEventListener("click",function(){location.replace(location.origin+location.pathname+"#t-"+i.innerText.trim().replace(/[^a-z0-9]+/gim,"-").toLowerCase())})},n=0;n<t.length;n++)r(n);i=location.hash;i.indexOf("#t-")===0&&(document.querySelector('[data-tab="'+i.substr(3)+'"]').click(),window.scrollBy({top:document.querySelector(".js-feature-block-contain").getBoundingClientRect().top-80,left:0,behavior:"smooth"}))})