1"use strict";(self.webpackChunk_gp_web_frontend=self.webpackChunk_gp_web_frontend||[]).push([["gtm-data-layer"],{
1"./src/ts/components/gtm-data-layer/gtm-data-layer.ts":(e,i,t)=>{t.r(i),t.d(i,{gtmDataLayerComponent:()=>o,init:()=>n});var a=t("../shared-types/frontend/core/store.ts");const o=e=>({bindEvents:()=>(window.dataLayer=window.dataLayer||[],(e=>{window.dataLayer=window.dataLayer||[],(()=>{let i;e.subscribe((()=>{const{dataLayerPush:t,history:o}=e.getState();i!==o[a.Us.DataLayerPush]&&(i=o[a.Us.DataLayerPush],window.dataLayer.push({action:void 0,label:void 0,category:void 0,event:void 0,form_name:void 0,form_id:void 0,popup_displayed:void 0},t))}))})();const i=e.subscribe((()=>{var t,a,o,n;const r=e.getState();if(r.crm.receive){let e;(null===(t=r.crm.receive)||void 0===t?void 0:t.message)&&(e=((null===(a=r.crm.receive.message)||void 0===a?void 0:a.split(",").find((e=>e.includes("id::"))))||"").replace("id::",""));const d={action:"banner"===(null===(o=r.crm.receive)||void 0===o?void 0:o.type)?"click - sign up - banner - bottom - 40s":"inline-banner"===(null===(n=r.crm.receive)||void 0===n?void 0:n.type)?"click - sign-up - feature inline":"click - sign-up",label:"newsletter",event:"newsletter-sign-up",category:"TO Engagement",crmHashedEmail:e};window.dataLayer.push({action:void 0,label:void 0,category:void 0,event:void 0},d),i()}}))})(e),document.addEventListener("click",(e=>{const i=e.target;if(!i)return;const t=i.closest("[data-data-layer]");if(!t)return;const{dataLayer:a}=t.dataset||{};if(a)try{const e=JSON.parse(a);0===e.triggerOn&&window.dataLayer.push({action:void 0,label:void 0,category:void 0,event:void 0},{event:void 0,socialAction:void 0,socialNetwork:void 0,socialTarget:void 0,affiliate_partner:void 0,affiliate_link_type:void 0,affiliate_link_location:void 0,affiliate_superlist_position:void 0},{event:void 0,recirc_link_type:void 0,recirc_tile_index:void 0,recirc_total_tiles:void 0,recirc_widget_position:void 0,recirc_widget_type:void 0,recirc_provider:void 0},e.payload)}catch(e){}})),{})}),n=(e,i)=>{const t=Math.floor(1e4*Math.random());return{listeners:o(i).bindEvents(),componentId:`gtm-data-layer-${t}`}}}
1}]);
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.