PageSourceSearch

https://www.vwcypress.com/resources/taggbaa/chunks/personalization-listener.374b789530cd6ba689d9.js

js vwcypress.com collected 2026-09-26 08:03:44 UTC 2,041 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunktaggbaa=self.webpackChunktaggbaa||[]).push([[738],{2028:function(e,t,n){n.r(t),n.d(t,{PersonalizationListener:function(){return _}});const i=(e,t,n)=>({...a(n),...o(e,t)}),o=(e,t)=>({department:t.department,element_title:t.element_title,element_type:t.element_type,event:e,event_action:t.event_action,event_action_result:t.event_action_result,flow_name:t.flow_name,flow_outcome:t.flow_outcome,form_name:t.form_name,form_type:t.form_type,item_color:t.item_color,item_generic_color:t.item_generic_color||t.item_generic_color_list,item_make:t.item_make||t.item_make_list,item_mileage:t.item_mileage||t.item_mileage_list||"",item_model:t.item_model||t.item_model_list,item_price:t.item_price,item_type:t.item_body_type||t.item_type_list,item_variant:t.item_variant||t.item_variant_list,item_year:t.item_year,item_condition:(t.item_condition||t.item_condition_list)?.toLowerCase(),product_name:t.product_name??"Website"}),a=e=>({page_path:window.location.pathname??"",page_url:window.location.href??"",page_type:e.oem_page_type??"",user_type:e.user_type??""});class _{constructor(e){this._nextgenStore=e}async initialize(){window.prsnLayer=window.prsnLayer||[],window.taggingConsentDone?(this._handleExistingEvents(),this._nextgenStore.subscribe(()=>{this._handleFutureEvents()})):window.addEventListener("do.taggingConsentDelayDone",()=>{this._handleExistingEvents(),this._nextgenStore.subscribe(()=>{this._handleFutureEvents()})})}_handleFutureEvents(){const e=this._nextgenStore.getStoreState(),t=e?.latest;if(!t?.event)return;const n=e?.datalayer||{},o=i(t.event,this._buildDoData(t.event,t.do||{},n),n);this._writePrsnLayer(o)}_handleExistingEvents(){const e=this._nextgenStore.getStoreState(),t=e?.datalayer||{},n=e?.events||[];for(const e of n){const n=i(e.event,this._buildDoData(e.event,e.do||{},t),t);this._writePrsnLayer(n)}}_buildDoData(e,t,n){return _._pageContextEvents.has(e)?{...n,...t}:t}_writePrsnLayer(e){window.prsnLayer.push({...e})}}_._pageContextEvents=new Set(["do.init","do.pageview"])}}]);

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.