1(()=>{"use strict";var __webpack_modules__={4173:(e,t,i)=>{i.d(t,{w:()=>l});var o=function(e,t,i,o){return new(i||(i=Promise))((function(a,d){function n(e){try{l(o.next(e))}catch(e){d(e)}}function r(e){try{l(o.throw(e))}catch(e){d(e)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(n,r)}l((o=o.apply(e,t||[])).next())}))};function a(e){return o(this,void 0,void 0,(function*(){const t=e,i=`/api/vclwsaa/pricetracking/submit-price-alert/${e.dealerId}`;try{const e=yield fetch(i,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify(t)});if(e.ok)return;if(400===e.status){const t=yield e.json();if(t.Unknown)throw new Error(`Price Alert Form submission returned the following error message: ${t.Unknown}`);return void function(e){let t="Sorry, but the Price Alert form returned the following errors:";for(const i in e)t+=`\n${i}: ${e[i]}.`;console.error(t)}(t)}throw new Error(`Form submission returned an unexpected status code: ${e.status}.`)}catch(e){console.error("An error occurred while submitting the Price Alert form.",e)}finally{!function(e){const t=localStorage.getItem("do_price_track_vins");let i=t?JSON.parse(t):[];-1===i.indexOf(e)&&(i.push(e),localStorage.setItem("do_price_track_vins",JSON.stringify(i)))}(e.vin),function(e){const t=new CustomEvent("do-track-price",{detail:[{vin:e,isTracking:!0}]});window.dispatchEvent(t)}(e.vin)}}))}function d(){const e=document.getElementById("dealeron_website_metadata");let t;if(null==e?void 0:e.textContent)try{const i=JSON.parse(e.textContent);t=i.dealerId?parseInt(i.dealerId,10):void 0}catch(e){console.error("Error parsing dealer metadata",e)}return!t&&"undefined"!=typeof window&&window.DlronGlobal_DealerId&&(t=parseInt(window.DlronGlobal_DealerId,10)),t||0}function n(){var e;const t=document.getElementById("dealeron_website_metadata");let i;if(null==t?void 0:t.textContent)try{i=null!==(e=JSON.parse(t.textContent).sincrowebId)&&void 0!==e?e:void 0,i&&(i=String(i))}catch(e){console.error("Error parsing dealer metadata for sincroWebId",e)}return i||""}var r=function(e,t,i,o){return new(i||(i=Promise))((function(a,d){function n(e){try{l(o.next(e))}catch(e){d(e)}}function r(e){try{l(o.throw(e))}catch(e){d(e)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(n,r)}l((o=o.apply(e,t||[])).next())}))};class l{constructor(e){if(this.active=!1,this.handleSubmit=e=>r(this,void 0,void 0,(function*(){var t,i,o,r;if(e.preventDefault(),!this.active)return;this.form._listenerAttached=!1;const l=(null===(t=this.form.querySelector("#ePriceModalFirstName"))||void 0===t?void 0:t.value)||"",s=(null===(i=this.form.querySelector("#ePriceModalLastName"))||void 0===i?void 0:i.value)||"",c=(null===(o=this.form.querySelector("#ePriceModalEmail"))||void 0===o?void 0:o.value)||"",u=(null===(r=this.form.querySelector("#ePriceModalPhone"))||void 0===r?void 0:r.value)||"",g=this.form.querySelector("button[type='submit']"),m=this.form.getAttribute("data-vin")||"",v={[m]:{PRICEDROP:{}}};null==g||g.setAttribute("disabled","true");const{dealerId:h,sincroWebId:p}={dealerId:d(),sincroWebId:n()},y={dealerId:h,vin:m,programDataGroupType:"VIN",firstName:l,lastName:s,phoneNumber:u.replace(/\D/g,""),email:c,subscriptionTenant:p,programSpecificData:v};try{yield a(y)}catch(e){console.error("Submission failed:",e)}finally{null==g||g.removeAttribute("disabled")}})),!e)throw new Error("Form not found");this.form=e,this.ePriceModalDefaultDisclaimer=document.getElementById("defaultDisclaimer"),this.form.addEventListener("submit",this.handleSubmit),this.originalFormName=this.form.dataset.dotaggingFormName||"",this.originalProductName=this.form.dataset.dotaggingProductName||""}activate(){this.active=!0,this.ePriceModalDefaultDisclaimer&&(this.ePriceModalDefaultDisclaimer.style.fontSize="16px",this.ePriceModalDefaultDisclaimer.style.paddingBottom="10px"),this.form.dataset.dotaggingFormName="Track Price",this.form.dataset.dotaggingProductName="Track Price"}deactivate(){this.active=!1,this.ePriceModalDefaultDisclaimer&&(this.ePriceModalDefaultDisclaimer.style.removeProperty("font-size"),this.ePriceModalDefaultDisclaimer.style.removeProperty("padding-bottom"),this.ePriceModalDefaultDisclaimer.innerHTML=""),this.form.dataset.dotaggingFormName=this.originalFormName,this.form.dataset.dotaggingProductName=this.originalProductName}getDisclaimers(){return this.form.querySelectorAll(".form-group-disclaimers")}}}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var i=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](i,i.exports,__webpack_require__),i.exports}__webpack_require__.d=(e,t)=>{for(var i in t)__webpack_require__.o(t,i)&&!__webpack_require__.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var __webpack_exports__={},_priceAlertForm__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(4173),__awaiter=function(e,t,i,o){return new(i||(i=Prom
1ise))((function(a,d){function n(e){try{l(o.next(e))}catch(e){d(e)}}function r(e){try{l(o.throw(e))}catch(e){d(e)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(n,r)}l((o=o.apply(e,t||[])).next())}))};class EPriceModalSettings{constructor(){}}class ModalButtonConfig{constructor(){this.comments=""}}class EPriceModalButtonConfig{constructor(e){this.buttons=e}}class EPriceModal{constructor(){this._mostRecentMode="",this._mostRecentCPO="",this._vehicleModelCode="",this._legacyEPriceButtonConfig=null,this._setupComplete=!1,this.onHideModalHandler=e=>{var t,i;e.currentTarget.setAttribute("aria-hidden",!0),document.getElementById("thankyou-popup").style.display="none",document.getElementById("eprice-main-content").style.display="block",null===(t=document.getElementById("ePriceModalSubmitButton"))||void 0===t||t.removeAttribute("disabled"),null===(i=this._priceAlertForm)||void 0===i||i.deactivate(),window.ePriceModal.teardownOneTimeLeadEvents()},this.onShowModalHandler=e=>{var t;const i=e.relatedTarget;if(this.trySetModalLabelsByAttribute(i),this.setupOneTimeLeadEvents(),"do-price-track"===i.tagName.toLowerCase()){null===(t=this._priceAlertForm)||void 0===t||t.activate();const e=document.getElementById("primaryButtonPageModal"),i=null==e?void 0:e.querySelector('input[name="ctaName"]');i&&(i.value="Track Price")}},this.getLeadSource=()=>{const e={isMobile:"ontouchstart"in document.documentElement&&navigator.userAgent.match(/Mobi/),isSrp:this._settings.pageIsSrp,isVdp:this._settings.pageIsVdp,isMrp:this._settings.pageIsMrp,isNew:this._settings.pageIsNew},t={type:document.getElementById("eprice_vehType").innerHTML.trim().toLowerCase(),isCpo:function(){return void 0!==this.MostRecentCPO&&null!=this.MostRecentCPO&&"true"===this.MostRecentCPO.toLowerCase()}};return"ReserveThisVehicle"===this._mostRecentMode?this.getReserveThisVehicleLeadSource(e,t):"PriceDropAlert"===this._mostRecentMode||"TrackPrice"===this._mostRecentMode?this.getPriceDropAndTrackAlertLeadSource(e,t):"GetSalePrice"===this._mostRecentMode?this.getGetSalePriceLeadSource(e,t):"ConfirmAvailability"===this._mostRecentMode?this.getConfirmAvailabilityLeadSource(e,t):"PriceStakPayments"===this._mostRecentMode?this.getPriceStakPaymentsLeadSource(e,t):e.isVdp?this.getVdpLeadSource(e,t):e.isMrp?this.getMrpLeadSource(e,t):this.getSrpLeadSource(e,t)},this.getLeadType=()=>{const e=document.getElementById("eprice_vehType").innerHTML.trim().toLowerCase();return"u"===e?2:"n"===e?1:this._settings.pageLeadType},this.toggleIsEnabled=e=>{let t=this.isToggleQueryParamOn(e);return null!==t?t:this._toggles&&!0===this._toggles[e]},this.ePriceData=()=>{var _a,_b,_c,_d,_e;let comment=null===(_a=document.getElementById("ePriceModalComments"))||void 0===_a?void 0:_a.value;const spinCarUserRef=window.spinCarUserReference;spinCarUserRef&&"string"==typeof spinCarUserRef&&""!=spinCarUserRef.trim()&&(comment+=" SpinCar report: "+spinCarUserRef);let optOut=window.jQuery("#optOut","#epriceForm")[0];optOut&&(comment+=", Do Not Sell Personal Info: "+optOut.checked);const vin=null===(_b=document.getElementById("eprice_vehVin"))||void 0===_b?void 0:_b.innerHTML.trim(),vehicleId=null===(_c=document.getElementById("eprice_vehId"))||void 0===_c?void 0:_c.innerHTML.trim();let location=null===(_d=document.getElementById("eprice_vehLocation"))||void 0===_d?void 0:_d.innerHTML.trim(),isChildDealer=!1,toggles=this.getLocalStorageToggles();const altDealerElem=document.querySelector("#selDealerEPriceModal");if(altDealerElem){if(isChildDealer="ChildDealerId"==altDealerElem.getAttribute("name"),isChildDealer){var dealerName=altDealerElem.options[altDealerElem.selectedIndex].text,dealerId=altDealerElem.value;comment+=`${comment.length>0?", ":""}ChildDealerName: ${dealerName}, ChildDealerId: ${dealerId}`}this.toggleIsEnabled("AltDealerIdProtection_DO46595")&&isChildDealer||(location=altDealerElem.value)}const toyotaEnhancedLeadForm=document.querySelectorAll("[data-toyota-enhanced-lead]");for(let e=0;e<toyotaEnhancedLeadForm.length;e++){const t=toyotaEnhancedLeadForm[e];comment+=t.checked?"\n"+toyotaEnhancedLeadForm[e].getAttribute("data-toyota-enhanced-lead"):""}let result={Comments:comment,VehicleModelCode:this._vehicleModelCode,VehicleId:vehicleId};return"virtual"!==(null===(_e=this._settings.vehicleType)||void 0===_e?void 0:_e.toLowerCase())&&(result.Vin=vin,result.VehicleType=this._settings.vehicleType,this.toggleIsEnabled("AltDealerIdProtection_DO46595")?(isChildDealer&&(result.ChildDealerId=dealerId),result.AltDealerId=location):isChildDealer?result.ChildDealerId=location:result.AltDealerId=location),this._settings.bodyCodeBottom&&eval(this._settings.bodyCodeBottom),result}
1,this.getSettings()}getSettings(){var e=document.getElementById("epriceModalSettings");const t=null==e?void 0:e.text;this._settings=null==t?{}:JSON.parse(t),this._toggles=this.getLocalStorageToggles();const i=document.getElementById("epriceForm");i&&(this._priceAlertForm=new _priceAlertForm__WEBPACK_IMPORTED_MODULE_0__.w(i))}init(){var e=document.getElementById("epriceModalConfig");const t=null==e?void 0:e.text;this._buttonConfig=new EPriceModalButtonConfig(null==t?{}:JSON.parse(t)),this.setupEvents(),this.getLeadJsContent()}setupEvents(){var e=".reserveVehicleBtn, .btnPriceDropAlert, .btnNewPriceAlert, .confirmAvailabilityBtn, [data-eprice-modal-button]";!this._settings.shouldDisplayEPrice&&this._settings.pageIsSrp||(e+=", .ePriceBtn"),document.querySelectorAll(e).forEach((e=>{e.dataset.epriceModalProcessed||(e.dataset.epriceModalProcessed="true",e.addEventListener("click",(e=>{this.setupPrimaryButtonPageModal(e)})))}));const t=document.querySelector(".close");null===t||t.dataset.epriceModalProcessed||(t.dataset.epriceModalProcessed="true",t.addEventListener("click",(()=>{window.ResetTracker()}))),window.jQuery("#primaryButtonPageModal").off("hide.bs.modal",this.onHideModalHandler),window.jQuery("#primaryButtonPageModal").on("hide.bs.modal",this.onHideModalHandler),window.jQuery("#primaryButtonPageModal").off("shown.bs.modal",this.onShowModalHandler),window.jQuery("#primaryButtonPageModal").on("shown.bs.modal",this.onShowModalHandler);for(const e of Array.from(document.querySelectorAll("[id^=primaryButtonPageModalButton]"))){const t=e;t.dataset.epriceModalProcessed||(t.dataset.epriceModalProcessed="true",t.addEventListener("click",(e=>{const t=e.currentTarget;window.jQuery("#primaryButtonPageModal").on("hidden.bs.modal",(function(){t.focus()}))})))}if(this.toggleIsEnabled("LS2531")){document.querySelector("do-form-component[form-name='ePrice']").addEventListener("submit",(e=>{if(window.DealeronCookie){const t=24*2*60*60;window.DealeronCookie.setItem(window.DlronGlobal_PriceUnlocked,"?v=7HWvMx0ytdM",t),document.dispatchEvent(new CustomEvent("trigger-adjust-pricing-visibility")),this.thankYouPopupOpen(e.LeadId)}}))}}trySetModalLabelsByAttribute(e){var t,i;const o=document.getElementById("ePriceModalSubmitButton"),a=document.getElementById("ePriceModalTitle"),d=document.getElementById("ePriceModalSubtitle"),n=document.getElementById("defaultDisclaimer"),r=document.getElementById("ePriceModalEmail");e.dataset.formTitle&&(a.innerHTML=e.dataset.formTitle),e.dataset.formSubtitle&&(d.innerHTML=e.dataset.formSubtitle),e.dataset.formDisclaimer&&(n.innerHTML=e.dataset.formDisclaimer),e.dataset.formButtonLabel&&o&&(o.innerHTML=e.dataset.formButtonLabel,o.value=e.dataset.formTitle),e.dataset.formEmail&&(r.value=e.dataset.formEmail);const l=document.getElementById("primaryButtonPageModal").querySelector('input[name="ctaName"]');l&&(1==e.childNodes.length&&e.childNodes[0].nodeType==Node.TEXT_NODE?l.value=null===(t=e.innerHTML)||void 0===t?void 0:t.trim():l.value=null===(i=e.innerText)||void 0===i?void 0:i.trim())}setupPrimaryButtonPageModal(e){var t,i,o,a,d,n,r,l,s,c,u,g,m,v,h,p,y,b,_,I,S,M,f,w,P,E,L,A,D,N,T,C,k,B,V,H,R,O,U,q,x,F,G,$,j,J,W,Q,Y,z,K,X,Z,ee,te,ie,oe,ae,de,ne,re,le,se,ce,ue,ge,me,ve,he,pe,ye,be,_e,Ie,Se,Me,fe,we,Pe,Ee,Le,Ae,De;const Ne=document.getElementById("primaryButtonPageModal"),Te=e.currentTarget,Ce=Te.getAttribute("data-mode");this._mostRecentMode=Ce;const ke=this._buttonConfig.buttons.find((e=>e.name==Ce));if(ke){const e=document.getElementById("ePriceModalSubmitButton"),t=document.getElementById("ePriceModalTitle"),i=document.getElementById("ePriceModalSubtitle");e&&(e.innerHTML=ke.label,e.value=ke.label),t.innerHTML=ke.title,i.innerHTML=ke.comments}else console.warn(`Unsupported EPriceModal mode ${Ce}`);const Be=Te.getAttribute("data-name"),Ve=Te.getAttribute("data-vin"),He=Te.getAttribute("data-color"),Re=Te.getAttribute("data-stock"),Oe=this.resolvePhotoUrl(Te),Ue=Te.getAttribute("data-vehicleid"),qe=Te.getAttribute("data-year"),xe=Te.getAttribute("data-make"),Fe=Te.getAttribute("data-model"),Ge=Te.getAttribute("data-trim"),$e=Te.getAttribute("data-altdealerlocation"),je=Te.getAttribute("data-type"),Je=document.querySelector(`[data-dotagging-item-id="${null!=Ve?Ve:""}"]`);if(this._mostRecentCPO=Te.getAttribute("data-cpo"),this._vehicleModelCode=Te.getAttribute("data-modelcd"),this._settings.isDigitalGarageEnabled&&this._settings.pageIsNew){const e=window.DGDataHub,t=e?e.getDgid():"";
1window.DealeronLead.thirdPartyJsonAdapter.setData({dg_dgid:t,dg_modelCd:Te.getAttribute("data-modelcd")})}if(!this.toggleIsEnabled("LS2531")){if(document.querySelectorAll(".ePriceComments").forEach((e=>{e.innerHTML=e.innerHTML.replace("#VEHICLE#",Be)})),document.getElementById("eprice_vehId").innerHTML=Ue,document.getElementById("eprice_vehType").innerHTML=je,"virtual"!==(null===(t=this._settings.vehicleType)||void 0===t?void 0:t.toLowerCase())){document.getElementById("eprice_vehName").innerHTML="<b>"+Be+"</b>";const e=null==Ne?void 0:Ne.querySelector(".vehVin"),t=document.getElementById("eprice_vehVin");t&&(""!==Ve?(t.innerHTML=Ve,t.classList.remove("hidden"),null==e||e.classList.remove("hidden")):(t.classList.add("hidden"),null==e||e.classList.add("hidden")));const i=null==Ne?void 0:Ne.querySelector(".vehColor"),o=document.getElementById("eprice_vehColor");o&&(""!==He?(o.innerHTML=He,o.classList.remove("hidden"),null==i||i.classList.remove("hidden")):(o.classList.add("hidden"),null==i||i.classList.add("hidden")));const a=null==Ne?void 0:Ne.querySelector(".vehStock"),d=document.getElementById("eprice_vehStock");d&&(""!==Re?(d.innerHTML=Re,d.classList.remove("hidden"),null==a||a.classList.remove("hidden")):(d.classList.add("hidden"),null==a||a.classList.add("hidden"))),document.getElementById("eprice_vehYear").innerHTML=qe,document.getElementById("eprice_vehMake").innerHTML=xe,document.getElementById("eprice_vehModel").innerHTML=Fe,document.getElementById("eprice_vehTrim").innerHTML=Ge,document.getElementById("eprice_vehLocation").innerHTML=$e,document.getElementById("eprice_vehIsCpo").innerHTML=this._mostRecentCPO,document.getElementById("epriceImage").innerHTML=`<img id="eprice_photo" class="img-responsive" alt="${Be}" src="${Oe}" />`}const e=document.getElementById("epriceForm");e.setAttribute("data-vin",Ve),null===(i=document.getElementById("eprice_leadSource"))||void 0===i||i.setAttribute("value",this.getLeadSource()),null!==(o=null==Je?void 0:Je.hasAttributes())&&void 0!==o&&o&&(e.setAttribute("data-dotagging-item-id",Ve),e.setAttribute("data-dotagging-item-number",null!==(n=null===(d=null===(a=Je.attributes)||void 0===a?void 0:a.getNamedItem("data-dotagging-item-number"))||void 0===d?void 0:d.value)&&void 0!==n?n:""),e.setAttribute("data-dotagging-item-price",null!==(s=null===(l=null===(r=Je.attributes)||void 0===r?void 0:r.getNamedItem("data-dotagging-item-price"))||void 0===l?void 0:l.value)&&void 0!==s?s:""),e.setAttribute("data-dotagging-item-condition",null!==(g=null===(u=null===(c=Je.attributes)||void 0===c?void 0:c.getNamedItem("data-dotagging-item-condition"))||void 0===u?void 0:u.value)&&void 0!==g?g:""),e.setAttribute("data-dotagging-item-year",null!==(h=null===(v=null===(m=Je.attributes)||void 0===m?void 0:m.getNamedItem("data-dotagging-item-year"))||void 0===v?void 0:v.value)&&void 0!==h?h:""),e.setAttribute("data-dotagging-item-make",null!==(b=null===(y=null===(p=Je.attributes)||void 0===p?void 0:p.getNamedItem("data-dotagging-item-make"))||void 0===y?void 0:y.value)&&void 0!==b?b:""),e.setAttribute("data-dotagging-item-model",null!==(S=null===(I=null===(_=Je.attributes)||void 0===_?void 0:_.getNamedItem("data-dotagging-item-model"))||void 0===I?void 0:I.value)&&void 0!==S?S:""),e.setAttribute("data-dotagging-item-variant",null!==(w=null===(f=null===(M=Je.attributes)||void 0===M?void 0:M.getNamedItem("data-dotagging-item-variant"))||void 0===f?void 0:f.value)&&void 0!==w?w:""),e.setAttribute("data-dotagging-item-color",null!==(L=null===(E=null===(P=Je.attributes)||void 0===P?void 0:P.getNamedItem("data-dotagging-item-color"))||void 0===E?void 0:E.value)&&void 0!==L?L:""),e.setAttribute("data-dotagging-item-category",null!==(N=null===(D=null===(A=Je.attributes)||void 0===A?void 0:A.getNamedItem("data-dotagging-item-category"))||void 0===D?void 0:D.value)&&void 0!==N?N:""),e.setAttribute("data-dotagging-item-fuel-type",null!==(k=null===(C=null===(T=Je.attributes)||void 0===T?void 0:T.getNamedItem("data-dotagging-item-fuel-type"))||void 0===C?void 0:C.value)&&void 0!==k?k:""),e.setAttribute("data-dotagging-item-type",null!==(H=null===(V=null===(B=Je.attributes)||void 0===B?void 0:B.getNamedItem("data-dotagging-item-type"))||void 0===V?void 0:V.value)&&void 0!==H?H:""),e.setAttribute("data-dotagging-item-inventory-date",null!==(U=null===(O=null===(R=Je.attributes)||void 0===R?void 0:R.getNamedItem("data-dotagging-item-inventory-date"))||void 0===O?void 0:O.value)&&void 0!==U?U:""),e.setAttribute("data-dotagging-item-recommended",null!==(F=null===(x=null===(q=Je.attributes)||void 0===q?void 0:q.getNamedItem("data-dotagging-item-recommended"))||void 0===x?void 0:x.value)&&void 0!==F?F:""),e.dataset.dotaggingItemBodyType=(null==Je?void 0:Je.dataset.dotaggingItemBodyType)||"",e.dataset.dotaggingItemColorInterior=(null==Je?void 0:Je.dataset.dotaggingItemColorInterior)||"",e.dataset.dotaggingItemEngine=(null==Je?void 0:Je.dataset.dotaggingItemEngine)||"",e.dataset.dotaggingItemFuelEfficiencyCity=(null==Je?void 0:Je.dataset.dotaggingItemFuelEfficiencyCity)||"",e.dataset.dotaggingItemFuelEfficiencyHighway=(null==Je?void 0:Je.dataset.dotaggingItemFuelEfficiencyHighway)||"",e.dataset.dotaggingItemOdometer=(null==Je?void 0:Je.dataset.dotaggingItemOdometer)||"",e.dataset.dotaggingItemTransmission=(null==Je?void 0:Je.dataset.dotaggingItemTransmission)||""),window.jQuery("#primaryButtonPageModal").modal("show",Te),Ne&&(Ne.removeAttribute("aria-hidden"),Ne.querySelectorAll("input:not([type='hidden']):not([type='checkbox'])").forEach((e=>e.value="")),Ne.querySelectorAll("textarea").forEach((e=>e.value="")),Ne.querySelectorAll(".has-error").forEach((e=>{"label"===e.nodeName.toLocaleLowerCase()?e.parentElement.removeChild(e):e.classList.remove("has-error")})),Ne.querySelectorAll(".has-success").forEach((e=>e.classList.remove("has-success")))),window.ResetTracker()}if(this.toggleIsEnabled("LS2531")){if("virtual"!==(null===(G=this._settings.vehicleType)||void 0===G?void 0:G.toLowerCase())){document.getElementById("eprice_vehName").innerHTML="<b>"+Be+"</b>";const e=null==Ne?void 0:Ne.querySelector(".vehVin"),t=document.getElementById("eprice_vehVin");t&&(""!==Ve?(t.innerHTML=Ve,t.classList.remove("hidden"),null==e||e.classList.remove("hidden")):(t.classList.add("hidden"),null==e||e.classList.add("hidden")));const i=null==Ne?void 0:Ne.querySelector(".vehColor"),o=document.getElementById("eprice_vehColor");
1o&&(""!==He?(o.innerHTML=He,o.classList.remove("hidden"),null==i||i.classList.remove("hidden")):(o.classList.add("hidden"),null==i||i.classList.add("hidden")));const a=null==Ne?void 0:Ne.querySelector(".vehStock"),d=document.getElementById("eprice_vehStock");d&&(""!==Re?(d.innerHTML=Re,d.classList.remove("hidden"),null==a||a.classList.remove("hidden")):(d.classList.add("hidden"),null==a||a.classList.add("hidden"))),document.getElementById("epriceImage").innerHTML=`<img id="eprice_photo" class="img-responsive" alt="${Be}" src="${Oe}" />`}const e=document.querySelector("do-form-component[form-name='ePrice']");e&&(e.setAttribute("vehicle-vin",Ve),e.setAttribute("vehicle-name",Ve),e.setAttribute("vehicle-stock",Re),e.setAttribute("vehicle-color",He),e.setAttribute("vehicle-year",qe),e.setAttribute("vehicle-make",xe),e.setAttribute("vehicle-model",Fe),e.setAttribute("vehicle-trim",Ge),e.setAttribute("vehicle-location",$e),e.setAttribute("vehicle-type",je),e.setAttribute("vehicle-cpo",this._mostRecentCPO),e.setAttribute("vehicle-modelcd",this._vehicleModelCode),null!==($=null==Je?void 0:Je.hasAttributes())&&void 0!==$&&$&&(e.setAttribute("data-dotagging-item-id",Ve),e.setAttribute("data-dotagging-item-number",null!==(W=null===(J=null===(j=Je.attributes)||void 0===j?void 0:j.getNamedItem("data-dotagging-item-number"))||void 0===J?void 0:J.value)&&void 0!==W?W:""),e.setAttribute("data-dotagging-item-price",null!==(z=null===(Y=null===(Q=Je.attributes)||void 0===Q?void 0:Q.getNamedItem("data-dotagging-item-price"))||void 0===Y?void 0:Y.value)&&void 0!==z?z:""),e.setAttribute("data-dotagging-item-condition",null!==(Z=null===(X=null===(K=Je.attributes)||void 0===K?void 0:K.getNamedItem("data-dotagging-item-condition"))||void 0===X?void 0:X.value)&&void 0!==Z?Z:""),e.setAttribute("data-dotagging-item-year",null!==(ie=null===(te=null===(ee=Je.attributes)||void 0===ee?void 0:ee.getNamedItem("data-dotagging-item-year"))||void 0===te?void 0:te.value)&&void 0!==ie?ie:""),e.setAttribute("data-dotagging-item-make",null!==(de=null===(ae=null===(oe=Je.attributes)||void 0===oe?void 0:oe.getNamedItem("data-dotagging-item-make"))||void 0===ae?void 0:ae.value)&&void 0!==de?de:""),e.setAttribute("data-dotagging-item-model",null!==(le=null===(re=null===(ne=Je.attributes)||void 0===ne?void 0:ne.getNamedItem("data-dotagging-item-model"))||void 0===re?void 0:re.value)&&void 0!==le?le:""),e.setAttribute("data-dotagging-item-variant",null!==(ue=null===(ce=null===(se=Je.attributes)||void 0===se?void 0:se.getNamedItem("data-dotagging-item-variant"))||void 0===ce?void 0:ce.value)&&void 0!==ue?ue:""),e.setAttribute("data-dotagging-item-color",null!==(ve=null===(me=null===(ge=Je.attributes)||void 0===ge?void 0:ge.getNamedItem("data-dotagging-item-color"))||void 0===me?void 0:me.value)&&void 0!==ve?ve:""),e.setAttribute("data-dotagging-item-category",null!==(ye=null===(pe=null===(he=Je.attributes)||void 0===he?void 0:he.getNamedItem("data-dotagging-item-category"))||void 0===pe?void 0:pe.value)&&void 0!==ye?ye:""),e.setAttribute("data-dotagging-item-fuel-type",null!==(Ie=null===(_e=null===(be=Je.attributes)||void 0===be?void 0:be.getNamedItem("data-dotagging-item-fuel-type"))||void 0===_e?void 0:_e.value)&&void 0!==Ie?Ie:""),e.setAttribute("data-dotagging-item-type",null!==(fe=null===(Me=null===(Se=Je.attributes)||void 0===Se?void 0:Se.getNamedItem("data-dotagging-item-type"))||void 0===Me?void 0:Me.value)&&void 0!==fe?fe:""),e.setAttribute("data-dotagging-item-inventory-date",null!==(Ee=null===(Pe=null===(we=Je.attributes)||void 0===we?void 0:we.getNamedItem("data-dotagging-item-inventory-date"))||void 0===Pe?void 0:Pe.value)&&void 0!==Ee?Ee:""),e.setAttribute("data-dotagging-item-recommended",null!==(De=null===(Ae=null===(Le=Je.attributes)||void 0===Le?void 0:Le.getNamedItem("data-dotagging-item-recommended"))||void 0===Ae?void 0:Ae.value)&&void 0!==De?De:""),e.dataset.dotaggingItemBodyType=(null==Je?void 0:Je.dataset.dotaggingItemBodyType)||"",e.dataset.dotaggingItemColorInterior=(null==Je?void 0:Je.dataset.dotaggingItemColorInterior)||"",e.dataset.dotaggingItemEngine=(null==Je?void 0:Je.dataset.dotaggingItemEngine)||"",e.dataset.dotaggingItemFuelEfficiencyCity=(null==Je?void 0:Je.dataset.dotaggingItemFuelEfficiencyCity)||"",e.dataset.dotaggingItemFuelEfficiencyHighway=(null==Je?void 0:Je.dataset.dotaggingItemFuelEfficiencyHighway)||"",e.dataset.dotaggingItemOdometer=(null==Je?void 0:Je.dataset.dotaggingItemOdometer)||"",e.dataset.dotaggingItemTransmission=(null==Je?void 0:Je.dataset.dotaggingItemTransmission)||"")),window.jQuery("#primaryButtonPageModal").modal("show",Te)}}ePriceSuccessCallback(e){if(window.DealeronCookie){window.DealeronCookie.setItem(window.DlronGlobal_PriceUnlocked,"?v=7HWvMx0ytdM",172800),document.dispatchEvent(new CustomEvent("trigger-adjust-pricing-visibility"));var t=JSON.parse(e);
1if(window.DealeronLead.thirdPartyJsonAdapter.reset(),"object"==typeof window.DealeronCookie){var i="";t.hasOwnProperty("internalId")&&(i+="InternalId="+t.internalId+"|");window.DealeronCookie.setItem(window.DlronGlobal_DealeronLeadResponseCookieName,i,1800)}const o=document.getElementById("thankyou-iframe");o.addEventListener("load",(function(){const e=o.contentDocument||o.contentWindow.document;var t=e.getElementsByClassName("headerWrapper")[0],i=e.getElementsByTagName("footer")[0];t&&t.remove(),i&&i.remove();for(var a=e.getElementsByTagName("a"),d=0;d<a.length;d++)a[d].setAttribute("target","_parent");document.getElementById("thankyou-popup").style.display="block",document.getElementById("eprice-main-content").style.display="none"})),o.src="/thankyou.aspx?modal=true&lid="+t.leadId}}thankYouPopupOpen(e){const t=document.getElementById("thankyou-iframe");t.addEventListener("load",(function(){const e=t.contentDocument||t.contentWindow.document;var i=e.getElementsByClassName("headerWrapper")[0],o=e.getElementsByTagName("footer")[0];i&&i.remove(),o&&o.remove();for(var a=e.getElementsByTagName("a"),d=0;d<a.length;d++)a[d].setAttribute("target","_parent");document.getElementById("thankyou-popup").style.display="block",document.getElementById("eprice-main-content").style.display="none"})),t.src="/thankyou.aspx?modal=true&lid="+e}getReserveThisVehicleLeadSource(e,t){return"n"===t.type?e.isMobile?this._settings.leadSource.MobileReserveVehicleNew.Id:this._settings.leadSource.ReserveVehicleNew.Id:"u"===t.type?e.isMobile?this._settings.leadSource.MobileReserveVehicleUsed.Id:this._settings.leadSource.ReserveVehicleUsed.Id:e.isNew?e.isMobile?this._settings.leadSource.MobileReserveVehicleNew.Id:this._settings.leadSource.ReserveVehicleNew.Id:e.isMobile?this._settings.leadSource.MobileReserveVehicleUsed.Id:this._settings.leadSource.ReserveVehicleUsed.Id}getPriceDropAndTrackAlertLeadSource(e,t){var i,o,a;const d=(null!==(i=t.type)&&void 0!==i?i:"").toLowerCase();let n=null;"n"===d||"new"===d?n="n":("u"===d||"used"===d)&&(n="u");const r={n:{vdp:{mobile:this._settings.leadSource.MobilePriceDropAlertNew.Id,desktop:this._settings.leadSource.PriceDropAlertNew.Id},srp:{mobile:this._settings.leadSource.MobilePriceDropAlertNewSRP.Id,desktop:this._settings.leadSource.PriceDropAlertNewSRP.Id}},u:{vdp:{mobile:this._settings.leadSource.MobilePriceDropAlertUsed.Id,desktop:this._settings.leadSource.PriceDropAlertUsed.Id},srp:{mobile:this._settings.leadSource.MobilePriceDropAlertUsedSRP.Id,desktop:this._settings.leadSource.PriceDropAlertUsedSRP.Id}}},l=(e=>e.isVdp?"vdp":e.isSrp?"srp":"other")(e),s=e.isMobile?"mobile":"desktop";if(n&&"other"!==l&&(null===(a=null===(o=r[n])||void 0===o?void 0:o[l])||void 0===a?void 0:a[s]))return r[n][l][s];return r[e.isNew?"n":"u"].vdp[s]}getGetSalePriceLeadSource(e,t){return"n"===t.type?e.isMobile?this._settings.leadSource.MobileGetSalePriceVdpNew.Id:this._settings.leadSource.GetSalePriceVdpNew.Id:"u"===t.type?e.isMobile?this._settings.leadSource.MobileGetSalePriceVdpUsed.Id:this._settings.leadSource.GetSalePriceVdpUsed.Id:e.isNew?e.isMobile?this._settings.leadSource.MobileGetSalePriceVdpNew.Id:this._settings.leadSource.GetSalePriceVdpNew.Id:e.isMobile?this._settings.leadSource.MobileGetSalePriceVdpUsed.Id:this._settings.leadSource.GetSalePriceVdpUsed.Id}getConfirmAvailabilityLeadSource(e,t){return"n"===t.type?e.isMobile?this._settings.leadSource.MobileConfirmAvailabilityVdpNew.Id:this._settings.leadSource.ConfirmAvailabilityVdpNew.Id:"u"===t.type?e.isMobile?this._settings.leadSource.MobileConfirmAvailabilityVdpUsed.Id:this._settings.leadSource.ConfirmAvailabilityVdpUsed.Id:e.isNew?e.isMobile?this._settings.leadSource.MobileConfirmAvailabilityVdpNew.Id:this._settings.leadSource.ConfirmAvailabilityVdpNew.Id:e.isMobile?this._settings.leadSource.MobileConfirmAvailabilityVdpUsed.Id:this._settings.leadSource.ConfirmAvailabilityVdpUsed.Id}getPriceStakPaymentsLeadSource(e,t){return"n"===t.type?e.isVdp?e.isMobile?this._settings.leadSource.MobilePriceStakDetailsNew.Id:this._settings.leadSource.PriceStakDetailsNew.Id:e.isMobile?this._settings.leadSource.MobilePriceStakInventoryNew.Id:this._settings.leadSource.PriceStakInventoryNew.Id:"u"===t.type?e.isVdp?e.isMobile?this._settings.leadSource.MobilePriceStakDetail
1sUsed.Id:this._settings.leadSource.PriceStakDetailsUsed.Id:e.isMobile?this._settings.leadSource.MobilePriceStakInventoryUsed.Id:this._settings.leadSource.PriceStakInventoryUsed.Id:e.isNew?e.isVdp?e.isMobile?this._settings.leadSource.MobilePriceStakDetailsNew.Id:this._settings.leadSource.PriceStakDetailsNew.Id:e.isMobile?this._settings.leadSource.MobilePriceStakInventoryNew.Id:this._settings.leadSource.PriceStakInventoryNew.Id:e.isVdp?e.isMobile?this._settings.leadSource.MobilePriceStakDetailsUsed.Id:this._settings.leadSource.PriceStakDetailsUsed.Id:e.isMobile?this._settings.leadSource.MobilePriceStakInventoryUsed.Id:this._settings.leadSource.PriceStakInventoryUsed.Id}getVdpLeadSource(e,t){return"u"===t.type?e.isMobile?this._settings.leadSource.MobileEPriceDetailsUsed.Id:t.isCpo()?this._settings.leadSource.VehicleCertified.Id:this._settings.leadSource.EPriceDetailsUsed.Id:"n"===t.type?e.isMobile?this._settings.leadSource.MobileEPriceDetailsNew.Id:this._settings.leadSource.EPriceDetailsNew.Id:this.catchLeadSource(e,t)}getSrpLeadSource(e,t){return"n"===t.type?e.isMobile?this._settings.leadSource.MobileEPriceInventoryNew.Id:this._settings.leadSource.EPriceInventoryNew.Id:"u"===t.type?e.isMobile?this._settings.leadSource.MobileEPriceInventoryUsed.Id:t.isCpo()?this._settings.leadSource.VehicleCertified.Id:this._settings.leadSource.EPriceInventoryUsed.Id:this.catchLeadSource(e,t)}getMrpLeadSource(e,t){return"n"===t.type?e.isMobile?this._settings.leadSource.MobileEPriceModelResearchNew.Id:this._settings.leadSource.EPriceModelResearchNew.Id:this.catchLeadSource(e,t)}catchLeadSource(e,t){return e.isVdp?e.isNew?e.isMobile?this._settings.leadSource.MobileEPriceDetailsNew.Id:this._settings.leadSource.EPriceDetailsNew.Id:e.isMobile?this._settings.leadSource.MobileEPriceDetailsUsed.Id:t.isCpo()?this._settings.leadSource.VehicleCertified.Id:this._settings.leadSource.EPriceDetailsUsed.Id:e.isMrp?e.isMobile?this._settings.leadSource.MobileEPriceModelResearchNew.Id:this._settings.leadSource.EPriceModelResearchNew.Id:e.isNew?e.isMobile?this._settings.leadSource.MobileEPriceInventoryNew.Id:this._settings.leadSource.EPriceInventoryNew.Id:e.isMobile?this._settings.leadSource.MobileEPriceInventoryUsed.Id:t.isCpo()?this._settings.leadSource.VehicleCertified.Id:this._settings.leadSource.EPriceInventoryUsed.Id}setupOneTimeLeadEvents(){const e=document.querySelector("#primaryButtonPageModal");(null==e?void 0:e.querySelectorAll("input, textarea, select")).forEac
1h((e=>{e.addEventListener("focusout",this.trackerHookListener,!1)}))}teardownOneTimeLeadEvents(){const e=document.querySelector("#primaryButtonPageModal");(null==e?void 0:e.querySelectorAll("input, textarea, select")).forEach((e=>{e.removeEventListener("focusout",this.trackerHookListener,!1)}))}getLeadJsContent(){var e,t;if(window.DealeronLead.addSubmissionMethod("sendePriceSubmit",{leadSource:this.getLeadSource,leadType:this.getLeadType,additionalData:this.ePriceData,successCallback:this.ePriceSuccessCallback}),window.DealeronLead.initialize("#epriceForm","sendePriceSubmit"),"Scion"===this._settings.trackerType){const i=document.getElementById("eprice_vehYear").innerHTML,o=document.getElementById("eprice_vehModel").innerHTML,a=window.tmsomni;a&&(a.prop2=i,a.eVar2=i,a.prop9=o,a.eVar9=o,a.prop10=`${null===(e=this._settings.vehicleType)||void 0===e?void 0:e.toLowerCase()}`,a.eVar16=`${null===(t=this._settings.vehicleType)||void 0===t?void 0:t.toLowerCase()}`)}window.ResetTracker(),this.ePriceData()}resolvePhotoUrl(e){var t;const i=globalThis.location.origin,o="DO-PRICE-TRACK"===(e.tagName||"").trim(),a=null===(t=e.dataset.photo)||void 0===t?void 0:t.trim();return a?o&&/^https?:\/\//i.test(a)?a:a.startsWith("//")?globalThis.location.protocol+a:a.startsWith("/")?i+a:i+"/"+a.replace(/^\/+/,""):""}trackerHookListener(){window.DealeronLead.begin(),window.ResetTracker(),window.trackerHook({trackId:this.getLeadSource}),window.ePriceModal.teardownOneTimeLeadEvents()}getLocalStorageToggles(){const e="sessionToggles_"+window.DlronGlobal_DealerId;try{const t=sessionStorage.getItem(e);return JSON.parse(t)}catch(e){return console.error("Error parsing sessionStorage:",e),{}}}isToggleQueryParamOn(e){const t=new URLSearchParams(window.location.search).get(e);return"on"===t||"off"!==t&&null}}function instantiateEPriceModal(){return __awaiter(this,void 0,void 0,(function*(){globalThis.ePriceModal=new EPriceModal;const e=()=>__awaiter(this,void 0,void 0,(function*(){if(globalThis.ePriceModal.init(),!globalThis.ePriceModal._settings.pageIsVdp)return;yield customElements.whenDefined("do-price-track");if(document.querySelector("do-price-track"))return void globalThis.ePriceModal.setupEvents();const e=document.body,t=new MutationObserver(((e,t)=>{document.querySelector("do-price-track")&&(globalThis.ePriceModal.setupEvents(),t.disconnect(),clearTimeout(i))}));t.observe(e,{childList:!0,subtree:!0});const i=setTimeout((()=>t.disconnect()),1e4)}));"loading"===document.readyState?globalThis.addEventListener("DOMContentLoaded",e,{once:!0}):e()}))}instantiateEPriceModal()})();
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.