1(function(){"use strict";class r{static SelfInstantiateOnLoad(t){if(!t)return;const e=()=>{const n=new t;t.requiresInit&&typeof n.init=="function"&&n.init()};document.readyState==="loading"?window.addEventListener("DOMContentLoaded",e):e()}static get isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0}static get isMobile(){return window.innerWidth<=991}static setupInventorySelectorImageUpdates(){const t=document.querySelectorAll("inventory-widget");!t.length||!document.querySelectorAll("img[inventory-info]").length||(t.forEach(n=>{n.querySelectorAll("select").forEach(o=>{o.addEventListener("change",()=>{r.updateDynamicVehicleImages()})})}),r.updateDynamicVehicleImages())}static updateDynamicVehicleImages(){const t=document.querySelectorAll("img[inventory-info]");if(!t.length)return;const e=document.querySelector("select[data-field-type='make']"),n=document.querySelector("select[data-field-type='model']"),a=document.querySelector("select[data-field-type='year']");if(e!=null&&e.value&&(n!=null&&n.value)){let o="";const s=e.value,c=n.value,l=(a==null?void 0:a.value)||"";s&&c&&(o=`/assets/vehicles/${s}/${c}${l?"/"+l:""}/photo.jpg`),t.forEach(u=>{const i=u,m=i.getAttribute("default-src")||"",h=i.getAttribute("default-alt")||"";o&&s&&c?(i.src=o,i.alt=`${l} ${s} ${c}`):(i.src=m,i.alt=h)})}}}class d{constructor(){this.trackerHookListener=()=>{this.contactUsWindow.DealeronLead.begin();const t=document.getElementById("ContactUsLeadSource"),e=t==null?void 0:t.value;this.contactUsWindow.trackerHook({trackId:e}),this.removeTrackerHookListeners()},this.contactUsWindow=window,this.init()}init(){this.setupEvents(),this.contactUsWindow.DealeronLead.initialize("#ContactUsForm","sendContactUsSubmit"),this.contactUsWindow.DealeronLead.initialize("#ContactUsForm",null)}setupEvents(){const t=document.getElementById("ContactUsLeadSource");t.value=r.isMobile?this.contactUsWindow.MobileContactUsLeadId.toString():this.contactUsWindow.ContactUsLeadId.toString(),this.contactUsWindow.DealeronLead.addSubmissionMethod("sendContactUsSubmit",{leadType:this.getLeadType,additionalData:this.getFormData});const e=document.querySelector("#ContactUsForm");(e==null?void 0:e.querySelectorAll("input, textarea, select")).forEac
1h(a=>{a.addEventListener("focusout",this.trackerHookListener,!1)})}removeTrackerHookListeners(){const t=document.querySelector("#ContactUsForm");(t==null?void 0:t.querySelectorAll("input, textarea, select")).forEach(n=>{n.removeEventListener("focusout",this.trackerHookListener,!1)})}getLeadType(){const t=document.getElementById("ContactUsFormType"),e=t==null?void 0:t.value;if(e)return e;{const n=document.getElementById("ContactUsLeadType");return n==null?void 0:n.value}}getFormData(){const t=document.getElementById("ContactUsComments");let e=(t==null?void 0:t.value)??"";const n=document.querySelector("#ContactUsForm"),a=n.querySelector("#ContactUsOptOut");a&&(e+=`${e!=null&&e.trim().length?", ":""}Do Not Sell Personal Info: ${a.checked}`);const o=n.querySelector("[name='ChildDealerId']");if(o){const c=o.options[o.selectedIndex].text,l=o.value;e+=`${e!=null&&e.trim().length?", ":""}ChildDealerName: ${c}, ChildDealerId: ${l}`}const s=n.querySelectorAll("[data-enhanced-lead]");for(const c of s)e+=c.checked?` 2 ${c.getAttribute("data-enhanced-lead")}`:"";return{Comments:e}}}r.SelfInstantiateOnLoad(d)})();
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.