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