1function populateUserEventAttributes(target,event){if(typeof target==typeof undefined||typeof event==typeof undefined||typeof jQuery(target)==typeof undefined||!jQuery(target).length){return}const hookName="data-fcgtm4wpeventhook";if(!jQuery(target).attr(hookName)){jQuery(target).attr(hookName,event);return}const data=jQuery(target).attr(hookName);let dataArr=data.split(",");if(dataArr.indexOf(event)===-1){dataArr.push(event)}jQuery(target).attr(hookName,dataArr.join(","))}function hashEmail(email){if(!email){return"#"}let hiddenEmail="";for(i=0;i<email.length;i++){if(i>3&&i<email.indexOf("@")){hiddenEmail+="*"}else{hiddenEmail+=email[i]}}return hiddenEmail}function fcHandleNewsletterEvent(formSelectors,submitSelector,emailSelector,debugInfo){if(typeof formSelectors==typeof undefined){return}const formsArr=formSelectors.split(",");const eventType="newsletter_sign_up";formsArr.forEach(function(value){const $target=jQuery(value);const existingSubmitSelector=value+" "+submitSelector;const existingEmailSelector=value+" "+emailSelector;if(typeof $target==typeof undefined||!$target.length){return}if(debugInfo){populateUserEventAttributes(value,eventType);populateUserEventAttributes(existingSubmitSelector,eventType);populateUserEventAttributes(existingEmailSelector,eventType)}jQuery("body").on("click",existingSubmitSelector,function(event){if(debugInfo){console.debug(existingSubmitSelector+" clicked")}let $emailInput=jQuery(event.target).parent().parent().parent().parent().find(emailSelector);if(typeof $emailInput==typeof undefined||!$emailInput.length){return}$emailInput=$emailInput.get(0);const emailVal=$emailInput&&$emailInput.value?$emailInput.value:false;const hashedEmail=hashEmail(emailVal);window[fcgtm4wp_datalayer_name].push({event:eventType,user_hashed_email:hashedEmail})})})}function fcHandleNotificationsEvent(allowId,dismissId,hookAttributes){const eventType="notification";fcInitDynamicClickEventHook("#"+allowId,eventType,{event:eventType,interaction_option:"allow"},hookAttributes);fcInitStaticClickEventHook("#"+allowId,eventType,{event:eventType,interaction_option:"allow"},hookAttributes);fcInitDynamicClickEventHook("#"+dismissId,eventType,{event:eventType,interaction_option:"dismiss"},hookAttributes);fcInitStaticClickEventHook("#"+dismissId,eventType,{event:eventType,interaction_option:"dismiss"},hookAttributes)}function fcInitDynamicClickEventHook(existingElementSelector,eventType,eventObject,hookAttributes){jQuery("body").on("click",existingElementSelector,function(){if(hookAttributes){populateUserEventAttributes(existingElementSelector,eventType)}window[fcgtm4wp_datalayer_name].push(eventObject)})}function fcInitStaticClickEventHook(existingElementSelector,eventType,eventObject,hookAttributes){const $target=jQuery(existingElementSelector);if(typeof $target==typeof undefined||!$target.length){return}if(hookAttributes){populateUserEventAttributes(existingElementSelector,eventType)}$target.click(function(){window[fcgtm4wp_datalayer_name].push(eventObject)})}jQuery(function($){const allowedDataPopulation=typeof fcgtm4wp_ui_allowed_data_population!=typeof undefined?fcgtm4wp_ui_allowed_data_population:false;const newsletterFormSelectors=typeof fcgtm4wp_ui_newsletter_form_hook_selectors!=typeof undefined?fcgtm4wp_ui_newsletter_form_hook_selectors:false;const newsletterSubmitSelectors=typeof fcgtm4wp_ui_newsletter_submit_hook_selectors!=typeof undefined?fcgtm4wp_ui_newsletter_submit_hook_selectors:false;const newsletterEmailSelectors=typeof fcgtm4wp_ui_newsletter_email_hook_selectors!=typeof undefined?fcgtm4wp_ui_newsletter_email_hook_selectors:false;if(newsletterFormSelectors){fcHandleNewsletterEvent(newsletterFormSelectors,newsletterSubmitSelectors,newsletterEmailSelectors,allowedDataPopulation)}const notificationAllowHookClasses=typeof fcgtm4wp_ui_notification_allow_hook_classes!=typeof undefined?fcgtm4wp_ui_notification_allow_hook_classes:false;const notificationDismissHookClasses=typeof fcgtm4wp_ui_notification_dismiss_hook_classes!=typeof undefined?fcgtm4wp_ui_notification_dismiss_hook_classes:false;
1if(notificationAllowHookClasses||notificationDismissHookClasses){fcHandleNotificationsEvent(notificationAllowHookClasses,notificationDismissHookClasses,allowedDataPopulation)}});
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.