1/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */ 2(function($,Drupal,drupalSettings){if(!Drupal.chmAccordionsMainManuMobile)Drupal.chmAccordionsMainManuMobile={};Drupal.behaviors.chmAccordionsMainManuMobile={attach:function(context,settings){const selectors={accordionIconLevel:'.menu--main-navigation-redesign > .menu__accordion--parent .menu-item--expanded > .menu__accordion--icon',accordionInnerLevel1:'.menu__accordion--subnav-1',accordionInnerLevel2:'.menu__accordion--subnav-2',campusLocation:'.bsn-campus-locations',accordionLinkParent:'.menu-item--expanded',accordionIconClass:'.menu__accordion--icon',mmLevel2Link:'.mm-level-2.menu__accordion--link'};let themeAbbv='chm';$(once('once',selectors.accordionIconLevel)).each(function(){$(this).on('click touch',function(){let accordionInner=$(this).next(selectors.accordionInnerLevel2).length?selectors.accordionInnerLevel2:selectors.accordionInnerLevel1;if(accordionInner===selectors.accordionInnerLevel1){const parentSiblings=$(this).closest('[data-gtm=call-to-action]').siblings();parentSiblings.find(selectors.accordionIconClass).next(accordionInner).removeClass((accordionInner.replace(".",""))+'--active').slideUp();parentSiblings.find('> .menu__accordion--icon').removeClass('active');parentSiblings.find('> .menu__accordion--link').removeClass('menu__accordion--link-active');}$(this).next(accordionInner).toggleClass((accordionInner.replace(".",""))+'--active').slideToggle();$(this).toggleClass('active').prev().toggleClass('menu__accordion--link-active');});});$(once('campusLocation',selectors.campusLocation)).on('click',function(){$(this).children('ul').toggle();$(this).children('span').toggleClass('campus-location--active');});$('.header--mobile-menu .menu-button').on('click touch',function(){const isMenuActive=$(this).hasClass('is-active');const accordionLevel1='.menu__accordion--parent > .menu-item--expanded';if($('.menu--main-navigation-redesign').length&&isMenuActive){$(accordionLevel1).find('.menu__accordion--link-active').click();$(accordionLevel1).show();}else $(this).closest('.menu__mobile--wrapper').find('.menu.menu__accordion--items.menu__accordion--subnav-1').hide();});$(once('mmLevel2Link',selectors.mmLevel2Link)).on('click touch',function(){$(this).next('.menu.menu__accordion--items').slideToggle();$(this).toggleClass('arrow-rotated');});}};})(jQuery,Drupal,drupalSettings);; 3(function($,Drupal){if(!Drupal.chmCarousel)Drupal.chmCarousel={};Drupal.behaviors.chmCarousel={attach:function(context,settings){if($(".c-chm-carousel").length){function adjustSlidePosition(slickTrack,leftValue){slickTrack.animate({"left":leftValue},1000);}$(document).ready(function(){if($(".c-chm-carousel__item.c-carousel__item--varaible-width").length&&$(window).width()>768){let trackLastActiveFive=$(".c-chm-carousel").find('.c-chm-carousel--showfive').find('.slick-track').find('.c-carousel__item').last();let trackLastActiveFour=$(".c-chm-carousel").find('.c-chm-carousel--showfour').find('.slick-track').find('.c-carousel__item').last();let trackLastActiveThree=$(".c-chm-carousel").find('.c-chm-carousel--showthree').find('.slick-track').find('.c-carousel__item').last();let slickTrackFive=$(".c-chm-carousel").find('.c-chm-carousel--showfive').find('.slick-track');let slickTrackFour=$(".c-chm-carousel").find('.c-chm-carousel--showfour').find('.slick-track');let slickTrackThree=$(".c-chm-carousel").find('.c-chm-carousel--showthree').find('.slick-track');let btnPrev=$(".c-chm-carousel").find('.slick-prev');let btnNext=$(".c-chm-carousel").find('.slick-next');let btnDots=$(".c-chm-carousel").find('.slick-dots');btnDots.add(btnNext).on('click',function(){if(trackLastActiveFive.hasClass('slick-active'))adjustSlidePosition(slickTrackFive,'-220px');if(trackLastActiveFour.hasClass('slick-active'))adjustSlidePosition(slickTrackFour,'-300px');if(trackLastActiveThree.hasClass('slick-active'))adjustSlidePosition(slickTrackThree,'-420px');});btnDots.add(btnPrev).on('click',function(){if(!trackLastActiveFive.hasClass('slick-active'))adjustSlidePosition(slickTrackFive,'0px');if(!trackLastActiveFour.hasClass('slick-active'))adjustSlidePosition(slickTrackFour,'0px');if(!trackLastActiveThree.hasClass('slick-active'))adjustSlidePosition(slickTrackThree,'0px');});}});}}};})(jQuery,Drupal);; 4(function($,Drupal,once){'use strict';if(!Drupal.chmCarouselVideo)Drupal.chmCarouselVideo={};Drupal.behaviors.chmCarouselVideo={attach:function(context,settings){function updateMiddleItem(slickSlider){if(!slickSlider.closest('.carousel-video-portrait'))return;const slides=slickSlider.querySelectorAll('.slick-slide');
4slides.forEach((slide)=>{slide.classList.remove('middle-item');});const isMobile=window.innerWidth<768;if(isMobile){const activeSlide=slickSlider.querySelector('.slick-active');if(activeSlide)activeSlide.classList.add('middle-item');}else{const activeSlides=slickSlider.querySelectorAll('.slick-slide.slick-active');if(activeSlides.length%2!==0){const middleIndex=Math.floor(activeSlides.length/2);activeSlides[middleIndex].classList.add('middle-item');}else{if(activeSlides.length>0){const middleIndex=activeSlides.length/2-1;activeSlides[middleIndex].classList.add('middle-item');}}}const carouselContainer=slickSlider.closest('.carousel-video-portrait');if(carouselContainer)carouselContainer.classList.add('has-middle-item');}once('carousel-center-init','.slick-slider',context).forEach(function(slickSlider){const isVideoPortrait=slickSlider.closest('.carousel-video-portrait')!==null;if(!isVideoPortrait)return;if(!slickSlider.dataset.centerModeInitialized){$(slickSlider).slick('unslick');$(slickSlider).slick({centerMode:false,slidesToShow:3,slidesToScroll:1,infinite:true,speed:300,cssEase:'ease',arrows:false,responsive:[{breakpoint:768,settings:{centerMode:true,slidesToShow:1}}]});slickSlider.dataset.centerModeInitialized='true';}updateMiddleItem(slickSlider);$(slickSlider).on('afterChange',function(event,slick,currentSlide){updateMiddleItem(slickSlider);});let resizeTimer;window.addEventListener('resize',function(){clearTimeout(resizeTimer);resizeTimer=setTimeout(function(){if(document.body.contains(slickSlider)&&slickSlider.closest('.carousel-video-portrait')!==null)updateMiddleItem(slickSlider);},250);});});}};})(jQuery,Drupal,once);; 5(function($,Drupal,drupalSettings){if(!Drupal.chmCookieServices)Drupal.chmCookieServices={};Drupal.behaviors.chmCookieServices={attach:function(context,settings){this.evaluateCampaignCode();this.urlParamToCookie();},evaluateCampaignCode:function evaluateCampaignCode(){const urlParams=new URLSearchParams(window.location.search);const campaignCookieName=Drupal.behaviors.chmCookieServices.getCampaignCookieName(window.location.pathname);const campaignCode=Drupal.behaviors.atgeBaseGlobalFunctions.getCookie(campaignCookieName);const fieldName=drupalSettings.sourceCodes.fieldName;const sourceCodeField=$('input[name='+fieldName+']');if(urlParams.get('vc')||urlParams.get('source')){let query=urlParams.get('vc')!=null?'vc':'source';let sourceCodeValue=urlParams.get(query);let defaultSourceCodeBlog='203606';let currentUrl=window.location.pathname;let isBlogUrl=currentUrl.startsWith('/blog')||currentUrl.startsWith('/blogrequest');let qValue=sourceCodeValue;if(sourceCodeValue==defaultSourceCodeBlog&&isBlogUrl===true){let cookieValue=Cookies.get('CCN2');if(cookieValue!==undefined&&cookieValue!=='')qValue=cookieValue;}sourceCodeField.val(qValue);Drupal.behaviors.atgeBaseGlobalFunctions.setCookie(campaignCookieName,qValue,108000);}else if(campaignCode!==null){if(sourceCodeField.length)sourceCodeField.val(campaignCode);}else if(window.location.pathname.indexOf("/lp/")>-1||window.location.pathname=="/lp"){const defaultSourceCodeField=$('input[name="default_source_code"]');if((defaultSourceCodeField.length)&&defaultSourceCodeField.val())sourceCodeField.val(defaultSourceCodeField.val());}else{if(drupalSettings.atgeSourceCodes){const defaultSourceCode=drupalSettings.atgeSourceCodes.sourceCodes.default;const defaultMobileSourceCode=drupalSettings.atgeSourceCodes.sourceCodes.mobile_default;const mobileBreakpoint=768;if(defaultSourceCode)sourceCodeField.val(defaultSourceCode);if(window.innerWidth<mobileBreakpoint&&defaultMobileSourceCode)if(sourceCodeField.val()===defaultSourceCode)sourceCodeField.val(defaultMobileSourceCode);}}},getCampaignCookieName:function getCampaignCookieName(urlPath){if(urlPath.indexOf("/lp/")>-1||urlPath=="/lp")return 'paidCampaignCode';else return 'orgCampaignCode';},urlParamToCookie:function(){const urlParams=new URLSearchParams(window.location.search);if(urlParams.has('_ef_transaction_id'))Drupal.behaviors.atgeBaseGlobalFunctions.setCookie('everflow_tid',urlParams.get('_ef_transaction_id'),43200);}};})(jQuery,Drupal,drupalSettings);; 6(function($,Drupal,drupalSettings){if(!Drupal.atgeCxOneLivechat)Drupal.atgeCxOneLivechat={};Drupal.behaviors.atgeCxOneLivechat={attach:function(context,settings){if(!drupalSettings.atge_live_chat.isGdprEnabled&&drupalSettings.atge_live_chat.chat_type==='cxone')Drupal.behaviors.atgeCxOneLivechat.startChat();if(drupalSettings.atge_live_chat.chat_type==='cxone')Drupal.behaviors.atgeCxOneLivechat.bindCardChatTrigger();},startChat:function(){if(once('addCxOneChat','html').length)$(window).each(function(){if(drupalSettings.atge_live_chat.chat_enable&&drupalSettings.atge_live_chat.chat_type==='cxone'){const themeAbbv=drupalSettings.atge_base.global.theme_abbv;if(Drupal.behaviors.atgeLivechatGdpr.livechatAllowed()){const businessHours=drupalSettings.atge_live_chat.business_hours;if(businessHours){const isChatAvailable=Drupal.behaviors.atgeCxOneLivechat.referenceBusinessHours(businessHours);if(isChatAvailable){Drupal.behaviors.atgeCxOneLivechat.processChat();if(themeAbbv=='chm'&&$('.enable-business-hours').length>0){Drupal.behaviors.atgeCxOneLivechat.activeHeaderChat();Drupal.behaviors.atgeCxOneLivechat.bindCardChatTrigger();}}}else Drupal.behaviors.atgeCxOneLivechat.processChat();}if(themeAbbv=='chm'&&$('.enable-business-hours').length==0){Drupal.behaviors.atgeCxOneLivechat.activeHeaderChat();Drupal.behaviors.atgeCxOneLivechat.processChat();Drupal.behaviors.atgeCxOneLivechat.bindCardChatTrigger();}}});},bindCardChatTrigger:function(){$(document).off('click.mobileChatCard').on('click.mobileChatCard','.mobile-chat-card .c-card__item--cta',function(e){e.preventDefault();if(typeof icPatronChat==='undefined')return;$('#icChatButton').removeClass('hide-on-mobile hide-on-tablet').css('z-index','100001');icPatronChat.show();
6icPatronChat.setStateWindowToggle();});$(document).off('click.mobileChatClose').on('click.mobileChatClose',function(e){if($(e.target).closest('#icChatButton').length===0&&$(e.target).closest('.mobile-chat-card').length===0&&$('#icChatButton').is(':visible')){icPatronChat.hide();$('#icChatButton').addClass('hide-on-mobile hide-on-tablet').css('z-index','');}});},activeHeaderChat:function(){let headerChat=$('.p-menu--parent .icon-chm-chat');headerChat.removeClass('visually-hidden');const bus_no=drupalSettings.atge_live_chat.cxone_bus_no;const poc=drupalSettings.atge_live_chat.cxone_poc;headerChat.on("click",function(){const width=420;const height=650;const left=window.screen.width-width-20;const top=window.screen.height-height-100;window.open('https://home-c20.incontact.com/incontact/chatclient/chatclient.aspx?poc='+poc+'&bu='+bus_no+'&P1='+encodeURI(window.location.href)+'&P2='+encodeURI(document.referrer),'cxoneChat',`width=${width},height=${height},top=${top},left=${left},resizable=yes,scrollbars=yes`);});},processChat:function(){Drupal.behaviors.atgeCxOneLivechat.initCxOneChat();(async()=>{await Drupal.behaviors.atgeCxOneLivechat.getChatWhenAvailable();Drupal.behaviors.atgeAnalyticsLivechat.initCxOneAnalytics();Drupal.behaviors.atgeCxOneLivechat.chatStickyFooter();Drupal.behaviors.atgeCxOneLivechat.showChatLinks();})();},chatStickyFooter:function(){const stickyEnable=drupalSettings.atge_live_chat.cxone_sticky_enable;const callButton=$('ul[region="utility_bottom"] li a[data-gtm="phone"], '+'ul[region="footer"] li[data-gtm="phone"] a, '+'ul[region="footer"] li a[data-gtm="phone"]');const stickyChat=$('a[name="stickyFooterChat"]');if(stickyEnable&&stickyChat.length>0){callButton.parent().addClass('visually-hidden');callButton.attr('tabindex','-1');stickyChat.parent().removeClass('visually-hidden');stickyChat.attr('tabindex','0');}},showChatLinks:function(){$('a[href^="https://home-c20.incontact.com/incontact/chatclient/"]:not(a[name="stickyFooterChat"]').each(function(){if($(this).hasClass('visually-hidden'))$(this).removeClass('visually-hidden');if($(this).parent().hasClass('visually-hidden'))$(this).parent().removeClass('visually-hidden');});},initCxOneChat:function(){const bus_no=drupalSettings.atge_live_chat.cxone_bus_no;const poc=drupalSettings.atge_live_chat.cxone_poc;const isMobile=window.innerWidth<1024;const chatParams=[encodeURI(window.location.href),encodeURI(document.referrer)];if(typeof icPatronChat!=='undefined')if(!$('.ie-div-position-customer-chat').length)icPatronChat.init({serverHost:'https://home-c20.incontact.com',bus_no,poc,params:chatParams});},getChat:function(){const chatButton=$('#icChatButton');if(chatButton.length>0)return chatButton;},getChatWhenAvailable:function(){return new Promise((resolve)=>{const chatButton=Drupal.behaviors.atgeCxOneLivechat.getChat();if(chatButton){let hideMobileCxOne=false;let hideTabletCxOne=false;if($('input[name="cxOneHideMobile"]')[0])hideMobileCxOne=$('input[name="cxOneHideMobile"]')[0].value==='1'?true:false;if($('input[name="cxOneHideTablet"]')[0])hideTabletCxOne=$('input[name="cxOneHideTablet"]')[0].value==='1'?true:false;if(hideMobileCxOne)chatButton.addClass('hide-on-mobile');if(hideTabletCxOne)chatButton.addClass('hide-on-tablet');resolve(chatButton);return true;}const observer=new MutationObserver(()=>{const chatButton=Drupal.behaviors.atgeCxOneLivechat.getChat();if(chatButton){observer.disconnect();resolve(chatButton);}});observer.observe(document.body,{childList:true,subtree:true});});},getCurrentDay:function(businessHours){const dayOfWeek=new Date().toLocaleString('en-US',{timeZone:businessHours.timezone,weekday:'long'});return dayOfWeek;},getCurrentTime:function(businessHours){let currentTime=new Date().toLocaleString("en-US",{timeZone:businessHours.timezone});currentTime=new Date(currentTime);let adjustedHours=(currentTime.getHours()<10?'0':'')+currentTime.getHours();let adjustedMinutes=(currentTime.getMinutes()<10?'0':'')+currentTime.getMinutes();return adjustedHours+':'+adjustedMinutes;},referenceBusinessHours:function(businessHours){const currentDay=Drupal.behaviors.atgeCxOneLivechat.getCurrentDay(businessHours);let startTime='';let endTime='';switch(currentDay){case 'Sunday':startTime=businessHours.sunday_start_time;endTime=businessHours.sunday_end_time;break;case 'Monday':startTime=businessHours.monday_start_time;endTime=businessHours.monday_end_time;break;case 'Tuesday':startTime=businessHours.tuesday_start_time;endTime=businessHours.tuesday_end_time;break;case 'Wednesday':startTime=businessHours.wednesday_start_time;endTime=businessHours.wednesday_end_time;break;case 'Thursday':startTime=businessHours.thursday_start_time;endTime=businessHours.thursday_end_time;break;case 'Friday':startTime=businessHours.friday_start_time;endTime=businessHours.friday_end_time;break;case 'Saturday':startTime=businessHours.saturday_start_time;endTime=businessHours.saturday_end_time;break;default:startTime='';endTime='';break;}
6if(startTime&&endTime){let currentTime=Drupal.behaviors.atgeCxOneLivechat.getCurrentTime(businessHours);const startTimeConverted=startTime.substring(0,5);const endTimeConverted=endTime.substring(0,5);return currentTime>startTimeConverted&¤tTime<endTimeConverted;}}};})(jQuery,Drupal,drupalSettings);; 7(function($,Drupal,drupalSettings,once){if(!Drupal.chmCXoneChatAnalytics)Drupal.chmCXoneChatAnalytics={};Drupal.behaviors.chmCXoneChatAnalytics={attach:function(context,settings){if(!once('chmCXoneChatAnalytics','html',context).length)return;const self=Drupal.behaviors.chmCXoneChatAnalytics;self.externalId=Drupal.behaviors.atgeUtilityCookies.getCookie('external_id');self.pendingOpenLabel=null;self.currentOpenLabel=null;self.externalChatWindow=null;self.externalChatPollTimer=null;self.bindHeaderNavChat();self.bindMobileCardChat();self.observeIframeWidth();},bindHeaderNavChat:function(){const self=this;const bus_no=drupalSettings.atge_live_chat.cxone_bus_no;const poc=drupalSettings.atge_live_chat.cxone_poc;const headerChat=$('.p-menu--parent .icon-chm-chat');headerChat.removeClass('visually-hidden');headerChat.off('click.chmCXoneChatAnalytics').on('click.chmCXoneChatAnalytics',function(){const width=420;const height=650;const left=window.screen.width-width-20;const top=window.screen.height-height-100;self.openExternalChat('https://home-c20.incontact.com/incontact/chatclient/chatclient.aspx?poc='+poc+'&bu='+bus_no,`width=${width},height=${height},top=${top},left=${left},resizable=yes,scrollbars=yes`);});},openExternalChat:function(url,windowFeatures){const self=this;if(self.externalChatWindow&&!self.externalChatWindow.closed){self.externalChatWindow.focus();return;}const chatWindow=window.open(url,'cxoneChat',windowFeatures);if(!chatWindow)return;self.externalChatWindow=chatWindow;Drupal.behaviors.atgeAnalytics.openChat('live',self.externalId);clearInterval(self.externalChatPollTimer);self.externalChatPollTimer=setInterval(function(){if(chatWindow.closed){clearInterval(self.externalChatPollTimer);self.externalChatPollTimer=null;self.externalChatWindow=null;Drupal.behaviors.atgeAnalytics.closeChat('live',self.externalId);}},500);},bindMobileCardChat:function(){const self=this;$(document).off('click.chmCXoneChatAnalyticsMobile').on('click.chmCXoneChatAnalyticsMobile','.mobile-chat-card .c-card__item--cta',function(){if(typeof icPatronChat==='undefined')return;self.pendingOpenLabel='live';Drupal.behaviors.atgeAnalytics.openChat('live',self.externalId);});},observeIframeWidth:function(){const self=this;const targetId='chat-div-wrap';function parseWidth(styleStr){if(!styleStr)return null;const match=styleStr.match(/width:\s*(\d+(?:\.\d+)?)px/);return match?parseFloat(match[1]):null;}function attachWidthObserver(target){const observer=new MutationObserver(function(mutations){mutations.forEach(function(mutation){if(mutation.attributeName!=='style')return;const oldWidth=parseWidth(mutation.oldValue);const newWidth=parseWidth(mutation.target.getAttribute('style'));if(oldWidth===newWidth)return;const wasOpen=oldWidth!==null&&oldWidth>0;const isOpen=newWidth!==null&&newWidth>0;const viewportWidth=window.innerWidth;if(wasOpen&&!isOpen){const label=self.currentOpenLabel||'proactive';Drupal.behaviors.atgeAnalytics.closeChat(label,self.externalId);self.currentOpenLabel=null;return;}if(!wasOpen&&isOpen){if(self.pendingOpenLabel==='live'){self.currentOpenLabel='live';self.pendingOpenLabel=null;return;}if(viewportWidth>767){self.currentOpenLabel='proactive';Drupal.behaviors.atgeAnalytics.openChat('proactive',self.externalId);}return;}});});observer.observe(target,{attributes:true,attributeOldValue:true,attributeFilter:['style']});}const existingTarget=document.getElementById(targetId);if(existingTarget){attachWidthObserver(existingTarget);return;}const waitObserver=new MutationObserver(function(mutations,obs){const target=document.getElementById(targetId);if(target){obs.disconnect();attachWidthObserver(target);}});waitObserver.observe(document.body,{childList:true,subtree:true});}};})(jQuery,Drupal,drupalSettings,once);; 8(function($,Drupal,drupalSettings){if(!Drupal.chmGridUtility)Drupal.chmGridUtility={};Drupal.behaviors.chmGridUtility={attach:function(context,settings){$(once('headerHeight','.ab-grid-header-height',context)).each(function(i,value){var $value=$(value);var headerHeights=$($value.children().find('.c-grid-standard--title')).map(function(){return $(this).height();}).get();var maxHeight=Math.max.apply(null,headerHeights);$value.children().find('.c-grid-standard--title').height(maxHeight);});$('.c-grid .item--expand-label-more').click(function(){var targetParent=$(this).parent();var targetWrapper=$(this).parent().parent().parent();targetParent.children().toggleClass('hidden');targetParent.addClass('is-expanded');targetWrapper.addClass('c-grid__item--expand-expanded');});$('.c-grid .item--expand-label-less').click(function(){var targetParent=$(this).parent();var targetWrapper=$(this).parent().parent().parent();targetParent.children().toggleClass('hidden');targetParent.removeClass('is-expanded');targetWrapper.removeClass('c-grid__item--expand-expanded');});}};})(jQuery,Drupal,drupalSettings);; 9(function($,Drupal,drupalSettings){if(!Drupal.atgeGridVideoModal)Drupal.atgeGridVideoModal={};Drupal.behaviors.atgeGridVideoModal={attach:function(context,settings){const videoModal='.c-atge-media';if($(window).width()>=768){$(videoModal).find('.e-video--external').each(function(){$(this).parents('.c-atge-media').find('.e-modal--video').addClass('e-iframe--video').append(($(this).find('.atge-youtube-iframe-container')));$(this).parents('.c-atge-media').find('.e-modal').hide();$(this).find('.e-media-cover-img').on('click',function(e){if(drupalSettings.atge_utility.isGdprEnabled){if(Drupal.behaviors.atgeYoutubeGdpr.youtubeAllowed())Drupal.behaviors.atgeGridVideoModal.attachVideo($(this),e);}else Drupal.behaviors.atgeGridVideoModal.attachVideo($(this),e);});
9$('.e-modal--underlay, .e-modal--close').on('click',function(){let isCarousel=false;if($('.has-active-modal').parents('.c-carousel__item').length>0)isCarousel=true;if(isCarousel&&$('.detached-video').length>0){let allowAttr=$('.detached-video').find('.atge-youtube-iframe-container').attr('allow');let removeAuto=allowAttr.toString().replace('autoplay;','');$('.detached-video').find('.atge-youtube-iframe-container').attr('allow',removeAuto);$('.detached-video').detach().appendTo('.has-active-modal');$('.detached-video').find('.atge-youtube-iframe-container').attr('allow',allowAttr);$('.detached-video').removeClass('detached-video');}else{if(window.videosOnPage)window.videosOnPage.map(function(video){if(typeof video.player.stopVideo==='function')video.player.stopVideo();});}$(this).parents('.c-grid, .e-video').removeClass('has-active-modal');$(this).parents('.c-atge-media').find('.e-modal').hide();});});$(videoModal).find('.e-video--internal').each(function(){$(this).parents('.c-atge-media').find('video').attr('controls','');$(this).parents('.c-atge-media').find('.e-modal--video').append(($(this).find('video')));$(this).attr('style','');$(this).parents('.c-atge-media').find('.e-modal').hide();$(this).find('.e-media-cover-img').on('click',function(){$(this).parents('.c-atge-media').find('.e-modal').fadeIn();$(this).parents('.c-grid').addClass('has-active-modal');});$('.e-modal--underlay, .e-modal--close').on('click',function(){if(window.videosOnPage)window.videosOnPage.map(function(video){video.player.stopVideo();});$(this).parents('.c-atge-media').find('.e-modal').fadeOut();$(this).parents('.c-grid, .e-video').removeClass('has-active-modal');});});}},attachVideo:function(mediaCover,e){let isCarousel=false;if(mediaCover.parents('.c-atge-media').parents('.c-carousel__item').length>0)isCarousel=true;let video=$(e.target).closest('.e-video--external');let clickedVideoId=$(video).attr('id');let vidInfoDiv=$(video).find('.atge-youtube-data');let youTubeVidId=$(vidInfoDiv).data('videoId');if(typeof atgeAddYouTubeCode==='function'){window.clickedVideo=clickedVideoId;atgeAddYouTubeCode();}mediaCover.parents('.c-atge-media').find('.e-modal').fadeIn();mediaCover.parents('.c-grid, .e-video').addClass('has-active-modal');if(isCarousel){mediaCover.parents('.e-video').find('.e-modal').addClass('detached-video');$('.detached-video').detach().appendTo('body');$('.detached-video').promise().done(function(){if(window.videosOnPage)window.videosOnPage.map(function(video){if(youTubeVidId===video.id){if(typeof video.player.playVideo==='function')video.player.playVideo();}else{if(typeof video.player.stopVideo==='function')video.player.stopVideo();}});});}else{if(window.videosOnPage)window.videosOnPage.map(function(video){if(youTubeVidId===video.id){if(typeof video.player.playVideo==='function')video.player.playVideo();}else{if(typeof video.player.stopVideo==='function')video.player.stopVideo();}});}mediaCover.parents('.c-atge-media').find('.e-modal').fadeIn();mediaCover.parents('.c-grid, .e-video').addClass('has-active-modal');}};})(jQuery,Drupal,drupalSettings);; 10(function($,Drupal,drupalSettings,once){if(!Drupal.chmHeaderRegion)Drupal.chmHeaderRegion={};Drupal.behaviors.chmHeaderRegion={attach:function(context,settings){let $menuItems=once('utilityMenuOnce','.header-personal--menu .p-chm-utility__menu--content > .p-menu > .e-menu-item--level-0',context);if($('.alternative-utility--menu').length>0){let iconStudentMegamenu=$('.tb-megamenu-nav .menu--utility .icon-chm-student');iconStudentMegamenu.on('click',function(){$(this).toggleClass('open');});let iconStudent=$('.header-personal--menu-alternative .menu--utility .icon-chm-student');iconStudent.on('click',function(){$(this).toggleClass('open');});}$($menuItems).one('click',function(){let utilityText=$($menuItems).find('.header-personal-link').text();const externalID=Drupal.behaviors.atgeBaseGlobalFunctions.getCookie("external_id");Drupal.behaviors.atgeAnalytics.navClick('Header',utilityText,externalID);});if($menuItems.length){$menuItems.forEach(function(el){let $item=$(el);let $submenu=$item.find('.p-menu--child--level-1');$submenu.hide();$item.on('click',function(e){e.stopPropagation();$('.header-personal--menu .p-menu--child--level-1').not($submenu).slideUp();$submenu.stop(true,true).slideToggle();});});$(document).on('click',function(){$('.header-personal--menu .p-menu--child--level-1').slide
10Up();});}$(document).ready(function(){if($('body').hasClass('homepage-header--variant'))$(window).on('scroll',function(){let scrollTop=$(this).scrollTop();if(scrollTop>0)$('.region__header').addClass('header-default--style');else $('.region__header').removeClass('header-default--style');});});}};})(jQuery,Drupal,this,once);; 11(function($,Drupal,drupalSettings){if(!Drupal.atgeTBMegaMenu)Drupal.atgeTBMegaMenu={};Drupal.behaviors.atgeTBMegaMenu={attach:function(context,settings){let screenWidth=window.innerWidth;$(document).ready(function(){if($('.block-tb-megamenu-menu-blockmain-navigation-redesign'.length>0&&screenWidth>1024)){$('.tb-megamenu-item').on('click',function(){const menuWrapperHeight=$('.tb-megamenu-nav .mega-dropdown-inner.tb-col-2');let maxH=0;$('.tb-megamenu .dropdown-submenu.open').each(function(){const h=$(this).outerHeight(true);if(h>maxH)maxH=h;});if(maxH>0){maxHFinal=maxH+220;menuWrapperHeight.css('min-height',maxHFinal+'px');}});$('.mm-menu--close').on('click',function(){$(this).closest('.tb-megamenu-item.dropdown-submenu').removeClass('open');});$('.tb-campus-container .tb-megamenu-item > a').each(function(){if(!$(this).find('.icon-chm-marker-pin').length)$(this).prepend('<span class="icon-chm-marker-pin"></span>');});once("tb-megamenu-cta-control",".tb-megamenu",context).forEach((menu)=>{const $menu=$(menu);let rafId=null;const scheduleUpdate=()=>{if(rafId)return;rafId=window.requestAnimationFrame(()=>{rafId=null;updateCTA();});};function updateCTA(){const $ctas=$menu.find(".mm-cta");$ctas.each(function(){const $cta=$(this);const $openChildDropdowns=$cta.closest(".tb-megamenu-item.dropdown-submenu.open, .tb-megamenu-item.level-1.dropdown").find(".tb-megamenu-item.dropdown-submenu.open");if($openChildDropdowns.length>0)$cta.addClass("cta-hidden");else $cta.removeClass("cta-hidden");});}const observer=new MutationObserver((mutations)=>{for(const m of mutations){if(m.type==="attributes"&&m.attributeName==="class"){const el=m.target;if(el&&el.classList&&el.classList.contains("tb-megamenu-item")){scheduleUpdate();break;}}if(m.type==="childList"&&(m.addedNodes.length||m.removedNodes.length)){scheduleUpdate();break;}}});observer.observe(menu,{subtree:true,childList:true,attributes:true,attributeFilter:["class"]});$menu.on("click",".mm-menu--close, .mega-dropdown__close",scheduleUpdate);$menu.on("focusin",".tb-megamenu-item > a",scheduleUpdate);updateCTA();$menu.on("remove",()=>observer.disconnect());});}});function setTBMegaMenuWidth(){const windowWidth=$(window).width();const widthClassMap={4:'tb-col-3',3:'tb-col-4',6:'tb-col-2',12:'tb-col-12'};$('.tb-megamenu ul.tb-megamenu-nav > li').each(function(){const $tbNavItem=$(this);const $dropDown=$tbNavItem.find('> .tb-full-width.mega-dropdown-menu');const dataWidth=$tbNavItem.find('.tb-megamenu-column').data('width');const $dropDownInner=$dropDown.children('.mega-dropdown-inner');$dropDown.css('width',windowWidth).offset({left:0});if(widthClassMap[dataWidth])$dropDownInner.addClass(widthClassMap[dataWidth]);});}function adjustSpacing(){var height=$(window).height();var minMargin=10;var maxMargin=32;var margin;if(height<620)margin=minMargin;else if(height>=620&&height<1000)margin=minMargin+((maxMargin-minMargin)*((height-620)/400));else margin=maxMargin;$('.menu--main-navigation-redesign .menu-item').css('margin-bottom',margin+'px');}function adjustSpacingLinks(){var height=$(window).height();var minMargin=8;var maxMargin=12;var margin;if(height<620)margin=minMargin;else if(height>=620&&height<800)margin=minMargin+((maxMargin-minMargin)*((height-620)/400));else margin=maxMargin;$('.tb-megamenu .menu--utility .e-menu-item.e-menu-item--level-0').css('margin-bottom',margin+'px');$('.tb-megamenu-subnav .tb-megamenu-item').css('margin-bottom',margin+'px');}if(screenWidth>1024){adjustSpacing();adjustSpacingLinks();$(window).on('resize',function(){adjustSpacing();adjustSpacingLinks();});}setTBMegaMenuWidth();$(".tb-megamenu-main-navigation-redesign .tb-megamenu-nav").click(function(){setTBMegaMenuWidth();});$(window).on('load',function(){setTBMegaMenuWidth();});$(window).resize(function(){setTBMegaMenuWidth();});$(window).on('orientationchange',function(){$('.tb-megamenu-main-navigation-redesign').find('.mega-dropdown__close').click();});}};})(jQuery,Drupal,drupalSettings);; 12Drupal.TBMegaMenu=Drupal.TBMegaMenu||{};(function($,Drupal,drupalSettings){'use strict';Drupal.TBMegaMenu.oldWindowWidth=0;Drupal.TBMegaMenu.displayedMenuMobile=false;Drupal.TBMegaMenu.supportedScreens=[980];Drupal.TBMegaMenu.menuResponsive=function(){var windowWidth=window.innerWidth?window.innerWidth:$(window).width();var navCollapse=$('.tb-megamenu').children('.nav-collapse');if(windowWidth<Drupal.TBMegaMenu.supportedScreens[0]){navCollapse.addClass('collapse');if(Drupal.TBMegaMenu.displayedMenuMobile)navCollapse.css({height:'auto',overflow:'visible'});else navCollapse.css({height:0,overflow:'hidden'});}else{navCollapse.removeClass('collapse');if(navCollapse.height()<=0)navCollapse.css({height:'auto',overflow:'visible'});}};Drupal.TBMegaMenu.clickMenu=function(context){var showMenu=function($menuItem,mm_timeout){$menuItem.children('.dropdown-toggle').attr('aria-expanded','true');
12if($menuItem.hasClass('mega')){const levelMap={'.level-programs':'.level-programs','.level-admission':'.level-admission','.level-financial':'.level-financial','.level-why--chm':'.level-why--chm'};const $nodes=$menuItem.find('[class*="level-"]');for(let i=0;i<$nodes.length;i++){const node=$nodes[i];const levelClass=Array.from(node.classList).find((c)=>c.startsWith('level-'));if(!levelClass)continue;const selector=`.${levelClass}`;levelMap[selector]=selector;break;}$.each(levelMap,function(level,className){if($menuItem.children(level).length>0){$('.menu--main-navigation-redesign > .menu .menu-item--collapsed').children().removeClass('level-1--active');$menuItem.children('.tb-megamenu-submenu').find('.menu--main-navigation-redesign > .menu .menu-item').children(className).addClass('level-1--active');}});$menuItem.addClass('animating');clearTimeout($menuItem.data('animatingTimeout'));$menuItem.data('animatingTimeout',setTimeout(function(){$menuItem.removeClass('animating');},mm_timeout));clearTimeout($menuItem.data('hoverTimeout'));$menuItem.data('hoverTimeout',setTimeout(function(){$menuItem.addClass('open');$menuItem.closest('ul').addClass('open');const externalID=Drupal.behaviors.atgeBaseGlobalFunctions.getCookie('external_id');Drupal.behaviors.atgeAnalytics.navClick('Header',$menuItem.children('.dropdown-toggle').attr('title'),externalID,null);},100),setTimeout(function(){if($menuItem.parent('.level-0')){}},200));}else{clearTimeout($menuItem.data('hoverTimeout'));$menuItem.data('hoverTimeout',setTimeout(function(){$menuItem.addClass('open');$menuItem.closest('ul').addClass('open');},100));}};function handleMenuClick(levelClass){let $targetItem=$(`.tb-megamenu-item.level-1.mega.dropdown > .dropdown-toggle.${levelClass}`);let $menuItem=$('.tb-megamenu-item.level-1.mega.dropdown');if($targetItem.length>0){$targetItem.attr('aria-expanded','true');$('.menu--main-navigation-redesign > .menu .menu-item--collapsed').children().removeClass('level-1--active');$targetItem.next().find(`.menu--main-navigation-redesign > .menu .menu-item--collapsed .${levelClass}`).addClass('level-1--active');$targetItem.addClass('animating');clearTimeout($menuItem.data('animatingTimeout'));$menuItem.data('animatingTimeout',setTimeout(function(){$menuItem.removeClass('animating');},100));$menuItem.find('.tb-megamenu-subnav .tb-megamenu-item.open').removeClass('open');clearTimeout($menuItem.data('hoverTimeout'));$targetItem.data('hoverTimeout',setTimeout(function(){$targetItem.closest('li').addClass('open');$targetItem.closest('ul').addClass('open');$targetItem.parent().siblings().removeClass('open').find('.dropdown-toggle').attr('aria-expanded','false');},100));}}$(once('tbmm-header-btn','.header-menu-btn',context)).on('click',function(){handleMenuClick('level-programs');});$(once('tbmm-programs-click','.menu-item.level-programs',context)).on('click',function(){handleMenuClick('level-programs');});$(once('tbmm-admission-click','.menu-item.level-admission',context)).on('click',function(){handleMenuClick('level-admission');});$(once('tbmm-financial-click','.menu-item.level-financial',context)).on('click',function(){handleMenuClick('level-financial');});$(once('tbmm-why-click','.menu-item.level-why--chm',context)).on('click',function(){handleMenuClick('level-why--chm');});const selector='.tb-megamenu-main-navigation-redesign ul .menu-item';once('tbmm-level-item-click',selector,context).forEach((item)=>{$(item).on('click',function(e){const levelClass=Array.from(item.classList).find((c)=>c.startsWith('level-'));if(!levelClass)return;handleMenuClick(levelClass);});});var hideMenu=function($menuItem,mm_timeout){$menuItem.children('.dropdown-toggle').attr('aria-expanded','false');if($menuItem.hasClass('mega')){$menuItem.addClass('animating');clearTimeout($menuItem.data('animatingTimeout'));$menuItem.data('animatingTimeout',setTimeout(function(){$menuItem.removeClass('animating');},mm_timeout));clearTimeout($menuItem.data('hoverTimeout'));$menuItem.data('hoverTimeout',setTimeout(function(){$menuItem.removeClass('open');$menuItem.closest('ul').removeClass('open');}
12,100));}else{clearTimeout($menuItem.data('hoverTimeout'));$menuItem.data('hoverTimeout',setTimeout(function(){$menuItem.removeClass('open');$menuItem.closest('ul').removeClass('open');},100));}};var button=$(once('tb-megamenu-action','.tb-megamenu-button',context));$(button).click(function(){if(parseInt($(this).parent().children('.nav-collapse').height())){$(this).parent().children('.nav-collapse').css({height:0,overflow:'hidden'});Drupal.TBMegaMenu.displayedMenuMobile=false;}else{$(this).parent().children('.nav-collapse').css({height:'auto',overflow:'visible'});Drupal.TBMegaMenu.displayedMenuMobile=true;}});var isTouch=false;if(!isTouch)$(document).ready(function($){var mm_duration=0;$('.tb-megamenu',context).each(function(){if($(this).data('duration'))mm_duration=$(this).data('duration');});var mm_timeout=mm_duration?100+mm_duration:500;$('.nav > li > .dropdown-toggle, li.mega > .dropdown-toggle',context).on('focus',function(event){var $this=$(this);var $subMenu=$this.closest('li');showMenu($subMenu,mm_timeout);$(document).bind('focusin',function(event){if($subMenu.has(event.target).length)return;else{if(!$(event.target).hasClass('dropdown-toggle')&&$(event.target).closest('.tb-megamenu-submenu').length)return;}$(document).unbind(event);hideMenu($subMenu,mm_timeout);});});var previousMenuClick;if(once('dropdown-toggle','html').length)$(document).on('click',function(event){if(!$(event.target).closest('.tb-megamenu-item').length)hideMenu($('li.mega.open'),mm_timeout);else{if($(event.target).is('a')&&$(event.target).hasClass('dropdown-toggle')){event.preventDefault();if(previousMenuClick===event.target&&$(event.target).parent().hasClass('open')){if($(previousMenuClick).parent().hasClass('dropdown-submenu')&&$(previousMenuClick).parent().hasClass('open'))return false;hideMenu($(event.target).parent(),mm_timeout);}else showMenu($(event.target).parent(),mm_timeout);}if($(event.target).hasClass('mega-dropdown__close'))hideMenu($('li.mega.open'),mm_timeout);if($(event.target).closest('.tb-megamenu-submenu').length)if(!$(event.target).closest('.tb-megamenu-row.row-fluid').length)hideMenu($('li.mega.open'),mm_timeout);previousMenuClick=event.target;}});});};Drupal.TBMegaMenu.hoverMenu=function(){function closeAllMenus(){$('.tb-megamenu-item.level-1.dropdown').each(function(){$(this).removeClass('open').blur();$(this).find('a.dropdown-toggle').attr('aria-expanded','false').blur();$(this).find('a').blur();});}function closeSecondaryHeaderMenu(){let secondaryHeader=$(document).find('.menu--secondary .e-open');secondaryHeader.toggleClass('e-open');secondaryHeader.find('> ul').slideUp();}$('.tb-megamenu-item.level-1').mouseenter(function(event){closeAllMenus();closeSecondaryHeaderMenu();$(this).addClass('open');$(this).find('a.dropdown-toggle').attr('aria-expanded','true');});$('.tb-megamenu-item.level-1').mouseleave(function(event){closeAllMenus();});};Drupal.behaviors.tbMegaMenuAction={attach:function(context,settings){$(document).ready(function($){if($('#block-chm-base-mainnavigationpaidnew').length&&$(window).width()>=768)Drupal.TBMegaMenu.hoverMenu();else Drupal.TBMegaMenu.clickMenu(context);});$(window).resize(function(){var windowWidth=window.innerWidth?window.innerWidth:$(window).width();if(windowWidth!=Drupal.TBMegaMenu.oldWindowWidth){Drupal.TBMegaMenu.oldWindowWidth=windowWidth;Drupal.TBMegaMenu.menuResponsive();}});}};})(jQuery,Drupal,drupalSettings);; 13(function($,Drupal){if(!Drupal.chmSecondaryMenuInteractions)Drupal.chmSecondaryMenuInteractions={};Drupal.behaviors.chmSecondaryMenuInteractions={attach:function(context,settings){$(window).on('scroll',function(){let windowWidth=$(window).width();let currentTop=$(window).scrollTop();let heroBanner=$('.paragraph--type--atge-banner:first .c-banner--item');let footerMenu=$('#block-footer-secondarynavigation');if(windowWidth<1024)if(heroBanner.length>0){let heroBannerHeight=Math.round(heroBanner.first().height());if(currentTop>heroBannerHeight)footerMenu.addClass('menu--visible');else footerMenu.removeClass('menu--visible');}else if(currentTop>1200)footerMenu.addClass('menu--visible');else footerMenu.removeClass('menu--visible');else footerMenu.addClass('menu--visible');});}};})(jQuery,Drupal);; 14(function($,Drupal,window,document,undefined){if(!Drupal.chmThemeInteractions)Drupal.chmThemeInteractions={};Drupal.behaviors.chmThemeInteractions={attach:function(context,settings){$(document).ready(function(){$('.webform-submission-form').each(function(){const $form=$(this);if($form.children('.webform-progress').length>0){const $formContainer=$form.children('.form-wrapper');const $formHeading=$formContainer.children('.form-item.form-heading');if($formHeading.length>0)$form.prepend($formHeading);}});
14$(".personalized-hero-ty-page.c-chm-universal-grid__content").each(function(){const progressBar=$('<div class="progress-bar"></div>');let step=1;$(this).find(".c-universal-grid__item").each(function(){const stepHtml=$('<div class="step"></div>').addClass(step===1?'completed':'active').html(step===1?'<span class="e-icon e-icon-font icon-chm-check"></span>':`<span>${step}</span>`);$(this).prepend(stepHtml);step++;});$(this).prepend(progressBar);});});if(location.pathname==='/getinfoty'){const email=Drupal.behaviors.atgeBaseGlobalFunctions.getCookie('email');const program=Drupal.behaviors.atgeBaseGlobalFunctions.getCookie('program');const eventId=Drupal.behaviors.atgeBaseGlobalFunctions.getCookie('event_uuid');const externalId=Drupal.behaviors.atgeBaseGlobalFunctions.getCookie('external_id');Drupal.behaviors.atgeAnalytics.eventData(email,program,eventId,externalId);}function generateUUID(){var d=new Date().getTime();var d2=((typeof performance!=='undefined')&&performance.now&&(performance.now()*1000))||0;return 'xx
14xxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g,function(c){var r=Math.random()*16;if(d>0){r=(d+r)%16|0;d=Math.floor(d/16);}else{r=(d2+r)%16|0;d2=Math.floor(d2/16);}return (c==='x'?r:(r&0x3|0x8)).toString(16);});}$(document).ready(function(){const eventID=Drupal.behaviors.atgeBaseGlobalFunctions.getCookie('event_uuid');if(eventID==''||eventID==null)Drupal.behaviors.atgeBaseGlobalFunctions.setCookie('event_uuid',generateUUID());if(Drupal.behaviors.atgeFormsWebform)Drupal.behaviors.atgeFormsWebform.copyEventIdFromCookieToForm();});$(document).ajaxComplete(function(){if($('.ui-front.ui-dialog-content.ui-widget-content').length>0){$formHeight=$(window).height()-200;$('.ui-front.ui-dialog-content.ui-widget-content').css('max-height',$formHeight+'px');$('.ui-dialog.form-open-dialog.ui-widget.ui-widget-content.ui-front').css('top','100px');}});$(document).ready(function(){updateThankyouPageHeadingText('.c-chm-banner__content--item .p-chm-banner--copy');updateThankyouPageHeadingText('.c-chm-universal-grid__header .c-chm-universal-grid__header--copy');});function updateThankyouPageHeadingText(selector){var params=new URLSearchParams(window.location.search).get('name');var bannerText=$(selector);var mobileWidth=$(window).width();if(!bannerText.length)return;if(!bannerText.closest('.hidden-thankyou-text').length)return;var headingTags=bannerText.find('h1, h2, h3, h4, h5, h6').first();if(!headingTags.length)headingTags=bannerText.children().filter(function(){return $(this).text().trim().length>0;}).first();if(!headingTags.length)return;var text=headingTags.text().trim();var baseText=text.includes(',')?text.split(',')[0]:text;if(params){headingTags.empty();headingTags.append(document.createTextNode(baseText+','));if(mobileWidth<=768)headingTags.append('<br>');else headingTags.append(' ');var userName=$('<span>',{class:'hero-banner-heading-text-style',text:params+'!'});headingTags.append(userName);}else headingTags.text(baseText);bannerText.css('visibility','visible');}function checkDuplicateSitemap(){let siteMapLinks=[];$(".sitemap-menu li a").each(function(){if(siteMapLinks.indexOf($(this).html())==-1)siteMapLinks.push($(this).html());else $(this).parent().remove();});}function squarePositionedGrid(){$('.paid-rtb-grid-7-cards .c-grid__item, .paid-rtb-grid-square .c-grid__item,'+'.paid-rtb-grid-7-cards .c-universal-grid__item, .paid-rtb-grid-square .c-universal-grid__item').each(function(){const itemWidth=$(this).width();if($(this).height()<itemWidth)$(this).height(itemWidth);else $(this).css('height','');});}$(window).on('load',squarePositionedGrid);$(window).on('resize',squarePositionedGrid);function gtmAttributes(){$('a[data-pin-log="button_pinit"]').attr('data-click-category','social');$('a[data-pin-log="button_pinit"]').attr('data-click-action','share');$('a[data-pin-log="button_pinit"]').attr('data-gtm','social');$('a[data-pin-log="button_pinit"]').attr('data-click-label','pinterest');}$(window).on('load',gtmAttributes);$(window).on('load',function(){if($("body").hasClass("path-sitemap"))checkDuplicateSitemap();let currentWidth=$(window).width();if($('.view-chm-blog-listing').length&&$(window).width()>=768){let featuredInner=$('.t-chm-article__featured .t-article__featured--inner .t-chm-article__featured--content');if(featuredInner.length){let featuredMedia=$('.t-chm-article__featured .t-article__featured--inner .t-chm-article__featured--media');let heightContentFeatured=featuredInner.outerHeight();featuredMedia.height(heightContentFeatured);$(window).resize(function(){if(currentWidth!=$(window).width())setTimeout(function(){if($(window).width()>=768){heightContentFeatured=featuredInner.outerHeight();featuredMedia.height(heightContentFeatured);}else featuredMedia.height('auto');},500);});}}});let url=window.location.href;if(url.indexOf('/blog/')!==-1||url.indexOf('/blogrequest')!==-1)$('body').addClass('page-node-type-page--blog');$('.block__tb-megamenu-menu-blockmain-navigation-alumni .tb-megamenu ul.tb-megamenu-nav > li').each(function(i,tbNavItem){$(tbNavItem).find('.tb-megamenu-submenu').removeClass('tb-full-width');});$('.region__header-paid').find('.tb-megamenu-submenu').removeClass('tb-full-width');$('li.tb-megamenu-item.level-2.mega.e-btn--tertiary').find('a').attr('data-gtm','call-to-action');$('.webform-dialog').attr('data-dialog-options','{"classes":{"ui-dialog":"form-open-dialog"}, "drupalAutoButtons":false}');let externalId=Drupal.behaviors.atgeBaseGlobalFunctions.getCookie('external_id');if(externalId===null){let externalIdHash=generateUUID();document.cookie='external_id='+externalIdHash+';';}
14if($(".c-grid-mobile-carousel").length){function verticalArrow(){let gridItems='.c-grid__items';$(gridItems).each(function(){let slickArrow=$(this).find('.slick-arrow');let slickArrowHeight=$(this).find('.slick-arrow').height()/2;let gridItemtHeight=$(this).find('.c-grid__item').innerHeight();let contentHeight=$(this).find('.c-chm-grid-standard--wrapper').height();if($(this).find('.c-chm-grid-standard--media').length){let arrowHeight=gridItemtHeight-contentHeight+slickArrowHeight;slickArrow.css('top',arrowHeight);}else{let cardHeight=$(this).innerHeight()/2;slickArrow.css('top',cardHeight);}});}$(document).ready(function(){setTimeout(verticalArrow,3000);});$(window).resize(function(){setTimeout(verticalArrow,200);});$(document).scroll(function(){verticalArrow();});}if($('.rte-learn-more-expand').length>0)$(once('learn-more','.ckeditor-template-wrapper',context)).each(function(){let coll=$(this).find('.rte-learn-more-expand').children().last();let el=$(this);for(let i=0;i<coll.length;i++)coll[i].addEventListener('click',function(){let content=el.find('.expanded-learn-more');if($(content).is(':visible')){$(this).addClass('collapsed').removeClass('uncollapsed');$(content).hide(125);return;}$(this).removeClass('collapsed').addClass('uncollapsed');$(content).show(125);});});const pager=document.querySelector('.pager__items');if(pager){const firstItem=document.querySelector('.pager__item--first');const lastItem=document.querySelector('.pager__item--last');const prevItem=document.querySelector('.pager__item--previous');const nextItem=document.querySelector('.pager__item--next');function extractPageNumber(paramValue){if(!paramValue)return null;if(paramValue.includes(',')){const parts=paramValue.split(',');return parseInt(parts[parts.length-1])+1;}else return parseInt(paramValue)+1;}const pageOneVisible=!!pager.querySelector('.pager__item:not(.pager__item--first):not(.pager__item--previous):not(.pager__item--next):not(.pager__item--last) a[href*="page=0"]')||!!pager.querySelector('.pager__item:not(.pager__item--first):not(.pager__item--previous):not(.pager__item--next):not(.pager__item--last).is-active a');if(firstItem){const firstSpan=firstItem.querySelector('a span[aria-hidden="true"]');const firstLink=firstItem.querySelector('a');if(firstSpan&&firstLink){const firstPageUrl=firstLink.href;if(firstPageUrl&&firstPageUrl.includes('?')){const pageParam=new URLSearchParams(firstPageUrl.split('?')[1]).get('page');
14if(pageParam!==null){const firstPageNum=extractPageNumber(pageParam);firstSpan.textContent=`${firstPageNum}`;if(prevItem&&pager.contains(prevItem)&&!pageOneVisible)try{pager.insertBefore(firstItem,prevItem.nextSibling);}catch(e){}else{if(pageOneVisible&&pager.contains(firstItem))try{pager.removeChild(firstItem);}catch(e){}}}}}}if(lastItem){const lastSpan=lastItem.querySelector('a span[aria-hidden="true"]');const lastLink=lastItem.querySelector('a');if(lastSpan&&lastLink){const lastPageUrl=lastLink.href;if(lastPageUrl&&lastPageUrl.includes('?')){const pageParam=new URLSearchParams(lastPageUrl.split('?')[1]).get('page');if(pageParam!==null){const lastPageNum=extractPageNumber(pageParam);lastSpan.textContent=`${lastPageNum}`;if(nextItem&&pager.contains(nextItem))try{pager.insertBefore(lastItem,nextItem);}catch(e){}}}}if(!$(lastItem).prev('.pager__item--ellipsis').length)$(lastItem).hide();}if(prevItem&&pager.firstChild!==prevItem&&pager.contains(prevItem))try{pager.insertBefore(prevItem,pager.firstChild);}catch(e){}}$(window).on('resize.universalGridCarousel',function(){const isDesktop=window.innerWidth>=768;$('.c-universal-grid-mobile-carousel').each(function(i,carousel){let carouselItemsObj=$(carousel).find('.c-universal-grid-card__items, .c-universal-grid-mobile-carousel__items');let isInitialized=carouselItemsObj.hasClass('slick-initialized');if(isDesktop)if(isInitialized){carouselItemsObj.slick('unslick');$(carousel).find('.slick-arrow, .slick-dots').remove();carouselItemsObj.removeClass('slick-slider slick-initialized slick-dotted');carouselItemsObj.find('.slick-track').children().unwrap();carouselItemsObj.find('.slick-list').children().unwrap();}if(!isDesktop&&!isInitialized)carouselItemsObj.slick({accessibility:true,adaptiveHeight:false,arrows:true,autoplay:false,dots:true,infinite:false,initialSlide:0,slidesToScroll:1,slidesToShow:1,mobileFirst:true,responsive:[{breakpoint:767,settings:{slidesToShow:3,arrows:true,dots:true}},{breakpoint:768,settings:"unslick"}]});});});$(document).ready(function(){$(window).trigger('resize.universalGridCarousel');});},customSelect:function(customClass){let styledSeletec,i,j,l,ll,selElmnt,a,b,c;styledSeletec=document.getElementsByClassName(customClass);if(styledSeletec.length>0){l=styledSeletec.length;for(i=0;i<l;i++){if(styledSeletec[i].getElementsByClassName('select-selected').length)continue;selElmnt=styledSeletec[i].getElementsByTagName("select")[0];ll=selElmnt.length;a=document.createElement("DIV");a.setAttribute("class","select-selected");a.innerHTML=selElmnt.options[selElmnt.selectedIndex].innerHTML;styledSeletec[i].appendChild(a);b=document.createElement("DIV");b.setAttribute("class","select-items select-hide");for(j=0;j<ll;j++){c=document.createElement("DIV");c.innerHTML=selElmnt.options[j].innerHTML;c.addEventListener("click",function(e){let y,i,k,s,h,sl,yl;s=this.parentNode.parentNode.getElementsByTagName("select")[0];sl=s.length;h=this.parentNode.previousSibling;for(i=0;i<sl;i++)if(s.options[i].innerHTML==this.innerHTML){s.selectedIndex=i;h.innerHTML=this.innerHTML;y=this.parentNode.getElementsByClassName("same-as-selected");yl=y.length;for(k=0;k<yl;k++)y[k].removeAttribute("class");this.setAttribute("class","same-as-selected");break;}h.click();$(this).closest('.custom-select').find(".c-chm-tabs__nav-select, .c-chm-npc-tabs__nav-select").trigger("change");});b.appendChild(c);}styledSeletec[i].appendChild(b);a.addEventListener("click",function(e){e.stopPropagation();closeAllSelect(this);this.nextSibling.classList.toggle("select-hide");this.classList.toggle("select-arrow-active");});}function closeAllSelect(elmnt){let x,y,i,xl,yl,arrNo=[];x=document.getElementsByClassName("select-items");y=document.getElementsByClassName("select-selected");xl=x.length;yl=y.length;for(i=0;i<yl;i++)if(elmnt==y[i])arrNo.push(i);else y[i].classList.remove("select-arrow-active");for(i=0;i<xl;i++)if(arrNo.indexOf(i))x[i].classList.add("select-hide");}document.addEventListener("click",closeAllSelect);}}};})(jQuery,Drupal,this,this.document);;
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.