1/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */ 2(function($,Drupal,window,document,undefined){if(!Drupal.atgeAnalytics)Drupal.atgeAnalytics={};var menuItemNameClicked=null;Drupal.behaviors.atgeAnalytics={navClick:function(menuType,menuItemName,externalId=null,context=null){if(menuItemNameClicked!==menuItemName){let menuItemMain=null;const themeAbbv=drupalSettings.atge_base.global.theme_abbv;if(context){const menuItem=$(context);if(menuItem.hasClass('menu__accordion--link'))if(menuItem.hasClass('menu__accordion--item-main'))menuItemMain=menuItem.closest('.menu__accordion--item-main').text();else if(menuItem.parent().hasClass('menu__accordion--item'))menuItemMain=concatenateSelections(context);else menuItemMain=menuItem.closest('.menu__accordion--subnav-1').closest('.menu__accordion--item').find('span.menu__accordion--item-main').text();else if(themeAbbv==='wal')if(menuItem.parents('.tb-megamenu-main-navigation---redesign')&&!menuItem.hasClass('menu__accordion--icon')){let menuItemMain1Title=menuItem.parents('.tb-megamenu-item.level-1').find('a').attr('title');let menuItemMain2Title=menuItem.parents('.tb-megamenu-item.level-2').find('a').attr('title');let menuItemMain3Title=menuItem.parents('.tb-megamenu-item.level-3').find('a').attr('title');let menuLevels=['level-1','level-2','level-3','level-4'];if(menuLevels.some((level)=>menuItem.hasClass(level)))if(menuItem.hasClass('level-1'))menuItemMain=menuItemMain1Title;else if(menuItem.hasClass('level-2'))menuItemMain=menuItemMain1Title+' > '+menuItem.find('a').attr('title');else if(menuItem.hasClass('level-3'))menuItemMain=menuItemMain1Title+' > '+menuItemMain2Title+' > '+menuItem.find('a').attr('title');else if(menuItem.hasClass('level-4'))menuItemMain=menuItemMain1Title+' > '+menuItemMain2Title+' > '+menuItemMain3Title+' > '+menuItem.attr('title');else menuItemMain=menuItem.attr('title');else if(menuItem.parent().hasClass('level-1'))menuItemMain=menuItemMain1Title;else if(menuItem.parent().hasClass('level-2'))menuItemMain=menuItemMain1Title+' > '+menuItem.attr('title');else if(menuItem.parent().hasClass('level-3'))menuItemMain=menuItemMain1Title+' > '+menuItemMain2Title+' > '+menuItem.attr('title');else if(menuItem.parent().hasClass('level-4'))menuItemMain=menuItemMain1Title+' > '+menuItemMain2Title+' > '+menuItemMain3Title+' > '+menuItem.attr('title');else menuItemMain=menuItem.attr('title');}else{if(menuItem.hasClass('menu__accordion--icon'))menuItemMain=concatenateSelections(context);}else menuItemMain=menuItem.closest('.tb-megamenu-item.level-1').find('a').attr('title');}if(menuItemName!==menuItemMain&&context)dataLayer.push({'event':'e_navigationClick','menuType':menuType,'menuItemName':menuItemName||'error','menuItemMain':menuItemMain,'external_id':externalId});else dataLayer.push({'event':'e_navigationClick','menuType':menuType,'menuItemName':menuItemName||'error','external_id':externalId});}menuItemNameClicked=menuItemName;},formSubmit:function(formName,formSourceCode,externalId=null){dataLayer.push({'event':'e_formSubmit','formName':formName,'formSourceCode':formSourceCode,'external_id':externalId});},multipleEventFormSubmit:function(formName,formSourceCode,externalId=null){dataLayer.push({'event':'e_formSubmit','formName':formName,'formSourceCode':formSourceCode,'formType':'multiple_event','external_id':externalId});},formFieldInput:function(formName,fieldName,fieldValue,formSourceCode,externalId=null){dataLayer.push({'event':'e_formFieldInput','formName':formName,'fieldName':fieldName,'fieldValue':fieldValue,'formSourceCode':formSourceCode,'external_id':externalId});},formFieldValue:function(formName,fieldName,fieldValue,stepNum,externalId=null){dataLayer.push({'event':'e_formFieldValue','fieldName':fieldName,'formName':formName,'formStepNumber':stepNum,'fieldValue':fieldValue,'external_id':externalId});},formDropDown:function(formName,fieldName,selectedValue,formSourceCode,externalId=null){dataLayer.push({'event':'e_formDropdown','fieldName':fieldName,'formName':formName,'selectedValue':selectedValue,'formSourceCode':formSourceCode,'external_id':externalId});},eventRegistration:function(eventType,eventName,externalId=null){dataLayer.push({'event':'e_eventRegistration','eventType':eventType,'eventName':eventName,'external_id':externalId});},mCatScore:function(score,externalId=null){dataLayer.push({'event':'e_mcatScore','mcatScore':score,'external_id':externalId});},formPageSubmit:function(formName,formPage,stepPage,externalId=null){dataLayer.push({'event':'e_formPageSubmit','formName':formName,'formPage':formPage,'formStepNumber':stepPage,'external_id':externalId});}
2,openChat:function(chatType,externalId=null){dataLayer.push({'event':'e_chatOpen','chatType':chatType,'external_id':externalId});},closeChat:function(chatType,externalId=null){dataLayer.push({'event':'e_chatClose','chatType':chatType,'external_id':externalId});},xButtonChat:function(chatType,externalId=null){dataLayer.push({'event':'e_chatXButton','chatType':chatType,'external_id':externalId});},searchClick:function(term,numResults,searchList,externalId=null){dataLayer.push({'event':'e_searchResults','searchTerm':term,'results':numResults,'searchList':searchList,'external_id':externalId});},searchFilter:function(query,filterSelected,searchList,externalId=null){dataLayer.push({'event':'e_searchFilter','searchQueryParameter':query,'filterSelected':filterSelected,'searchList':searchList,'external_id':externalId});},expandList:function(title,itemText,externalId=null){dataLayer.push({'event':'e_expandList','listName':title,'listItem':itemText,'external_id':externalId});},viewPreference:function(viewSelection,viewList,externalId=null){dataLayer.push({'event':'e_viewPreference','viewSelection':viewSelection,'viewList':viewList,'external_id':externalId});},eventData:function(email,programOfInterest,eventId=null,externalId=null){dataLayer.push({'event':'e_eventData','eventId':eventId,'email':email,'programOfInterest':programOfInterest,'external_id':externalId});Drupal.behaviors.atgeBaseGlobalFunctions.deleteMultipleCookies(['email','event_uuid','program']);},videoAutoplay:function(action,videoName=null,videoDuration=null){dataLayer.push({'event':'e_videoAutoplay','action':action,'videoName':videoName,'videoDuration':videoDuration});},callToAction:function(text,clickURL,ctaRegion){dataLayer.push({'event':'e_callToAction','clickText':text,'clickURL':clickURL,'ctaRegion':ctaRegion});},clickToCall:function(text,ctaRegion){dataLayer.push({'event':'e_clickToCall','clickText':text,'clickLocation':ctaRegion});}};function concatenateSelections(context){return $(context).parents('li').map(function(){return $(this).children().first().text().trim();}).get().reverse().join(' > ');}})(jQuery,Drupal,this,this.document);; 3(function($,Drupal,window,document,undefined){if(!Drupal.atgeContentSquare)Drupal.atgeContentSquare={};Drupal.behaviors.atgeContentSquare={attach:function(context,settings){$(document).ready(function(){if(typeof newrelic!='undefined'){if(sessionStorage.getItem("ContentsquareReplay"))newrelic.setCustomAttribute("ContentsquareReplay",sessionStorage.getItem("ContentsquareReplay"));if(sessionStorage.getItem("ContentsquareSID"))newrelic.setCustomAttribute("ContentsquareSID",sessionStorage.getItem("ContentsquareSID"));}});}};})(jQuery,Drupal,this,this.document);; 4(function($,Drupal,drupalSettings){if(!Drupal.atgeAnalyticsWebforms)Drupal.atgeAnalyticsWebforms={};Drupal.behaviors.atgeAnalyticsWebforms={getFormName:function(form){if(undefined!==form.attr('data-name'))return form.attr('data-name');else if(form.closest('.c-atge-form').find('.p-chm-form--heading')[0])return form.closest('.c-atge-form').find('.p-chm-form--heading')[0].innerHTML.trim();else{if(form.closest('div').find('h1, h2, h3, h4, h5')[0])return form.closest('div').find('h1, h2, h3, h4, h5')[0].innerHTML.trim();}},getFieldValue:function(element){return $(element).val();},pushToGA:function(formName,sourceCode,field,formId){let input=$('#'+formId)[0][field.name];field.value=$.trim(field.value);let fieldsNameNotAllowed=['first_name','last_name','mobile_phone','zip_postal_code','alumnus_alumni_full_name','alumnus_alumni_phone_number','alumnus_alumni_email','telephone','street_add','phone_number','phone','zip','email_address'];let fieldsTypeNotAllowed=['email','tel','hidden'];if(!fieldsNameNotAllowed.includes(field.name)&&!fieldsTypeNotAllowed.includes(input.type))if(!$(input).parent().hasClass('form-item-getform'))if(input.type==='select-one'){let selectFields=['start_term','semester_of_interest','event_id','area_of_study','choose_a_program'];if(selectFields.includes(field.name))field.value=$(input).find('option:selected').text().trim();Drupal.behaviors.atgeAnalytics.formDropDown(formName,field.name,field.value,sourceCode);}else if(field.name==='mcat_score')Drupal.behaviors.atgeAnalytics.mCatScore(field.value);else{if(field.name==='degree_type'||field.name==='degree_type_mobile'){const fieldValue=field.value;const fieldNameWithHyphens=field.name.replace(/_/g,'-');const label=$(`label[for="edit-${fieldNameWithHyphens}-${fieldValue}"]`).text().trim();field.value=label;}Drupal.behaviors.atgeAnalytics.formFieldInput(formName,field.name,field.value,sourceCode);}},getEventStatus:function(form,formId){if(form.find('#edit-event')[0]||form.find('#edit-event-type')[0])return true;else if(formId.includes('event'))return true;else return false;}};})(jQuery,Drupal,drupalSettings);;
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.