1/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */ 2(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(drupalSettings.chm_webform&&drupalSettings.chm_webform.webformTitle.length)return drupalSettings.chm_webform.webformTitle;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('.c-chm-form').find('h3')[0])return form.closest('.c-chm-form').find('h3')[0].innerHTML.trim();else if(form.closest('.c-chm-form').prev().find('.atge-form-title')[0])return form.closest('.c-chm-form').prev().find('h1, h2, h3, h4, h5')[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){if($(element).is('[type=radio]')&&$(element).closest('.webform-type-radios').hasClass('analytics-label'))return $(element).siblings('label').text();return $(element).val();},pushToGA:function(formName,sourceCode,field,formId){const externalId=Drupal.behaviors.atgeBaseGlobalFunctions.getCookie('external_id');let input=$('#'+formId)[0][field.name];field.value=$.trim(field.value);if(input.type!=='hidden')if(input.type==='select-one')Drupal.behaviors.atgeAnalytics.formDropDown(formName,field.name,field.value,sourceCode,externalId);else{if(input.type!=='text'&&input.type!=='email'&&input.type!=='checkbox')if((input.type&&input.type==='radio')||(typeof input[0]!="undefined"&&input[0].type==='radio'))Drupal.behaviors.atgeAnalytics.formFieldInput(formName,field.name,field.value,sourceCode,externalId);}},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);; 3(function($,Drupal,drupalSettings){if(!Drupal.atgeBasePolyfills)Drupal.atgeBasePolyfills={};Drupal.behaviors.atgeBasePolyfills={attach:function(context,settings){if(!String.prototype.startsWith)Object.defineProperty(String.prototype,'startsWith',{value:function(search,rawPos){var pos=rawPos>0?rawPos|0:0;return this.substring(pos,pos+search.length)===search;}});if(!String.prototype.endsWith)String.prototype.endsWith=function(search,this_len){if(this_len===undefined||this_len>this.length)this_len=this.length;return this.substring(this_len-search.length,this_len)===search;};if(!String.prototype.includes)String.prototype.includes=function(search,start){'use strict';if(search instanceof RegExp)throw TypeError('first argument must not be a RegExp');if(start===undefined)start=0;return this.indexOf(search,start)!==-1;};if(window.NodeList&&!NodeList.prototype.forEach)NodeList.prototype.forEach=Array.prototype.forEach;}};})(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.