jQuery.noConflict(); !(function(root,factory){'use strict';if(typeof define==='function'&&define.amd){define(['jquery'],factory);}else if(typeof exports==='object'){module.exports=factory(require('jquery'));}else{factory(root.jQuery);}}(this,function($){'use strict';var cssPrefixes=['-webkit-','-moz-','-o-',''],eventPrefixes=['webkit','moz','MS','o',''];function prefixedEvent(element,name,callback){eventPrefixes.forEach(function(prefix){if(!prefix){name=name.toLowerCase();} element.on(prefix+name,callback);});} function SimpleMarquee(element,options){this._element=$(element);this._options=$.extend({speed:30,direction:'left',cycles:1,space:40,delayBetweenCycles:2000,handleHover:true,handleResize:true,easing:'linear'},options);this._resizeDelay=parseInt(this._options.handleResize,10)||300;this._horizontal=this._options.direction==='left'||this._options.direction==='right';this._animationName='simplemarquee-'+Math.round((Math.random()*10000000000000)).toString(18);this._onResize=this._onResize.bind(this);this._onCycle=this._onCycle.bind(this);this._options.handleResize&&$(window).on('resize',this._onResize);this._options.handleHover&&this._element.on({'mouseenter.simplemarquee':this._onMouseEnter.bind(this),'mouseleave.simplemarquee':this._onMouseLeave.bind(this)});this._element.on('destroy.simplemarquee',this.destroy.bind(this));this.update(true);} SimpleMarquee.prototype.update=function(restart){this._reset();this._setup();if(!this._needsAnimation){this._paused=false;this._cycles=0;}else if(restart){this._paused=false;this._cycles=-1;this._onCycle();}else if(this._paused){this._pause();} return this;};SimpleMarquee.prototype.pause=function(){if(this._needsAnimation){this._resetCycle();if(!this._paused){this._pause();this._element.triggerHandler('pause');this._paused=true;}} return this;};SimpleMarquee.prototype.resume=function(){if(this._needsAnimation){this._resetCycle();if(this._paused){this._resume();this._element.triggerHandler('resume');this._paused=false;}} return this;};SimpleMarquee.prototype.toggle=function(){this._paused?this.resume():this.pause();return this;};SimpleMarquee.prototype.destroy=function(){this._reset();this._resizeTimeout&&clearTimeout(this._resizeTimeout);$(window).off('resize',this._onResize);this._element.off('.simplemarquee');this._element.removeData('_simplemarquee');this._element=null;};SimpleMarquee.prototype._reset=function(){this._element.removeClass('has-enough-space').css({'word-wrap':'','overflow-wrap':'','white-space':'','overflow':'',});if(this._wrappers){this._contents.closest(this._element).length&&this._element.append(this._contents);this._wrappers.remove();this._element.children('style').remove();} this._contents=this._wrappers=this._size=null;this._needsAnimation=false;this._resetCycle();};SimpleMarquee.prototype._setup=function(){var wrapper;if(this._horizontal){this._element.css({'word-wrap':'normal','overflow-wrap':'normal','white-space':'nowrap','overflow':'hidden',});this._needsAnimation=this._element[0].scrollWidth>Math.ceil(this._element.outerWidth());}else{this._element.css({'word-wrap':'break-word','overflow-wrap':'break-word','white-space':'normal','overflow':'hidden',});this._needsAnimation=this._element[0].scrollHeight>Math.ceil(this._element.outerHeight());} this._element.toggleClass('has-enough-space',!this._needsAnimation);if(!this._needsAnimation){return;} this._contents=this._element.contents();wrapper=$('
');wrapper.append(this._contents);this._element.append(wrapper);wrapper=$('
');wrapper.append(this._contents.clone());this._element.append(wrapper);this._wrappers=this._element.children();if(this._horizontal){this._wrappers.css('display','inline-block');this._wrappers.eq(1).css('margin-left',this._options.space);this._size=this._wrappers.eq(0).outerWidth()+this._options.space;}else{this._wrappers.eq(1).css('margin-top',this._options.space);this._size=this._wrappers.eq(0).outerHeight()+this._options.space;} this._setupAnimation();};SimpleMarquee.prototype._setupAnimation=function(){var styleStr;styleStr='\n';this._element.append(styleStr);this._wrappers.css('animation',this._animationName+' '+(this._size / this._options.speed)+'s '+this._options.easing+' infinite');prefixedEvent(this._wrappers.eq(0),'AnimationIteration',this._onCycle);};SimpleMarquee.prototype._pause=function(){this._wrappers.css('animation-play-state','paused');};SimpleMarquee.prototype._resume=function(){this._wrappers.css('animation-play-state','');};SimpleMarquee.prototype._resetCycle=function(){if(this._cycleTimeout){clearTimeout(this._cycleTimeout);this._cycleTimeout=null;}};SimpleMarquee.prototype._onCycle=function(){this._resetCycle();this._cycles+=1;if(this._cycles>=this._options.cycles){this.pause();this._element.triggerHandler('finish');}else{this._pause();this._element.triggerHandler('cycle');this._cycleTimeout=setTimeout(function(){this._cycleTimeout=null;this._resume();}.bind(this),this._options.delayBetweenCycles);}};SimpleMarquee.prototype._onMouseEnter=function(){if(this._paused){this._cycles=0;this.resume();}else{this.pause();}};SimpleMarquee.prototype._onMouseLeave=function(){this.resume();};SimpleMarquee.prototype._onResize=function(){this._resizeTimeout&&clearTimeout(this._resizeTimeout);this._resizeTimeout=setTimeout(function(){this._resizeTimeout=null;this.update();}.bind(this),this._resizeDelay);};$.fn.simplemarquee=function(options){this.each(function(index,el){var instance;el=$(el);instance=el.data('_simplemarquee');if(typeof options==='string'){if(!instance){return;} instance[options](arguments[1]);}else{if(!instance){instance=new SimpleMarquee(el,options);el.data('_simplemarquee',instance);}else{instance.update(true);}}});return this;};$.fn.simplemarquee.Constructor=SimpleMarquee;return $;}));; (function($,_,Drupal){Drupal.behaviors.techm={attach:function(context,settings){const blocks=context.querySelectorAll('.logout-profile-block');blocks.forEach(block=>{const icon=block.querySelector('.logout-profile-icon');const menu=block.querySelector('.logout-menu-header');if(!icon||!menu)return;let hideTimer;const showMenu=()=>{clearTimeout(hideTimer);menu.classList.add('show');};const hideMenu=()=>{hideTimer=setTimeout(()=>{menu.classList.remove('show');},100);};icon.addEventListener('mouseenter',showMenu);icon.addEventListener('mouseleave',hideMenu);menu.addEventListener('mouseenter',showMenu);menu.addEventListener('mouseleave',hideMenu);});function initializedia(){$(".ui-dialog").scroll(function(){$(".ui-datepicker").hide();$(".ui-timepicker-wrapper").hide();});$(".js-form-item-event-date").click(function(){$(".ui-datepicker").show();});$(".form-item-event-time").click(function(){$(".ui-timepicker-wrapper").show();});};$(document).on('click','.js-form-item-event-date,.form-item-event-time',function(){initializedia();});initializedia();if(typeof isMobile==='function'){if(isMobile()){$('.video-desktop-display').remove();} else{$('.video-mobile-display').remove();}} Drupal.theme.ajaxProgressIndicatorFullscreen=()=>'
';$(window).on('load',function(){var $viewExposedForm=$('.view-annual-reports .views-exposed-form').once('set-first-option-as-default');if($viewExposedForm.length){var $selectField=$viewExposedForm.find('select[name="field_financial_year_target_id"]');if($selectField.length){$selectField.find('option[value="All"]').remove();var $firstOption=$selectField.find('option').first();$firstOption.prop('selected',true);$selectField.trigger('change');}}});$(document).ready(function(){function OpenOneTrustDialog(){$(".ot-sdk-show-settings").trigger("click");} $('.cookie-preferences').on('click',function(event){event.preventDefault();OpenOneTrustDialog();});if($('li.tb-megamenu-item.level-1.mega.mega-align-justify').hasClass('dropdown')){$('li.tb-megamenu-item.level-1.mega.mega-align-justify.dropdown').hover(function(){$(this).find($('.tb-megamenu-submenu.dropdown-menu.mega-dropdown-menu .tb-megamenu-row > .tb-megamenu-column.mega-col-nav.mega-menu-block .mega-menu-articles')).each(function(){var img=$(this).find("img.lazy-img");var len=img.length;if(len>0&&$(this).find('img').hasClass('lazy-img')){var img_src=$(this).find('img.lazy-img').attr("data-src");$(this).find('img.lazy-img').attr('src',img_src);}});})} var lazyLoadInstance=new LazyLoad({});lazyLoadInstance.update();if(window.innerWidth<720){var tallTileHeight=function(){var $sameHeightDivs=$('.paragraph--type--card-info-tall-tiles:not(.paragraph--type--bp-tab-section .paragraph--type--card-info-tall-tiles)');var maxHeight=0;$sameHeightDivs.each(function(){maxHeight=Math.max(maxHeight,$(this).innerHeight());});$sameHeightDivs.css({minHeight:maxHeight+'px'});};var tabStandTileHeight=function(){var $sameHeightDivs=$('.paragraph--type--card-info-stand-tiles');var maxHeight=0;$sameHeightDivs.each(function(){maxHeight=Math.max(maxHeight,$(this).innerHeight());});$sameHeightDivs.css({minHeight:maxHeight+'px'});};var tabTallTileHeight=function(){var $sameHeightDivs=$('.typography-bg-light.paragraph--type--card-info-tall-tiles');var maxHeight=0;$sameHeightDivs.each(function(){maxHeight=Math.max(maxHeight,$(this).innerHeight());});$sameHeightDivs.css({minHeight:maxHeight+'px'});};var tabShortTileHeight=function(){var $sameHeightDivs=$('.paragraph--type--bp-tab-section .slick-track .paragraph--type--card-info-short-tiles');var maxHeight=0;$sameHeightDivs.each(function(){maxHeight=Math.max(maxHeight,$(this).innerHeight());});$sameHeightDivs.css({minHeight:maxHeight+'px'});};var shortTileHeight=function(){var $sameHeightDivs=$('.paragraph--type--card-info-short-tiles:not(.paragraph--type--bp-tab-section .paragraph--type--card-info-short-tiles)');var maxHeight=0;$sameHeightDivs.each(function(){maxHeight=Math.max(maxHeight,$(this).innerHeight());});$sameHeightDivs.css({minHeight:maxHeight+'px'});};var standardTileHeight=function(){var $sameHeightDivs=$('.paragraph--type--card-info-standard-tiles:not(.paragraph--type--bp-tab-section .paragraph--type--card-info-standard-tiles)');var maxHeight=0;$sameHeightDivs.each(function(){maxHeight=Math.max(maxHeight,$(this).innerHeight());});$sameHeightDivs.css({minHeight:maxHeight+'px'});};var tallTileHeight=function(){var $sameHeightDivs=$('.paragraph--type--card-info-tall-tiles:not(.paragraph--type--bp-tab-section .paragraph--type--card-info-tall-tiles)');var maxHeight=0;$sameHeightDivs.each(function(){maxHeight=Math.max(maxHeight,$(this).innerHeight());});$sameHeightDivs.css({minHeight:maxHeight+'px'});};var tabStandTileHeight=function(){var maxHeight=0;var $sameHeightDivs=$('.paragraph--type--bp-tab-section .paragraph--type--card-info-standard-tiles');var maxHeight=0;$sameHeightDivs.each(function(){maxHeight=Math.max(maxHeight,$(this).innerHeight());});$sameHeightDivs.css({minHeight:maxHeight+'px'});};var tabTallTileHeight=function(){var maxHeight=0;var $sameHeightDivs=$('.paragraph--type--bp-tab-section .paragraph--type--card-info-tall-tiles');var maxHeight=0;$sameHeightDivs.each(function(){maxHeight=Math.max(maxHeight,$(this).innerHeight());});$sameHeightDivs.css({minHeight:maxHeight+'px'});};tallTileHeight();tabStandTileHeight();tabTallTileHeight();standardTileHeight();tabShortTileHeight();shortTileHeight();$(window).resize(function(){if(window.innerWidth<720){tallTileHeight();tabStandTileHeight();tabTallTileHeight();standardTileHeight();tabShortTileHeight();shortTileHeight();}else{$('.paragraph--type--card-info-tall-tiles').css({minHeight:''});}});} if($(window).width()<=767){var divHeight=$('.maindiagonalbanner .fullwidth.bg-edge2edge:not(.container)').height();var headHeight=$('.navbar')[0].offsetHeight;$('.maindiagonalbanner .bg-edge2edge .clip-path').height(divHeight+headHeight+75+180);} $(window).resize(function(){if($(window).width()<=767){var divHeight=$('.maindiagonalbanner .fullwidth.bg-edge2edge:not(.container)').height();var headHeight=$('.navbar')[0].offsetHeight;$('.maindiagonalbanner .bg-edge2edge .clip-path').height(divHeight+headHeight+75+180);}});});$('.view-customer-testimonials .cust-testimonial-img span.video-play-icon').once().on('click',function(event){$(this).parent().find(".colorbox-media-video").click();});$('.event-video-upload .media__image').on('click',function(event){event.preventDefault();$(this).closest('.blazy__colorbox').click();});$('.paragraph--type--card-list-item .card-list-image span.video-play-icon').once().on('click',function(event){$(this).next().next().find(".colorbox-media-video").click();});$('.paragraph--type--testimonial-individual .testimonial-image span.video-play-icon').once().on('click',function(event){$(this).next().next().find(".colorbox-media-video").click();});$('.popup-video-source span.video-play-icon').once().on('click',function(event){if($(this).parent().next().find(".media--view-mode-default").hasClass('media--type-remote-video')){$(this).parent().next().find(".colorbox-media-video").click();$(this).next().get(0).pause();} event.preventDefault();});$(document).once().on('cbox_open',function(){}).on('cbox_closed',function(){var video=$(".popup-video-source video").get(0);if(video){video.play();}});if($(window).width()>=767.98){$('.paragraph--type--bp-tabs .nav-tabs a').once('tabs').on('shown.bs.tab',function(event){const hrefTab=$(event.target).attr('href');if($(hrefTab).length&&$(hrefTab+' .slick-slider').length){if(isMobile()){$(hrefTab+' .slick-slider').slick('unslick').slick('reinit');}else{$(hrefTab+' .slick-slider').slick('refresh');}}});} if($(window).width()<767.98){$('.paragraph--type--bp-tabs .nav-tabs a').once('tabs').on('shown.bs.tab',function(event){const hrefTab=$(event.target).attr('href');if($(hrefTab).length&&$(hrefTab+' .slick-slider').length){if(isMobile()){$(hrefTab+' .slick-slider')[0].slick.refresh().slick();}else{$(hrefTab+' .slick-slider').slick('destroy').slick();}}});} $('.webform-submission-form input').on('blur',function(){$(this).parent().removeClass('onfocus');if($(this).val()){$(this).parent().addClass('onfocus');}}).on('focus',function(){$(this).parent().addClass('onfocus');});$('.navbar-collapse ul.menu-level-1 span.mobile-hide').parent().addClass('li-mobile-hide');$('.promoted-item').parent().addClass('span-two');$('.previous').click(function(){$('.interactive-tile-content ul.nav >li a.active').parent().prev('li.nav-item').find('a').trigger('click');});$('.next').click(function(){$('.interactive-tile-content ul.nav >li a.active').parent().next('li.nav-item').find('a').trigger('click');});$('.interactive-tile-content ul.nav >li a').hover(function(){$(this).trigger('click');});$('.images .image-block:first-child').addClass('show-image');var $tabs=$('.images .image-block');$('.interactive-tile-content .a-nav-link').on('click',function(e){$tabs.removeClass('show-image');$('.a-nav-link').removeClass('active');$(this).addClass('active');$('#image_'+this.id).addClass('show-image').removeClass('show-hover-image');$('.tab-pane').removeClass('show');$('#content-'+this.id).addClass('show');});if(!isMobile()){$(".interactive-tile-content .a-nav-link").hover(function(){$('#image_'+this.id).addClass('show-hover-image').siblings().addClass('inactive');},function(){$('#image_'+this.id).removeClass('show-hover-image').siblings().removeClass('inactive');});$("#progress-next").hover(function(){$(this).parents('.paragraph--type--interactive-tile').find('.show-image').next().addClass('show-hover-image').siblings().addClass('inactive');},function(){$(this).parents('.paragraph--type--interactive-tile').find('.show-image').next().removeClass('show-hover-image').siblings().removeClass('inactive');});$("#progress-prev").hover(function(){$(this).parents('.paragraph--type--interactive-tile').find('.show-image').prev().addClass('show-hover-image').siblings().addClass('inactive');},function(){$(this).parents('.paragraph--type--interactive-tile').find('.show-image').prev().removeClass('show-hover-image').siblings().removeClass('inactive');});} $('.a-nav-link').click(function(e){e.preventDefault();if($(this).hasClass('tiles-item-0')){$('#tiles-progress-bar').css('background-size','33% 100%');} if($(this).hasClass('tiles-item-1')){$('#tiles-progress-bar').css('background-size','66% 100%');} if($(this).hasClass('tiles-item-2')){$('#tiles-progress-bar').css('background-size','100% 100%');}});var totalCount=$('.slick-arrow-interactive-tile').length+1;$('.slick-arrow-interactive-tile').on("click",function(e){e.preventDefault();var clickNo=$('.a-nav-link.active').attr('data-src');if($(this).hasClass('previous')){clickNo--;if(clickNo<0){clickNo=totalCount-1;}} if($(this).hasClass('next')){clickNo++;if(clickNo===totalCount){clickNo=0;}} var clickVal=$('.tiles-item-'+clickNo);$('ul.nav-list >li a.active').parent().parent().find(clickVal).trigger('click');});$('.menu--investors-relations-menu li.nav-item:first-child').append('');$('.invest-arrow').on('click',function(){$(this).parents('.investor-menu').toggleClass('invest-open');});if($('.paragraph--type--bp-slick.main-bgcolor-container-tiles .wrapper-type--bp-tiles div').hasClass('component-introduction')){$('.main-bgcolor-container-tiles .slick__arrow').addClass('top-arrow');} if($('.paragraph--type--bp-view.paragraph--width--full .aos-animate div').hasClass('component-introduction')){$('.paragraph--type--bp-view.paragraph--width--full .view .slick__arrow').addClass('top-arrow');} if($('.paragraph--view-mode--slick-4-items-centered .col-12 div').hasClass('component-introduction')){$('.slick--optionset--slick-4-items-centered .slick__arrow').addClass('top-arrow');} if($('.paragraph--view-mode--slick-3-items-copy .col-12 div').hasClass('component-introduction')){$('.slick--multiple-view .slick__arrow').addClass('top--left-right-arrows');} $('.webform-submission-form input').each(function(){if($(this).val()!=''){$(this).parent().addClass('onfocus');}});var currentIndex=0,items=$('.paragraph--type--interative-tile-v2 .slide'),itemAmt=items.length;var perc=(currentIndex+1)/itemAmt*100;$('.tiles-progress').css('width',perc+'%');function cycleItems(){var item=$('.paragraph--type--interative-tile-v2 .slide').eq(currentIndex);items.removeClass('active');item.addClass('active');perc=(currentIndex+1)/itemAmt*100;$('.tiles-progress').css('width',perc+'%');} $('.next2').click(function(){currentIndex+=1;if(currentIndex>itemAmt-1){currentIndex=0;} cycleItems();});$('.prev2').click(function(){currentIndex-=1;if(currentIndex<0){currentIndex=itemAmt-1;} cycleItems();});$('.slick-arrow-interactive-tile').click(function(e){e.preventDefault();$(this).closest('.paragraph--type--interative-tile-v2').find('.slide').removeClass('show-prv show-nxt') var showtem=$(this).closest('.paragraph--type--interative-tile-v2').find('.active').attr('data-item');$('.tab-pane').removeClass('shows');$('#content-item-'+showtem).addClass('shows');});$(".next2 ").hover(function(){$(this).parents('.paragraph--type--interative-tile-v2').find('.active').next().addClass('show-nxt');$(this).parents('.paragraph--type--interative-tile-v2').find('.active.slide:last-child').siblings(':first').addClass('show-nxt');},function(){$(this).parents('.paragraph--type--interative-tile-v2').find('.show-nxt').removeClass('show-nxt');});$(".prev2 ").hover(function(){$(this).parents('.paragraph--type--interative-tile-v2').find('.active').prev().addClass('show-prv');$(this).parents('.paragraph--type--interative-tile-v2').find('.active.first').siblings(':last').addClass('show-prv');},function(){$(this).parents('.paragraph--type--interative-tile-v2').find('.show-prv').removeClass('show-prv');});$(document).ready(function(){var currentYear=(new Date).getFullYear();var siteYear=$('#block-footercopyright .field--type-text-with-summary p span').text();if(siteYear!=currentYear){$('#block-footercopyright .field--type-text-with-summary p span').text(currentYear);} $('.paragraph--type--bp-tabs .nav-tabs li').on('click',function(e){e.preventDefault();$(document).off("scroll");$('.paragraph--type--bp-tabs .nav-tabs li').each(function(){$(this).removeClass('active');}) $(this).addClass('active');var myScrollPos=$('.paragraph--type--bp-tabs .nav-tabs li.active').offset().left+$('.paragraph--type--bp-tabs .nav-tabs li.active').outerWidth(true)/2+$('.paragraph--type--bp-tabs .nav-tabs').scrollLeft()-$('.paragraph--type--bp-tabs .nav-tabs').width()/2;$('.paragraph--type--bp-tabs .nav-tabs').scrollLeft(myScrollPos);});});$(window).scroll(function(){var sticky=$('.navbar, .investor-menu'),scroll=$(window).scrollTop();sticky.removeClass('sticky-menu');if(scroll>=80)sticky.addClass('fixed-header');else sticky.removeClass('fixed-header');});var navClone=$('.paragraph--view-mode--slider-carousel-tile-large .slick .slick__arrow').clone().addClass('clone-nav');$('.paragraph--view-mode--slider-carousel-tile-large .slick__arrow').after(navClone);if(window.matchMedia("(min-width: 767px)").matches){var moreNxt=$('.slider-explore-more .slick-next, .paragraph--view-mode--slider-carousel-tiles-explore-more .slick-next').clone().addClass('moreNext');$('.slider-explore-more .slick-next, .paragraph--view-mode--slider-carousel-tiles-explore-more .slick-next').after(moreNxt);} $(".watch-more").colorbox({iframe:true,innerWidth:"80%",innerHeight:"80%"});if(window.matchMedia("(max-width: 991px)").matches){var $verticalul=$(".paragraph--view-mode--vertical-tabs ul.nav");$($verticalul).on("click","li:first-child",function(){$(this).closest($verticalul).children('li:not(:first-child)').toggle();});var allOptions=$($verticalul).children('li:not(:first-child)');$($verticalul).on("click","li:not(:first-child)",function(){allOptions.removeClass('selected');$(this).addClass('selected');var firstOption=$($verticalul).children('li:first-child').html();$($verticalul).children('li:first-child').html($(this).html());$(this).html(firstOption);allOptions.toggle();});} let scrollRef=0;$(window).on("resize scroll",function(){scrollRef<=10?scrollRef++:AOS.refresh();});$(".event-register-submit a").click(function(e){$('#drupal-modal').animate({scrollTop:'0px'},300);e.preventDefault();});$('.investor-contacts, .vbp-9096').removeClass('is-active');if(window.location.href.indexOf("investors/#")>-1){var hashVal=window.location.hash.substring(window.location.hash.indexOf("#")+1);$('.menu--investors-relations-menu a').removeClass('is-active');if(hashVal){$('.'+hashVal).addClass('invest-active');}} $('.menu--investors-relations-menu a').click(function(e){$('.menu--investors-relations-menu a').removeClass('invest-active , is-active');e.stopImmediatePropagation();$(this).addClass('invest-active');var href=$(this).attr('href');var el=href.split('#')[1];if(el.length){var elOffset=$('#'+el).position().top-200;$('html, body').animate({scrollTop:elOffset},700);return false;}});$(window).on("load",function(){if(window.location.href.indexOf('/investors')>-1){var urlHash=window.location.href.split("#")[1];if(urlHash&&$('#'+urlHash).length) $('html,body').animate({scrollTop:$('#'+urlHash).offset().top-200},700);}});$(".case-studies-list-page .views-row .grid-item").click(function(){var href=$(this).find("a").attr("href");var target=$(this).find("a").attr("target");if(target==='_blank'){window.open(href,'_blank');}else{window.location=href;} return false;});var itemsToShow=10;$('.resource-news-list-view .news-list-view-article').hide();$('.resource-news-list-view').each(function(){var $container=$(this);var $articles=$container.find('.news-list-view-article');var itemsToDisplay=Math.min(itemsToShow,$articles.length);$articles.slice(0,itemsToDisplay).slideDown();if($articles.length<=itemsToShow){$container.find('.resource-load-more-button').hide();}});$('.resource-load-more-button ').click(function(){var $container=$(this).closest('.resource-news-list-view');$container.find('.news-list-view-article:hidden').slice(0,itemsToShow).slideDown();if($container.find('.news-list-view-article:hidden').length===0){$(this).hide();}});var itemsToShowCase=10;$('.resource-case-list-view .case-list-view-article').hide();$('.resource-case-list-view').each(function(){var $container=$(this);var $articles=$container.find('.case-list-view-article');var itemsToDisplay=Math.min(itemsToShowCase,$articles.length);$articles.slice(0,itemsToDisplay).slideDown();if($articles.length<=itemsToShowCase){$container.find('.resource-case-load-more-button').hide();}});$('.resource-case-load-more-button ').click(function(){var $container=$(this).closest('.resource-case-list-view');$container.find('.case-list-view-article:hidden').slice(0,itemsToShowCase).slideDown();if($container.find('.case-list-view-article:hidden').length===0){$(this).hide();}});$('.resource-view-content').slick({slidesToShow:3,infinite:true,slidesToScroll:1,autoplay:true,autoplaySpeed:2000,dots:true,arrows:true,prevArrow:$('.case-studies-resource-header-btn .slick-prev'),nextArrow:$('.case-studies-resource-header-btn .slick-next'),responsive:[{breakpoint:991,settings:{slidesToShow:3,slidesToScroll:1,}},{breakpoint:767,settings:{slidesToShow:1,slidesToScroll:1}}]});$('.leadership-resource-slider').slick({slidesToShow:1,infinite:true,slidesToScroll:1,autoplay:true,autoplaySpeed:2000,dots:true,});(function($){$(document).ready(function(){$('.leadership-resource-slider-related_content').each(function(){const $slider=$(this);const totalSlides=$slider.children().length;if(totalSlides===1){$slider.addClass('has-one-item');}else if(totalSlides===2){$slider.addClass('has-two-items');}else if(totalSlides===3){$slider.addClass('has-three-items');} function equalizeHeights($slider){let maxTitleHeight=0;let maxDescHeight=0;const $titles=$slider.find('.related-content-card .sub-head2');const $descs=$slider.find('.related-content-card .component-introduction');$titles.css('height','auto');$descs.css('height','auto');$titles.each(function(){maxTitleHeight=Math.max(maxTitleHeight,$(this).outerHeight());});$descs.each(function(){maxDescHeight=Math.max(maxDescHeight,$(this).outerHeight());});$titles.css('height',maxTitleHeight+'px');$descs.css('height',maxDescHeight+'px');} let slickOptions={infinite:true,arrows:true,dots:false,slidesToShow:4,responsive:[{breakpoint:992,settings:getResponsiveSettings(totalSlides,992),},{breakpoint:767,settings:getResponsiveSettings(totalSlides,767),},{breakpoint:520,settings:getResponsiveSettings(totalSlides,520),},],};if(totalSlides===1){slickOptions.slidesToShow=1;}else if(totalSlides===2){slickOptions.slidesToShow=2;}else if(totalSlides===3){slickOptions.slidesToShow=3;} function getResponsiveSettings(total,breakpoint){if(breakpoint<521){return{slidesToShow:total>=1?1:1,};}else if(breakpoint<768){return{slidesToShow:total===1?1:total===2?2:2,};}else if(breakpoint<993){return{slidesToShow:total===1?1:total===2?2:total===3?3:3,};} return{};} $slider.on('init reInit afterChange',function(){setTimeout(()=>equalizeHeights($slider),100);});$slider.slick(slickOptions);$(window).on('resize',function(){setTimeout(()=>equalizeHeights($slider),150);});});});})(jQuery);$('#ui-id-1').on('mouseenter',function(){$('.search-icon').trigger('mouseenter');});if(isMobile()){$('.techm-competencies-grid .views-infinite-scroll-content-wrapper').slick({slidesToShow:1,infinite:true,slidesToScroll:1,autoplay:true,autoplaySpeed:2000,dots:true,});} if($('.paragraph--view-mode--slick-4-items-centered.bg-edge2edge .component-title').hasClass('description-not-avaliable')){$('.paragraph--view-mode--slick-4-items-centered.bg-edge2edge').addClass('adjust-arrow');}else{$('.paragraph--view-mode--slick-4-items-centered.bg-edge2edge').removeClass('adjust-arrow');} $(".event-register-form-wrapper .phone-number-field .form-type-textfield .sr-only").removeClass('sr-only');$(".webform-flex .webform-flex--container .form-item-phone-number-country-code").click(function(e){e.stopPropagation();$(".webform-flex .webform-flex--container .form-item-phone-number-country-code").addClass("onfocus");});$("body").click(function(){$(".webform-flex .webform-flex--container .form-item-phone-number-country-code").removeClass("onfocus");});function matchTextHeroHeightMain(){let textElement=document.querySelector(".maindiagonalbannerHeight ");if(textElement){let targetElements=document.querySelectorAll(".new_hero_banner");let textHeight=textElement.offsetHeight;targetElements.forEach(el=>{el.style.maxHeight=textHeight+"px";});}} function matchTextHeroHeight(){let textElement=document.querySelector(".maindiagonalbannerHeight");if(textElement){let targetElements=document.querySelectorAll(".edge2edge_height");let textHeight=textElement.offsetHeight;targetElements.forEach(el=>{el.style.maxHeight=textHeight+"px";});}} if(document.querySelector(".maindiagonalbannerHeight")){window.addEventListener("load",matchTextHeroHeightMain);window.addEventListener("resize",matchTextHeroHeightMain);window.addEventListener("load",matchTextHeroHeight);window.addEventListener("resize",matchTextHeroHeight);window.addEventListener("load",matchTextHeroHeight_inner);window.addEventListener("resize",matchTextHeroHeight_inner);} (function(){function handleFocusListeners(container){const form=container.querySelector('.mktoForm');if(!form)return;const fields=form.querySelectorAll('input.mktoField:not([type="checkbox"]):not([type="radio"])');fields.forEach(field=>{if(field.dataset.focusHandled)return;field.addEventListener('focus',()=>{field.closest('.mktoFieldWrap')?.classList.add('focused');});field.addEventListener('blur',()=>{field.closest('.mktoFieldWrap')?.classList.remove('focused');});field.dataset.focusHandled="true";});} function observeFormRender(){const observer=new MutationObserver((mutations)=>{mutations.forEach(mutation=>{mutation.addedNodes.forEach(node=>{if(node.nodeType===1&&node.closest('.mktoForm')){handleFocusListeners(document);}});});});observer.observe(document.body,{childList:true,subtree:true});handleFocusListeners(document);} if(document.readyState==="loading"){document.addEventListener("DOMContentLoaded",()=>{observeFormRender();});}else{observeFormRender();}})();window.addEventListener("load",function(){const elements=document.querySelectorAll(".slick-class-add");elements.forEach(function(element){if(element.classList.contains("slick-class-add")){element.classList.add("slick");}});});const banner_firstDiv_items=document.querySelector('.inner-banner-hero-block_move_items');const banner_secondDiv_items=document.querySelector('.inner-banner-hero-block_move_items .paragraph--type--bp-hero-banner');const banner_secondDiv_items_cta=banner_secondDiv_items.querySelector('.inner-banner-hero-block_move_items .paragraph--type--bp-hero-banner .cta-links-wrapper ');if(banner_secondDiv_items_cta){banner_firstDiv_items.appendChild(banner_secondDiv_items_cta);} banner_secondDiv_items.remove();},};})(window.jQuery,window._,window.Drupal);document.querySelectorAll('.contact-page-accordion .link-normal button').forEach(function(button){button.addEventListener('click',function(){const formSection=document.querySelector('.marketo-wrapper');if(!formSection)return;const selectedValue=button.getAttribute('name');const selectBox=formSection.querySelector('select');const offset=80;const elementTop=formSection.getBoundingClientRect().top+window.pageYOffset;window.scrollTo({top:elementTop-offset,behavior:'smooth'});setTimeout(function(){if(selectBox){if(!selectedValue){selectBox.selectedIndex=0;selectBox.dispatchEvent(new Event('change',{bubbles:true}));}else{selectBox.value=selectedValue;selectBox.dispatchEvent(new Event('change',{bubbles:true}));}}},400);});});; (function($){Drupal.behaviors.techmMapLocator={attach:function(context,settings){$(document).ready(function(){$('.location-list .view-content').scrollbar();$('.hide-filter .attachment.attachment-before .views-element-container .view-grouping .view-grouping-content').scrollbar();$('.hide-country-header .attachment.attachment-before .views-element-container .view-grouping .view-grouping-content .office-group .office-location').scrollbar();var checkIfExists=setInterval(function(){if($('.view-content').length){$('#loader').fadeOut(250);clearInterval(checkIfExists);}},2500);});$(".location-map select[name='country_code']").parent().hide();$(".location-map #country-back").hide();$(".location-map #city-back").hide();$('.view-grouping-header').once().click(function(){var countryName=$(this).text().trim();var countryMappings=drupalSettings.techm_customizations?drupalSettings.techm_customizations.countryMappings:'';if(countryMappings&&Object.keys(countryMappings).length>0){var mappingsObject={};countryMappings.split(',').forEach(function(mapping){var parts=mapping.split('|');if(parts.length===3){var countryName=parts[0];var countryCode=parts[1];var searchWord=parts[2];mappingsObject[countryName]={code:countryCode,searchWord:searchWord};}});} if(mappingsObject&&mappingsObject[countryName]){var countryCode=mappingsObject[countryName];var searchWord=countryCode['searchWord'];$(".location-map input[name='field_address_locality']").val(searchWord);$(".location-map form.views-exposed-form select[name='country_code']").val(countryCode['code']).trigger('change');$(".location-map input[value='Apply']").trigger('click');} else{$(this).parents('.view-content').find('.openCity').removeClass('openCity');$(this).parents('.view-content').find('.openOffice').removeClass('openOffice');$(".location-map form.views-exposed-form select[name='country_code'] option").each(function(index,value){var optionLabel=$(this).text().trim();if(optionLabel===countryName){var optionValue=$(this).val();$(".location-map form.views-exposed-form select[name='country_code']").val(optionValue).trigger('change');}});$(".location-map input[value='Apply']").trigger('click');}});$('.contact-title').click(function(){$(this).parents('.view-grouping-content').find('.openOffice').removeClass('openOffice');$(this).next('.office-location').addClass('openOffice');var city=$(this).text().trim();$(".location-map input[name='field_address_locality']").val(city);$(".location-map input[value='Apply']").trigger('click');});$(".location-map #country-back").click(function(e){e.preventDefault();$(".location-map select[name='country_code']").val("All").change();$(".location-map input[value='Apply']").trigger('click');});$(".location-map #city-back, .location-map .noresult").click(function(e){e.preventDefault();$(".location-map input[name='field_address_locality']").val('');var countryBackMappings=drupalSettings.techm_customizations?drupalSettings.techm_customizations.countryMappings:'';var mappingsBackObject={};if(countryBackMappings){countryBackMappings.split(',').forEach(function(mapping){var parts=mapping.split('|');if(parts.length===3){var countryCode=parts[1];mappingsBackObject[countryCode]={code:countryCode};}});} var country_code=$(".location-map select[name='country_code']").val();var countryCodeValue=mappingsBackObject[country_code]?mappingsBackObject[country_code].code:'';if(country_code&&country_code===countryCodeValue){$(".location-map select[name='country_code']").val("All").change();} $(".location-map input[value='Apply']").trigger('click');});$(document).once('location-map').ajaxComplete(function(event,xhr,settings){if($("body").hasClass("path-contact-us")){var country=$(".location-map select[name='country_code']").val().trim();if(country!='All'){$('.view-grouping-content').find('.contact-title').addClass('openCity');$('.location-map').addClass('hide-filter');$(".location-map .view-filters").hide();$(".location-header").hide();$(".location-map #country-back").show();$(".location-map #city-back").hide();} var city=$(".location-map input[name='field_address_locality']").val().trim();if(city.length>0){var officeGroup=$('.office-group');var nextContactTitle=officeGroup.find('.contact-title');if(nextContactTitle.length===0){var searchText=city.substr(0,1).toUpperCase()+city.substr(1);officeGroup.prepend('
'+searchText+'
');} $('.office-location').addClass('openOffice');$('.location-map').addClass('hide-country-header');$('.location-map').addClass('hide-country-header-search');$(".location-map input[name='field_address_locality']").hide();$(".location-map #country-back").hide();$(".location-map #city-back").show();} if($(".location-map .container").children(".view-empty").hasClass("view-empty")){$('.office-location').removeClass('openOffice');$('.location-map').removeClass('hide-country-header');$(".location-map input[name='field_address_locality']").show();$(".location-map #country-back").hide();$(".location-map #city-back").hide();}}});}};})(jQuery);; (function($,_,Drupal){$(document).ready(function(){if(document.getElementById('address-by-location')){$.get('loc',function(data,status){if(status=='success'&&data&&data.addresses){const addrs=data.addresses;if(data.addresses.length){let addrStr='';data.addresses.forEach((value,key)=>{addrStr+='

';addrStr+='';addrStr+=value.title;addrStr+='';addrStr+='

';addrStr+='

';addrStr+=value.address_line1;if(value.address_line2){addrStr+='
'+value.address_line2;} addrStr+='
'+value.locality+' - '+value.postal_code;if(value.administrative_area){addrStr+='
'+value.administrative_area;} addrStr+='

';if(value.phone||value.email){addrStr+='

';if(value.phone){addrStr+=Drupal.t('Global Helpline:')+' ';addrStr+=value.phone;addrStr+='';} if(value.email){if(value.phone){addrStr+='
';} addrStr+=Drupal.t('Email:')+' ';addrStr+=value.email;addrStr+='';} addrStr+='

';}});if(addrStr!=''){$('#address-by-location div.field--name-bp-text').html(Drupal.checkPlain(addrStr));}}}});}});})(window.jQuery,window._,window.Drupal);; (function($,Drupal){let currentTab=$("#vision-container .vision-nav .button.active").attr("id");if(currentTab==="pills-0"){} if(currentTab==="pills-1"){} if(currentTab==="pills-2"){} $("#pills-0-tab").on("mouseover",function(){$("#vision-image-2, #vision-image-3").removeClass("vision-image-on-top");$("#vision-image-1").addClass("vision-image-on-top");$("#vision-image-2").addClass("vision-image-rotate");});$("#pills-1-tab").on("mouseover",function(){$("#vision-image-1, #vision-image-3").removeClass("vision-image-on-top");$("#vision-image-2").addClass("vision-image-on-top");$("#vision-image-2").addClass("vision-image-rotate");});$("#pills-2-tab").on("mouseover",function(){$("#vision-image-1, #vision-image-2").removeClass("vision-image-on-top");$("#vision-image-3").addClass("vision-image-on-top");$("#vision-image-3").removeClass("vision-image-rotate-right");});$("#pills-1-tab").on("mouseout",function(){});$("#pills-2-tab").on("mouseout",function(){});$("#pills-3-tab").on("mouseout",function(){});$("#pills-0-tab").on("click",function(){$("#vision-container .progress-bar").removeClass("w0 w66 w100");$("#vision-container .progress-bar").addClass("w33");});$("#pills-1-tab").on("click",function(){$("#vision-container .progress-bar").removeClass("w0 w33 w100");$("#vision-container .progress-bar").addClass("w66");});$("#pills-2-tab").on("click",function(){$("#vision-container .progress-bar").removeClass("w0 w33 w66");$("#vision-container .progress-bar").addClass("w100");});});; (function($,_,Drupal){Drupal.behaviors.validation={attach:function(context,settings){$('.resource-webform .webform-submission-form .form-submit').click(function(event){$(".webform-ajax-form-wrapper").addClass('loader');$(".webform-submission-form").css('display','none');return formValidation($(this).closest('form').attr('id'));});$('.webform-submission-form .form-submit').click(function(event){return formValidation($(this).closest('form').attr('id'));});$('.event-register-submit a').click(function(event){var flag=formValidation($(this).closest('form').attr('id'));var id=$(this).closest('form').attr('id');if(flag===true){$('#'+id+' .form-submit').trigger('click');} return flag;});$('.event-validation-submit a').click(function(event){var flag=formValidation($(this).closest('form').attr('id'));if(flag===true){$('.webform-submission-form .form-submit').trigger('click');$("#event-video").removeClass("hide");} return flag;});$('.videoBox .close').click(function(event){$(".upload-video").hide()});function formValidation(id){var flag=0;$(".error-msg").remove();$("#"+id+" .required:not(input[type='email'].required)").each(function(){if(undefined!==$(this).val()&&$(this).val()===""){$(this).after(''+Drupal.t("This field is required")+'');flag=1;}});if($('#'+id+' input[type="email"].required').length>0){var email=$('#'+id+' input[type="email"].required').val();if(validMail(email)==false&&email===''){$('#'+id+' input[type="email"].required').after(''+Drupal.t("This field is required")+'');flag=1;}else if(validMail(email)==false){$('#'+id+' input[type="email"].required').after(''+Drupal.t("Enter a valid email")+'');flag=1;}} var phoneNumber=$('#edit-phone-number').val();if(phoneNumber!==undefined&&phoneNumber!==""&&!isValidPhoneNumber(phoneNumber)){$('#edit-phone-number').after(''+Drupal.t("Enter a valid phone number")+'');flag=1;} var phoneNumber=$('#edit-contact-information-phone').val();if(phoneNumber!==undefined&&phoneNumber!==""&&!isValidPhoneNumber(phoneNumber)){$('#edit-contact-information-phone').after(''+Drupal.t("Enter a valid phone number")+'');flag=1;} var phoneNumber=$('.event-ph-number input').val();if(phoneNumber!==undefined&&phoneNumber!==""&&!isValidPhoneNumber(phoneNumber)){$('.event-ph-number input').after(''+Drupal.t("Enter a valid phone number")+'');flag=1;} $('#'+id+' input[type="checkbox"][required="required"]').each(function(){if(!$(this).is(':checked')){$(this).closest('.js-form-item').find('.description').after(''+Drupal.t("This field is required")+'');flag=1;}});if(flag==1){return false;}else{return true;}} $('.required').keyup(function(){$(this).next(".error-msg").remove();});$(".form-select.required").change(function(){if($(this).val()!=0){$(this).next(".error-msg").remove();}});$('.checkbox input').change(function(){if($(this).is(':checked')){$(this).parent().next().next(".error-msg").remove();}});$('input[type="email"].required').keyup(function(){var id=$(this).closest('form').attr('id');var email=$('#'+id+' input[type="email"].required').val().toLowerCase();$(this).val(email);});$('input[type="email"].required').focusout(function(){var id=$(this).closest('form').attr('id');$(this).next("#"+id+" .error-msg").remove();var email=$('#'+id+' input[type="email"].required').val().toLowerCase();$(this).val(email);if(typeof(email)!="undefined"&&email.length>0&&validMail(email)==false){$('#'+id+' input[type="email"].required').after(''+Drupal.t("Enter a valid email")+'');return false;}});function validMail(email){var regEx=/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$/;var validEmail=regEx.test(email);if(!validEmail){return false;}else{return true;}} $('.event-ph-number input').keypress(function(e){var x=e.which||e.keyup;if((x>=48&&x<=57)||x==8||(x>=35&&x<=40)||x==46||x==32||x==43||x==45||x==40||x==41) return true;else return false;});$('#edit-phone-number').keypress(function(e){var x=e.which||e.keyup;if((x>=48&&x<=57)||x==8||(x>=35&&x<=40)||x==46||x==32||x==43||x==45||x==40||x==41) return true;else return false;});$('.event-ph-number input').on('input',function(){this.value=this.value.replace(/[^0-9 .+\-()]/g,'');});$('#edit-phone-number').on('input',function(){this.value=this.value.replace(/[^0-9 .+\-()]/g,'');});function isValidPhoneNumber(phoneNumber){const PhoneUtil=libphonenumber.PhoneNumberUtil.getInstance();var countryCode=$('#edit-country').val()??null;var value;if(countryCode){try{const number=PhoneUtil.parse(phoneNumber,countryCode);value=PhoneUtil.isValidNumber(number)&&PhoneUtil.getRegionCodeForNumber(number)==countryCode;}catch(error){value=false;}} else{var regEx=/^(?:\+\d{1,3}(?:\s)?)?\d{6,15}$/;value=regEx.test(phoneNumber);} return value;}},};})(window.jQuery,window._,window.Drupal);; (function($,_,Drupal){Drupal.behaviors.animation={attach:function(context,settings){var contentTop=$(".main-container").offset().top;var hheight=$(".maindiagonalbanner").outerHeight(true);var header_height=$("#navbar-main").outerHeight(true);var scrollTopY=contentTop+hheight-header_height;$(".maindiagonalbanner .banner-scroll-down-btn").click(function(){$('html, body').animate({scrollTop:scrollTopY},800);});var hheight_custom=$(".custom-visual-banner").outerHeight(true);var scrollTopY_custom=contentTop+hheight_custom;$(".events-detail-wrap .banner-scroll-down-btn,.news-detail-wrap .banner-scroll-down-btn").click(function(){$('html, body').animate({scrollTop:scrollTopY_custom},800);});setTimeout(function(){$(".slick--optionset--slick-4-items-centered .slick__slide:not('.disable-hover-effect .slick--optionset--slick-4-items-centered .slick__slide')").mouseenter(function(){$(".slick--optionset--slick-4-items-centered .slick-list:not('.disable-hover-effect .slick--optionset--slick-4-items-centered .slick-list')").addClass('slickWd');$(this).addClass('hoverWd');}).mouseleave(function(){$(".slick--optionset--slick-4-items-centered .slick-list:not('.disable-hover-effect .slick--optionset--slick-4-items-centered .slick-list')").removeClass('slickWd');$(this).removeClass('hoverWd');});},1000);var docMainHeight=$(document).height(),windowMainHeight=$(window).height(),scrollPercentMain;var docMediaTopHeight=$(document).height(),windowMediaTopHeight=$(window).height(),topMediascrollPercent;var docMediaBottomHeight=$(document).height(),windowMediaBottomHeight=$(window).height(),bottomMediascrollPercent;$(window).scroll(function(){scrollPercentMain=$(window).scrollTop()/(docMainHeight-windowMainHeight)*1000;$('.maindiagonalbanner .progress-area').width(scrollPercentMain+'%');topMediascrollPercent=$(window).scrollTop()/(docMediaTopHeight-windowMediaTopHeight)*250;$('.banner-media-top .progress-area').width(topMediascrollPercent+'%');bottomMediascrollPercent=$(window).scrollTop()/(docMediaBottomHeight-windowMediaBottomHeight)*110;$('.banner-media-bottom .progress-area').width(bottomMediascrollPercent+'%');});gsap.config({nullTargetWarn:false});if(window.matchMedia('(min-width: 768px)').matches){gsap.to(".hero--fixed-content .banner-media-bottom:not(.maindiagonalbanner.disable-transition .hero--fixed-content .banner-media-bottom)",{yPercent:-20,ease:"none",scrollTrigger:{trigger:".maindiagonalbanner",scrub:0.5},});gsap.to(".maindiagonalbanner .banner-media-bottom:not(.hero--fixed-content .banner-media-bottom):not(.maindiagonalbanner.disable-transition .banner-media-bottom)",{yPercent:-20,ease:"none",scrollTrigger:{trigger:".maindiagonalbanner",scrub:0.5},});} $(window).on("load scroll",function(){var parallaxEle=$(".banner-media-top .cta-box,.banner-media-bottom .cta-box"),parallaxQuan=parallaxEle.length;window.requestAnimationFrame(function(){for(var i=0;i=720){var equaTitlelHeight=function(){$('.paragraph--type--card-info-stand-tiles .title2:not(.paragraph--type--bp-tabs .paragraph--type--card-info-stand-tiles .title2)').css('height','auto');var maxHeight=0;$('.paragraph--type--card-info-stand-tiles .title2:not(.paragraph--type--bp-tabs .paragraph--type--card-info-stand-tiles .title2)').each(function(){if($(this).height()>maxHeight){maxHeight=$(this).height();}});$('.paragraph--type--card-info-stand-tiles .title2:not(.paragraph--type--bp-tabs .paragraph--type--card-info-stand-tiles .title2)').css('height',maxHeight);};var equaTabTitlelHeight=function(){$('.paragraph--type--bp-tabs .paragraph--type--card-info-stand-tiles .title2').css('height','auto');var maxHeight=0;$('.paragraph--type--bp-tabs .paragraph--type--card-info-stand-tiles .title2').each(function(){if($(this).height()>maxHeight){maxHeight=$(this).height();}});$('.paragraph--type--bp-tabs .paragraph--type--card-info-stand-tiles .title2').css('height',maxHeight);};var tabShortTileHeight=function(){var $sameHeightDivs=$('.paragraph--type--bp-tab-section .slick-track .paragraph--type--card-info-short-tiles');var maxHeight=0;$sameHeightDivs.each(function(){maxHeight=Math.max(maxHeight,$(this).innerHeight());});$sameHeightDivs.css({minHeight:maxHeight+'px'});};var shortTileHeight=function(){var $sameHeightDivs=$('.paragraph--type--card-info-short-tiles:not(.paragraph--type--bp-tab-section .paragraph--type--card-info-short-tiles)');var maxHeight=0;$sameHeightDivs.each(function(){maxHeight=Math.max(maxHeight,$(this).innerHeight());});$sameHeightDivs.css({minHeight:maxHeight+'px'});};var standardTileHeight=function(){var $sameHeightDivs=$('.paragraph--type--card-info-standard-tiles:not(.paragraph--type--bp-tab-section .paragraph--type--card-info-standard-tiles)');var maxHeight=0;$sameHeightDivs.each(function(){maxHeight=Math.max(maxHeight,$(this).innerHeight());});$sameHeightDivs.css({minHeight:maxHeight+'px'});};var tallTileHeight=function(){var $sameHeightDivs=$('.paragraph--type--card-info-tall-tiles:not(.paragraph--type--bp-tab-section .paragraph--type--card-info-tall-tiles)');var maxHeight=0;$sameHeightDivs.each(function(){maxHeight=Math.max(maxHeight,$(this).innerHeight());});$sameHeightDivs.css({minHeight:maxHeight+'px'});};var tabStandTileHeight=function(){var maxHeight=0;var $sameHeightDivs=$('.paragraph--type--bp-tab-section .paragraph--type--card-info-standard-tiles');var maxHeight=0;$sameHeightDivs.each(function(){maxHeight=Math.max(maxHeight,$(this).innerHeight());});$sameHeightDivs.css({minHeight:maxHeight+'px'});};var tabTallTileHeight=function(){var maxHeight=0;var $sameHeightDivs=$('.paragraph--type--bp-tab-section .paragraph--type--card-info-tall-tiles');var maxHeight=0;$sameHeightDivs.each(function(){maxHeight=Math.max(maxHeight,$(this).innerHeight());});$sameHeightDivs.css({minHeight:maxHeight+'px'});};var equaTitlelHeight_slider=function(){$('.slick--optionset--slick-1-item .slick-track, .slick--optionset--slick-2-items .slick-track, .slick--optionset--slick-3-items .slick-track , .slick--optionset--slick-3-items-centered .slick-track , .slick--optionset--slider-info-tall .slick-track, .slick--optionset--slick-4-items .slick-track, .slick--optionset--slick-4-items-centered .slick-track, .slick--optionset--slider-carousel-tiles-explore .slick-track, .slick--optionset-slider-carousel-tile-image-only .slick-track, .slick--optionset--slider-carousel-tile-large .slick-track, .slick--optionset--slick-8-items .slick-track, .slick--optionset--slick-6-items .slick-track,.slick--optionset--slider-info-tall-tile .slick-track,.slick--optionset--slider-carousel-tile-image-only .slick-track').each(function(){var maxHeight=0;$(this).find('.title2').css('height','auto');$(this).find('.title2').each(function(){if($(this).height()>maxHeight){maxHeight=$(this).height();}});$(this).find('.title2').css('height',maxHeight);});$('.slick--optionset--slick-6-items-2-3-tiles .slick-slide>div,.slick--optionset--slick-9-items .slick-slide>div,.slick--optionset--slick-8-items-2-x-4-tiles .slick-slide>div').each(function(){var maxHeight=0;$(this).find('.title2').css('height','auto');$(this).find('.title2').each(function(){if($(this).height()>maxHeight){maxHeight=$(this).height();}});$(this).find('.title2').css('height',maxHeight);});};var equaHeight_slider=function(){$('.slick--optionset--slick-1-item .slick-track, .slick--optionset--slick-2-items .slick-track, .slick--optionset--slick-3-items .slick-track , .slick--optionset--slick-3-items-centered .slick-track , .slick--optionset--slider-info-tall .slick-track, .slick--optionset--slick-4-items .slick-track, .slick--optionset--slick-4-items-centered .slick-track, .slick--optionset--slider-carousel-tiles-explore .slick-track, .slick--optionset-slider-carousel-tile-image-only .slick-track, .slick--optionset--slider-carousel-tile-large .slick-track, .slick--optionset--slick-8-items .slick-track, .slick--optionset--slick-6-items .slick-track,.slick--optionset--slider-info-tall-tile .slick-track').each(function(){var maxHeight=0;$(this).find('[class*="paragraph--type--card"]').css('min-height','auto');$(this).find('[class*="paragraph--type--card"]').each(function(){if($(this).outerHeight()>maxHeight){maxHeight=$(this).outerHeight();}});$(this).find('[class*="paragraph--type--card"]').css('min-height',maxHeight);});$('.slick--optionset--slick-6-items-2-3-tiles .slick-slide>div,.slick--optionset--slick-9-items .slick-slide>div,.slick--optionset--slick-8-items-2-x-4-tiles .slick-slide>div').each(function(){var maxHeight=0;$(this).find('[class*="paragraph--type--card"]').css('min-height','auto');$(this).find('[class*="paragraph--type--card"]').each(function(){if($(this).outerHeight()>maxHeight){maxHeight=$(this).outerHeight();}});$(this).find('[class*="paragraph--type--card"]').css('min-height',maxHeight);});};$(document).ready(function(){equaTitlelHeight_slider();equaHeight_slider();$(window).resize(function(){equaTitlelHeight_slider();equaHeight_slider();});$('.paragraph--type--bp-tabs .nav-tabs a').click(function(event){const hrefTab=$(event.target).attr('href');if($(hrefTab).length){setTimeout(function(){equaTitlelHeight_slider();equaHeight_slider();},300);}});var myLink=$(".slick__arrow");var closestDiv=$('.paragraph--type--bp-slick.left_title_right_desc:not(".paragraph--type--info-tall-tiles-default .paragraph--type--bp-tabs .paragraph--type--bp-tab-section .paragraph.paragraph--type--bp-slick")');if(myLink.length>0){myLink.each(function(){if($(this).hasClass('visually-hidden')){$(this).parent().closest(closestDiv).addClass('fullwidthDesc');} else{$(this).parent().closest(closestDiv).removeClass('fullwidthDesc');}});}});window.addEventListener("load",function(){equaTitlelHeight_slider();equaHeight_slider();});var disablePaddingTop=$('.maindiagonalbanner');var disableTransition=$('.maindiagonalbanner').next('div');if(disablePaddingTop.length){disablePaddingTop.each(function(index){$(this).next('div').addClass('disablePaddingTop');if(disableTransition.filter('.typography-bg-dark, .bg-cultured, .bg-smoky-black, .bg-jet-black, .bg-gray, .bg-cloud, .bg-silver, .bg-platinum').length){$(this).addClass("disable-transition");$(this).next('div').removeClass('disablePaddingTop');}});} var addPaddingTopUpdated=$('.techM-next-spacing');var disableTransition=$('.techM-next-spacing').next('div');if(addPaddingTopUpdated.length){addPaddingTopUpdated.each(function(index){$(this).next('div').addClass('addPaddingTop');if(disableTransition.filter('.typography-bg-dark, .bg-cultured, .bg-smoky-black, .bg-jet-black, .bg-gray, .bg-cloud, .bg-silver, .bg-platinum').length){$(this).addClass("disable-transition");$(this).next('div').removeClass('addPaddingTop');}});}} if(window.innerWidth<=719){var equaTitlelHeight_slider_mobile=function(){$('.slick--optionset--slick-6-items-2-3-tiles .slick-track,.slick--optionset--slick-9-items .slick-track,.slick--optionset--slick-8-items-2-x-4-tiles .slick-track,.slick--optionset--slick-1-item .slick-track, .slick--optionset--slick-2-items .slick-track , .slick--optionset--slick-3-items-centered .slick-track , .slick--optionset--slider-info-tall .slick-track, .slick--optionset--slick-4-items .slick-track, .slick--optionset--slick-4-items-centered .slick-track, .slick--optionset--slider-carousel-tiles-explore .slick-track, .slick--optionset-slider-carousel-tile-image-only .slick-track, .slick--optionset--slider-carousel-tile-large .slick-track, .slick--optionset--slick-8-items .slick-track, .slick--optionset--slick-6-items .slick-track,.slick--optionset--slider-info-tall-tile .slick-track,.slick--optionset--slider-carousel-tile-image-only .slick-track').each(function(){var maxHeight=0;$(this).find('.title2').css('height','auto');$(this).find('.title2').each(function(){if($(this).height()>maxHeight){maxHeight=$(this).height();}});$(this).find('.title2').css('height',maxHeight);});$('.slick--optionset--slick-3-items .slick-slide>div ').each(function(){var maxHeight=0;$(this).find('.title2').css('height','auto');$(this).find('.title2').each(function(){if($(this).height()>maxHeight){maxHeight=$(this).height();}});$(this).find('.title2').css('height',maxHeight);});};var equaHeight_slider_moblie=function(){$('.slick--optionset--slick-1-item .slick-track, .slick--optionset--slick-2-items .slick-track, .slick--optionset--slick-3-items .slick-track , .slick--optionset--slick-3-items-centered .slick-track , .slick--optionset--slider-info-tall .slick-track, .slick--optionset--slick-4-items .slick-track, .slick--optionset--slick-4-items-centered .slick-track, .slick--optionset--slider-carousel-tiles-explore .slick-track, .slick--optionset-slider-carousel-tile-image-only .slick-track, .slick--optionset--slider-carousel-tile-large .slick-track, .slick--optionset--slick-8-items .slick-track, .slick--optionset--slick-6-items .slick-track,.slick--optionset--slider-info-tall-tile .slick-track').each(function(){var maxHeight=0;$(this).find('[class*="paragraph--type--card"]').css('min-height','auto');$(this).find('[class*="paragraph--type--card"]').each(function(){if($(this).outerHeight()>maxHeight){maxHeight=$(this).outerHeight();}});$(this).find('[class*="paragraph--type--card"]').css('min-height',maxHeight);});$('.slick--optionset--slick-6-items-2-3-tiles .slick-slide>div,.slick--optionset--slick-9-items .slick-slide>div,.slick--optionset--slick-8-items-2-x-4-tiles .slick-slide>div').each(function(){var maxHeight=0;$(this).find('[class*="paragraph--type--card"]').css('min-height','auto');$(this).find('[class*="paragraph--type--card"]').each(function(){if($(this).outerHeight()>maxHeight){maxHeight=$(this).outerHeight();}});$(this).find('[class*="paragraph--type--card"]').css('min-height',maxHeight);});};$(document).ready(function(){equaTitlelHeight_slider_mobile();equaHeight_slider_moblie();$(window).resize(function(){equaTitlelHeight_slider_mobile();equaHeight_slider_moblie();});$('.paragraph--type--bp-tabs .nav-tabs a').click(function(event){const hrefTab=$(event.target).attr('href');if($(hrefTab).length){setTimeout(function(){equaTitlelHeight_slider_mobile();equaHeight_slider_moblie();},300);}});});window.addEventListener("load",function(){equaTitlelHeight_slider_mobile();equaHeight_slider_moblie();});} $(document).ready(function(){var $animation_elements=$('.animate-text .text-formatted,.paragraph--view-mode--slick-3-items-copy .paragraph--type--card-info-stand-tiles .card-annimation-bar');var $window=$(window);function check_if_in_view(){var window_height=$window.height();var window_top_position=$window.scrollTop();var window_bottom_position=(window_top_position+window_height);$.each($animation_elements,function(){var $element=$(this);var element_height=$element.outerHeight();var element_top_position=$element.offset().top;var element_bottom_position=(element_top_position+element_height);if((element_bottom_position>=window_top_position)&&(element_top_position<=window_bottom_position)){$element.addClass('in-view');}else{$element.removeClass('in-view');}});} $window.on('scroll resize',check_if_in_view);$window.trigger('scroll');var topArrowButton=$('.top-arrow button');if(topArrowButton.hasClass('slick-prev slick-arrow slick-hidden visually-hidden')){$('.paragraph--type--bp-slick.paragraph--view-mode--slick-4-items-centered .container .col-12 .component-title.description-avaliable').css({'flex':'0 0 60%','max-width':'88%'});} var navtabarrow=$('.paragraph--type--bp-tabs ul');if(navtabarrow.hasClass('nav nav-tabs')){$('.paragraph--type--info-tall-tiles-default .paragraph--type--bp-tabs .paragraph--type--bp-tab-section .slick__arrow').css({'top':'-115px'});} $('.emphasis-clone').remove();$('.animate-text .emphasis').each(function(){$(this).append(''+$(this).text()+'');});gsap.timeline({scrollTrigger:{trigger:'span.emphasis span',scrub:0.7,start:"top 110%",end:"top 90%",}}).to('span.emphasis span',{clipPath:"inset(0% 0% 0% 0%)",duration:1,ease:'none',stagger:1});});gsap.to(".parallaxImage.paragraph--type--bp-image .media img:not(.paragraph--type--bp-accordion .parallaxImage.paragraph--type--bp-image .media img)",{yPercent:20,ease:"none",scrollTrigger:{trigger:".parallaxImage.paragraph--type--bp-image .media:not(.paragraph--type--bp-accordion .parallaxImage.paragraph--type--bp-image .media)",scrub:0.5},});gsap.to(".banner-media-top:not(.custom-visual-banner .banner-media-top)",{backgroundPosition:"100% 65%",ease:"none",scrollTrigger:{trigger:".banner-media-top:not(.custom-visual-banner .banner-media-top)",start:"top bottom",end:"bottom top",scrub:true}});gsap.to(".banner-media-bottom:not(.maindiagonalbanner .banner-media-bottom)",{backgroundPosition:"100% 65%",ease:"none",scrollTrigger:{trigger:".banner-media-bottom:not(.maindiagonalbanner .banner-media-bottom)",start:"top bottom",end:"bottom top",scrub:true}});if(window.matchMedia('(max-width: 767.98px)').matches){gsap.to(".paragraph--type--text-and-image .media--bundle--image img",{scale:1.2,opacity:1,duration:1,scrollTrigger:{trigger:".paragraph--type--text-and-image",scrub:0.5}},{scale:1.6,opacity:1,duration:1,scrollTrigger:{trigger:".paragraph--type--text-and-image",scrub:0.5}}) gsap.to(".paragraph--type--text-and-image .media--bundle--image img",{scale:1.8,opacity:1,duration:1,scrollTrigger:{trigger:".paragraph--type--text-and-image",scrub:0.5}});gsap.registerPlugin(ScrollTrigger);let tl=gsap.timeline({scrollTrigger:{trigger:".mobileFade",start:'top bottom',scrub:0.5,end:'bottom top'}}) tl.from('.mobileFade',{opacity:0})} $('.counter-number-container').each(function(index){var delayNumber=index*200;$(this).attr('data-aos-delay',delayNumber);}) if(window.matchMedia('(max-width: 991.98px)').matches){var didScroll;var lastScrollTop=0;var delta=5;var navbarHeight=$('header.navbar').outerHeight();$(window).scroll(function(event){didScroll=true;});setInterval(function(){if(didScroll){hasScrolled();didScroll=false;}},250);function hasScrolled(){var st=$(this).scrollTop();if(Math.abs(lastScrollTop-st)<=delta) return;if(st>lastScrollTop&&st>navbarHeight){$('header.navbar').removeClass('nav-down').addClass('nav-up');}else{if(st+$(window).height()<$(document).height()){$('header.navbar').removeClass('nav-up').addClass('nav-down');}} lastScrollTop=st;}} $(document).ready(function(){var src=$('.custom-banner-type').find('img.img-fluid').attr('data-src');if(src){$('.custom-visual-banner .banner-media-top').css('background-image','url('+src+')');}});function slideLengthCount(){var slideParentElement=$(".slick");if(slideParentElement){slideParentElement.find('.slick-list').each(function(index,item){var slideElementLength=$(this).find('.slick-slide').length;if(slideElementLength<=4){$(this).closest(".slick-list").removeClass("draggable");}});}} $(document).ready(function(){const slider=$('.techm-home-industries-card .slick-slider');var progressBar=$('.progressbar');if(slider.length>0){slider.on('init',function(event,slick,currentSlide,nextSlide){currentDot=$(".slick-dots .slick-active").index()+1;dots=slider.find('.slick-dots li').length;calc=(currentDot / dots)*100;progressBar.css('background-size',calc+'% 100%').attr('aria-valuenow',calc);});slider.on('afterChange',function(event,slick,currentSlide,nextSlide){var currentDot=$(".slick-dots .slick-active").index()+1;var dots=slider.find('.slick-dots li').length;var calc=(currentDot / dots)*100;progressBar.css('background-size',calc+'% 100%').attr('aria-valuenow',calc);});slider.not('.slick-initialized').slick({slidesToScroll:1,speed:400,arrows:true,mobileFirst:true,});} slideLengthCount();$('.paragraph--type--bp-tabs .nav-tabs a').click(function(event){setTimeout(function(){slideLengthCount();},500);});});var scroll=window.requestAnimationFrame||function(callback){window.setTimeout(callback,1000 / 60)};var elementsToShow=document.querySelectorAll('.show-on-scroll');function loop(){Array.prototype.forEach.call(elementsToShow,function(element){if(isElementInViewport(element)){element.classList.add('is-visible');}else{element.classList.remove('is-visible');}});scroll(loop);} loop();function isElementInViewport(el){if(typeof jQuery==="function"&&el instanceof jQuery){el=el[0];} var rect=el.getBoundingClientRect();return((rect.top<=0&&rect.bottom>=0)||(rect.bottom>=(window.innerHeight||document.documentElement.clientHeight)&&rect.top<=(window.innerHeight||document.documentElement.clientHeight))||(rect.top>=0&&rect.bottom<=(window.innerHeight||document.documentElement.clientHeight)));} if($(window).width()>1024){var boxHeight=$(".slick--view--case-studies .slide__caption").height();$(".slick--view--case-studies .slick__slide").mouseenter(function(){$(this).toggleClass('open-slide');$(this).find(".slide__caption").animate({speed:"slow",bottom:"70",borderTopWidth:"5px",borderTopColor:"#e31635",borderTopStyle:"solid"});$(this).find(".slide__caption .description-text p").fadeToggle('slow','linear');}).mouseleave(function(){$(this).closest(".slide__content").removeClass('open').addClass('close');$(this).find(".slide__caption").animate({bottom:"0",borderTopStyle:"none"}),$(this).find(".slide__caption .description-text p").fadeToggle('slow','linear');});} $('.read-more-text').click(function(){$(this).prev().slideToggle();if(($(this).text())=="More +"){$(this).text("Less -");}else{$(this).text("More +");}});},};})(window.jQuery,window._,window.Drupal);; (function($,Drupal,once){Drupal.behaviors.imageTextWithDynamicBorder={attach:function(context){once('progress-ring','.progress-wrapper',context).forEach(function(wrapper){const value=parseInt(wrapper.getAttribute('data-value'))||0;const circle=wrapper.querySelector('.progress');const radius=47.5;const circumference=2*Math.PI*radius;circle.style.strokeDasharray=circumference;const offset=circumference-(value / 100)*circumference;const observer=new IntersectionObserver((entries,obs)=>{entries.forEach(entry=>{if(entry.isIntersecting){circle.style.strokeDashoffset=offset;obs.unobserve(entry.target);}});},{threshold:0.5});observer.observe(wrapper);});once('counter-animate','.counter-number-animation',context).forEach(function(element){const span=element.querySelector('span');const finalValue=parseInt(span.textContent);if(isNaN(finalValue))return;const animateNumber=(el,target,duration=1500)=>{const startTime=performance.now();const step=(currentTime)=>{const progress=Math.min((currentTime-startTime)/ duration,1);const current=Math.floor(progress*target);el.textContent=current;if(progress<1){requestAnimationFrame(step);}else{el.textContent=target;}};requestAnimationFrame(step);};const observer=new IntersectionObserver((entries,obs)=>{entries.forEach(entry=>{if(entry.isIntersecting&&!element.classList.contains('counted')){animateNumber(span,finalValue);element.classList.add('counted');obs.unobserve(entry.target);}});},{threshold:0.6});observer.observe(element);});}};})(jQuery,Drupal,once);; ;(function(root,factory){if(typeof define==='function'&&define.amd){define(['jquery'],factory);}else{factory(root.jQuery);}}(this,function($){'use strict';var debug=false;var browser={data:{index:0,name:'scrollbar'},macosx:/mac/i.test(navigator.platform),mobile:/android|webos|iphone|ipad|ipod|blackberry/i.test(navigator.userAgent),overlay:null,scroll:null,scrolls:[],webkit:/webkit/i.test(navigator.userAgent)&&!/edge\/\d+/i.test(navigator.userAgent)};browser.scrolls.add=function(instance){this.remove(instance).push(instance);};browser.scrolls.remove=function(instance){while($.inArray(instance,this)>=0){this.splice($.inArray(instance,this),1);} return this;};var defaults={"autoScrollSize":true,"autoUpdate":true,"debug":false,"disableBodyScroll":false,"duration":200,"ignoreMobile":false,"ignoreOverlay":false,"scrollStep":30,"showArrows":false,"stepScrolling":true,"scrollx":null,"scrolly":null,"onDestroy":null,"onInit":null,"onScroll":null,"onUpdate":null};var BaseScrollbar=function(container){if(!browser.scroll){browser.overlay=isScrollOverlaysContent();browser.scroll=getBrowserScrollSize();updateScrollbars();$(window).resize(function(){var forceUpdate=false;if(browser.scroll&&(browser.scroll.height||browser.scroll.width)){var scroll=getBrowserScrollSize();if(scroll.height!==browser.scroll.height||scroll.width!==browser.scroll.width){browser.scroll=scroll;forceUpdate=true;}} updateScrollbars(forceUpdate);});} this.container=container;this.namespace='.scrollbar_'+browser.data.index++;this.options=$.extend({},defaults,window.jQueryScrollbarOptions||{});this.scrollTo=null;this.scrollx={};this.scrolly={};container.data(browser.data.name,this);browser.scrolls.add(this);};BaseScrollbar.prototype={destroy:function(){if(!this.wrapper){return;} this.container.removeData(browser.data.name);browser.scrolls.remove(this);var scrollLeft=this.container.scrollLeft();var scrollTop=this.container.scrollTop();this.container.insertBefore(this.wrapper).css({"height":"","margin":"","max-height":""}).removeClass('scroll-content scroll-scrollx_visible scroll-scrolly_visible').off(this.namespace).scrollLeft(scrollLeft).scrollTop(scrollTop);this.scrollx.scroll.removeClass('scroll-scrollx_visible').find('div').andSelf().off(this.namespace);this.scrolly.scroll.removeClass('scroll-scrolly_visible').find('div').andSelf().off(this.namespace);this.wrapper.remove();$(document).add('body').off(this.namespace);if($.isFunction(this.options.onDestroy)){this.options.onDestroy.apply(this,[this.container]);}},init:function(options){var S=this,c=this.container,cw=this.containerWrapper||c,namespace=this.namespace,o=$.extend(this.options,options||{}),s={x:this.scrollx,y:this.scrolly},w=this.wrapper;var initScroll={"scrollLeft":c.scrollLeft(),"scrollTop":c.scrollTop()};if((browser.mobile&&o.ignoreMobile)||(browser.overlay&&o.ignoreOverlay)||(browser.macosx&&!browser.webkit)){return false;} if(!w){this.wrapper=w=$('
').addClass('scroll-wrapper').addClass(c.attr('class')).css('position',c.css('position')=='absolute'?'absolute':'relative').insertBefore(c).append(c);if(c.is('textarea')){this.containerWrapper=cw=$('
').insertBefore(c).append(c);w.addClass('scroll-textarea');} cw.addClass('scroll-content').css({"height":"auto","margin-bottom":browser.scroll.height*-1+'px',"margin-right":browser.scroll.width*-1+'px',"max-height":""});c.on('scroll'+namespace,function(event){if($.isFunction(o.onScroll)){o.onScroll.call(S,{"maxScroll":s.y.maxScrollOffset,"scroll":c.scrollTop(),"size":s.y.size,"visible":s.y.visible},{"maxScroll":s.x.maxScrollOffset,"scroll":c.scrollLeft(),"size":s.x.size,"visible":s.x.visible});} s.x.isVisible&&s.x.scroll.bar.css('left',c.scrollLeft()*s.x.kx+'px');s.y.isVisible&&s.y.scroll.bar.css('top',c.scrollTop()*s.y.kx+'px');});w.on('scroll'+namespace,function(){w.scrollTop(0).scrollLeft(0);});if(o.disableBodyScroll){var handleMouseScroll=function(event){isVerticalScroll(event)?s.y.isVisible&&s.y.mousewheel(event):s.x.isVisible&&s.x.mousewheel(event);};w.on('MozMousePixelScroll'+namespace,handleMouseScroll);w.on('mousewheel'+namespace,handleMouseScroll);if(browser.mobile){w.on('touchstart'+namespace,function(event){var touch=event.originalEvent.touches&&event.originalEvent.touches[0]||event;var originalTouch={"pageX":touch.pageX,"pageY":touch.pageY};var originalScroll={"left":c.scrollLeft(),"top":c.scrollTop()};$(document).on('touchmove'+namespace,function(event){var touch=event.originalEvent.targetTouches&&event.originalEvent.targetTouches[0]||event;c.scrollLeft(originalScroll.left+originalTouch.pageX-touch.pageX);c.scrollTop(originalScroll.top+originalTouch.pageY-touch.pageY);event.preventDefault();});$(document).on('touchend'+namespace,function(){$(document).off(namespace);});});}} if($.isFunction(o.onInit)){o.onInit.apply(this,[c]);}}else{cw.css({"height":"auto","margin-bottom":browser.scroll.height*-1+'px',"margin-right":browser.scroll.width*-1+'px',"max-height":""});} $.each(s,function(d,scrollx){var scrollCallback=null;var scrollForward=1;var scrollOffset=(d==='x')?'scrollLeft':'scrollTop';var scrollStep=o.scrollStep;var scrollTo=function(){var currentOffset=c[scrollOffset]();c[scrollOffset](currentOffset+scrollStep);if(scrollForward==1&&(currentOffset+scrollStep)>=scrollToValue) currentOffset=c[scrollOffset]();if(scrollForward==-1&&(currentOffset+scrollStep)<=scrollToValue) currentOffset=c[scrollOffset]();if(c[scrollOffset]()==currentOffset&&scrollCallback){scrollCallback();}} var scrollToValue=0;if(!scrollx.scroll){scrollx.scroll=S._getScroll(o['scroll'+d]).addClass('scroll-'+d);if(o.showArrows){scrollx.scroll.addClass('scroll-element_arrows_visible');} scrollx.mousewheel=function(event){if(!scrollx.isVisible||(d==='x'&&isVerticalScroll(event))){return true;} if(d==='y'&&!isVerticalScroll(event)){s.x.mousewheel(event);return true;} var delta=event.originalEvent.wheelDelta*-1||event.originalEvent.detail;var maxScrollValue=scrollx.size-scrollx.visible-scrollx.offset;if((delta>0&&scrollToValue0)){scrollToValue=scrollToValue+delta;if(scrollToValue<0) scrollToValue=0;if(scrollToValue>maxScrollValue) scrollToValue=maxScrollValue;S.scrollTo=S.scrollTo||{};S.scrollTo[scrollOffset]=scrollToValue;setTimeout(function(){if(S.scrollTo){c.stop().animate(S.scrollTo,240,'linear',function(){scrollToValue=c[scrollOffset]();});S.scrollTo=null;}},1);} event.preventDefault();return false;};scrollx.scroll.on('MozMousePixelScroll'+namespace,scrollx.mousewheel).on('mousewheel'+namespace,scrollx.mousewheel).on('mouseenter'+namespace,function(){scrollToValue=c[scrollOffset]();});scrollx.scroll.find('.scroll-arrow, .scroll-element_track').on('mousedown'+namespace,function(event){if(event.which!=1) return true;scrollForward=1;var data={"eventOffset":event[(d==='x')?'pageX':'pageY'],"maxScrollValue":scrollx.size-scrollx.visible-scrollx.offset,"scrollbarOffset":scrollx.scroll.bar.offset()[(d==='x')?'left':'top'],"scrollbarSize":scrollx.scroll.bar[(d==='x')?'outerWidth':'outerHeight']()};var timeout=0,timer=0;if($(this).hasClass('scroll-arrow')){scrollForward=$(this).hasClass("scroll-arrow_more")?1:-1;scrollStep=o.scrollStep*scrollForward;scrollToValue=scrollForward>0?data.maxScrollValue:0;}else{scrollForward=(data.eventOffset>(data.scrollbarOffset+data.scrollbarSize)?1:(data.eventOffset','
','
','
','
','
','
','
','
','
','
','
','
','
','
','
','
','
','
','
'].join(''),simple:['
','
','
','
','
','
','
'].join('')};if(types[scroll]){scroll=types[scroll];} if(!scroll){scroll=types['simple'];} if(typeof(scroll)=='string'){scroll=$(scroll).appendTo(this.wrapper);}else{scroll=$(scroll);} $.extend(scroll,{bar:scroll.find('.scroll-bar'),size:scroll.find('.scroll-element_size'),track:scroll.find('.scroll-element_track')});return scroll;},_handleMouseDown:function(callback,event){var namespace=this.namespace;$(document).on('blur'+namespace,function(){$(document).add('body').off(namespace);callback&&callback();});$(document).on('dragstart'+namespace,function(event){event.preventDefault();return false;});$(document).on('mouseup'+namespace,function(){$(document).add('body').off(namespace);callback&&callback();});$('body').on('selectstart'+namespace,function(event){event.preventDefault();return false;});event&&event.preventDefault();return false;},_updateScroll:function(d,scrollx){var container=this.container,containerWrapper=this.containerWrapper||container,scrollClass='scroll-scroll'+d+'_visible',scrolly=(d==='x')?this.scrolly:this.scrollx,offset=parseInt(this.container.css((d==='x')?'left':'top'),10)||0,wrapper=this.wrapper;var AreaSize=scrollx.size;var AreaVisible=scrollx.visible+offset;scrollx.isVisible=(AreaSize-AreaVisible)>1;if(scrollx.isVisible){scrollx.scroll.addClass(scrollClass);scrolly.scroll.addClass(scrollClass);containerWrapper.addClass(scrollClass);}else{scrollx.scroll.removeClass(scrollClass);scrolly.scroll.removeClass(scrollClass);containerWrapper.removeClass(scrollClass);} if(d==='y'){if(container.is('textarea')||AreaSize10){window.console&&console.log('Scroll updates exceed 10');updateScrollbars=function(){};}else{clearTimeout(timer);timer=setTimeout(updateScrollbars,300);}};})();function getBrowserScrollSize(actualSize){if(browser.webkit&&!actualSize){return{"height":0,"width":0};} if(!browser.data.outer){var css={"border":"none","box-sizing":"content-box","height":"200px","margin":"0","padding":"0","width":"200px"};browser.data.inner=$("
").css($.extend({},css));browser.data.outer=$("
").css($.extend({"left":"-1000px","overflow":"scroll","position":"absolute","top":"-1000px"},css)).append(browser.data.inner).appendTo("body");} browser.data.outer.scrollLeft(1000).scrollTop(1000);return{"height":Math.ceil((browser.data.outer.offset().top-browser.data.inner.offset().top)||0),"width":Math.ceil((browser.data.outer.offset().left-browser.data.inner.offset().left)||0)};} function isScrollOverlaysContent(){var scrollSize=getBrowserScrollSize(true);return!(scrollSize.height||scrollSize.width);} function isVerticalScroll(event){var e=event.originalEvent;if(e.axis&&e.axis===e.HORIZONTAL_AXIS) return false;if(e.wheelDeltaX) return false;return true;} if(window.angular){(function(angular){angular.module('jQueryScrollbar',[]).provider('jQueryScrollbar',function(){var defaultOptions=defaults;return{setOptions:function(options){angular.extend(defaultOptions,options);},$get:function(){return{options:angular.copy(defaultOptions)};}};}).directive('jqueryScrollbar',['jQueryScrollbar','$parse',function(jQueryScrollbar,$parse){return{"restrict":"AC","link":function(scope,element,attrs){var model=$parse(attrs.jqueryScrollbar),options=model(scope);element.scrollbar(options||jQueryScrollbar.options).on('$destroy',function(){element.scrollbar('destroy');});}};}]);})(window.angular);}}));; (function($,Drupal,drupalSettings){jQuery(document).ready(function(){$('.filter-main-wrapper .js-form-type-checkbox .form-check-label').html(function(i,h){return h.replace(/ /g,'');});$('.filter-main-wrapper #edit-reset').css('display','none');countCheckedCheckboxes='';var industry_legend_text=jQuery('#edit-field-case-study-type-target-id--wrapper .fieldset-legend').text();var $checkboxes=jQuery('#edit-field-case-study-type-target-id input[type="checkbox"]');$checkboxes.change(function(){var countCheckedCheckboxes=$checkboxes.filter(':checked').length;jQuery('#edit-field-case-study-type-target-id--wrapper .fieldset-legend').text(industry_legend_text+'('+countCheckedCheckboxes+')');jQuery('#edit-field-case-study-type-target-id--wrapper .fieldset-legend').val(industry_legend_text+'('+countCheckedCheckboxes+')');if(countCheckedCheckboxes>0){$('.filter-main-wrapper #edit-reset').css('display','block');}else{$('.filter-main-wrapper #edit-reset').css('display','none');} if(screen&&screen.width>992){$('.filter-main-wrapper .views-exposed-form .form-actions .btn:first-child').click();return false;}});var topic_legend_text=jQuery('#edit-field-services-target-id--wrapper .fieldset-legend').text();var $checkboxes_case_study=jQuery('#edit-field-services-target-id input[type="checkbox"]');$checkboxes_case_study.change(function(){var countCheckedCheckboxes_case_study=$checkboxes_case_study.filter(':checked').length;jQuery('#edit-field-services-target-id--wrapper .fieldset-legend').text(topic_legend_text+'('+countCheckedCheckboxes_case_study+')');jQuery('#edit-field-services-target-id--wrapper .fieldset-legend').val(topic_legend_text+'('+countCheckedCheckboxes_case_study+')');if(countCheckedCheckboxes_case_study>0){$('.filter-main-wrapper #edit-reset').css('display','block');}else{if($('#block-exposedformnews-viewsarticle-press-releases-block-2').hasClass('block-views-exposed-filter-blocknews-views-article-press-releases-block-2')){var conceptNameyear=$('#edit-type-1').find(":selected").val();if(conceptNameyear=='All'){$('.filter-main-wrapper #edit-reset').css('display','none');}else{$('.filter-main-wrapper #edit-reset').css('display','block');}}else if($('#block-exposedformnews-viewsviews-paper-listing-block').hasClass('block-views-exposed-filter-blocknews-views-views-paper-listing-block')){var conceptNamePaper=$('#edit-field-views-paper-type-target-id').find(":selected").val();if(conceptNamePaper=='All'){$('.filter-main-wrapper #edit-reset').css('display','none');}else{$('.filter-main-wrapper #edit-reset').css('display','block');}}else if($('#block-exposedformeventsevents-list').hasClass('block-views-exposed-filter-blockevents-events-list')){var conceptNameEvents=$('#edit-exposed-year-year-select').find(":selected").val();if(conceptNameEvents=='All'){$('.filter-main-wrapper #edit-reset').css('display','none');}else{$('.filter-main-wrapper #edit-reset').css('display','block');}}else{$('.filter-main-wrapper #edit-reset').css('display','none');}} if(screen&&screen.width>992){$('.filter-main-wrapper .views-exposed-form .form-actions .btn:first-child').click();return false;}});var article_legend_text=jQuery('#edit-field-news-article-type-target-id--wrapper .fieldset-legend').text();var $checkboxes_article_type=jQuery('#edit-field-news-article-type-target-id input[type="checkbox"]');$checkboxes_article_type.change(function(){var countCheckedCheckboxes_article_type=$checkboxes_article_type.filter(':checked').length;jQuery('#edit-field-news-article-type-target-id--wrapper .fieldset-legend').text(article_legend_text+'('+countCheckedCheckboxes_article_type+')');jQuery('#edit-field-news-article-type-target-id--wrapper .fieldset-legend').val(article_legend_text+'('+countCheckedCheckboxes_article_type+')');if(countCheckedCheckboxes_article_type>0){$('.filter-main-wrapper #edit-reset').css('display','block');}else{if(countCheckedCheckboxes==0){var conceptName=$('#edit-exposed-year-year-select').find(":selected").val();if(conceptName=='All'){$('.filter-main-wrapper #edit-reset').css('display','none');}else{$('.filter-main-wrapper #edit-reset').css('display','block');}}} if(screen&&screen.width>992){$('.filter-main-wrapper .views-exposed-form .form-actions .btn:first-child').click();return false;}});var article_2_legend_text=jQuery('#edit-field-news-article-type-target-id--2--wrapper .fieldset-legend').text();var $checkboxes_article_type_news=jQuery('#edit-field-news-article-type-target-id--2 input[type="checkbox"]');$checkboxes_article_type_news.change(function(){var countCheckedCheckboxes_article_type_new=$checkboxes_article_type_news.filter(':checked').length;jQuery('#edit-field-news-article-type-target-id--2--wrapper .fieldset-legend').text(article_2_legend_text+'('+countCheckedCheckboxes_article_type_new+')');jQuery('#edit-field-news-article-type-target-id--2--wrapper .fieldset-legend').val(article_2_legend_text+'('+countCheckedCheckboxes_article_type_new+')');if(countCheckedCheckboxes_article_type_new>0){$('.filter-main-wrapper #edit-reset').css('display','block');}else{$('.filter-main-wrapper #edit-reset').css('display','none');} if(screen&&screen.width>992){$('.filter-main-wrapper .views-exposed-form .form-actions .btn:first-child').click();return false;}});var services_2_legend_text=jQuery('#edit-field-services-target-id--2--wrapper .fieldset-legend').text();var $checkboxes_case_study_news=jQuery('#edit-field-services-target-id--2 input[type="checkbox"]');$checkboxes_case_study_news.change(function(){var countCheckedCheckboxes_case_study_news=$checkboxes_case_study_news.filter(':checked').length;jQuery('#edit-field-services-target-id--2--wrapper .fieldset-legend').text(services_2_legend_text+'('+countCheckedCheckboxes_case_study_news+')');jQuery('#edit-field-services-target-id--2--wrapper .fieldset-legend').val(services_2_legend_text+'('+countCheckedCheckboxes_case_study_news+')');if(countCheckedCheckboxes_case_study_news>0){$('.filter-main-wrapper #edit-reset').css('display','block');}else{$('.filter-main-wrapper #edit-reset').css('display','none');} if(screen&&screen.width>992){$('.filter-main-wrapper .views-exposed-form .form-actions .btn:first-child').click();return false;}});if(screen&&screen.width>992){jQuery(".filter-main-wrapper .form-actions").insertBefore(jQuery(".filter-main-wrapper fieldset.form-group:first-of-type"));} $('.filter-main-wrapper .fieldgroup legend').click(function(){var $filteroption=$(this).next('.filter-main-wrapper .fieldset-wrapper');$('.filter-main-wrapper .fieldset-wrapper').not($filteroption).slideUp();$filteroption.slideToggle();$('.filter-main-wrapper .fieldgroup legend').not(this).removeClass('open');$(this).toggleClass('open');});$(document).click(function(event){if(!$(event.target).closest('.filter-main-wrapper .fieldgroup legend').length&&!$(event.target).closest('.filter-main-wrapper .fieldset-wrapper').length){$('.filter-main-wrapper .fieldset-wrapper').slideUp();$('.filter-main-wrapper .fieldgroup legend').removeClass('open');}});$(".bef-checkbox-close").click(function(){$('.filter-main-wrapper .fieldset-wrapper').slideUp();$('.filter-main-wrapper .fieldgroup legend').removeClass('open');});jQuery(".filter-toggle").insertBefore(jQuery("[id*='views-exposed-form-']"));$('.filter-btn').click(function(){$("[class*='block-views-exposed-filter-']").addClass('openfilter');$("body").addClass('hide-scroll');});$('.close-filter').click(function(){$("[class*='block-views-exposed-filter-']").removeClass('openfilter');$("body").removeClass('hide-scroll');});$('.filter-main-wrapper .views-exposed-form .form-actions .btn:first-child').click(function(){$("[class*='block-views-exposed-filter-']").removeClass('openfilter');$("body").removeClass('hide-scroll');});if($('#block-exposedformnews-viewscase-studies').hasClass('block-views-exposed-filter-blocknews-views-case-studies')){var check=$('#edit-field-case-study-type-target-id').find('input[type=checkbox]:checked').length;if(check==0){$('#edit-field-services-target-id input').removeAttr('disabled');} var $case_study_industry=jQuery('#edit-field-case-study-type-target-id input[type="checkbox"]');$case_study_industry.change(function(){industries='';topics='';$('#edit-field-case-study-type-target-id input[type="checkbox"]:checked').each(function(){industries+=this.value+',';});$('#edit-field-services-target-id input[type="checkbox"]:checked').each(function(){topics+=this.value+',';});$.ajax({url:Drupal.url('case-study-filter'),type:'POST',data:{'data':industries,'existing_options_data':topics,},dataType:'json',success(results){$('#edit-field-services-target-id input').removeAttr('disabled');$.each(results.options,function(index,option){$('#edit-field-services-target-id input[value="'+option+'"]').prop("disabled",true);});$.each(results.existing_options,function(index,option){$('#edit-field-services-target-id input[value="'+option+'"]').prop("disabled",false);});},});});} if($('#block-exposedformnews-viewsresource-insights').hasClass('block-views-exposed-filter-blocknews-views-resource-insights')){var check=$('#edit-field-case-study-type-target-id').find('input[type=checkbox]:checked').length;if(check==0){$('#edit-field-services-target-id input').removeAttr('disabled');} var $case_study_industry=jQuery('#edit-field-case-study-type-target-id input[type="checkbox"]');$case_study_industry.change(function(){industries='';topics='';$('#edit-field-case-study-type-target-id input[type="checkbox"]:checked').each(function(){industries+=this.value+',';});$('#edit-field-services-target-id input[type="checkbox"]:checked').each(function(){topics+=this.value+',';});$.ajax({url:Drupal.url('case-study-filter'),type:'POST',data:{'data':industries,'existing_options_data':topics,},dataType:'json',success(results){$('#edit-field-services-target-id input').removeAttr('disabled');$.each(results.options,function(index,option){$('#edit-field-services-target-id input[value="'+option+'"]').prop("disabled",true);});$.each(results.existing_options,function(index,option){$('#edit-field-services-target-id input[value="'+option+'"]').prop("disabled",false);});},});});} if($('#block-exposedformnews-viewscase-studies').hasClass('block-views-exposed-filter-blocknews-views-case-studies')){var check=$('#edit-field-services-target-id').find('input[type=checkbox]:checked').length;if(check==0){$('#edit-field-case-study-type-target-id input').removeAttr('disabled');} var $topics_industry=jQuery('#edit-field-services-target-id input[type="checkbox"]');$topics_industry.change(function(){topics='';industries='';$('#edit-field-services-target-id input[type="checkbox"]:checked').each(function(){topics+=this.value+',';});$('#edit-field-case-study-type-target-id input[type="checkbox"]:checked').each(function(){industries+=this.value+',';});$.ajax({url:Drupal.url('case-study-topics-filter'),type:'POST',data:{'data':topics,'existing_options_data':industries,},dataType:'json',success(results){$('#edit-field-case-study-type-target-id input').removeAttr('disabled');$.each(results.options,function(index,option){$('#edit-field-case-study-type-target-id input[value="'+option+'"]').prop("disabled",true);});$.each(results.existing_options,function(index,option){$('#edit-field-case-study-type-target-id input[value="'+option+'"]').prop("disabled",false);});},});});} if($('#block-exposedformnews-viewsresource-insights').hasClass('block-views-exposed-filter-blocknews-views-resource-insights')){var check=$('#edit-field-services-target-id').find('input[type=checkbox]:checked').length;if(check==0){$('#edit-field-case-study-type-target-id input').removeAttr('disabled');} var $topics_industry=jQuery('#edit-field-services-target-id input[type="checkbox"]');$topics_industry.change(function(){topics='';industries='';$('#edit-field-services-target-id input[type="checkbox"]:checked').each(function(){topics+=this.value+',';});$('#edit-field-case-study-type-target-id input[type="checkbox"]:checked').each(function(){industries+=this.value+',';});$.ajax({url:Drupal.url('case-study-topics-filter'),type:'POST',data:{'data':topics,'existing_options_data':industries,},dataType:'json',success(results){$('#edit-field-case-study-type-target-id input').removeAttr('disabled');$.each(results.options,function(index,option){$('#edit-field-case-study-type-target-id input[value="'+option+'"]').prop("disabled",true);});$.each(results.existing_options,function(index,option){$('#edit-field-case-study-type-target-id input[value="'+option+'"]').prop("disabled",false);});},});});} if($('#block-exposedformeventsevents-list').hasClass('block-views-exposed-filter-blockevents-events-list')){var check=$('#edit-field-news-article-type-target-id').find('input[type=checkbox]:checked').length;if(check==0){$('#edit-field-services-target-id input').removeAttr('disabled');} var $events_industry=jQuery('#edit-field-news-article-type-target-id input[type="checkbox"]');$events_industry.change(function(){events='';topics='';$('#edit-field-news-article-type-target-id input[type="checkbox"]:checked').each(function(){events+=this.value+',';});$('#edit-field-services-target-id input[type="checkbox"]:checked').each(function(){topics+=this.value+',';});$.ajax({url:Drupal.url('event-filter'),type:'POST',data:{'data':events,'existing_options_data':topics,},dataType:'json',success(results){$('#edit-field-services-target-id input').removeAttr('disabled');$.each(results.options,function(index,option){$('#edit-field-services-target-id input[value="'+option+'"]').prop("disabled",true);});$.each(results.existing_options,function(index,option){$('#edit-field-services-target-id input[value="'+option+'"]').prop("disabled",false);});},});});} if($('#block-exposedformeventsevents-list').hasClass('block-views-exposed-filter-blockevents-events-list')){var check=$('#edit-field-services-target-id').find('input[type=checkbox]:checked').length;if(check==0){$('#edit-field-news-article-type-target-id input').removeAttr('disabled');} var $topics_industry=jQuery('#edit-field-services-target-id input[type="checkbox"]');$topics_industry.change(function(){topics='';industries='';$('#edit-field-services-target-id input[type="checkbox"]:checked').each(function(){topics+=this.value+',';});$('#edit-field-news-article-type-target-id input[type="checkbox"]:checked').each(function(){industries+=this.value+',';});$.ajax({url:Drupal.url('events-topics-filter'),type:'POST',data:{'data':topics,'existing_options_data':industries,},dataType:'json',success(results){$('#edit-field-news-article-type-target-id input').removeAttr('disabled');$.each(results.options,function(index,option){$('#edit-field-news-article-type-target-id input[value="'+option+'"]').prop("disabled",true);});$.each(results.existing_options,function(index,option){$('#edit-field-news-article-type-target-id input[value="'+option+'"]').prop("disabled",false);});},});});} if($('#block-exposedformnews-viewsarticle-press-releases-block-2').hasClass('block-views-exposed-filter-blocknews-views-article-press-releases-block-2')){var check=$('#edit-field-news-article-type-target-id').find('input[type=checkbox]:checked').length;if(check==0){$('#edit-field-services-target-id input').removeAttr('disabled');} var $news_industry=jQuery('#edit-field-news-article-type-target-id input[type="checkbox"]');$news_industry.change(function(){news='';topics='';$('#edit-field-news-article-type-target-id input[type="checkbox"]:checked').each(function(){news+=this.value+',';});$('#edit-field-services-target-id input[type="checkbox"]:checked').each(function(){topics+=this.value+',';});$.ajax({url:Drupal.url('news-filter'),type:'POST',data:{'data':news,'existing_options_data':topics,},dataType:'json',success(results){$('#edit-field-services-target-id input').removeAttr('disabled');$.each(results.options,function(index,option){$('#edit-field-services-target-id input[value="'+option+'"]').prop("disabled",true);});$.each(results.existing_options,function(index,option){$('#edit-field-services-target-id input[value="'+option+'"]').prop("disabled",false);});},});});} if($('#block-exposedformnews-viewsarticle-press-releases-block-2').hasClass('block-views-exposed-filter-blocknews-views-article-press-releases-block-2')){var check=$('#edit-field-services-target-id').find('input[type=checkbox]:checked').length;if(check==0){$('#edit-field-news-article-type-target-id input').removeAttr('disabled');} var $topics_industry=jQuery('#edit-field-services-target-id input[type="checkbox"]');$topics_industry.change(function(){topics='';industries='';$('#edit-field-services-target-id input[type="checkbox"]:checked').each(function(){topics+=this.value+',';});$('#edit-field-news-article-type-target-id input[type="checkbox"]:checked').each(function(){industries+=this.value+',';});$.ajax({url:Drupal.url('news-topics-filter'),type:'POST',data:{'data':topics,'existing_options_data':industries,},dataType:'json',success(results){$('#edit-field-news-article-type-target-id input').removeAttr('disabled');$.each(results.options,function(index,option){$('#edit-field-news-article-type-target-id input[value="'+option+'"]').prop("disabled",true);});$.each(results.existing_options,function(index,option){$('#edit-field-news-article-type-target-id input[value="'+option+'"]').prop("disabled",false);});},});});} if($('#block-exposedformnews-viewsviews-paper-listing-block').hasClass('block-views-exposed-filter-blocknews-views-views-paper-listing-block')){var check=$('#edit-field-news-article-type-target-id').find('input[type=checkbox]:checked').length;if(check==0){$('#edit-field-services-target-id input').removeAttr('disabled');} var $views_industry=jQuery('#edit-field-news-article-type-target-id input[type="checkbox"]');$views_industry.change(function(){views='';topics='';$('#edit-field-news-article-type-target-id input[type="checkbox"]:checked').each(function(){views+=this.value+',';});$('#edit-field-services-target-id input[type="checkbox"]:checked').each(function(){topics+=this.value+',';});$.ajax({url:Drupal.url('views-filter'),type:'POST',data:{'data':views,'existing_options_data':topics,},dataType:'json',success(results){$('#edit-field-services-target-id input').removeAttr('disabled');$.each(results.options,function(index,option){$('#edit-field-services-target-id input[value="'+option+'"]').prop("disabled",true);});$.each(results.existing_options,function(index,option){$('#edit-field-services-target-id input[value="'+option+'"]').prop("disabled",false);});},});});} if($('#block-exposedformnews-viewsviews-paper-listing-block').hasClass('block-views-exposed-filter-blocknews-views-views-paper-listing-block')){var check=$('#edit-field-services-target-id').find('input[type=checkbox]:checked').length;if(check==0){$('#edit-field-news-article-type-target-id input').removeAttr('disabled');} var $topics_industry=jQuery('#edit-field-services-target-id input[type="checkbox"]');$topics_industry.change(function(){topics='';industries='';$('#edit-field-services-target-id input[type="checkbox"]:checked').each(function(){topics+=this.value+',';});$('#edit-field-news-article-type-target-id input[type="checkbox"]:checked').each(function(){industries+=this.value+',';});$.ajax({url:Drupal.url('views-topics-filter'),type:'POST',data:{'data':topics,'existing_options_data':industries,},dataType:'json',success(results){$('#edit-field-news-article-type-target-id input').removeAttr('disabled');$.each(results.options,function(index,option){$('#edit-field-news-article-type-target-id input[value="'+option+'"]').prop("disabled",true);});$.each(results.existing_options,function(index,option){$('#edit-field-news-article-type-target-id input[value="'+option+'"]').prop("disabled",false);});},});});} if($('#block-exposedformnews-viewsarticle-press-releases-block-2').hasClass('block-views-exposed-filter-blocknews-views-article-press-releases-block-2')){$('select').on('change',function(){if(this.value!="All"){$('.filter-main-wrapper #edit-reset').css('display','block');}else{$('.filter-main-wrapper #edit-reset').css('display','none');} $("#edit-submit-news-views[value='Apply']").trigger('click');});} if($('#block-exposedformnews-viewsviews-paper-listing-block').hasClass('block-views-exposed-filter-blocknews-views-views-paper-listing-block')){$('select').on('change',function(){if(this.value!="All"){$('.filter-main-wrapper #edit-reset').css('display','block');}else{$('.filter-main-wrapper #edit-reset').css('display','none');} $("#edit-submit-news-views[value='Apply']").trigger('click');});} if($('#block-exposedformeventsevents-list').hasClass('block-views-exposed-filter-blockevents-events-list')){$('select').on('change',function(){if(this.value!="All"){$('.filter-main-wrapper #edit-reset').css('display','block');}else{$('.filter-main-wrapper #edit-reset').css('display','none');} $("#edit-submit-events[value='Apply']").trigger('click');});} if($('#block-exposedformeventsupcoming-events-block').hasClass('block-views-exposed-filter-blockevents-upcoming-events-block')){$('select').on('change',function(){if(this.value!="All"){$('.filter-main-wrapper #edit-reset').css('display','block');}else{$('.filter-main-wrapper #edit-reset').css('display','none');} $("#edit-submit-events[value='Apply']").trigger('click');});} if($('#block-exposedformeventspast-events-block').hasClass('block-views-exposed-filter-blockevents-past-events-block')){$('select').on('change',function(){if(this.value!="All"){$('.filter-main-wrapper #edit-reset').css('display','block');}else{$('.filter-main-wrapper #edit-reset').css('display','none');} $("#edit-submit-events[value='Apply']").trigger('click');});} if($('#block-exposedformnews-viewsresource-case-studies').hasClass('block-views-exposed-filter-blocknews-views-resource-case-studies')){var check=$('#edit-field-news-article-type-target-id').find('input[type=checkbox]:checked').length;if(check==0){$('#edit-field-services-target-id input').removeAttr('disabled');} var $case_study_industry=jQuery('#edit-field-news-article-type-target-id input[type="checkbox"]');$case_study_industry.change(function(){industries='';$('#edit-field-news-article-type-target-id input[type="checkbox"]:checked').each(function(){industries+=this.value+',';});$.ajax({url:Drupal.url('resources-news-topics-filter'),type:'POST',data:{'data':industries,},dataType:'json',success(results){$('#edit-field-services-target-id input').removeAttr('disabled');$('#edit-field-services-target-id input').prop('checked',false);$.each(results.options,function(index,option){$('#edit-field-services-target-id input[value="'+option+'"]').prop("disabled",true);});},});});} if($('#block-exposedformnews-viewsresource-case-studies').hasClass('block-views-exposed-filter-blocknews-views-resource-case-studies')){var check=$('#edit-field-services-target-id').find('input[type=checkbox]:checked').length;if(check==0){$('#edit-field-news-article-type-target-id input').removeAttr('disabled');} var $topics_industry=jQuery('#edit-field-services-target-id input[type="checkbox"]');$topics_industry.change(function(){topics='';$('#edit-field-services-target-id input[type="checkbox"]:checked').each(function(){topics+=this.value+',';});$.ajax({url:Drupal.url('resources-service-filter'),type:'POST',data:{'data':topics,},dataType:'json',success(results){$('#edit-field-news-article-type-target-id input').removeAttr('disabled');$('#edit-field-news-article-type-target-id input').prop('checked',false);$.each(results.options,function(index,option){$('#edit-field-news-article-type-target-id input[value="'+option+'"]').prop("disabled",true);});},});});}});}(jQuery,Drupal,drupalSettings));;