PageSourceSearch

https://www.plusled.dk/theme/dcebea11cd9bf22b2e6fe02519e67336/js/p…letter-subscribe-datalayer.plugin.a5758b.js

js plusled.dk collected 2026-10-05 07:56:39 UTC 1,210 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([["checkout-newsletter-subscribe-datalayer.plugin"],{369:(e,t,s)=>{s.r(t),s.d(t,{default:()=>i});var o=s(49);class i extends window.PluginBaseClass{init(){this.newsletterSubscribeCheckbox=o.Z.querySelector(document,this.options.newsletterSubscribeCheckboxSelector),this.tosCheckbox=o.Z.querySelector(document,this.options.tosCheckboxSelector),this.confirmButton=o.Z.querySelector(document,this.options.confirmButtonSelector),this.customerEmailInput=o.Z.querySelector(document,this.options.customerEmailAttribute),this._registerEvents()}_registerEvents(){this.confirmButton.addEventListener("click",()=>this._handleConfirmClick())}_handleConfirmClick(){this.newsletterSubscribeCheckbox.checked&&this.tosCheckbox.checked&&this._pushToDatalayer()}_pushToDatalayer(){if(this.customerEmailInput){let e=this.customerEmailInput.value;window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"generate_lead",lead_source:"checkout",user_data:{email:e}})}}}i.options={newsletterSubscribeCheckboxSelector:"#newsletterSubscribe",tosCheckboxSelector:"#tos",confirmButtonSelector:"#confirmFormSubmit",customerEmailAttribute:"#hidden-customer-email"}}}]);

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.