www.delaneyvolvocarsgreensburg.com
Open in
urlscan Pro
2a02:26f0:ef::5f65:4d9b
Public Scan
URL:
https://www.delaneyvolvocarsgreensburg.com/static/ws/tracking/bundle.953.47df0189304d9924a502ca0625ebb980.js
Submission: On April 26 via manual from GB — Scanned from GB
Submission: On April 26 via manual from GB — Scanned from GB
Form analysis
0 forms found in the DOMText Content
(globalThis.webpackChunkws_tracking=globalThis.webpackChunkws_tracking||[]).push([[953],{953:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>Tt});var n=a(134);let i={};const r=(e,t)=>t?`${e}-${t}`:e,o=(e,t)=>{i[e]=t},l=e=>i[e],d=function(e){let{value:t=!0,timeStamp:a=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=r(e,a);return!!l(n)||(o(n,t),!1)},c=e=>{var t;return null===(t=i)||void 0===t?void 0:t[e]},s=e=>{const t=document.createElement("a");return t.href=e,!!t.pathname.match(/^((?!null).)*$/)},m=e=>[Object,Array].includes((e||{}).constructor)&&!Object.entries(e||{}).length,u="ddc.dialog.ajaxContentLoaded";const p=function(e,t,a,n,i){let r,{DDC:{dialogs:o}}=e,{timeStamp:l}=t;if(!d(u,{timeStamp:l})){let e=i,t=!1;e?t=e.find("form").length>0:o&&(a||s(n))&&(e=(null==o?void 0:o[a])||(null==o?void 0:o[n]),t=e&&!m(e)&&e.find("form").length>0||!1),t&&e.find("form").data("modal",!0),r={eventType:u,eventData:{element:e,hasForm:t,name:a||"",path:n}}}return r},v="closed",g="opened";const f=function(e,t){let a,{timeStamp:n,target:i}=t;if(e&&[v,g].includes(e)){const t=`ddc.dialog.${e}`;d(t,{timeStamp:n})||(a={eventType:t,eventData:{element:i}})}return a},h=(e,t,a)=>a&&a.find((a=>a[e]===t))||{};const y=function(e,t){var a,n;let{DDC:{dataLayer:{page:{pageInfo:{isVlp:i}},vehicles:r}}}=e,{currentTarget:o}=t;return{eventType:"ddc.drIntegrated.click",eventData:{vehicle:i?h("vin",null===(a=$(o))||void 0===a||null===(n=a.closest)||void 0===n?void 0:n.call(a,".hproduct").data("vin"),r):void 0}}};const k=function(){return{eventType:"ddc.drIntegrated.leadFormStart"}};const b=function(){return{eventType:"ddc.drPaymentCalc.click"}},T=e=>$(e).closest("[data-widget-name]").attr("data-widget-name");const C=function(e){let t;const{target:a,timeStamp:n,target:{name:i,type:r}}=e,o=$(a).closest("form"),l=o.hasClass("facetbrowse-ajax-form"),c=o.hasClass("inventory-search-lead-form"),s="SELECT"===a.tagName;let m="ddc.form.change";var u;if(l?m="ddc.form.facetbrowsechange":c&&(m="ddc.form.inventorySearchLeadChange"),!d(m,{timeStamp:n})&&s&&null===(null==a||null===(u=a.closest)||void 0===u?void 0:u.call(a,".hide-from-ws-tracking"))){const e=a.options[a.selectedIndex],n=e&&e.text,l=a.options.length>0&&a.options[0].text,d=e&&e.value,c={element:a,formEventId:o.find('input[name="formEventId"]').val()||"",firstOptionText:l||"",label:i||n||"",linkType:r,selectedValue:d||"",widgetName:T(a)},s=o.find("select").filter(":visible");$.each(s,((e,t)=>{const a=$(t),n=a.val();n&&(c[a.attr("name")]=n)})),t={eventType:m,eventData:c}}return t},S=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const a=["contact.firstName","contact.lastName","contact.email","contact.phone","contact.address.street"],n={};return a.forEach((a=>{var i,r;const o=a.replace("contact.","").replace("address.",""),l=`${o.replace("address.","")}Exists`,d=e&&((null===(i=e[0])||void 0===i?void 0:i.elements[a])&&!!e[0].elements[a].value||(null===(r=e[0])||void 0===r?void 0:r.elements[`${a}.sep`])&&!!e[0].elements[`${a}.sep`].value);n[l]=e&&d||t&&!!t[o]||!1})),n},I="ddc.form.confirmation",D=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"name";return e.find(`[${a}='${t}']`).val()};const w=function(e,t){let a,{DDC:n}=e,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";const{dataLayer:r}=n;r.confirmation=r.confirmation||{};const o=r.confirmation,l=t?$(t.target):$(null==o?void 0:o.element),c=l.closest("form"),s=c.find('[name="_custom=SUBMISSION_TIMESTAMP=-1=submissionTimestamp"]').val()||o.submissionTimestamp;if(!s||s&&!d(I,{timeStamp:s})){var m,u,p,v;const e={currentTime:(new Date).getTime(),customFormId:D(c,"custom.form.id")||o.customFormId||"",elapsedTime:parseInt(D(c,"dl.formElapsedTime")||o.elapsedTime,10)||"",element:D(c,"dl.element")||o.element||"",eventCategory:i,formEventId:D(c,"formEventId")||o.formEventId||"",submissionTimestamp:s,formTitle:D(c,"dl.widgetName")||o.formTitle||"",isModal:"true"===D(c,"dl.isModal")||"true"===o.isModal||!1,params:D(c,"dl.params")||r.page.pageInfo.params||"",preferredContact:D(c,"dl.contact.preferredContact")||o.preferredContact||"",pageName:D(c,"dl.pageName")||n.getUrlParams().pageAlias||"",trackingTags:D(c,"trackingTags")||o.trackingTags||"",trackingId:D(c,"dl.formTrackingId")||o.trackingId||c.data("form-tracking-id")||"",validate:"true"===D(c,"dl.validate")||"true"===o.validate||!1,vehicle:(null==o?void 0:o.vehicle)||r.vehicles[0]||"",zip:D(c,"dl.contact.address.postalCode","data-id")||o.zip||"",...S(c,n)};if(localStorage.getItem("ddc_data_layer-initiatingClickText")&&(e.initiatingClickText=localStorage.getItem("ddc_data_layer-initiatingClickText"),localStorage.removeItem("ddc_data_layer-initiatingClickText")),-1===(null==n||null===(m=n.dataLayer)||void 0===m||null===(u=m.page)||void 0===u||null===(p=u.pageInfo)||void 0===p||null===(v=p.pageName)||void 0===v?void 0:v.indexOf("CONFIRM"))){Object.keys(o).forEach((t=>{void 0!==o[t]&&null!==o[t]||void 0===e[t]||null===e[t]||(o[t]=e[t])}));const t=c.find("input[name='dl.uuid']").val(),a=t&&r.vehicles.find((e=>e.uuid===t));a&&(e.vehicle=a,o.vehicle=a,o.uuid=t)}("digital-retailing-cox"===e.eventCategory||e.formEventId||e.submissionTimestamp||e.trackingId||e.customFormId)&&(a={eventType:I,eventData:e})}return a},x=e=>(e.parents(".ui-dialog").find(".ui-dialog-title").text()||e.parents("[data-widget-id]").find("h1, .widget-heading").first().text()||e.prev().text()||e.parents(".nav-fragment").prev().text()||"").trim(),E="ddc.form.initiation";const N=function(e){let t,{currentTarget:a,timeStamp:n}=e;const i=$(a).closest("form"),r=i.find('input[name="formEventId"]').val()||"",o=i.data("form-tracking-id"),l=r||o;if("typedSearch"===i.data("form-tracking-type"))return d(l,{value:{formInitiationTime:(new Date).getTime()}}),t;if(!d(E,{timeStamp:n})&&!d(l,{value:{formInitiationTime:(new Date).getTime()}})){const e={element:i[0],formEventId:r,formTitle:x(i),...localStorage.getItem("ddc_data_layer-initiatingClickText")&&{initiatingClickText:localStorage.getItem("ddc_data_layer-initiatingClickText")},isModal:!0===i.data("modal"),trackingTags:i.find('input[name="trackingTags"]').val()||"",trackingId:o};t={eventType:E,eventData:e}}return t};var _,L=new Uint8Array(16);function A(){if(!_&&!(_="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return _(L)}const O=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;const V=function(e){return"string"==typeof e&&O.test(e)};for(var P=[],R=0;R<256;++R)P.push((R+256).toString(16).substr(1));const F=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=(P[e[t+0]]+P[e[t+1]]+P[e[t+2]]+P[e[t+3]]+"-"+P[e[t+4]]+P[e[t+5]]+"-"+P[e[t+6]]+P[e[t+7]]+"-"+P[e[t+8]]+P[e[t+9]]+"-"+P[e[t+10]]+P[e[t+11]]+P[e[t+12]]+P[e[t+13]]+P[e[t+14]]+P[e[t+15]]).toLowerCase();if(!V(a))throw TypeError("Stringified UUID is invalid");return a};const M=function(e,t,a){var n=(e=e||{}).random||(e.rng||A)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){a=a||0;for(var i=0;i<16;++i)t[a+i]=n[i];return t}return F(n)},K=(e,t)=>{const a="debug"===new URLSearchParams(window.location.search).get("_mode");let n=e.find('input[name="formEventId"]').val()||"";if(a&&(console.log("formEventId:current ----\x3e",e),console.log("cms-web:formEventId -----\x3e",n)),e&&t){n=M().replace(/-/g,""),e.find('input[name="formEventId"]').attr("value",n),a&&console.log(`ws-tracking:formEventId -----\x3e ${n}`);const t=e.attr("action");if(t){a&&console.log(`old:actionUrl ----\x3e ${t}`);const i=t.split("?"),r=new URLSearchParams(i[1]);r.set("formEventId",n),e.attr("action",`${i[0]}?${r.toString()}`),a&&console.log(`new:actionUrl ----\x3e ${e.attr("action")}`)}}return n},U="ddc.form.onPage";const j=function(e,t){let a,{DDC:{Flags:{"use-form-tracking-id-generation":n=!1}={},dataLayer:{vehicles:i}}}=e;const r=$(t).closest("form");if(r.is(":visible")&&"true"!==r.attr(U)){r.attr(U,"true");const e=r.data("form-tracking-id"),o=K(r,n),l=r.find('input[name="trackingTags"]').val()||"",d=r.find('input[name="dl.uuid"]').val()||"",c=d?h("uuid",d,i):{},s={element:t,formEventId:o,formTitle:x(r),vehicle:c,trackingTags:l,trackingId:e,isLead:r.find('input[name="_action"]').length>0,isModal:r.data("modal")||!1,...localStorage.getItem("ddc_data_layer-initiatingClickText")&&{initiatingClickText:localStorage.getItem("ddc_data_layer-initiatingClickText")}};a={eventType:U,eventData:s}}return a};const q=function(e){var t,a;let n,{currentTarget:i}=e;const r=null===(t=i.closest)||void 0===t||null===(a=t.call(i,"[data-widget-id]"))||void 0===a?void 0:a.dataset.widgetId;return d(r)||(n={eventType:"ddc.form.paymentCalcInit",eventData:{}}),n},B="ddc.form.slideChange";const G=function(){let{target:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{handle:t,values:a}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=t||e,i=$(n).closest(".ui-slider").siblings("input").attr("name"),r={eventType:B,eventData:{element:n,widgetName:T(n),label:i,values:a}};return r},W=(e,t)=>{var a;return void 0!==(null==t||null===(a=t.find)||void 0===a?void 0:a.call(t,(t=>e.test(t))))},H=()=>(new Date).toISOString().replace(/.\d+Z$/g,""),Y=e=>e.trim().replace(/ /g,"_").replace(/\*/,"").replace(/:/,"").toLowerCase(),z=e=>$(e).parents(".form-group").find("label").text()||$(e).attr("name"),J=e=>{const t={};return e.each(((e,a)=>{const n=$(a),i=n.next(".errors"),r=Y(z(a));n.hasClass("invalid")&&(i.length>0?t[r]=i.text():a.validationMessage&&(t[r]=a.validationMessage))})),t},Q=e=>{const t={};return e.each(((e,a)=>{const n=Y(z(a));a.validationMessage&&(t[n]=a.validationMessage)})),t},Z=(e,t,a)=>{let n=e.find(`input[name='${t}']`);return n.length||(n=$("<input>",{type:"hidden",name:t}),n.appendTo(e)),n.val(a),n},X=(e,t)=>{Object.entries(t).forEach((t=>{let[a,n]=t;Z(e,a,n)}))},ee="ddc.form.typedSearch",te="ddc.form.submission";const ae=function(e){let t,{DDC:{dataLayer:a,dataLayer:{page:{pageInfo:{isVdp:n,pageName:i,pageWidgets:r}},vehicles:o}}}=e,{target:l,target:{tagName:s="",textContent:m=""}={},timeStamp:u=0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const p=$(l),v=p.closest("form"),g=v.data("form-tracking-type"),f="typedSearch"===g?ee:te;if(!d(f,{timeStamp:u})){var h,y,k,b,T,C,I;const{confirmation:e}=a,d={formEventId:v.find('input[name="formEventId"]').val()||"",trackingId:v.data("form-tracking-id"),submissionTimestamp:localStorage.getItem("submissionTimestamp")||H(),currentTime:(new Date).getTime(),customFormId:v.find("input[name='custom.form.id']").val(),element:l,formTitle:x(v),isModal:!0===v.data("modal"),isSRP:W(/ws-inv-listing/,r),...localStorage.getItem("ddc_data_layer-initiatingClickText")&&{initiatingClickText:localStorage.getItem("ddc_data_layer-initiatingClickText")},trackingTags:v.find('input[name="trackingTags"]').val()||"",...S(v,e)},u=v.data("validator"),p=d.formEventId||d.trackingId,E=null===(h=c(p))||void 0===h?void 0:h.formInitiationTime;d.elapsedTime=E?d.currentTime-E:0,e.element=l;const N={"dl.custom.form.id":d.customFormId,"dl.element":null===(y=`${s} ${m}`)||void 0===y||null===(k=y.replace)||void 0===k||null===(b=k.call(y,/[\r\n ]+/gm," "))||void 0===b||null===(T=b.trim)||void 0===T?void 0:T.call(b),"dl.formElapsedTime":d.elapsedTime,"dl.formTrackingId":d.trackingId,"dl.isModal":d.isModal,"dl.params":(null===(C=v.attr("action"))||void 0===C?void 0:C.split("?")[1])||"","dl.widgetName":d.formTitle,"dl.pageName":i},_=n&&(null==o?void 0:o.length)>0&&(null===(I=o[0])||void 0===I?void 0:I.uuid);if(_&&(N["dl.uuid"]=_),"typedSearch"===g)d.typedSearchContent=v.find("input[name='search']").val();else if(u)d.zip=v.find("input[data-id='contact.address.postalCode']").val()||"",d.preferredContact=v.find("select[data-id='contact.preferredContact']").val()||"",d.validate=u.checkValidity(),N["dl.contact.address.postalCode"]=d.zip,N["dl.contact.preferredContact"]=d.preferredContact,d.invalidFields=J(u.getInputs());else if(void 0===u){var D,w;d.validate=null===(D=v[0])||void 0===D?void 0:D.checkValidity(),d.invalidFields=Q($(null===(w=v[0])||void 0===w?void 0:w.querySelectorAll(":invalid")))}void 0!==d.validate&&(N["dl.validate"]=d.validate),(u||void 0===u)&&(N["_custom=SUBMISSION_TIMESTAMP=-1=submissionTimestamp"]=d.submissionTimestamp),X(v,N),t={eventType:f,eventData:d}}return t},ne=(e,t)=>{var a;const{viewedVehicles:n=[],savedVehicles:i=[],priceChangeVehicles:r=[]}=t||{};return(null===(a=[...n,...i,...r].find((t=>{var a;return(null==t||null===(a=t.attributes)||void 0===a?void 0:a.vin)===e||(null==t?void 0:t.itemUUID)===e})))||void 0===a?void 0:a.attributes)||{}},ie=e=>{let t,{newOrUsed:a,certified:n,condition:i}=e;return a?t="true"===n||!0===n?"certified":a:i&&(t="true"===n||!0===n?3:i),t};const re=function(e,t,a){let{DDC:{dataLayer:{page:{pageInfo:{isVdp:n=!1,isVlp:i=!1,pageWidgets:r,pageName:o}},myCars:l,vehicles:d}}}=e,{currentTarget:c}=a;const s=`ddc.link.${t}`,m=W(/ws-inv-listing/,r),u="MYCARS_FAVORITES"===o,p={element:c},v=$(c);let g;if(v.parents(".mycars-list-row").length>0){const e=v.parents(".mycars-vehicle").data("vin");g=ne(e,l)}else if(v.parents(".mycars-mobile-list").length>0){const e=v.parents(".mycars-vehicle").data("vin");g=h("vin",e,d)}else if(m||!i&&!u)if(m){const e=v.parents("[data-uuid]").data("uuid");g=h("uuid",e,d),p.isSRP=m}else n?[g]=d:g={make:"",model:"",trim:"",vin:"",year:""};else{const e=v.parents(".hproduct").data("vin");g=h("vin",e,d)}return p.vin=g.vin,p.make=g.make,p.model=g.model,p.trim=g.trim,p.year=g.year||g.modelYear,p.inventoryType=ie(g)||"",{eventType:s,eventData:p}},oe="ddc.link.clickToCall";const le=function(e){let t,{currentTarget:a,timeStamp:n}=e;const i=$(a);return d(oe,{timeStamp:n})||(t={eventType:oe,eventData:{clickToCallDepartment:i.closest("[data-click-to-call]").data("click-to-call"),phoneNumber:i.closest("[data-click-to-call]").data("click-to-call-phone"),element:a}}),t},de=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" | ",a=arguments.length>2?arguments[2]:void 0,n="";return function i(r){for(let o=0;o<r.childNodes.length;o++){const l=r.childNodes[o],d=3===l.nodeType,c="string"==typeof l.nodeValue,s=c&&""===l.nodeValue.trim(),m=c&&1===l.nodeValue.length&&-1!==l.nodeValue.indexOf("\n"),u=l.parentNode!==e&&("string"==typeof l.parentNode.className&&l.parentNode.className.indexOf("hide")>-1||"hidden"===a.getComputedStyle(l.parentNode).getPropertyValue("visibility")||"none"===a.getComputedStyle(l.parentNode).getPropertyValue("display"));!d||s||m||u?i(l):n+=l.nodeValue.trim()+t}}(e),n.slice(0,-t.length)},ce=(e,t)=>{let a=de(e,void 0,t);if(""===a){const t=$(e),n=t.find("img");a=n.attr("alt")||n.attr("title")||n.attr("src")||t.attr("href")||""}return a.trim()},se=e=>$(e).closest("[data-widget-id]").data("widget-id"),me={id:["id","promo-id"],trackingLabel:["tracking-label","promo-tracking-label"]},ue=e=>{const t={};Object.entries(me).forEach((a=>{let[n,i]=a;i.forEach((a=>{Object.assign(t,$(e).data(a)&&{[n]:$(e).data(a).toString()})}))}));const a=se(e),n=T(e);return Object.assign(t,a&&{widgetId:a},n&&{widgetName:n})},pe="ddc.link.generic";const ve=function(e,t){var a,n;let{currentTarget:i,timeStamp:r}=t;const{DDC:{dataLayer:{page:{pageInfo:{pageWidgets:o}},vehicles:l}}}=e;let c;if(!d(pe,{timeStamp:r})&&i instanceof Element&&"true"!==(null==i||null===(a=i.getAttribute)||void 0===a?void 0:a.call(i,"ui-tabs-initial-load"))&&null===(null==i||null===(n=i.closest)||void 0===n?void 0:n.call(i,".hide-from-ws-tracking"))){var s,m,u;null!=i&&null!==(s=i.classList)&&void 0!==s&&null!==(m=s.contains)&&void 0!==m&&m.call(s,"dialog")&&!$(i).parents(".ui-dialog").length&&i.dataset.title&&localStorage.setItem("ddc_data_layer-initiatingClickText",$(i).text().trim());const t={text:ce(i,e),url:(null==i||null===(u=i.getAttribute)||void 0===u?void 0:u.call(i,"href"))||"",pageName:e.DDC.dataLayer.page.pageInfo.pageName,element:i,isSRP:W(/ws-inv-listing/,o),...ue(i)};if($(i).closest(".page-header").length>0?t.location="mainNav":$(i).closest(".ddc-footer").length>0?t.location="footer":t.location="content",t.isSRP){const e=$(i).closest("[data-uuid]").attr("data-uuid")||"",a=e?h("uuid",e,l):{};t.vehicle=a}c={eventType:pe,eventData:t}}var p;return i instanceof Element&&(null==i||null===(p=i.setAttribute)||void 0===p||p.call(i,"ui-tabs-initial-load",!1)),c},ge=(e,t)=>{let a;return 1===t.button&&(a=ve(e,t),a.eventData.clickType="center"),a},fe="ddc.link.comparePageClick";const he=function(e,t){let a,{DDC:{dataLayer:{vehicles:n}}}=e,{currentTarget:i,timeStamp:r}=t;const o=$(i);if(!d(fe,{timeStamp:r})){const e=o.data("compareId"),{bodyStyle:t,exteriorColor:r,make:l,model:d,trim:c,modelYear:s}=h("vin",e,n),m=o.data("index-position"),u=o.data("type");a={eventType:fe,eventData:{bodyStyle:t,element:i,exteriorColor:r,make:l,model:d,position:m,trim:c,type:u,vin:e,year:s}}}return a},ye="ddc.link.getDirections";const ke=function(e){let t,{currentTarget:a,timeStamp:n}=e;const i=$(a);return d(ye,{timeStamp:n})||i.data("validator")&&!i.data("validator").checkValidity()||(t={eventType:ye,eventData:{linkText:i.find('button[type="submit"]').text().trim(),element:a}}),t},be="ddc.link.hproductClick";const Te=function(e,t,a,n){let i,{DDC:{dataLayer:{vehicles:r}}}=e,{currentTarget:o,timeStamp:l}=a;if(!d(be,{timeStamp:l})){let e;const a={};e=o===t?$(n.target):$(o),a.text=e.text().trim(),a.element=e.get(0);if("ws-inv-listing"===T(e[0])){const t=h("uuid",e.parents(".vehicle-card-detailed").data("uuid"),r);a.vin=t.vin,a.stockNumber=t.stockNumber,a.make=t.make,a.model=t.model,a.year=t.modelYear,a.bodyStyle=t.bodyStyle,a.trim=t.trim,a.exteriorColor=t.exteriorColor,a.position=t.indexPosition,a.type=t.inventoryType,a.internetPrice=t.internetPrice,a.msrp=t.msrp,a.url=t.link}else{let t,n;if(!e.hasClass("hproduct")){const t=e.parents(".hproduct");t.length>0&&(e=t)}try{t=atob(e.data("internetprice")),n=atob(e.data("msrp"))}catch(a){t=e.data("internetprice"),n=e.data("msrp")}a.vin=e.data("vin"),a.stockNumber=e.data("stockNumber"),a.make=e.data("make"),a.model=e.data("model"),a.year=e.data("year"),a.bodyStyle=e.data("bodystyle"),a.trim=e.data("trim"),a.exteriorColor=e.data("exteriorcolor"),a.position=e.data("index-position"),a.type=e.data("type"),a.internetPrice=t,a.msrp=n,a.url=e.find(".media a").attr("href")}i={eventType:be,eventData:a}}return i},Ce="ddc.link.offerClick";const Se=function(e,t,a){let n,{DDC:{modules:{dialog:i}}}=e,{currentTarget:r,timeStamp:o}=a;const l=$(r);if(!d(Ce,{timeStamp:o})){l.hasClass("dialog")&&$(t).trigger("modulesRefresh",{modules:{dialog:i}});const e=l.data("incentive-id"),a=l.data("incentive-name");n={eventType:Ce,eventData:{offerId:e,offerName:a,element:r}}}return n};const Ie=function(e,t){let{DDC:{dataLayer:{myCars:a}}}=e,{currentTarget:n}=t;return{eventType:"ddc.link.mycarsCompareSubmit",eventData:{element:n,vehicles:$(n).closest(".popup").find(".item-compare .checkbox:checked").map(((e,t)=>$(t).val())).get().map((e=>{const t=ne(e,a);return{vin:t.vin,make:t.make,model:t.model,year:t.year,trim:t.trim,condition:ie(t)||""}}))}}};const De=function(e){var t;let a,{currentTarget:n}=e;const i=null==n||null===(t=n.closest)||void 0===t?void 0:t.call(n,".mycars-form");var r;return i&&(a={eventType:"ddc.link.mycarsLogin",eventData:{element:n,text:(null==n||null===(r=n.getAttribute)||void 0===r?void 0:r.call(n,"value"))||"",type:i.className.indexOf("forgot-password-form")>-1?"forgot-password":"login"}}),a},we="ddc.link.navClick";const xe=function(e,t){let a,{DDC:{client:{isMobile:n}}}=e,{currentTarget:i,timeStamp:r}=t;const o=$(i);if(!d(we,{timeStamp:r})){let e,t,r;const l=o.parents(".ddc-footer").length>0?"bottomNav":"topNav";let d;n?(e=o.hasClass("accordion-faux")&&o.not(".heading-tier2").length>0,t=o.hasClass("tier3"),r=o.hasClass("heading-tier2")):(e=o.parent().parent(".navbar-nav").length>0&&o.parent().hasClass("nav-no-children"),t=o.hasClass("child"),r=o.parent("h4").length>0),"topNav"===l&&t&&(d=o.closest(".dropdown").find(".nav-with-children").first().text()),(e||t||r)&&(a={eventType:we,eventData:{element:i,isChildLink:t,linkText:o.text().trim(),menuLinkText:d,position:l,url:o.attr("href")}})}return a},Ee="ddc.link.recommendedVehicle";const Ne=function(e,t){let{timeStamp:a,element:n}=t;const{DDC:{dataLayer:{page:{pageInfo:{pageName:i}}}}}=e;let r;return d(Ee,{timeStamp:a})||(r={eventType:Ee,eventData:{text:ce(n,e)||"",url:n.getAttribute("data-vdp-href")||"",pageName:i,element:n}}),r},$e="ddc.link.socialShare";const _e=function(e){let t,{currentTarget:a,timeStamp:n}=e;return d($e,{timeStamp:n})||(t={eventType:$e,eventData:{service:a.getAttribute("title"),url:a.getAttribute("href"),element:a}}),t},Le="ddc.link.socialHeaderClick";const Ae=function(e){let t,{currentTarget:a,timeStamp:n}=e;return d(Le,{timeStamp:n})||(t={eventType:Le,eventData:{service:a.getAttribute("title"),url:a.getAttribute("href"),element:a}}),t},Oe=e=>{const t={};let a=e;if(!(e instanceof Element)){if(!(e instanceof jQuery))return t;[a]=e}return Array.from(a.attributes).forEach((e=>{t[e.name]=e.value})),t};const Ve=function(e,t){let a,{DDC:{dataLayer:{page:{pageInfo:{pageWidgets:n}}}}}=e,{target:i}=t;if(!W(/ws-inv-listing/,n)){const e={checked:!!i.checked,element:i},t=i.closest(".inventoryList .item"),n=t&&t.querySelector(".hproduct, .vehicle-card[data-uuid]");if(n){const t=Oe(n);({"data-vin":e.vin="","data-make":e.make="","data-model":e.model="","data-year":e.year="","data-bodystyle":e.bodyStyle="","data-trim":e.trim="","data-exteriorcolor":e.exteriorColor="","data-index-position":e.position="","data-type":e.type=""}=t);try{e.internetPrice=atob(t["data-internetprice"]),e.msrp=atob(t["data-msrp"])}catch(t){e.internetPrice="",e.msrp=""}}a={eventType:"ddc.link.vehicleCompareCheck",eventData:e}}return a};const Pe=function(){return{eventType:"ddc.maps",eventData:{}}};const Re=function(e){let t,{DDC:{dataLayer:{page:{attributes:{vehicleResultCount:a}={},pageInfo:{isVlp:n,pageName:i,pageWidgets:r}={},queryFacets:o={}}}}}=e;const l=(null==i?void 0:i.indexOf("NO_RESULTS"))>-1,d="SHOWROOM"===i,c=l?"0":a;return W(/ws-inv-listing/,r)||d||!(n||l||W(/\.inventory-listing\.(?!blank|sitemap)/,r))&&m(o)||(t={eventType:"ddc.inventory.filterSearch",eventData:{resultCount:c,queryFacets:o}}),t},Fe=e=>{const t=e.querySelector(".facet-user-range-chart[data-range-chart-min-val][data-range-chart-max-val]"),a=e.querySelector(".facet-user-range-submit-values[name][value]");let n="",i="0",r="any",o="",l="";if(t&&(r=t.getAttribute("data-range-chart-min-val")||r,i=t.getAttribute("data-range-chart-max-val")||i,n=`${r}-${i}`,l=n),a){o=a.getAttribute("name");const e=a.getAttribute("value").split("-");l=`${e[0]||r}-${e[1]||i}`}return{name:o,value:l,defaultValue:n}},Me=(e,t,a,n,i)=>{const r=JSON.parse(JSON.stringify(a));if(e&&!t&&a[n]){const e=a[n].split(","),t=e.indexOf(i);t>-1&&e.splice(t,1),e.length>0?r[n]=e.join():delete r[n]}return r},Ke="ddc.inventory.filterSearch.click";const Ue=function(){var e,t,a,n,i;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ke,{currentTarget:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const l=!(null==o||!o.checked);let d={};const c=(null==o||null===(e=o.closest)||void 0===e?void 0:e.call(o,".facetmulti, .facets-container"))||document.querySelector(".facetmulti"),s=e=>({name:e.getAttribute("name"),value:e.getAttribute("value")}),m=!(null==o||null===(t=o.closest)||void 0===t||!t.call(o,".facet-breadcrumb-list")),u=!(null==o||null===(a=o.closest)||void 0===a||!a.call(o,".facet-user-range-input-slider"));if(c){const e=c.querySelectorAll('input[type="checkbox"]:checked');for(let t=0;t<e.length;t++){const{name:a,value:n}=s(e[t]);d[a]=d[a]?`${d[a]},${n}`:n}const t=c.querySelectorAll(".facet-user-range");for(let e=0;e<t.length;e++){const{name:a,value:n,defaultValue:i}=Fe(t[e]);n!==i&&(d[a]=n)}}let p=null==o||null===(n=o.getAttribute)||void 0===n?void 0:n.call(o,"name"),v=null==o||null===(i=o.getAttribute)||void 0===i?void 0:i.call(o,"value");if(!p&&!v){var g;const e=null==o||null===(g=o.closest)||void 0===g?void 0:g.call(o,".facet-user-range");if(e){const t=Fe(e);p=t.name,v=t.value}}return d=Me(m,l,d,p,v),{eventType:r,eventData:{element:o,checked:l,clickedFacetName:p||"",clickedFacetValue:v||"",facets:d,isBreadcrumb:m,isSlider:u}}},je="ddc.inventory.typedSearch";const qe=function(e){var t;let a,{DDC:{dataLayer:{page:n,page:{attributes:{vehicleResultCount:i},pageInfo:{isVlp:r,pageName:o,pageWidgets:l}}},getUrlParams:d}}=e,{currentTarget:c}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{queryFacets:s}=n,m=null!==(t=s)&&void 0!==t&&t.search?s.search:null;const u=(null==o?void 0:o.indexOf("NO_RESULTS"))>-1,p=u?"0":i;var v,g;return!m&&u&&(s=s||{},m=null===(v=d())||void 0===v?void 0:v.search,s.search=null===(g=d())||void 0===g?void 0:g.search),m&&(r||u||W(/\.inventory-listing\.(?!blank)/,l))&&(a={eventType:je,eventData:{element:c,resultCount:p,queryFacets:s}}),a},Be=[];const Ge=function(e){let t,{currentTarget:a,currentTarget:{tagName:n,value:i}}=e;if("INPUT"!==n||-1===Be.indexOf(a)){let e;if("INPUT"===n)Be.push(a),e=i;else{const t=a.closest(".facetlist-keyword"),n=t&&t.querySelector('input[name="search"]');e=n&&n.value}t={eventType:"ddc.inventory.typedSearch.init",eventData:{element:a,search:e||""}}}return t};const We=function(e){let{DDC:{dataLayer:{page:{pageInfo:{isVdp:t,pageName:a}}}}}=e;return t?{eventType:"ddc.page.vehicleDetailView",eventData:{alias:a}}:void 0};const He=function(e){let{DDC:{dataLayer:{page:{pageInfo:{pageName:t}}}}}=e;return{eventType:"ddc.page.view",eventData:{alias:t}}},Ye="ddc.slideshow.click";const ze=function(e){let t,{currentTarget:a,timeStamp:n}=e;const i=$(a);return d(Ye,{timeStamp:n})||(t={eventType:Ye,eventData:{element:a,name:i.data("slide-label"),position:i.data("slide-position"),type:i.data("slide-type")}}),t};const Je=function(e,t,a){let{DDC:{dataLayer:{page:{pageInfo:{pageName:n}}}}}=e;return{eventType:"ddc.slideshow.pagerClick",eventData:{...a,pageName:n}}},Qe="ddc.video.milestone",Ze="video-play-milestone";const Xe=function(){var e,t;let a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0;const i=(null===(e=n.currentSrc)||void 0===e||null===(t=e.split("."))||void 0===t?void 0:t.pop())||"";return{eventType:Qe,eventData:{element:n,videoSource:n.currentSrc,videoDuration:n.duration,videoMilestone:a,fileType:i},overrides:{eventType:Ze}}},et=e=>{let t,a,n,i=0;if(0===e.length)return i;for(t=0,n=e.length;t<n;t++)a=e.charCodeAt(t),i=(i<<5)-i+a,i|=0;return Math.abs(i)},tt="ddc.video.play",at="video-play";const nt=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{currentTarget:a,currentTarget:{duration:n="",currentSrc:i}={}}=e;return{eventType:tt,eventData:{autoplay:t,element:a,videoSource:i,videoDuration:n,fileType:"string"==typeof i?i.split(".").pop():""},overrides:{eventType:at}}};const it=function(e,t){let{DDC:a}=e;const{currentTarget:n,currentTarget:{currentSrc:i,currentTime:r,duration:o}}=t,l=[],d=et(i),c=r/o,{dataLayer:s,dataLayer:{video:m={}}}=a;if(s.video=m,m[d]=m[d]||{0:!1,25:!1,50:!1,75:!1,95:!1},!m[d][0]){var u;m[d][0]=!0;const e=null===(u=n.hasAttribute)||void 0===u?void 0:u.call(n,"autoplay");l.push(nt(t,e))}return c>=.25&&!m[d][25]?(m[d][25]=!0,l.push(Xe("25",n))):c>=.5&&!m[d][50]?(m[d][50]=!0,l.push(Xe("50",n))):c>=.75&&!m[d][75]?(m[d][75]=!0,l.push(Xe("75",n))):c>=.95&&!m[d][95]&&(m[d][95]=!0,l.push(Xe("95",n))),l},rt={clickToCall:'[data-click-to-call] a[href*="tel:"]',compareId:"[data-compare-id]",getDirectionsForm:"[data-widget-name='directions-form'] form",getDirections:"[data-widget-name='ws-contact'] .direction-link a",formChange:"form select",formInitiation:"[data-form-tracking-id] input,\n\t[data-form-tracking-id] select,\n\t[data-form-tracking-id] textarea",formOnPage:"[data-form-tracking-id]",formPaymentCalc:"[data-form-payment-calc],\n\t[data-widget-name='calculator-payment'] form",formSubmission:'[data-form-tracking-id]:not([data-form-tracking-id="SMS_SHARE"],[data-form-tracking-name="inventory-search-lead"]) [type=submit],\n\t[data-form-tracking-id="PREQUAL"] .finance-prequal-submit',incentiveId:"[data-incentive-id]",incentiveLabel:'.vehicle-card dl.pricing-detail [role="button"]',linkClick:"a[href],\n\ta[data-href],\n\ta.facetmulti-collapse-toggle,\n\tbutton",linksShareId:"[data-links-share-link-id]",mapTypeId:"[data-map-type-id]",nonVisibleForms:"[data-form-tracking-id*='MYCARS'], [data-mycars-form-tracking-id*='MYCARS']",mycarsGetAlerts:".mycars-btn[data-mycars-get-alerts]",mycarsGetAlertsCheckbox:"[data-mycars-get-alerts] input",mycarsLogin:'.mycars .login-form input[type="submit"]:not([disabled]),\n\t.mycars .forgot-password-form input[type="submit"]:not([disabled])',mycarsSave:"[data-mycars-save], [data-mycars-remove]",mycarsCompare:".mycars-vehicle .item-compare input",mycarsCompareSubmit:".mycars-form-btn.compare-btn:not(.disabled)",navigationId:"[data-navigation-id]",specialsIncentiveId:"[data-widget-name='specials-listing'] .special .ddc-link-primary.dialog,\n\t[data-widget-name='specials-listing'] .special .ddc-nav-inline .dialog",specialsEvents:".promotion-body [data-promo-tracking-action],\n\t.promotion-details-content[data-promo-id] [data-promo-tracking-action]",slideType:"[data-slide-type]",socialHeaderButtonId:"[data-social-header-button-id]",typedSearchInit:'.facetmulti input[type="search"],\n.facetmulti button.facetmulti-freeform-search-submit',vehicleCompare:'.vlp .item-compare input[type="checkbox"], .vehicle-card-footer input[type="checkbox"]',vin:"[data-showroom-listing-vehicle-id],\n\t[data-modelselector-vehicle-id],\n\t.inventoryList .hproduct .photo,\n\t.inventoryList .hproduct .url,\n\t.inventoryList .hproduct .video,\n\t.inventory-similar-default .hproduct .media a,\n\t.inventory-similar-default .hproduct .url,\n\t.inventory-similar-default .hproduct .view-link,\n\t.srp .ws-inv-listing .img-container img,\n\t.srp .ws-inv-listing .vehicle-card-title a,\n\t.srp .ws-inv-listing .more-details-link",video:"video",dRIntegrated:".digital-retailing-default [data-tab-name],\n\t.digital-retailing-default .digital-retailing-tabs a,\n\t.digital-retailing-default .digital-retailing-tabs input,\n\t.digital-retailing-default .digital-retailing-tabs select,\n\t.digital-retailing-default .digital-retailing-tabs button,\n\t.digital-retailing-toolbox .tools-list,\n\t.ws-dr-toolbox .dr-button,\n\t.hproduct a[href*='toolbox='],\n\t[data-widget-name='ws-detailed-pricing'] .payment-calculator-wrapper button,\n\t.fixed-vdp-footer .calculate-payment-integrated",dRIntegratedForm:'[data-form-tracking-id="MENU_DRIVER"] input,\n\t[data-form-tracking-id="MENU_DRIVER"] select,\n\t[data-form-tracking-id="MENU_DRIVER"] textarea,\n\t[data-form-tracking-id="TRADE_IN"]:not(.tradedriver-form) input,\n\t[data-form-tracking-id="TRADE_IN"]:not(.tradedriver-form) select,\n\t[data-form-tracking-id="TRADE_IN"]:not(.tradedriver-form) textarea,\n\t[data-form-tracking-id="INFO_REQUEST"] input,\n\t[data-form-tracking-id="INFO_REQUEST"] select,\n\t[data-form-tracking-id="INFO_REQUEST"] textarea,\n\t[data-form-tracking-id="FINANCE"] input,\n\t[data-form-tracking-id="FINANCE"] select,\n\t[data-form-tracking-id="FINANCE"] textarea,\n\t[data-form-tracking-id="CONTACT_ON_DEPOSIT"] input,\n\t[data-form-tracking-id="CONTACT_ON_DEPOSIT"] select,\n\t.digital-retailing-form.finance-prequal-form input,\n\t.digital-retailing-form.finance-prequal-form select,\n\t.digital-retailing-form.finance-prequal-form textarea',dRPaymentCalc:"[data-form-payment-calc] [payment-dealertrack-format-field],\n\t[data-form-payment-calc] .form-control,\n\t[data-form-payment-calc] button",incentiveFacet:".incentives-search-default .facets-container input",searchFacet:'.facetmulti input[type="checkbox"],\n\t.facet-breadcrumb-list input[type="checkbox"],\n\t.facetmulti-item input[type="radio"]',searchFacetVlpSlider:".facet-user-range-input-slider.noUi-target"},ot=e=>{let{link:t,video:a}=e;return[{event:"click",selector:"mycarsGetAlertsCheckbox",handler:function(e){const a=$(e.target);let n;return a.is(":checked")&&(n=t.mycarsGetAlerts(a)),n}},{event:"submit",selector:"getDirectionsForm",handler:t.getDirections},{event:"play",selector:"video",handler:a.play},{event:"timeupdate",selector:"video",handler:a.milestones.track},{event:"ended",selector:"video",handler:a.milestones.complete}]},lt=(e,t)=>{const a=[];return $(t.target).find(rt.formOnPage).each(((t,n)=>{const i=j(e,n);i&&a.push(i)})),a.length>0?a:void 0},dt="undefined"!=typeof window&&window.newrelic&&"object"==typeof window.newrelic,ct=e=>{"track"===sessionStorage.getItem("wsTrackingUser")&&((e,t)=>{dt&&window.newrelic.addPageAction(e,t)})("wsTrackingDebug",{eventName:e,userSessionId:sessionStorage.getItem("wsTrackingSessionId")})},st=(e,t,a)=>{if(t){const{eventType:n,eventData:i,overrides:r={}}=t,o=i&&!!Object.keys(i).length,l=o&&a?Array.from(a).filter((e=>n!==e)).join(","):void 0;ct(n),e.DDC.pushToGtmDataLayer({event:n,...o&&{eventData:{...i,event:n,eventName:r.eventName||n,eventType:r.eventType||n,...l&&{eventTypesForSameAction:l}}},...!o&&i&&{eventData:i}})}},mt=function(e,t,a){var n;let{DDC:i}=e,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const{dataLayer:o}=i,{url:l}=r;(null==l||null===(n=l.indexOf)||void 0===n?void 0:n.call(l,"/apis/mycars/"))>-1&&(l.indexOf("statusType=SAVED")>-1?o.myCars.savedVehicles=JSON.parse(a.responseText).results:l.indexOf("statusType=RECENTLY_VIEWED")>-1?o.myCars.viewedVehicles=JSON.parse(a.responseText).results:l.indexOf("statusType=NOTIFICATIONS_ENABLED")>-1&&(o.myCars.priceChangeVehicles=JSON.parse(a.responseText).results))},ut=["DR_finance_standalone"],pt=["Web: VDP > Inventory Detail Pricing Box > SMS Share Form > Clicked Submit Button"],vt=(e,t,a,n)=>{let i,{DDC:r}=e;const{dataLayer:o,dataLayer:{events:l}}=r;if(a){const{eventName:e,widgetName:t}=a;if(e&&t&&!ut.includes(t)&&!pt.includes(e)){const{data:d}=a;n&&(o.confirmation=o.confirmation||{},o.confirmation.element=(null==n?void 0:n.element)||n),e.toLowerCase().includes("submit")&&"facetmulti"!==t?i=l.form.confirmation(void 0,t):e.toLowerCase().includes("confirm")?i=t.includes("protect")?l.form.confirmation(void 0,d):l.form.confirmation(void 0,t):t.includes("KBB")?"submit_calculate_trade_integrated"!==d&&"send_update_calculate_trade_integrated"!==d||(i=l.form.confirmation(void 0,t)):t.includes("recommended_vehicles")?(r.client.isDesktop&&"list_clicked"===d||r.client.isMobile&&"list_hovered"===d)&&(i=l.link.recommendedVehicle(a)):"string"==typeof d&&d.includes("Submitted Instant ePrice")&&(i=l.form.confirmation(void 0,d))}}return i},gt=(e,t)=>{let a;return null!=t&&t.eventType&&(a=t.eventType(e)),a},ft=(e,t)=>{let{dialog:a,drIntegrated:n,drPaymentCalc:i,form:r,link:o,page:l,slideshow:d}=t;return{click:[{selectorKey:"formInitiation",handler:r.initiation},{selectorKey:"formPaymentCalc",handler:r.paymentCalcInit},{selectorKey:"formSubmission",handler:r.submission},{selectorKey:"clickToCall",handler:o.clickToCall},{selectorKey:"compareId",handler:o.compare},{selectorKey:"incentiveId",handler:o.incentive},{selectorKey:"getDirections",handler:o.getDirections},{selectorKey:"linkClick",handler:o.clicked},{selectorKey:"incentiveLabel",handler:o.clicked},{selectorKey:"linksShareId",handler:o.share},{selectorKey:"navigationId",handler:o.navigationClick},{selectorKey:"vehicleCompare",handler:o.vehicleCompare},{selectorKey:"slideType",handler:d.click},{selectorKey:"socialHeaderButtonId",handler:o.socialHeader},{selectorKey:"vin",handler:o.hproduct},{selectorKey:"dRIntegrated",handler:n.click},{selectorKey:"dRPaymentCalc",handler:i.click},{selectorKey:"dRIntegratedForm",handler:n.leadFormStart},{selectorKey:"typedSearchInit",handler:l.typedSearchInit},{selectorKey:"mycarsSave",handler:o.mycarsSave},{selectorKey:"mycarsGetAlerts",handler:o.mycarsGetAlerts},{selectorKey:"mycarsCompare",handler:o.mycarsCompare},{selectorKey:"mycarsCompareSubmit",handler:o.mycarsCompareSubmit},{selectorKey:"mycarsLogin",handler:o.mycarsLogin},{selectorKey:"incentiveFacet",handler:Ue.bind(void 0,"ddc.incentive.filterSearch")},{selectorKey:"searchFacet",handler:Ue.bind(void 0,Ke)}],mousedown:[{selectorKey:"linkClick",handler:o.centerClicked}],input:[{selectorKey:"formInitiation",handler:r.initiation},{selectorKey:"typedSearchInit",handler:l.typedSearchInit}],change:[{selectorKey:"formChange",handler:r.change}],focusin:[{selectorKey:"formPaymentCalc",handler:r.paymentCalcInit},{selectorKey:"dRIntegratedForm",handler:n.leadFormStart}],submit:[{selectorKey:"formSubmission",handler:r.submission}],dialogopen:[{handler:a.opened}],"show.bs.modal":[{handler:a.opened}],slideOpen:[{handler:a.opened},{handler:a.ajaxContentLoaded},{handler:lt.bind(void 0,e)}],dialogclose:[{handler:a.closed},{handler:()=>localStorage.removeItem("ddc_data_layer-initiatingClickText")}],"hide.bs.modal":[{handler:a.closed}],slideClose:[{handler:a.closed}],slidechange:[{handler:r.slideChange}],tabsshow:[{handler:function(e,t){let a;return null!=t&&t.tab&&(a=o.clicked.call(this,t.tab,e)),a}}],set:[{selectorKey:"searchFacetVlpSlider",handler:Ue.bind(void 0,Ke)}],ajaxDialogComplete:[{handler:a.ajaxContentLoaded},{handler:lt.bind(void 0,e)}],hproductClick:[{handler:o.hproduct}],slideshowPagerClick:[{handler:d.pagerClick}],videoGalleryFacetBrowseChange:[{handler:(e,t)=>r.change(t)}],"ddc-mega-menu-nav-ajax-load-complete":[{handler:lt.bind(void 0,e)},{handler:t=>{let{target:a}=t;$(a).on("click submit",rt.formSubmission,(t=>{const a=r.submission(t);st(e,a)}))}}],ajaxDialogShown:[{handler:lt.bind(void 0,e)}],ddcEvent:[{handler:gt}],ajaxSuccess:[{handler:mt.bind(void 0,e)}],trackEvent:[{handler:vt.bind(void 0,e)}]}},ht=(e,t)=>{const a=[],n=e(...t);return n&&(Array.isArray(n)?n.forEach((e=>{a.push(e)})):a.push(n)),a},yt=(e,t,a,n)=>{const i=[];ht(n,t).forEach((e=>{i.push(e)})),i.forEach((t=>{st(e,t)}))},kt=(e,t)=>{const{DDC:a}=e,{events:n}=a.dataLayer;((e,t,a)=>{const n=ft(e,a);Object.entries(n).forEach((a=>{let[n,i]=a;i.forEach((a=>{let{selectorKey:i,handler:r}=a;const o=rt[i],l=o?[n,o]:[n];$(t).on(...l,(function(){for(var t=arguments.length,a=new Array(t),n=0;n<t;n++)a[n]=arguments[n];yt(e,a,o,r)}))}))}))})(e,t,n),ot(n).forEach((t=>{let{event:a,selector:n,handler:i}=t;((e,t,a)=>{let{event:n,handler:i}=t;e.on(n,(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];ht(i,t).forEach((e=>{st(a,e)}))}))})($(rt[n]),{event:a,handler:i},e)}))},bt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const t=5;null===sessionStorage.getItem("wsTrackingUser")&&(Math.floor(100*Math.random()+1)<=t?(sessionStorage.setItem("wsTrackingUser","track"),sessionStorage.setItem("wsTrackingSessionId",e)):sessionStorage.setItem("wsTrackingUser","ignore"))},Tt=async e=>{(0,n.namespace)(e,"DDC.dataLayer.events");const{DDC:t,DDC:{dataLayer:a,dataLayer:{events:i}}}=e;if(i.wsTracking=!0,e.$){var r;bt(null==a||null===(r=a.user)||void 0===r?void 0:r.sessionId);const o=$("body");(0,n.namespace)(e,"confirmation",a),(0,n.namespace)(e,"events",a),(0,n.namespace)(e,"form",i),(0,n.namespace)(e,"slideshow",i),(0,n.namespace)(e,"link",i),(0,n.namespace)(e,"dialog",i),(0,n.namespace)(e,"page",i),(0,n.namespace)(e,"video",i),(0,n.namespace)(e,"milestones",i.video),(0,n.namespace)(e,"video",a),(0,n.namespace)(e,"drIntegrated",i),(0,n.namespace)(e,"drPaymentCalc",i),i.dialog.ajaxContentLoaded=p.bind(void 0,e),i.dialog.closed=f.bind(void 0,v),i.dialog.opened=f.bind(void 0,g),i.dialog.publishDialogAction=f,i.drIntegrated.leadFormStart=k,i.drPaymentCalc.click=b,i.form.change=C,i.form.confirmation=w.bind(void 0,e),i.form.onPage=j.bind(void 0,e),i.form.slideChange=G,i.link.mycarsCompare=re.bind(void 0,e,"mycarsCompareCheck"),i.link.mycarsCompareSubmit=Ie.bind(void 0,e),i.link.mycarsGetAlerts=re.bind(void 0,e,"mycarsGetAlerts"),i.link.mycarsLogin=De,i.link.mycarsSave=re.bind(void 0,e,"mycarsSave"),i.link.recommendedVehicle=Ne.bind(void 0,e),i.link.vehicleCompare=Ve.bind(void 0,e),i.maps=Pe,i.page.filterSearch=Re.bind(void 0,e),i.page.filterSearchClick=Ue,i.page.vehicleDetailView=We.bind(void 0,e),i.page.view=He.bind(void 0,e),i.slideshow.pagerClick=Je.bind(void 0,e),i.video.milestones.complete=Xe.bind(void 0,"complete"),i.video.milestones.report=Xe,i.drIntegrated.click=y.bind(void 0,e),i.form.initiation=N,i.form.paymentCalcInit=q,i.form.submission=ae.bind(void 0,e),i.link.clickToCall=le,i.link.clicked=ve.bind(void 0,e),i.link.centerClicked=ge.bind(void 0,e),i.link.compare=he.bind(void 0,e),i.link.getDirections=ke,i.link.hproduct=Te.bind(void 0,e,document),i.link.incentive=Se.bind(void 0,e,document),i.link.navigationClick=xe.bind(void 0,e),i.link.share=_e,i.link.socialHeader=Ae,i.page.typedSearch=qe.bind(void 0,e),i.page.typedSearchInit=Ge,i.slideshow.click=ze,i.video.milestones.track=it.bind(void 0,e),i.video.play=it.bind(void 0,e),(0,n.namespace)(e,"selectors",i),i.selectors={...e.DDC.dataLayer.events.selectors,...rt};const{selectors:l}=i;kt(e,document),o.add(".mycars").on("click",l.mycarsSave,i.link.mycarsSave),st(e,i.page.view()),st(e,i.page.vehicleDetailView()),st(e,i.page.filterSearch()),st(e,i.page.typedSearch()),t.dataLayer.page.pageInfo.isConfirm&&st(e,i.form.confirmation(void 0,t.dataLayer.page.pageInfo.pageName)),o.find(l.mapTypeId).length>0&&st(e,i.maps()),o.find(l.nonVisibleForms).each(((t,a)=>{K($(a).closest("form"),e.DDC.Flags["use-form-tracking-id-generation"])})),o.find(l.formOnPage).each(((t,a)=>{st(e,i.form.onPage(a))}))}}},134:function(e,t){!function(e){"use strict";const t=e=>e.trim().replace(/ {2}|[\t\n\r]/gm,""),a=(e,t,n,i,r)=>{const o=[...e];return Object.entries(n).forEach((e=>{let[n,l]=e;const d=l,c=(e=>null==e||!e.trim())(t)?n:`${t}.${n}`;"function"==typeof d?(void 0===r||r(c,d))&&o.push(d):i&&a(o,c,d,i,r)})),o},n=Object.freeze({WIDGET_USER_EVENT:"widgetUserEvent",SPECIALS_EVENT:"specialsEvent",THIRD_PARTY_USER_EVENT:"thirdPartyUserEvent"}),i=(e,t,a)=>{if(void 0===t)throw new Error("Invalid class name");const n=t.split(".");if(""===n[0])throw new Error("Invalid class name");for(void 0===a&&(a=e);n.length>0&&void 0!==(a=a[n.shift()]););if(void 0!==a&&"function"!=typeof a)throw new Error(`${t} is not a class definition`);return a};e.createElement=e=>{const a=document.createElement("template");return a.innerHTML=t(e),a.content.firstChild},e.enumerate=(e,t,n,i)=>{let r,o;if(void 0===t)throw new Error("Invalid namespace");const l=t.split(".");if(""===l[0])throw new Error("Invalid namespace");void 0===i&&(r=e);const d=(s="*",-1!==(c=t).indexOf(s,c.length-s.length));var c,s;if(d){if(l.pop(),0===l.length&&r===e)throw new Error("Wildcard enumeration window scope not allowed");o=l.join(".")}for(;l.length>0;){const e=l.shift();if(r=r[e],void 0===r)throw new Error(`Invalid namespace: ${e} not found in ${o}`)}return a([],o,r,d,n)},e.extend=(e,t)=>{e.prototype=Object.create(t.prototype),e.prototype.constructor=e},e.globalConstants=n,e.lookup=i,e.namespace=(e,t,a,n)=>{let i=a,r=n;if(void 0===t)throw new Error("Invalid namespace name");void 0===i&&(i=e),void 0===n&&"function"==typeof i&&(r=i,i=e);const o=t.split(".");if(""===o[0])return void 0!==r&&r.call(r,i),i;for(;o.length>0;){const e=o.shift();void 0===i[e]&&(i[e]={}),i=i[e]}return void 0!==r&&r.call(r,i),i},e.readyHTMLForParse=t,e.resolve=(e,t,a)=>{const n=i(e,t,a);if(void 0===n)throw new Error(`${t} not found`);return n},Object.defineProperty(e,"__esModule",{value:!0})}(t)}}]); //# sourceMappingURL=bundle.953.47df0189304d9924a502ca0625ebb980.js.map