PageSourceSearch

https://www.earthmotorcars.com/static/ws/tagging/bundle.7495.399aefa8fd39c8548a5dcadf678f2a42.js

js earthmotorcars.com collected 2026-09-24 12:21:43 UTC 3,394 bytes, 2 lines download raw bytes

1"use strict";(globalThis.webpackChunkws_tagging=globalThis.webpackChunkws_tagging||[]).push([[7495],{7495(e,t,n){n.r(t),n.d(t,{default:()=>u});var a=n(3229);const i="contact-us-today",l=e=>({eventData:t,element:n}={})=>`${t?.widgetClasses||""}`.includes(e)||Boolean(n?.closest?.(`.${e}`)),o=(e="")=>(`${e}`.match(/\d+/g)||[]).join("-"),r=(e="")=>{const t=new URLSearchParams(String(e).split("?").slice(1).join("?")),n=t.get("make"),i=t.get("search");if(n&&i)return[n,i].map(a.toAdobeLinkNameSlug).filter(Boolean).join("-")},c=/(?:\+?1[\s.-]?)?\(?\d{3}\)?[\s.-]?\d{3}[\s.-]?\d{4}/,s=e=>{const[t]=`${e??""}`.match(c)||[];if(!t)return;const n=t.replace(/\D/g,"").replace(/^1(?=\d{10}$)/,"");return 10===n.length?`${n.slice(0,3)}-${n.slice(3,6)}-${n.slice(6)}`:o(t)},g=e=>`${e||""}`.replace(/^tel:/i,"").split("?")[0],u={events:{"ddc.link.generic":[{insertion:"unshift",logic:(e={})=>!0===e?.eventData?.isTelephonicUrl&&l("tagging-contact-us-today-phone")(e),payload:({eventData:e={},element:t}={})=>{const n=(0,a.getGranularClickToCallAttributes)(e),l=(e=>{const t=e?.closest?.("[data-click-to-call]");if(!t)return;const[n]=`${t.getAttribute("data-click-to-call-phone")||""}`.split("?");return o(t.querySelector?.(".value")?.textContent||n)||void 0})(t);return{type:"CustomTagEvent",eventName:"clickToCall",eventAction:"pageElementInteraction",attributes:{...n,type:"dealer-information",title:i,...l&&{description:`${n.clickToCallDepartment.toLowerCase()}:${l}`}}}}},{insertion:"unshift",logic:({eventData:{widgetClasses:e="",url:t=""}={}}={})=>e.includes("tagging-view-commercial-inventory")&&Boolean(r(t)),payload:({eventData:{url:e=""}={}}={})=>({type:"CustomTagEvent",eventName:"CTA",eventAction:"buttonClick",attributes:{site:"dealer",type:"vehicle-selection",location:1,title:"view-commercial-inventory",description:r(e)}})},{insertion:"unshift",logic:({eventData:e}={})=>!0===e?.isTelephonicUrl&&"ws-staff-listing"===e?.widgetName,payload:({eventData:e={},element:t}={})=>{const n=t||e.element,i=(({element:e,text:t,url:n}={})=>{const a=e?.closest?.("a");return s(g(a?.getAttribute?.("href")))||s(a?.textContent)||s(t)||s(g(n))})({element:n,text:e.text,url:e.url}),l=(({element:e,widgetHeading:t}={})=>{const n=e?.closest?.("a")||e,a=n?.closest?.("[data-widget-name]"),i=((e,t)=>{let n=e;for(;n&&n!==t;){if(n.querySelector?.("h3"))return n;n=n.parentElement}})(n,a),l=[...i?.querySelectorAll?.("p")||[]].map(e=>`${e.textContent||""}`.trim()).find(e=>e&&!c.test(e)),o=(i?.closest?.(".container-fluid")||a)?.querySelector?.("h2")?.textContent;return((e="")=>`${e}`.trim().toLowerCase().replace(/\s+/g,""))(l||o||t)||void 0})({element:n,widgetHeading:e.widgetHeading});return{type:"CustomTagEvent",eventName:"clickToCall",eventAction:"pageElementInteraction",attributes:{...(0,a.getGranularClickToCallAttributes)(e),type:"feature",location:2,title:"let's-work-together!",...i&&{description:i},...l&&{clickToCallDepartment:l}}}}}],"ddc.link.socialHeaderClick":[{insertion:"unshift",logic:l("tagging-contact-us-today-social"),payload:({eventData:e={},element:t}={})=>({type:"CustomTagEvent",eventName:"social",eventAction:"pageElementInteraction",attributes:{site:"dealer",type:"dealer-information",location:"1",title:i,description:(0,a.toAdobeLinkNameSlug)((0,a.getSocialNetwork)({element:t,eventData:e})||"")}})}]}}}}]);
2//# sourceMappingURL=bundle.7495.399aefa8fd39c8548a5dcadf678f2a42.js.map

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.