PageSourceSearch

https://www.hardychevrolet.com/resources/taggbaa/chunks/bs-listener-nissan.6b654d1f4c0b8d68d800.js

js hardychevrolet.com collected 2026-09-24 12:27:24 UTC 6,067 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunktaggbaa=self.webpackChunktaggbaa||[]).push([[64],{5638:function(e,n,t){t.r(n),t.d(n,{load:function(){return h}});var a=t(9312),r=t(585);function i(e){return e.startsWith("nissan-t3-tagging-")?"t3"+e.slice(18):null}const o={fire(e){if(!e)return;const n=Array.isArray(e)?e:[e];for(const e of n){if(!e)continue;r.s.fire(e);const n=i(e.event);if(n&&"function"==typeof window._satellite?.track){const t=e["nissan-t3-tagging"]??e,a=t?.eventObject??t;window._satellite.track(n,a)}}}};var s=t(8092),c=t(1714),l=t(3876);const g=new Set([32,167,334]),u=new Set([155,300,359,159,188]),m=new Set([24,164]),d=new Set([157]);let f=null;const p={[s.u.TrackLinkClick]:e=>{if(e.linkType===c.Id.Accordion)return null;const n=e.linkText??"",t=e.componentContext?.type,a="header"===t||"sidebar"===t?e.componentContext?.title??"":"",r=a?`${a}|${n}`:n,i=e.linkUrl??"";return i&&"#"!==i?{event:"nissan-t3-tagging-TrackLinkClick","nissan-t3-tagging":{eventObject:{linkText:r,linkUrl:i}}}:null},[s.u.ClickToCall]:e=>({event:"nissan-t3-tagging-TrackClickToCall","nissan-t3-tagging":{eventObject:{clickToCallDepartment:e.department??"",clickToCallPhone:e.comm_phone_number??""}}}),[s.u.SearchFilterUpdate]:e=>{const n="string"==typeof e?.searchFilterParams?e.searchFilterParams:window.location.search,t=new URLSearchParams(n),a=[];if(t.forEach((e,n)=>{l.V.has(n.toLowerCase())&&a.push([n,e])}),0===a.length)return f=null,null;const r=[...a].map(([e,n])=>`${e.toLowerCase()}=${n.toLowerCase()}`).sort((e,n)=>e.localeCompare(n)).join("&");if(r===f)return null;if(f=r,1===a.length){const[e,n]=a[0];return{event:"nissan-t3-tagging-TrackInventoryResults","nissan-t3-tagging":{inventoryFilterLabel:e,inventoryFilterValue:n}}}const i={};return a.forEach(([e,n])=>{i[e.toLowerCase()]=n.toLowerCase()}),{event:"nissan-t3-tagging-TrackInventoryResultsKvp","nissan-t3-tagging":{inventoryFilterKvp:i}}},[s.u.TrackFormShown]:e=>"modal"===e?.displayType&&e.nativeFormName?{event:"nissan-t3-tagging-TrackModalOpen","nissan-t3-tagging":{eventObject:{interactionLabel:e?.modalLabel??e?.interactionLabel??"quick view",interactionValue:"modal"}}}:null,[s.u.TrackFormSubmission]:e=>{if(!e.leadId)return null;const n={formName:e.formName??"unknown",formType:e.formType??"other",formCategory:e.formCategory??"lead",formEvent:"t3TrackLeadFormSuccess",formLeadId:e.leadId},t=window.dataList?.LeadSource,a=null!=t?Number(t):Number.NaN,r=!Number.isNaN(a)&&function(e,n){return g.has(e)?(n.formName="contact",n.formType="contact dealer",n.formCategory="handraiser",n.formEvent="t3TrackHandraiserFormSuccess",!0):u.has(e)?(n.formName="schedule a test drive",n.formType="book a test drive",n.formEvent="t3TrackTestDriveFormSuccess",!0):m.has(e)?(n.formName="schedule a service appointment",n.formType="schedule a service appointment",n.formEvent="t3TrackServiceAppointment",!0):!!d.has(e)&&(n.formName="request a quote",n.formType="request a quote",!0)}(a,n);!r&&"function"==typeof window.getFormInformation&&t&&window.getFormInformation(t,n);const i=e.formVehicle;return"handraiser"!==n.formCategory&&i&&(n.vehicleModel=i.model??"",n.vehicleYear=i.year??"",n.vehicleVersion=i.trim??"",n.vehiclePrice=i.displayedPrice??""),{event:`nissan-t3-tagging-${n.formEvent.replace("t3","")}`,"nissan-t3-tagging":n}}},y={},v={async load(e,n,t){const{pageKey:r,replayFrom:i,overrides:s}=t,c=function(e){return"srp"===e?y:{}}(r),l=new Set([...Object.keys(p),...Object.keys(c),...Object.keys(s??{})]),g={};for(const e of l){const n=s?.[e]??c[e]??p[e];n&&(g[e]=e=>{const t=e?.payload??e;o.fire(n(t))})}n.debug(`nissanTracker: loaded for page="${r}", ${l.size} event(s) wired, replaying ${i?.length??0}`),await(0,a.$)(e,n,g,{replayFrom:i}).initialize()}};async function h(e,n,t){const a=e.getStoreState().oemEvents??[];await v.load(e,n,{pageKey:t,replayFrom:a})}},9312:function(e,n,t){function a(e,n,t,a){return{async initialize(){const r=e.getStoreState();if(!r)return void n.warn("createTrackerListener: store is unavailable");for(const e of a?.replayFrom??[]){const a=t[e.event];if(a)try{a(e)}catch(t){n.error(`Listener replay: ${e.event} threw`,t)}}let i=r.latestOemEvent??{};e.subscribeOem(()=>{const a=e.getStoreState()?.latestOemEvent;if(a===i)return;i=a;const r=a?.event;if(!r)return;const o=t[r];if(o)try{o(a)}catch(e){n.error(`Listener: ${r} threw`,e)}})}}}t.d(n,{$:function(){return a}})},585:function(e,n,t){t.d(n,{s:function(){return a}});const a={fire(e){var n;if(!e)return;const t=(n=window).dataLayer??(n.dataLayer=[]),a=Array.isArray(e)?e:[e];for(const e of a)e&&t.push(e)}}},3876:function(e,n,t){var a;
1t.d(n,{V:function(){return r}}),function(e){e.Year="Year",e.Make="Make",e.Model="Model",e.Trim="Trim",e.PriceRange="PriceRange",e.PriceAndPayment="PriceAndPayment",e.Mileage="Mileage",e.Mileagerange="Mileagerange",e.Location="Location",e.Dealership="Dealership",e.Bodystyle="Bodystyle",e.Extcolor="Extcolor",e.Intcolor="Intcolor",e.CityMpgRange="CityMpgRange",e.HwyMpgRange="HwyMpgRange",e.Cylinder="Cylinder",e.Displacement="Displacement",e.Transmission="Transmission",e.Features="Features",e.Fueltype="Fueltype",e.DriveTrainType="DriveTrainType",e.Tags="Tags",e.VehicleType="VehicleType",e.BodyType="BodyType",e.Packages="Packages",e.LeasePriceRange="LeasePriceRange",e.FinancePriceRange="FinancePriceRange",e.VehicleCondition="VehicleCondition",e.ModelAndTrim="ModelAndTrim",e.CpoTier="CpoTier",e.CarBravo="CarBravo",e.Availability="Availability",e.BedLength="BedLength",e.YearRange="YearRange",e.RangeRange="RangeRange",e.InTransit="intransit",e.InProduction="inproduction",e.InStock="instock",e.Special="Special",e.Cpo="Cpo",e.carfax1owner="carfax1owner",e.commercialvehicle="commercialvehicle",e.searchValet="q",e.VehicleStageText="VehicleStageText",e.SignalsForYou="signalsforyou",e.Manufacturer="Manufacturer",e.WeightRange="WeightRange",e.LengthRange="LengthRange",e.Class="Class",e.SlideRange="SlideRange",e.RvType="rvType",e.RvBrand="RvBrand",e.SleepsRange="SleepsRange"}(a||(a={}));const r=new Set([...Object.values(a).map(e=>e.toLowerCase()),"st","stocknum","stockvin"])}}]);

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.