PageSourceSearch

https://www.trotternissan.com/static/ws/rec-vehicles/bundle.0c1b34957ff5e5164fd19654f154e602.js

js trotternissan.com collected 2026-10-08 12:00:21 UTC 145,025 bytes, 2 lines download raw bytes

1(()=>{var e,t,n={973(e,t,n){e.exports={...n(174)}},331(e,t,n){e.exports={...n(335)}},444(e,t,n){"use strict";n.d(t,{A:()=>i});const i={storedRequestData:function(e="",t){return t.error||void 0===t.payload||"SET_STORED_REQUEST_DATA"!==t.type?e:t.payload}}},762(e){var t="__lodash_hash_undefined__",n="[object Function]",i="[object GeneratorFunction]",a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,l=/^\w*$/,r=/^\./,s=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,c=/^\[object .+?Constructor\]$/,d="object"==typeof globalThis&&globalThis&&globalThis.Object===Object&&globalThis,u="object"==typeof self&&self&&self.Object===Object&&self,m=d||u||Function("return this")();var p,g=Array.prototype,h=Function.prototype,f=Object.prototype,y=m["__core-js_shared__"],b=(p=/[^.]+$/.exec(y&&y.keys&&y.keys.IE_PROTO||""))?"Symbol(src)_1."+p:"",E=h.toString,v=f.hasOwnProperty,w=f.toString,N=RegExp("^"+E.call(v).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),S=m.Symbol,T=g.splice,I=F(m,"Map"),C=F(Object,"create"),D=S?S.prototype:void 0,P=D?D.toString:void 0;function A(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function R(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function _(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function L(e,t){for(var n=e.length;n--;)if(z(e[n][0],t))return n;return-1}function k(e,t){var n;t=function(e,t){if(H(e))return!1;var n=typeof e;if("number"==n||"symbol"==n||"boolean"==n||null==e||B(e))return!0;return l.test(e)||!a.test(e)||null!=t&&e in Object(t)}(t,e)?[t]:H(n=t)?n:M(n);for(var i=0,r=t.length;null!=e&&i<r;)e=e[q(t[i++])];return i&&i==r?e:void 0}function x(e){if(!U(e)||(t=e,b&&b in t))return!1;var t,a=function(e){var t=U(e)?w.call(e):"";return t==n||t==i}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?N:c;return a.test(function(e){if(null!=e){try{return E.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function O(e,t){var n,i,a=e.__data__;return("string"==(i=typeof(n=t))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?a["string"==typeof t?"string":"hash"]:a.map}function F(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return x(n)?n:void 0}A.prototype.clear=function(){this.__data__=C?C(null):{}},A.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},A.prototype.get=function(e){var n=this.__data__;if(C){var i=n[e];return i===t?void 0:i}return v.call(n,e)?n[e]:void 0},A.prototype.has=function(e){var t=this.__data__;return C?void 0!==t[e]:v.call(t,e)},A.prototype.set=function(e,n){return this.__data__[e]=C&&void 0===n?t:n,this},R.prototype.clear=function(){this.__data__=[]},R.prototype.delete=function(e){var t=this.__data__,n=L(t,e);return!(n<0)&&(n==t.length-1?t.pop():T.call(t,n,1),!0)},R.prototype.get=function(e){var t=this.__data__,n=L(t,e);return n<0?void 0:t[n][1]},R.prototype.has=function(e){return L(this.__data__,e)>-1},R.prototype.set=function(e,t){var n=this.__data__,i=L(n,e);return i<0?n.push([e,t]):n[i][1]=t,this},_.prototype.clear=function(){this.__data__={hash:new A,map:new(I||R),string:new A}},_.prototype.delete=function(e){return O(this,e).delete(e)},_.prototype.get=function(e){return O(this,e).get(e)},_.prototype.has=function(e){return O(this,e).has(e)},_.prototype.set=function(e,t){return O(this,e).set(e,t),this};var M=$(function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(B(e))return P?P.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var n=[];return r.test(e)&&n.push(""),e.replace(s,function(e,t,i,a){n.push(i?a.replace(o,"$1"):t||e)}),n});function q(e){if("string"==typeof e||B(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function $(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var i=arguments,a=t?t.apply(this,i):i[0],l=n.cache;if(l.has(a))return l.get(a);var r=e.apply(this,i);return n.cache=l.set(a,r),r};return n.cache=new($.Cache||_),n}function z(e,t){return e===t||e!=e&&t!=t}$.Cache=_;var H=Array.isArray;function U(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function B(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}
1(e)&&"[object Symbol]"==w.call(e)}e.exports=function(e,t,n){var i=null==e?void 0:k(e,t);return void 0===i?n:i}},743(e){e.exports={isNode:!1,isBrowser:!0,enforceServerSide:()=>{throw new Error("You are attempting to use code in the browser that has been designated server-side only. Such activity is known by the state of California to lead to usage of the dark side of the Force.")}}},335(e,t,n){e.exports=n(743)},19(e,t,n){e.exports=function(e,t){"use strict";const n=e=>[...new Set(e)].filter(e=>e).join(" ")||null;var i=function(t){var i=t.skeletonClasses,a=t.height,l=t.width,r=t.aspectRatio,s=t.circle,o=t.placeholderImage,c=t.imageAlt,d=t.dataTestId,u={height:a,width:l},m=[];return o||m.push("skeleton-shimmer"),m.push(i),m.push(r||s?"embed-responsive":null),"4by3"===r&&m.push("embed-responsive-4by3"),"1by1"===r&&m.push("embed-responsive-1by1"),s&&m.push("rounded-circle","embed-responsive-1by1"),o?e.createElement("img",{src:o,loading:"eager",fetchpriority:"high",className:n(m),style:u,alt:c}):e.createElement("span",{"aria-hidden":"true",className:n(m),style:u,"data-testid":d})};return i.propTypes={skeletonClasses:t.string,height:t.string,width:t.string,aspectRatio:t.string,circle:t.bool,placeholderImage:t.string,imageAlt:t.string,dataTestId:t.string},i.defaultProps={skeletonClasses:"",height:"",width:"",aspectRatio:null,circle:!1,placeholderImage:"",imageAlt:"",dataTestId:void 0},i.displayName="Skeleton",i}(n(594),n(935))},174(e){"use strict";e.exports=DDC.WsmCommonData},935(e){"use strict";e.exports=PropTypes},594(e){"use strict";e.exports=React}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var l=i[e]={exports:{}};return n[e].call(l.exports,l,l.exports,a),l.exports}a.m=n,a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce((t,n)=>(a.f[n](e,t),t),[])),a.u=e=>"bundle."+e+".aa819e67c4499b50732f8d95e8852f83.js",a.miniCssF=e=>"bundle.f86b48982f5ae5eda028353487be696b.css",a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="ws-rec-vehicles:",a.l=(n,i,l,r)=>{if(e[n])e[n].push(i);else{var s,o;if(void 0!==l)for(var c=document.getElementsByTagName("script"),d=0;d<c.length;d++){var u=c[d];if(u.getAttribute("src")==n||u.getAttribute("data-webpack")==t+l){s=u;break}}s||(o=!0,(s=document.createElement("script")).charset="utf-8",a.nc&&s.setAttribute("nonce",a.nc),s.setAttribute("data-webpack",t+l),s.src=n),e[n]=[i];var m=(t,i)=>{s.onerror=s.onload=null,clearTimeout(p);var a=e[n];if(delete e[n],s.parentNode&&s.parentNode.removeChild(s),a&&a.forEach(e=>e(i)),t)return t(i)},p=setTimeout(m.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=m.bind(null,s.onerror),s.onload=m.bind(null,s.onload),o&&document.head.appendChild(s)}},a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.p="/static/ws/rec-vehicles/",(()=>{var e={792:0};a.f.j=(t,n)=>{var i=a.o(e,t)?e[t]:void 0;if(0!==i)if(i)n.push(i[2]);else{var l=new Promise((n,a)=>i=e[t]=[n,a]);n.push(i[2]=l);var r=a.p+a.u(t),s=new Error;a.l(r,n=>{if(a.o(e,t)&&(0!==(i=e[t])&&(e[t]=void 0),i)){var l=n&&("load"===n.type?"missing":n.type),r=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+l+": "+r+")",s.name="ChunkLoadError",s.type=l,s.request=r,i[1](s)}},"chunk-"+t,t)}};var t=(t,n)=>{var i,l,[r,s,o]=n,c=0;if(r.some(t=>0!==e[t])){for(i in s)a.o(s,i)&&(a.m[i]=s[i]);if(o)o(a)}for(t&&t(n);c<r.length;c++)l=r[c],a.o(e,l)&&e[l]&&e[l][0](),e[l]=0},n=globalThis.webpackChunkws_rec_vehicles=globalThis.webpackChunkws_rec_vehicles||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),(()=>{"use strict";const e=ReactDOM;var t=a.n(e),n=a(594),i=a.n(n);const l=ReactRedux;var r=a(973);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},s.apply(null,arguments)}class o extends i().Component{constructor(e){super(e),this.renderDelegate=this.renderDelegate.bind(this)}renderDelegate({labels:e}){const{HeadingTag:t,headingText:n,widgetId:a,toggleCollapse:l,showIcon:r,headingClasses:o,iconClasses:c}=this.props,d=[...c];let u={};if(l){const e="ddc-icon-expand";d.push(e),d.push("icon-style-collapse"),u={role:"button","data-toggle":"collapse","data-target":`#${a}-collapse`,"data-expand-icon-class":`${e}`,"data-collapse-icon-class":"ddc-icon-collapse","aria-expanded":"false","aria-controls":`${a}-collapse`}}return i().createElement(t,s({className:o.join(" ")},u),r&&i().createElement(i().Fragment,null,i().createElement("i",{className:d.join(" ")})," "),e.getHTML(n))}render(){return this.props.headingText&&"FALSE"!==this.props.headingText.toUpperCase()?i().createElement(r.Common,{render:this.renderDelegate}):null}}o.defaultProps={HeadingTag:"h3",headingText:""};const c=o,d=e=>{const{id:t,children:n,toggleCollapse:a}=e;return a?i().createElement("div",{id:`${t}-collapse`,className:"collapse collapse-content"},n):n};d.defaultProps={toggleCollapse:!1};const u=d;var m=a(174);const p=e=>[...new Set(e)].filter(e=>e).join(" ")||null,g={isLoading:!1,fadeIn:!1,collapse:!1},h=DDC.Hysterics;var f=a(331);const y=(e,t)=>{if("string"!=typeof e||0===e.length)throw new Error(`${t} must be a non-zero length string. Got: ${e}.`)},b=(e,t,n)=>
1{y(e,"Widget name"),y(t,"Widget id");const i="undefined"!=typeof window;if(i){const{DDC:i={}}=window,a={action:"clicked",element:void 0,elementCTA:void 0,event:"widgetUserEvent",fieldValue:void 0,formEventId:void 0,formId:void 0,nonInteractive:!1,sourceData:void 0,value:void 0,widgetId:t,widgetName:e,widgetState:"default"};return i.fireTrackingEvent&&i.fireTrackingEvent({result:n?.result?n?.result:void 0,...a,...n}),!!i.fireTrackingEvent}return i};a(762);const E=Object.entries({in_transit:7,in_transit_at_factory:13}).map(([e,t])=>`${e}$|${t}$`).join("|"),v=new RegExp(E,"i"),w=/^(?!0+(?:\s|,|$))\d{1,3}(?:,\d{3})*/,N=/(?:^|\/\/)(pictures|images|static)(-np)?\.([a-z0-9-]+\.)*dealer\.com(?=[/:?#]|$)/,S=/(?:^|\/\/)[^/]*\/[a-zA-Z]\//,T=e=>{const t=parseInt(e,10);return Number.isInteger(t)&&t>0?t:4},I=({bodyStyle:e,fuelEconomy:t,make:n,model:i,odometer:a,stockNumber:l,uuid:r,vin:s,year:o})=>{const[c,d]=t?.value?.split("/")||[];return{bodyStyle:e,cityFuelEconomy:c,highwayFuelEconomy:d,make:n,model:i,odometer:a,stockNumber:l,uuid:r,vin:s,year:o}},C=e=>e.reduce((e,{count:t=0})=>e+t,0),D=(e,t)=>e?.vehicles?.length>0&&!t.fadeIn&&!t.isLoading&&!t.collapse,P=(e,t)=>n=>{const[i]=n;i.intersectionRatio>.5&&(e(),t&&t?.current?.disconnect&&t.current.disconnect())},A=(e="")=>e.includes('data-toggle="popover"')?e.replace(/(data-toggle="popover")/,'$1 data-container="body" '):e,R=(e,t)=>0===t&&((e=>{"DESKTOP"===e&&window&&window.DDC&&window.DDC.modules&&window.DDC.modules.popover&&void 0!==window.DDC?.modules?.popover&&$(document).trigger("modulesRefresh",{modules:{popover:window.DDC.modules.popover}}),"MOBILE"===e&&window&&window.DDC&&window.DDC.mobile&&window.DDC.mobile.slidein&&void 0!==window.DDC?.mobile?.slidein&&window.DDC.mobile.slidein.init()})(e),!0),_=e=>e.reduce((e,{itemValue:t})=>t?`${e} ${t}`:e,"").trim(),L=e=>N.test(e)&&S.test(e),k=(e,t,n)=>(e=>v.test(e))(e)?t.get("COMING_SOON"):n?t.get("OFF_SITE_HIGHLIGHTED_ATTRIBUTE"):t.get("ON_SITE_HIGHLIGHTED_ATTRIBUTE"),x="REC_VEHICLES",O=`${x}/CLIENT/VEHICLES_ENDPOINT_FETCH_ERROR`,F=`${x}/CLIENT/VEHICLES_ENDPOINT_FETCH_SUCCESS`,M=(0,h.hysteriFetch)("vehicleData",{timeout:{timeout:3e3}}),q=(e,t)=>{window&&window.newrelic&&"object"==typeof window.newrelic&&window.newrelic.addPageAction(e,t)},z=e=>e.map(e=>({bodyStyle:e.bodyStyle,year:e.year,make:e.make,model:e.model,stockNumber:e.stockNumber,vin:e.vin,odometer:e.odometer,cityFuelEconomy:e.fuelEconomy?.value?.split("/")[0],highwayFuelEconomy:e.fuelEconomy?.value?.split("/")[1]})),H=(e,t)=>({vehicles:z(e)?.slice(0,t)}),U=e=>{const t=e?.querySelectorAll(".vehicle-list > li"),n=Array.from(t);return n?.filter(e=>e?.offsetWidth&&e?.offsetHeight)?.length},B=({accountId:e,containerRef:t,siteId:i,displayerInstanceId:a,excludeBasedOnImages:l,listingConfigId:r,requiredDisplayAttributes:s,hideIfUnpersonalized:o,showFeaturedOnly:c,vdpData:d,pageAlias:u,pageId:p,uri:g,host:h,scheme:y,storedEOData:E,vehicleId:v},{vehicleState:w,startFadeIn:N,startFadeout:S,startCollapse:I})=>{const[A,R]=(0,n.useState)({vehicleData:[],personalized:!1,trackEventElement:""}),{deviceType:_,locale:L,windowId:k,widgetName:x}=(0,m.useRequestData)(),{displayStyle:$,geoRange:z,pageSize:B}=(0,m.usePrefs)(),j="Standard Horizontal"!==$,W=(0,m.useFlags)(),V=(0,n.useRef)(null),{chromeStyleId:G,type:K}=(e=>{let t={count:0};const n=Object.entries(e).reduce((e,[t,n])=>n&&n.views?[...e,...n.views]:e,[]);return n.length>0&&(t=n.reduce((e,t)=>e.count<t.count?t:e,{count:0})),t})(E),{make:Y,model:X}=(e=>Object.entries(e).map(([e,{make:t,views:n}])=>({model:e,make:t,count:C(n??[])})).reduce((e,t)=>e.count<t.count?t:e,{count:0}))(E),J=W["ws-vdplink-endpoint-enabled"],Q=W["wsm-account-data-distributor-timeout"],Z=W["ws-rec-vehicles-cvre-num-results"],ee=Boolean(W["enable-cads-driveq-over-cvre-api"]),te=Boolean(W["enable-rec-vehicles-enhancements"]);let ne="Navigation"===$?8:6;async function ie(){const t=`/api/widget/ws-rec-vehicles/vehicles-recommendations/${e}`,n=window.Cookies&&window.Cookies.get("abc")?window.Cookies.get("abc"):window.Cookies&&window.Cookies.get("pxa_id")?window.Cookies.get("pxa_id"):null,m=JSON.parse(window.sessionStorage.getItem("session.location")),f=window.localStorage.getItem("userLocation")||m.userPostalCode,b=window&&window.DDC&&window.DDC.WidgetData&&window.DDC.WidgetData["ws-amp-offer"]&&window.DDC.WidgetData["ws-amp-offer"].offerChromeStyleId||null,E=window&&window.DDC&&window.DDC.WidgetData&&window.DDC.WidgetData["ws-amp-offer"]&&window.DDC.WidgetData["ws-amp-offer"].offerVehicleType||null,v={siteId:i,locale:L,device:_.toLowerCase(),pageAlias:u,pageId:p,windowId:k,referrer:document.referrer,host:h,uri:g,scheme:y},w={pixallId:n,offerSeedVehicleChromeStyleId:b,seedVehicleType:E,siteId:i,displayLimit:ne,enableVDPLink:J,addTimeout:Q,displayerInstanceId:a,eoChromeId:G,eoModel:X,eoMake:Y,eoType:K,locale:L,excludeBasedOnImages:l,listingConfigId:r,requiredDisplayAttributes:s,numResultsCVRE:Z,hideIfUnpersonalized:o,showFeaturedOnly:c,inventoryRequestBody:v,geoRange:z,geoZip:f,enableCadsDriveqOverCVREApi:ee};d&&(w.vdpData={chromeStyleId:d?.chromeStyleId,type:d?.type,vin:d?.vin});const T=JSON.stringify(w),C=Date.now();let D;try{o||N(),D=await M(t,{method:"POST",headers:{"content-type":"application/json;charset=UTF-8"},body:T})}catch(e){I();const{message:n}=e;throw q(`${O}`,{requestUrl:t,error:n}),new Error(`${O}: ${e.message}`)}const P=Date.now()-C;return q(`${F}`,{requestUrl:t,responseStatus:200,requestDuration:P,totalVehicles:D?.vehicles?.length??0}),D?.vehicles?.length>0?S(()=>{R({vehicleData:D.vehicles,personalized:D.personalized,trackEventElement:D.trackEventElement})}):I(),D}
1return te&&"DESKTOP"===_&&!j&&(ne=Math.max(T(B),ne)),(0,n.useEffect)(()=>{if(v&&!d&&!j)return null;if(f.isBrowser&&t)if("undefined"!=typeof IntersectionObserver){const e={threshold:.5};V.current&&V.current.disconnect();const n=t.current;o?ie().then(t=>{V.current=new IntersectionObserver(P(()=>{if(D(t,w)){const e=U(n),i={pageAlias:u,element:t.trackEventElement,action:"viewed",result:"Recommended vehicles impression",nonInteractive:!0,dataToExcludeFromWidgetUserEvent:H(t.vehicles,e,t.personalized)};b(x,k,i)}},V),e),V.current.observe(n)}):(V.current=new IntersectionObserver(P(async()=>{const e=await ie();if(D(e,w)){const t=U(n),i={pageAlias:u,element:e.trackEventElement,action:"viewed",result:"Recommended vehicles impression",nonInteractive:!0,dataToExcludeFromWidgetUserEvent:H(e.vehicles,t)};b(x,k,i)}},V),e),V.current.observe(n))}else ie().then(e=>{if(D(e,w)){const n=U(t.current),i={pageAlias:u,element:e.trackEventElement,action:"viewed",result:"Recommended vehicles impression",nonInteractive:!0,dataToExcludeFromWidgetUserEvent:H(e.vehicles,n)};b(x,k,i)}});return()=>{V?.current?.disconnect()}},[E]),[A]},j="REC_VEHICLES",W=`${j}/CLIENT/VEHICLES_ENDPOINT_FETCH_ERROR`,V=`${j}/CLIENT/VEHICLES_ENDPOINT_FETCH_SUCCESS`,G=(0,h.hysteriFetch)("vdpData",{timeout:{[h.wrappers.timeout.contextKey]:1e3}}),K=(e,t)=>{window&&window.newrelic&&"object"==typeof window.newrelic&&window.newrelic.addPageAction(e,t)},Y=({vehicleId:e,siteId:t,locale:i,deviceType:a,accountId:l})=>{const r={siteId:t,locale:i,deviceType:a,accountId:l},s=JSON.stringify(r),[o,c]=(0,n.useState)(),[d,u]=((e,t)=>{const[i,a]=(0,n.useState)(()=>{try{const n=window.localStorage.getItem(e);return n?JSON.parse(n):t}catch(e){return t}});return[i,(t,n)=>{try{if(t&&n){const l={...i,[t]:n};a(l),window.localStorage.setItem(e,JSON.stringify(l))}}catch(e){}}]})("ws-rec-vehicles-eo",{});return(0,n.useEffect)(()=>{(async()=>{if(e){const t=`/api/widget/ws-rec-vehicles/vehicles/${e}`;let n;const i=Date.now();try{n=await G(t,{method:"POST",headers:{"content-type":"application/json;charset=UTF-8"},body:s}),Object.prototype.hasOwnProperty.call(n,"chromeStyleId")&&Object.prototype.hasOwnProperty.call(n,"vin")&&Object.prototype.hasOwnProperty.call(n,"type")?c(n):c(void 0)}catch(e){throw K(`${W}`,{requestUrl:t,err:e}),new Error(`${W}: ${e.message}`)}const a=Date.now()-i;K(`${V}`,{requestUrl:t,responseStatus:200,requestDuration:a}),n&&u(n.model,(({model:e,make:t,chromeStyleId:n,type:i},a)=>{const l=a[e];let r=l?.views??[];const s=r.find(({chromeStyleId:e})=>e===n);if(l&&0!==r.length){r=r.filter(({chromeStyleId:e})=>e!==n);const e=s?.count??0;return{make:t,views:[...r,{chromeStyleId:n,count:1+e,type:i}]}}return{make:t,views:[{chromeStyleId:n,count:1,type:i}]}})(n,d))}})()},[]),[o,d]},X=f.isBrowser?n.useLayoutEffect:n.useEffect,J=e=>{const[t,i]=(0,n.useState)(!1);return X(()=>{f.isBrowser&&i(Boolean(e.current?.closest('[data-rec-vehicles-context="nav-drawer"]')))},[e]),t},Q="(min-width: 1200px)",Z=e=>{const[t,i]=(0,n.useState)(4);return(0,n.useEffect)(()=>{if(!e||"undefined"==typeof window||!window.matchMedia)return()=>{};const t=window.matchMedia(Q),n=()=>i("undefined"!=typeof window&&window.matchMedia&&!window.matchMedia(Q).matches?3:4);return n(),t.addEventListener?(t.addEventListener("change",n),()=>t.removeEventListener("change",n)):(t.addListener(n),()=>t.removeListener(n))},[e]),t};var ee=a(19),te=a.n(ee);const ne=({vehicleState:{fadeIn:e},displayStyle:t})=>{const n=["vehicle","clearfix","pointer","p-0",e?"fade-in":"fade-out"],a="Navigation"===t;return i().createElement("div",{className:p(n)},i().createElement("div",{className:"vehicle-card-media-container m-0 w-100 h-100 absolute-top","data-testid":"shimmer-wrapper"},i().createElement(te(),{skeletonClasses:"h-100",width:"100%"})),i().createElement("div",{className:"vehicle-card-details-container ddc-section-height-default p-2 absolute-bottom h-50 w-100 bg-neutral-0"},i().createElement("div",{className:"vehicle-card-info-container position-relative h-100 d-flex flex-column justify-content-center"},a?i().createElement("div",{className:"vehicle-card-title-container",style:{height:"2rem"},"data-testid":"shimmer-wrapper"}
1,i().createElement(te(),{skeletonClasses:"m-auto",height:"80%",width:"80%"})):i().createElement("h3",{className:"vehicle-card-title-container",style:{height:"2rem"},"data-testid":"shimmer-wrapper"},i().createElement(te(),{skeletonClasses:"m-auto",height:"100%",width:"80%"})),i().createElement("ul",{className:"vehicle-card-price-list list-unstyled h-100"},i().createElement("li",{className:"vehicle-card-price-container",style:{height:"1.2rem"},"data-testid":"shimmer-wrapper"},i().createElement(te(),{skeletonClasses:"m-auto",height:a?"80%":"100%",width:"40%"})),i().createElement("li",{className:"vehicle-card-price-container "+(a?"mt-1":"mt-3"),style:{height:"1.8rem"},"data-testid":"shimmer-wrapper"},i().createElement(te(),{skeletonClasses:"m-auto",height:a?"50%":"100%",width:"50%"}))))))};const ie=({isNavFragment:e,href:t,tabIndex:n,supplementalTitle:a,title:l,subtitle:r})=>{const s=(0,m.useLabels)(),{showVehicleDetailsButton:o,vehicleDetailsButtonLabel:c,detailsButtonStyle:d}=(0,m.usePrefs)(),u=s.get(c);return"true"===o&&!e?i().createElement("a",{className:`btn btn-${d} btn-xs mt-auto `,href:t,tabIndex:n},u,i().createElement("span",{className:"sr-only"},a,l,r)):null},ae=ReactBootstrap;var le=a(935),re=a.n(le);const se=(e,t)=>{if("string"!=typeof e||0===e.length)throw new Error(`${t} must be a non-zero length string. Got: ${e}.`)},oe=e=>[...new Set(e)].filter(e=>e).join(" ")||null,ce="CASH_BACK",de="PROMOTION_FROM",ue="POTENTIAL_EV_TAX_CREDIT",me=({disclaimer:e,isDisclosure:t})=>{const n=(0,m.useLabels)();return e?i().createElement("div",{className:"text-muted small mt-4"},i().createElement("p",{dangerouslySetInnerHTML:{__html:`${t?n.get("DISCLOSURE"):n.get("DISCLAIMER")}: ${e}`}})):null};me.propTypes={disclaimer:re().string,isDisclosure:re().bool},me.defaultProps={disclaimer:"",isDisclosure:!1},me.displayName="IncentiveDisclaimer";const pe=({incentiveId:e,incentiveAccountId:t,incentiveName:n,condition:a,newListingPath:l,usedListingPath:r})=>{const s=(0,m.useLabels)(),{showIncentiveApplicableVehiclesLink:o}=(0,m.usePrefs)();let c="";return c="NEW"===a?l:r,c&&"true"===o?(c=`${c}?incentiveId=${encodeURIComponent(e)}&incentiveAccountId=${encodeURIComponent(t)}`,"CERTIFIED"===a&&(c=`${c}&compositeType=certified`),i().createElement("a",{className:"small text-capitalize",href:c,"data-ga-event":"incentives|click|view inventory","data-incentive-id":e,"data-incentive-name":n},s.get("VIEW_APPLICABLE_VEHICLES"))):null};function ge(e,t="en_US",n=!1){const i={style:"currency",currency:t.length&&t.indexOf("CA")>-1?"CAD":"USD"};let a;if("number"!=typeof e)return"";n?a=e:(a=Math.round(e),i.minimumFractionDigits=0);const l=new Intl.NumberFormat(t.replace("_","-"),i).format(a);return"fr_CA"===t&&l.endsWith("CA")?l.replace("CA","").trim():l}pe.propTypes={incentiveId:re().string.isRequired,incentiveAccountId:re().string.isRequired,incentiveName:re().string,condition:re().string,newListingPath:re().string,usedListingPath:re().string},pe.defaultProps={incentiveName:"",condition:"NEW",newListingPath:null,usedListingPath:null},pe.displayName="ListingLink";const he=e=>{const{locale:t}=(0,m.useRequestData)(),n=(0,m.useLabels)();let a=null;if(e&&e.length){let l;e.forEach(e=>{l=i().createElement(i().Fragment,null,l,i().createElement("li",{className:"list-group-item p-0 pb-1"},`${function(e,t="en_US"){return"number"!=typeof e?"":new Intl.NumberFormat(t.replace("_","-")).format(e)}(e.value,t)}${n.get("PERCENT_APR_FOR")} ${e.term} ${n.get("MONTHS")}`))}),a=i().createElement("ul",{className:"list-group list-group-flush mt-4"},l)}return a};he.propTypes={incentiveTerms:re().arrayOf(re().shape({term:re().number.isRequired,value:re().number.isRequired}))},he.defaultProps={incentiveTerms:[]},he.displayName="TermsList";const fe=({incentive:e,isPotentialTaxCredit:t})=>{const n=(0,m.useLabels)(),a=(0,m.useFlags)(),l=a["enable-content-link-data"],{locale:r}=(0,m.useRequestData)();let s=null,o=null,c=null;if(e&&e.specific){const{effectiveDate:d,expirationDate:u,specific:m={},incentiveContentLinkData:p}=e;d&&u?c=i().createElement("p",null,`${n.get("EFFECTIVE_X_THROUGH_X").replace(/({{\w+_?}})/gm,e=>"{{START_DATE}}"===e?d:"{{END_DATE}}"===e?u:"")}\n\t\t\t\t\t`):!d&&u&&(c=i().createElement("p",null,`${n.get("EFFECTIVE_THROUGH_X").replace("{{END_DATE}}",u)}
1\n\t\t\t\t\t`)),o=a["show-cashBack-program-label"]&&e.content?m.cashOption?i().createElement("p",null,`${ge(m.cashOption,r)} ${e.content}`):null:m.cashOption?i().createElement("p",null,`${ge(m.cashOption,r)} ${t?n.get(ue):n.get(ce)}`):null;const g=m.cashDue?i().createElement("p",null,`${ge(m.cashDue,r)} ${n.get("CASH_DUE_AT_SIGNING")}`):null,h=m.monthlyPayment?i().createElement("p",null,`${ge(m.monthlyPayment,r)} ${n.get("PER_MONTH")}`,m.cashOption?i().createElement(i().Fragment,null,i().createElement("br",null),`${ge(m.cashOption,r)} ${n.get(ce)}`):null):"",f=m.type||m._type,y=(e=[])=>0!==e.length&&l?e.map(e=>{const{url:t,i18NText:n=""}=e;return i().createElement("a",{className:"small d-inline-block text-link",href:t,target:"_blank",rel:"noreferrer"},n)}):null;if(f)switch(f){case"CASH":s=i().createElement(i().Fragment,null,o,y(p),c);break;case"FINANCE":s=i().createElement(i().Fragment,null,i().createElement(he,{incentiveTerms:m.terms,locale:r,labels:n}),y(p),c,g);break;case"CASH_AND_FINANCE":s=i().createElement(i().Fragment,null,i().createElement(he,{incentiveTerms:m.terms,locale:r,labels:n}),m.cashOption?i().createElement(i().Fragment,null,i().createElement("p",null,n.get("AND")),o):null,y(p),c,g);break;case"CASH_OR_FINANCE":s=i().createElement(i().Fragment,null,i().createElement(he,{incentiveTerms:m.terms,locale:r,labels:n}),m.cashOption?i().createElement(i().Fragment,null,i().createElement("p",null,n.get("OR")),o):null,y(p),c,g);break;case"LEASE":s=i().createElement(i().Fragment,null,h,y(p),c,g);break;case"UNDEFINED_TERM":s=i().createElement(i().Fragment,null,o,y(p),c,g);break;default:s=i().createElement(i().Fragment,null,y(p),c)}}return s};fe.propTypes={incentive:re().shape({key:re().string,title:re().string,label:re().string,offerDetails:re().string,shortTitle:re().string,disclaimer:re().string,effectiveDate:re().string,expirationDate:re().string,conditional:re().bool,make:re().string,condition:re().string,manufacturerOffer:re().bool,specific:re().shape({})}).isRequired,isPotentialTaxCredit:re().bool.isRequired},fe.displayName="SpecificDetails";const ye=({incentive:e,newListingPath:t,usedListingPath:n,account:a,isMultiIncentive:l})=>{const r=(0,m.useLabels)(),{key:s,specific:o,title:c,shortTitle:d,offerDetails:u,make:p,condition:g,manufacturerOffer:h,disclaimer:f,effectiveDate:y,expirationDate:b,incentiveContentLinkData:E}=e,{incentiveId:v,incentiveAccountId:w}=function(e){let t={incentiveAccountId:"",incentiveId:""};if("string"==typeof e){const n=e.split("_");n.length>1&&(t={incentiveAccountId:n[0],incentiveId:n[1]})}return t}(s),N=((e={},t,n,i)=>{let a=i;t&&(a=n);let l=de;const s=e.type?e.type:e._type;if(s)switch(s){case"CASH":l="CASH_OFFER_FROM";break;case"FINANCE":case"UNDEFINED_TERM":l="FINANCE_OFFER_FROM";break;case"CASH_AND_FINANCE":l="FINANCE_AND_CASH_OFFER_FROM";break;case"CASH_OR_FINANCE":l="FINANCE_OR_CASH_OFFER_FROM";break;case"LEASE":l="LEASE_OFFER_FROM";break;default:l=de}return`${r.get(l)} ${a}`})(o,h,p,a.name),S=c===r.get(ue),T=u||y||b||E?.length||o?.cashOption||o?.cashDue||o?.monthlyPayment||o?.terms||t||n||f;return i().createElement(i().Fragment,null,!l&&i().createElement(i().Fragment,null,!S&&i().createElement("h4",{className:"mt-2 mb-0 h5","data-testid":"offerType"},N),i().createElement("p",{className:"mt-0"},c),T&&i().createElement("h4",{className:"mt-2 mb-0 h5 text-capitalize"},r.get("DETAILS"))),i().createElement("p",null,u),i().createElement(fe,{incentive:e,isPotentialTaxCredit:S}),i().createElement(pe,{incentiveId:v,incentiveAccountId:w,incentiveName:d,condition:g,newListingPath:t,usedListingPath:n}),l&&i().createElement(me,{disclaimer:f}))};ye.propTypes={newListingPath:re().string,usedListingPath:re().string,incentive:re().shape({key:re().string,title:re().string,label:re().string,offerDetails:re().string,shortTitle:re().string,disclaimer:re().string,effectiveDate:re().string,expirationDate:re().string,conditional:re().bool,make:re().string,condition:re().string,manufacturerOffer:re().bool,specific:re().shape({}),incentiveContentLinkData:re().arrayOf(re().shape({}))}
1).isRequired,account:re().shape({name:re().string}),isMultiIncentive:re().bool},ye.defaultProps={newListingPath:null,usedListingPath:null,account:null,isMultiIncentive:null},ye.displayName="IncentiveDetails";const be=({vehicleData:e})=>{const{images:t,pricing:n,title:a,condition:l}=e,r=(e=>{const{dprice:t,dPrice:n,eprice:i,ePrice:a,...l}=e;return{dPrice:n||t,ePrice:a||i,...l}})(n),{dPrice:s}=r,o=s?.find(e=>e?.isFinalPrice),c=t[0],d=a[0],u=d?.startsWith(l)?d:`${l} ${d}`,m=c?.uri?.replace("pictures.qa.dealer.com","pictures.dealer.com");return i().createElement("div",{className:"vehicle-info row mx-0"},i().createElement("img",{src:m,alt:c.alt,role:"presentation",title:c.title,className:"col-xs-4 col-sm-12 px-0 mb-md-3",style:{aspectRatio:"auto 4 / 3"}}),i().createElement("div",{className:"col-xs-8 col-sm-12 px-md-0 vehicle-title"},i().createElement("h6",{className:"mb-2"},a.length>1&&u),i().createElement("h4",{className:"my-0 d-block"},a.length>1?a[1].trim():u),i().createElement("span",{className:"font-weight-bold"},o?.value)))},Ee=re().shape({uri:re().string,alt:re().string,title:re().string}),ve=re().arrayOf(re().shape({value:re().string,isFinalPrice:re().bool})),we=re().shape({images:re().arrayOf(Ee),pricing:re().shape({dprice:ve}),title:re().arrayOf(re().string),condition:re().string});be.propTypes={vehicleData:we.isRequired},be.displayName="VehicleInfo";const Ne=({children:e,title:t,isGrouping:a})=>{const[l,r]=(0,n.useState)(!1);return i().createElement("div",null,a?i().createElement(ae.PanelGroup,{className:"my-2",id:t},i().createElement(ae.Panel,{onToggle:()=>r(!l)},i().createElement(ae.Panel.Heading,null,i().createElement(ae.Panel.Title,{toggle:!0},i().createElement("h4",{className:"d-flex align-items-start my-4"},i().createElement("i",{className:`ddc-icon icon-style-collapse align-self-start ${l?"ddc-icon-collapse":"ddc-icon-expand"} mr-3`}),i().createElement("span",null,t)))),i().createElement(ae.Panel.Collapse,null,i().createElement(ae.Panel.Body,{className:"ml-5"},i().createElement("div",null,e))))):i().createElement("div",null,i().createElement("p",null,i().createElement("strong",null,t)),i().createElement("div",null,i().createElement("div",null,e))))};Ne.propTypes={title:re().string.isRequired,children:re().element.isRequired,isGrouping:re().bool.isRequired},Ne.displayName="IncentiveContent";const Se=({incentives:e,account:t,newListingPath:n,usedListingPath:a,titleOptions:l,isGrouping:r,vehicleData:s,isMobile:o,isMultiIncentive:c})=>{const d=(0,m.useLabels)(),u=(e,t)=>{const{incentiveTitleDisplay:n,incentiveTitleCustom:i}=l;let a;switch(n){case"regular":a=e;break;case"custom":a=d.get(i)||d.get("DEALER_OFFER");break;default:a=t}return a},p=(e=[],l,s)=>0===e.length?null:i().createElement("div",{className:"facet-list facet-list-border-top",key:l},i().createElement("div",{className:"facet-list-group border-0 pb-0 "+(0===s?"pt-0":""),role:"tablist"},r&&i().createElement("h6",{className:"my-0"},((e,t="")=>{const n=new Map([["CASH","CASH_INCENTIVE"],["FINANCE","FINANCE_INCENTIVE"],["LEASE","LEASE_INCENTIVE"],["UNDEFINED_TERM","UNDEFINED_TERM_INCENTIVE"],["CASH_AND_FINANCE","CASH_AND_FINANCE_INCENTIVE"],["CASH_OR_FINANCE","CASH_OR_FINANCE_INCENTIVE"],["PROMOTION","PROMOTION_INCENTIVE"],["CONDITIONAL","CONDITIONAL_INCENTIVE_GROUP"]]).get(t);return n?e.get(n):t})(d,l)),e.map(e=>i().createElement(Ne,{title:u(e.title,e.shortTitle),isGrouping:r,key:`${l}-${e.uniqueId}`},i().createElement(ye,{incentive:e,account:t,newListingPath:n,usedListingPath:a,isMultiIncentive:c})))));return i().createElement("div",{className:"row"},i().createElement("div",{className:"col-sm-4 pr-md-4"},i().createElement(be,{vehicleData:s})),i().createElement("div",{className:"col-sm-8 pl-md-4 "+(o?"incentive-modal-wrapper":"")},Object.keys(e).map((t,n)=>p(e[t],t,n))))};Se.propTypes={vehicleData:we.isRequired,isMobile:re().bool.isRequired,incentives:re().objectOf(re().arrayOf(re().shape({condition:re().string.isRequired,conditional:re().bool.isRequired,content:re().string,disclaimer:re().string.isRequired,effectiveDate:re().string.isRequired,expirationDate:re().str
1ing.isRequired,key:re().string.isRequired,make:re().string.isRequired,manufacturerOffer:re().bool,offerDetails:re().string.isRequired,shortTitle:re().string.isRequired,title:re().string.isRequired,uniqueId:re().string.isRequired}))),titleOptions:re().shape({incentiveTitleDisplay:re().string.isRequired,incentiveTitleCustom:re().string.isRequired}).isRequired,isGrouping:re().bool.isRequired,account:re().shape({name:re().string,id:re().string}).isRequired,newListingPath:re().string,usedListingPath:re().string,isMultiIncentive:re().bool},Se.defaultProps={newListingPath:"",usedListingPath:"",incentives:{}},Se.displayName="IncentiveGroup";const Te={widgetId:"",widgetName:"wsm-incentive-modal",widgetState:"default",event:"widgetUserEvent",element:"",elementCTA:void 0,action:"clicked",result:"",fieldValue:void 0,formId:void 0,formEventId:void 0,value:void 0};function Ie(e){const t=window&&window.jQuery?window.jQuery(document):{};Object.keys(t).length>0&&t.trigger("trackEvent",{...Te,...e})}const Ce=({account:e,incentive:t,isOpen:n,newListingPath:a,onModalClose:l,usedListingPath:r,cta:s,applePassBtn:o,titleOptions:c,title:d,isGrouping:u,subTitle:p,vehicleData:g,groupIncentive:h,isMobile:f,ctaPrint:y,isDisclosure:b})=>{const{shortTitle:E,disclaimer:v}=t,{windowId:w,widgetName:N}=(0,m.useRequestData)(),S=Object.keys(h).length>0,T=()=>{l(),function(e,t){Ie({widgetId:t,widgetName:e,widgetState:"Special dialog",element:"Close button",result:"Closed dialog"})}(N,w)},I=i().createElement("div",{className:"incentive-modal"},i().createElement("h2",{className:"mt-0 mb-2"},d),i().createElement("p",{className:"font-weight-normal ddc-font-size-small mb-0 modal-sub-title"},p));return i().createElement(ae.Modal,{show:n,onHide:T,onShow:()=>{if(t&&Object.keys(t).length>0){const{title:e}=t;!function(e,t,n){Ie({widgetId:t,widgetName:e,element:"Specials details link",elementCTA:n,result:"Opened dialog"})}(N,w,e)}},className:oe(["m-1",S?"multi-incentive-modal":"single-incentive-modal",f&&"dock-right"])},i().createElement(ae.Modal.Header,null,i().createElement(ae.Modal.Title,{className:"text-center"},i().createElement("button",{type:"button","aria-label":"Close",className:"close text-muted",onClick:T},i().createElement("i",{className:oe(["ddc-icon",...S?["ddc-icon-remove2","ddc-icon-size-large"]:["ddc-icon-close"]]),"aria-hidden":"true"})),i().createElement("span",{className:oe([...S?[]:["h3","my-0","px-5"]])},S?I:E))),i().createElement(ae.Modal.Body,null,S?i().createElement(Se,{incentives:h,account:e,newListingPath:a,usedListingPath:r,titleOptions:c,isGrouping:u,vehicleData:g,isMobile:f,isMultiIncentive:S}):i().createElement(i().Fragment,null,i().createElement(ye,{incentive:t,newListingPath:a,usedListingPath:r,account:e,isMultiIncentive:S}),null!==s&&i().createElement(i().Fragment,null,s),null!==o&&i().createElement(i().Fragment,null,o),null!==y&&i().createElement(i().Fragment,null,y),i().createElement(me,{disclaimer:v,isDisclosure:b}))))};Ce.propTypes={incentive:re().shape({key:re().string,title:re().string,label:re().string,offerDetails:re().string,shortTitle:re().string,disclaimer:re().string,effectiveDate:re().string,expirationDate:re().string,conditional:re().bool,make:re().string,condition:re().string,manufacturerOffer:re().bool,specific:re().shape({})}),isOpen:re().bool.isRequired,onModalClose:re().func.isRequired,account:re().shape({name:re().string,id:re().string}).isRequired,newListingPath:re().string,usedListingPath:re().string,cta:re().shape({clickEvent:re().func,classes:re().arrayOf(re().string),isVisible:re().bool,label:re().string,url:re().string,promo:re().shape({})}),applePassBtn:re().shape({title:re().string,description:re().string,disclaimer:re().string,discountValue:re().string,promoDiscountType:re().string,endDateDisplay:re().string,id:re().string,promoDetails:re().string,incentive:re().shape({})}),titleOptions:re().shape({incentiveTitleDisplay:re().string.isRequired,incentiveTitleCustom:re().string.isRequired}),title:re().string,subTitle:re().string,isMobile:re().bool,isGrouping:re().bool,vehicleData:we,groupIncentive:re().objectOf(re().arrayOf(re().shape({condition:re().str
1ing.isRequired,conditional:re().bool.isRequired,content:re().string,disclaimer:re().string.isRequired,effectiveDate:re().string.isRequired,expirationDate:re().string.isRequired,key:re().string.isRequired,make:re().string.isRequired,manufacturerOffer:re().bool,offerDetails:re().string.isRequired,shortTitle:re().string.isRequired,title:re().string.isRequired,uniqueId:re().string.isRequired}))),ctaPrint:re().shape({pushOutsiderCtaPrint:re().func}),isDisclosure:re().bool},Ce.defaultProps={newListingPath:null,usedListingPath:null,cta:null,applePassBtn:null,titleOptions:{incentiveTitleDisplay:"",incentiveTitleCustom:""},title:"",subTitle:"",isMobile:!0,isGrouping:!1,groupIncentive:{},incentive:{},vehicleData:{},ctaPrint:null,isDisclosure:!1},Ce.displayName="IncentiveModal",function(){if("undefined"==typeof window)return;const e=document.createElement("style");e.setAttribute("type","text/css"),e.innerHTML='.modal.multi-incentive-modal .modal-dialog {\n  width: 762px;\n  max-width: 100%;\n}\n.modal.multi-incentive-modal .modal-body {\n  padding: 24px 64px 64px;\n}\n@media only screen and (max-width: 767px) {\n  .modal.multi-incentive-modal .modal-body {\n    padding: 16px 16px 32px;\n  }\n}\n@media only screen and (max-width: 767px) {\n  .modal.multi-incentive-modal .incentive-modal {\n    text-align: left;\n  }\n}\n.modal.multi-incentive-modal .modal-content {\n  max-height: calc(100vh - 64px);\n  overflow-y: auto;\n}\n.modal.multi-incentive-modal .modal-content .modal-header {\n  background-color: inherit;\n}\n.modal.multi-incentive-modal .modal-content div.facet-list:last-child .facet-list-group {\n  border-bottom: none;\n}\n.modal.multi-incentive-modal .modal-content div#normalFuelType h4 {\n  margin: 0;\n  padding: 16px 0 8px 0;\n}\n.modal.multi-incentive-modal .modal-content div#normalFuelType h4:first-of-type {\n  padding-top: 0;\n}\n.modal.multi-incentive-modal .modal-content div#normalFuelType p {\n  margin-bottom: 8px;\n}\n.modal.multi-incentive-modal .modal-content div#normalFuelType span {\n  display: block;\n  padding-bottom: 16px;\n  border-bottom: 1px solid var(--color-neutral-100);\n}\n.modal.multi-incentive-modal .modal-content div#normalFuelType small {\n  display: inline-block;\n}\n.modal.multi-incentive-modal .modal-content div#normalFuelType span:last-of-type {\n  border-bottom: none;\n  padding-bottom: 0px;\n}\n.modal.multi-incentive-modal.dock-right .modal-content {\n  max-height: 100vh;\n}\n.modal.multi-incentive-modal.dock-right div#normalFuelType span:last-of-type {\n  padding-bottom: 16px;\n}\n.modal.multi-incentive-modal.responsive:not(.dock-right) {\n  padding: 0 32px;\n}\n.modal.multi-incentive-modal.responsive:not(.dock-right) .modal-dialog {\n  width: auto;\n  max-width: 896px;\n  min-width: 704px;\n}\n.modal.multi-incentive-modal .incentive-modal-wrapper {\n  margin-top: 16px;\n}\n.modal.multi-incentive-modal .incentive-modal-wrapper .facet-list:first-child {\n  padding-top: 16px;\n}\n.modal.multi-incentive-modal .modal-title .close {\n  color: var(--color-neutral-1000-alpha-6);\n  opacity: 1;\n}\n.modal.multi-incentive-modal .modal-title .close:focus, .modal.multi-incentive-modal .modal-title .close:hover {\n  opacity: 1;\n}\n.modal.multi-incentive-modal .modal-title .close:hover {\n  color: var(--color-neutral-1000);\n}\n.modal.multi-incentive-modal .modal-title .close:focus {\n  color: var(--color-neutral-1000-alpha-6);\n}\n.modal.multi-incentive-modal .facet-list {\n  position: relative;\n}\n.modal.multi-incentive-modal .facet-list.facet-list-border-top::before {\n  content: "";\n  position: absolute;\n  top: 0;\n  left: 15px;\n  width: calc(100% - 30px);\n  height: 1px;\n  background-color: var(--color-neutral-100);\n}\n@media only screen and (min-width: 768px) {\n  .modal.multi-incentive-modal .facet-list.facet-list-border-top:first-child::before {\n    content: none;\n  }\n}\n.modal.multi-incentive-modal .vehicle-info .vehicle-title {\n  padding-left: 12px;\n}\n@media only screen and (max-width: 479px) {\n  .modal.multi-incentive-modal .modal-sub-title {\n    max-width: 236px;\n  }\n}',document.head.appendChild(e)}();const De=e=>[...new Set(e)].filter(e=>e).join(" ")||null,Pe="PLEASE_CALL",Ae="VDP",Re="SRP",_e="p-0 text-left bg-transparent border-0",Le="DEFINITIONS_DISCLOSURES",ke=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}),xe=new Intl.DateTimeFormat("en-US"),Oe="object"==typeof document,Fe=e=>{const{apr:t,dealershipName:n,downPayment:i,lenderLegalName:a,creditScore:l,monthlyPaymentPerThousand:r,programEndDate:s,term:o}=e;return{"<%=loanCreditScore%>":l,"<%=APR%>":t,"<%=term%>":o,"<%=monthlyPaymentPerThousand%>":ke.format(r),"<%=downPayment%>":ke.format(i),"<%=lenderLegalName%>":a,"<%=loanProgramEndDate%>":s?xe.format(new Date(s)):"","<%=dealershipName%>":n}},Me=e=>{const{creditScore:t,lenderLegalName:n,programEndDate:i,term:a,leaseDueAtSigning:l,acquisitionFee:r,capCostTotal:s,totalMonthlyPayment:o,capCostReduction:c,leaseSecurityDeposit:d,value:u,excessMileCharge:m,annualMiles:p,dealershipName:g}=e;return{"<%=leaseCreditScore%>":t,"<%=leaseLenderLegalName%>":n,"<%=leaseProgramEndDate%>":i?xe.format(new Date(i)):"","<%=leaseTerm%>":a,"<%=leaseDueAtSigning%>":ke.format(l),"<%=acquisitionFee%>":ke.format(r),"<%=capCostTotal%>":ke.format(s),"<%=totalMonthlyPayments%>":ke.format(o),"<%=capCostReduction%>":ke.format(c),"<%=leaseSecurityDeposit%>":ke.format(d),"<%=monthlyPayment%>":u,"<%=excessMileCharge%>":ke.format(m),"<%=annualMiles%>":p,"<%=dealershipName%>":g}},qe=(e,t)=>
1{if(!t||0===Object.entries(t).length)return e&&0!==Object.entries(e).length?e:"Invalid Input";const n=new RegExp(Object.keys(t).join("|"),"gi");return e.replace(n,e=>t[e])};function $e(e=[]){return e.filter(e=>e.isFinalPrice)}function ze(e){let t="",n="";if(e&&e.length){const i=e.findIndex(e=>"EPRICE"===e.type);if(i){const a=e[i],l=e[i+1];t=a?a.value:"",n=l?l.value:""}}return{ePriceDifference:t,ePriceValue:n}}function He(e,t){const[n]=e.querySelectorAll(t);return n}function Ue(e){return"LOAN"===e.type?Fe(e):"LEASE"===e.type?Me(e):{}}const Be=(e,t)=>n=>{"click"!==n.type&&("keydown"!==n.type||13!==n.which&&32!==n.which)||e(t)},je=(e={})=>"object"==typeof e&&null!==e&&0!==Object.entries(e).length,We=()=>"undefined"!=typeof window&&window.DDC?.pubsub||void 0;function Ve({className:e,children:t}){return i().createElement("dl",{className:De(["pricing-detail","line-height-condensed",e])},t)}function Ge(){return Ge=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Ge.apply(null,arguments)}function Ke({labelKey:e,isExpanded:t,onToggleClick:n,onPrefetch:a}){const l=(0,m.useLabels)().get(e);return i().createElement("button",{type:"button",className:"text-link d-block text-no-decoration mb-2 text-left w-100 ddc-font-size-xsmall ml-3",onClick:n,onMouseEnter:a,"aria-expanded":t},l," ",i().createElement("i",{className:"ddc-icon ddc-icon-skinny-arrow-"+(t?"down":"right"),"aria-hidden":"true"}))}Ve.propTypes={className:re().string.isRequired,children:re().oneOfType([re().element,re().array]).isRequired},Ve.displayName="PricingWrapper",Ke.propTypes={labelKey:re().string.isRequired,isExpanded:re().bool,onToggleClick:re().func,onPrefetch:re().func},Ke.defaultProps={isExpanded:!1,onToggleClick:null,onPrefetch:null},Ke.displayName="DealerDetailsToggle","undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self;var Ye={exports:{}};Ye.exports=function(e,t){const n=e=>[...new Set(e)].filter(e=>e).join(" ")||null;var i=function(t){var i=t.skeletonClasses,a=t.height,l=t.width,r=t.aspectRatio,s=t.circle,o=t.placeholderImage,c=t.imageAlt,d=t.dataTestId,u={height:a,width:l},m=[];return o||m.push("skeleton-shimmer"),m.push(i),m.push(r||s?"embed-responsive":null),"4by3"===r&&m.push("embed-responsive-4by3"),"1by1"===r&&m.push("embed-responsive-1by1"),s&&m.push("rounded-circle","embed-responsive-1by1"),o?e.createElement("img",{src:o,loading:"eager",fetchpriority:"high",className:n(m),style:u,alt:c}):e.createElement("span",{"aria-hidden":"true",className:n(m),style:u,"data-testid":d})};return i.propTypes={skeletonClasses:t.string,height:t.string,width:t.string,aspectRatio:t.string,circle:t.bool,placeholderImage:t.string,imageAlt:t.string,dataTestId:t.string},i.defaultProps={skeletonClasses:"",height:"",width:"",aspectRatio:null,circle:!1,placeholderImage:"",imageAlt:"",dataTestId:void 0},i.displayName="Skeleton",i}(i(),re());var Xe=Ye.exports;function Je(e){if(!e||"undefined"==typeof window)return;const t=document.createElement("style");return t.setAttribute("type","text/css"),t.innerHTML=e,document.head.appendChild(t),e}function Qe({data:e,isLoading:t,labelKey:n,dataTestId:a,rowClassName:l,className:r,columns:s}){return i().createElement("div",{className:De([r,"mt-2 w-100"])},t?i().createElement(Xe,{width:"100%",height:"2rem",dataTestId:a}):(e=>{if(!e||!e.length)return null;const t=s||Object.keys(e[0]);return i().createElement("div",{className:"w-100 p-3 ddc-font-size-xsmall"},i().createElement("span",{className:"sr-only"},n),e.map((e,n)=>i().createElement("div",{key:t.map(t=>e[t]).join("-"),className:l},n>0&&i().createElement("div",{className:"pricing-divider mb-2"}),i().createElement("div",{className:"d-flex row-cols-2"},t.map(t=>i().createElement("span",{key:t},e[t]))))))})(e))}function Ze({isStyleEditable:e,priceClassName:t,vehicleCondition:n,conditionClassName:a,layoutClassName:l,handleClick:r,tabIndex:s=0,children:o}){return i().createElement("span",Ge({className:"price-label","data-style-editor-id":e?`${l}-${n}-price-label`:null,"data-style-editor-text":e?`.${l} .${a}.pricing-detail .${t} .price-label`:null},r&&{role:"button",onClick:r,onKeyDown:r,tabIndex:s}),o)}function et({href:e,children:t,target:n,classNames:a}){return i().createElement("sup",{className:De(a)},i().createElement("a",{target:n,href:e},t))}
1function tt({item:{type:e,incentiveId:t,value:a,isFinalPrice:l,typeClass:r="",isDiscount:s},item:o,incentives:c,stackType:d,isMobile:u,vehicleCondition:p,conditionClassName:g,layoutClassName:h,isFirstItem:f,handleDetailClick:y,showHyperlink:b,showOptionsToggle:E,fetchDealerOptionsCallback:v,dealerOptions:w,isLoadingDealerOptions:N,showFeesToggle:S,fetchDealerFeesCallback:T,dealerFees:I,isLoadingDealerFees:C,dataKey:D}){const P=(0,m.useLabels)(),{priceDiscountColor:A,finalPriceFontWeight:R,finalPriceLabelFontWeight:_,finalPriceClasses:L,finalPriceSize:k,finalPriceLabelSize:x,finalPriceColor:O,finalPriceLabelColor:F,incentiveTitleDisplay:M,incentiveTitleCustom:q,showMinusForIncentives:$,showDealerFeesOnPageLoad:z,showDealerOptionsOnPageLoad:H}=(0,m.usePrefs)();let{priceLabelClasses:U}=(0,m.usePrefs)();const B=(0,m.useSitemap)(),[j,W]=(0,n.useState)(()=>"true"===H),[V,G]=(0,n.useState)(()=>"true"===z);(0,n.useEffect)(()=>{E&&j&&v&&v()},[j,v]),(0,n.useEffect)(()=>{S&&V&&T&&T()},[V,T]);let K=a,Y=!1;const X="TOTAL"===e||"SICF"===e||"SIF"===e||l,J="SICF"===e,Q="ePrice"===d&&l,Z=!!t;!("SICF"===e||"SIF"===e)&&!X||f||(Y=!0),s&&(Y=!1);let ee="",te="",ne="";const ie=((e="",t=!1,n=!1,i=!1,a=!1,l="")=>{let r=e;return t||n?r="discount":i?r="conditional-final-price":a&&"MIDDLE"!==l&&(r="final-price"),r})(r,s,Z,J,l,e),ae=((e="",t="",n=!1)=>{let i;return"SICRule"===e?i="offer":"SICCRule"===e?i="conditional-offer":n&&"MIDDLE"!==t&&(i=e),i})(r,e,l);let le="";if(a===Pe&&(le="no-value",K=P.get(Pe)),(s||Z||"oemPriceMapDiscountBonusTotal"===r)&&a!==Pe){const e="true"===$||s?"-":"";K=u?`${e} ${a}`:`${e}${a}`,ee=A}(X&&l||a===Pe||J)&&(te=De([R,L]),a!==Pe&&(te=De([te,k,"line-height-reset","pb-2"]))),X&&l&&(U=De([U,x,F,_])),Q&&(ne="eprice"),J&&(te=De([te,"text-muted"])),l&&(te=De([te,O]));const re=""!==g&&""!==ie,se=i().createElement("dd",{className:"pricing-divider my-3",key:`${e}-divider`}),oe=i().createElement("span",Ge({className:De(["price-value",le]),"data-style-editor-id":re?`${h}-${p}-price-value`:null,"data-style-editor-text":re?`.${h} .${g}.pricing-detail .${ie} .price-value`:null},Z&&{role:"button",onClick:Be(y,t),onKeyDown:Be(y,t),tabIndex:0}),K);return[Y?se:"",i().createElement("dt",{"data-style-editor-price":re?"true":null,className:De([ie,ae,U,Z?"pointer":""]),key:`${e}-dt`},(()=>{const n=(({item:e,incentiveTitleDisplay:t,incentiveTitleCustom:n,labels:i})=>{const{title:a,shortTitle:l,typeCssClass:r,isFinalPrice:s,incentiveId:o}=e,{label:c}=e;let d=c||"";return o&&(a&&"regular"===t&&(d=a),l&&"descriptive"===t&&(d=l),"custom"!==t||"discount"!==r||s||(d=i.get(n))),d})({item:Z&&c&&c[t]?{...o,title:c[t].title,shortTitle:c[t].shortTitle}:{...o},incentiveTitleDisplay:M,incentiveTitleCustom:q,labels:P}),a=Z&&c[t]?i().createElement("span",{className:De(["text-link","d-block",u?"ddc-font-size-small":"ddc-font-size-xsmall"])},P.get("DETAILS")):null;let l=null;return b&&B.has(Le)&&(l=i().createElement(et,{key:`${e}-sup`,target:"_blank",href:B.get(Le)},"1")),i().createElement(Ze,Ge({isStyleEditable:re,priceClassName:ie,vehicleCondition:p,conditionClassName:g,layoutClassName:h},Z&&{handleClick:Be(y,t),tabIndex:0}),P.getHTML(n),l,a)})()),i().createElement("dd",{"data-style-editor-price":re?"true":null,className:De([ie,ae,ee,te,ne,Z?"pointer":""]),key:`${e}-dd`,"data-key":D},oe),E&&i().createElement(Ke,{labelKey:"ADDITIONAL_DETAILS",isExpanded:j,onToggleClick:()=>{W(e=>!e)},onPrefetch:v}),E&&j&&i().createElement(Qe,{data:w,isLoading:N,labelKey:P.get("ADDITIONAL_DETAILS"),dataTestId:"dealer-options-skeleton",className:"dealer-options-expanded",columns:["description","price"]}),S&&i().createElement(Ke,{key:`${e}-fees-toggle`,labelKey:"DETAILS",isExpanded:V,onToggleClick:()=>{G(e=>!e)},onPrefetch:T}),S&&V&&i().createElement(Qe,{key:`${e}-fees-expanded`,data:I,isLoading:C,labelKey:P.get("DETAILS"),dataTestId:"dealer-fees-skeleton",className:"dealer-fees-expanded",columns:["description","price"]})]}Je(".dealer-options-expanded, .dealer-fees-expanded {\n  background-color: var(--color-neutral-1000-alpha-05);\n}\n.dealer-options-expanded .row-cols-2, .dealer-fees-expanded .row-cols-2 {\n  line-height: 1.5;\n}\n.dealer-options-expanded .row-cols-2 span:first-child, .dealer-fees-expanded .row-cols-2 span:first-child {\n  flex: 2;\n}\n.dealer-options-expanded .row-cols-2 span:not(:first-child), .dealer-fees-expanded .row-cols-2 span:not(:first-child) {\n  flex: 1;\n  text-align: right;\n}"),Qe.propTypes={data:re().arrayOf(re().shape({}
1)).isRequired,isLoading:re().bool,labelKey:re().string.isRequired,dataTestId:re().string,rowClassName:re().string,className:re().string,columns:re().arrayOf(re().string)},Qe.defaultProps={isLoading:!1,dataTestId:void 0,rowClassName:"",className:"",columns:null},Qe.displayName="DealerExpandedRow",Ze.defaultProps={isStyleEditable:!1,priceClassName:"",vehicleCondition:"",conditionClassName:"",layoutClassName:"",handleClick:null,tabIndex:0},Ze.propTypes={isStyleEditable:re().bool,priceClassName:re().string,vehicleCondition:re().string,conditionClassName:re().string,layoutClassName:re().string,handleClick:re().func,tabIndex:re().number,children:re().oneOfType([re().element,re().arrayOf(re().element)]).isRequired},Ze.displayName="PriceLabel",et.propTypes={href:re().string.isRequired,children:re().oneOfType([re().string,re().element]).isRequired,target:re().string,classNames:re().arrayOf(re().string)},et.defaultProps={target:"",classNames:[]},et.displayName="SupHyperlink",tt.propTypes={item:re().shape({type:re().string.isRequired,label:re().string.isRequired,value:re().string,isFinalPrice:re().bool,incentiveId:re().string,typeClass:re().string,isDiscount:re().bool}),incentives:re().shape({}).isRequired,stackType:re().string.isRequired,isMobile:re().bool.isRequired,vehicleCondition:re().string.isRequired,conditionClassName:re().string.isRequired,layoutClassName:re().string.isRequired,isFirstItem:re().bool.isRequired,handleDetailClick:re().func,showHyperlink:re().bool,showFeesToggle:re().bool,isLoadingDealerFees:re().bool,showOptionsToggle:re().bool,isLoadingDealerOptions:re().bool,showFeesTooltip:re().bool,fetchDealerFeesCallback:re().func,dealerFees:re().arrayOf(re().shape({description:re().string,price:re().string}
1)),dataKey:re().string},tt.defaultProps={item:{value:"",isFinalPrice:!1,incentiveId:"",typeClass:"",isDiscount:!1},showHyperlink:!1,showFeesToggle:!1,isLoadingDealerFees:!1,showOptionsToggle:!1,isLoadingDealerOptions:!1,fetchDealerFeesCallback:null,dealerFees:[]},tt.displayName="PriceItem";const nt="FINANCE_DRIVER_FINANCE_PAYMENT_TOOLTIP_VERBIAGE",it="FINANCE_DRIVER_LEASE_PAYMENT_TOOLTIP_VERBIAGE",at="EST_FINANCE_DISCLAIMER_HEADING",lt="EST_LEASE_DISCLAIMER_HEADING",rt="THE_DEALERSHIP",st="DETAILED_PRICING",ot="PLEASE_CALL",ct="SLASH_MO",dt="CLICK_TO_VIEW_DISCLAIMER";function ut({dealershipName:e,disclaimerLabel:t,placeholderValuesObj:n}){const a=(0,m.useLabels)(),l=a.get("FINANCE_DRIVER_PAYMENT_INFO_VDP_TOOLTIP_VERBIAGE"),r=e===rt?a.get(rt):e,s=qe(a.get(t),{...n,"<%=dealershipName%>":r});return[i().createElement("div",{key:"introHtml",dangerouslySetInnerHTML:{__html:l}}),i().createElement("div",{key:"disclaimerHtml",dangerouslySetInnerHTML:{__html:s}})]}function mt({...e}){const t=(0,m.useLabels)(),{showState:n,closeMethod:a,title:l,body:r,isMobile:s}=e,o=s?"dock-right":null;return i().createElement(ae.Modal,{show:n,onHide:()=>a(),className:`m-1 ${o}`},i().createElement("div",{className:"p-1"},i().createElement(ae.Modal.Header,null,i().createElement(ae.Modal.Title,{className:"text-center"},i().createElement("button",{type:"button","aria-label":t.get("CLOSE"),className:"close text-muted",onClick:()=>a()},i().createElement("i",{className:"ddc-icon ddc-icon-close","aria-hidden":"true"})),i().createElement("div",{className:"my-0 px-5 h3"},l))),i().createElement(ae.Modal.Body,null,r)))}function pt({loan:e={},lease:t={},isMobile:a=!1,accountInfo:l={},paymentPriceFontWeight:r}){const s=(0,m.useLabels)(),[o,c]=(0,n.useState)(!1),[d,u]=(0,n.use
1State)(i().createElement("span",null)),[p,g]=(0,n.useState)(i().createElement("span",null)),h=(e=i().createElement("span",null),t=i().createElement("span",null))=>{c(!o),u(e),g(t)},f=e=>{const{label:t,value:n}=e,a="lease"===e.type,o=a?it:nt,c=a?Me(e):Fe(e),d=a?lt:at,u=i().createElement(ut,{placeholderValuesObj:c,disclaimerLabel:o,dealershipName:l.name});return i().createElement(i().Fragment,null,i().createElement("dt",{className:`payment-label ${e.type}-payment`},i().createElement("button",{type:"button",className:"text-link text-decoration-underline text-link-muted",onClick:()=>h(s.get(d),u)},i().createElement("span",{className:"price-label"},t))),i().createElement("dd",{className:`payment-value ${e.type}-payment`},i().createElement("span",{className:`price-value ${r}`},n),i().createElement("span",{className:"text-muted"},s.get("SLASH_MO"))))},y={...e,type:"loan"},b={...t,type:"lease"},E={isMobile:a,showState:o,closeMethod:h,title:d,body:p};return i().createElement(i().Fragment,null,e&&y.value&&f(y),t&&b.value&&f(b),i().createElement(mt,E))}function gt(e){const t=(0,m.useLabels)(),{isModalVisible:n,handleClose:a,paymentInfo:l}=e;if(!l)return null;let r="",s="";const{type:o,dealershipName:c}=l,d=Ue(l);return"LOAN"===o&&(s=t.get(at),r=i().createElement(ut,{placeholderValuesObj:d,disclaimerLabel:nt,dealershipName:c})),"LEASE"===o&&(s=t.get(lt),r=i().createElement(ut,{placeholderValuesObj:d,disclaimerLabel:it,dealershipName:c})),i().createElement(ae.Modal,{show:n,onHide:a},i().createElement(ae.Modal.Header,{closeButton:!0},i().createElement(ae.Modal.Title,{className:"text-center"},i().createElement("button",{type:"button","aria-label":t.get("CLOSE"),className:"close text-muted",onClick:a},i().createElement("i",{className:"ddc-icon ddc-icon-close","aria-hidden":"true"})),i().createElement("span",{className:"h3"},s))),i().createElement(ae.Modal.Body,null,r))}ut.propTypes={dealershipName:re().string.isRequired,disclaimerLabel:re().string.isRequired,placeholderValuesObj:re().shape().isRequired}
1,ut.displayName="DisclaimerContent",mt.propTypes={showState:re().bool.isRequired,closeMethod:re().func.isRequired,body:re().element.isRequired},mt.displayName="LoanLeaseModal",pt.defaultProps={loan:{},lease:{}},pt.propTypes={loan:re().shape({}),lease:re().shape({}),isMobile:re().bool.isRequired,accountInfo:re().shape({name:re().string.isRequired,id:re().string.isRequired}).isRequired,paymentPriceFontWeight:re().string},pt.defaultProps={paymentPriceFontWeight:"font-weight-bold"},pt.displayName="Payments",gt.defaultProps={paymentInfo:null},gt.propTypes={isModalVisible:re().bool.isRequired,handleClose:re().func.isRequired,paymentInfo:re().shape()},gt.displayName="DisclaimersModal";const ht={event:"widgetUserEvent",element:"More details button",elementCTA:"Details",action:"clicked",result:"Revealed detail information popup",widgetName:"ws-detailed-pricing",widgetId:"detailed-pricing1",widgetState:"default",fieldValue:void 0,formId:void 0,formEventId:void 0,value:void 0};function ft(e){let t={};"object"==typeof window&&(t=window.jQuery(document)||{}),Object.keys(t).length>0&&t.trigger("trackEvent",{...ht,...e})}function yt(e,t,n){let i;i=n?{element:"Disclaimer details link",elementCTA:void 0,result:"Opened dialog",widgetName:e,widgetId:t}:{element:"Close button",elementCTA:void 0,result:"Closed dialog",widgetState:"Disclaimer dialog",widgetName:e,widgetId:t},ft(i)}const bt=(()=>{if(!Oe)return{};const e=window.sessionStorage;return JSON.parse(e.getItem("wiapiSettings"))||{}})(),Et=bt?.hideDefaultPayments||!1;function vt({label:e}){return i().createElement("span",{className:"price-label",dangerouslySetInnerHTML:{__html:e}})}function wt({price:e,buttonResetClasses:t,viewPriceDetail:n,finalLabelSize:a,finalPrice:l,finalPriceSize:r}){return e&&e.isFinalPrice&&l&&n?i().createElement("button",{className:`${t} w-100`,onClick:n,type:"button"},i().createElement("span",{className:De(["text-muted","d-block",a])},i().createElement(vt,{label:e.label})," "),i().createElement("strong",{className:De(["line-height-reset",r])},l)):null}function Nt({price:e,paymentLabelSize:t,paymentPrice:n,paymentPriceSize:a,handleHelpCircleIcon:l,pricingSummaryPaymentIntervalColor:r,pricingSummaryLoanLeaseHelpIconColor:s}){const o=(0,m.useLabels)();return e&&!e.isFinalPrice&&n?i().createElement("span",{className:"flex-grow-1"},i().createElement("span",{className:De(["text-muted","text-nowrap","d-block",t])},i().createElement(vt,{label:o.get(e.label)}),";",i().createElement("button",{className:"text-link line-height-reset help-icon",onClick:l,type:"button"},i().createElement("i",{className:De(["ddc-icon","ddc-icon-help-circle","d-inline-block","pl-1",s]),"aria-hidden":"true"}),i().createElement("span",{className:"sr-only"},o.get(dt)))),i().createElement("strong",{className:De(["line-height-reset",a])},n),i().createElement("span",{className:De(["ddc-font-size-small","d-inline","line-height-reset",r])},o.get(ct))):null}function St({label:e,labelFontSize:t,isCalculatePayment:n,viewPriceDetail:a,displayAsButton:l=!0}){const r=(0,m.useLabels)();let s=null;if(e){const o=De(["text-link","text-left","d-block","line-height-reset",t,...n?["calculate-payment-integrated","calculate-payment-scroll-up"]:[]]);s=l&&i().createElement("button",{onClick:n?null:a,type:"button",className:o},r.get(e))||i().createElement("span",{className:o},r.get(e))}return s}function Tt({dealerAddress:e,isFooter:t,displayInline:n}){const a=(0,m.useLabels)(),l=De(["final-price-disclaimer","ddc-font-size-xsmall","text-muted",n?"pl-3 font-weight-normal":"flex-fill w-100",t?"text-left summary-disclaimer":"text-right"]);let r="PLUS_TAXES_ASTERISK";["AB","BC","MB","ON","QC","SK"].includes(e.state)&&(r="PLUS_SALES_TAXES_ASTERISK");const s=n?i().createElement("span",{className:l},a.get(r)):i().createElement(i().Fragment,null,i().createElement("dt",{className:"sr-only"},a.get("FINAL_PRICE_DISCLAIMER")),i().createElement("dd",{className:l},a.get(r)));return"CA"===e.country?s:null}function It({summary:e=[],isMobile:t,viewPriceDetail:a,dealerAddress:l}){const{widgetName:r,windowId:s}=(0,m.useRequestData)(),o=(0,m.useLabels)(),{showStickySidebarLoanLease:c,finalPriceFontWeight:d,finalPriceClasses:u,priceLabelClasses:p,pricingSummaryPaymentIntervalColor:g,showCustomizePaymentsLink:h,pricingSummaryLoanLeaseHelpIconColor:f,pricingSummaryAlignItems:y}
1=(0,m.usePrefs)(),[b,E]=(0,n.useState)(!1),[v,w]=(0,n.useState)(null),N=e=>e===ot?o.get(ot):e,S=()=>{yt(r,s,!1),E(!1)},T=t?"ddc-font-size-base":"ddc-font-size-small",I=t?"ddc-font-size-xxlarge":"ddc-font-size-xlarge",C=t?"ddc-font-size-small":"ddc-font-size-xsmall",D=t?"ddc-font-size-xlarge":"ddc-font-size-large",P=e.length;let A=null;if(0===P)return null;if(P>1&&"true"===c){const t=$e(e),n=function(e=[],t=!1){return t?[]:e.filter(e=>"LOAN"===e.type||"LEASE"===e.type)}(e,Et);A=i().createElement("div",null,i().createElement(gt,{isModalVisible:b,handleClose:S,paymentInfo:v}),i().createElement("ul",{className:De(["pricing-summary","list-unstyled","d-flex","justify-items-between","mb-4",y])},i().createElement("li",{className:De([P<=2?"half-width":"third-width"," d-flex","flex-wrap","mr-4","summary-price"])},t.map(e=>i().createElement(wt,{price:e,viewPriceDetail:a,finalLabelSize:T,finalPriceSize:I,paymentLabelSize:C,key:e.type,buttonResetClasses:_e,finalPrice:N(e.value)})),i().createElement(St,{label:st,labelFontSize:C,isCalculatePayment:!1,viewPriceDetail:a})),i().createElement("li",{className:"d-flex flex-wrap flex-grow-1"},n.map(e=>i().createElement(Nt,{price:e,paymentLabelSize:C,paymentPriceSize:D,pricingSummaryPaymentIntervalColor:g,pricingSummaryLoanLeaseHelpIconColor:f,key:e.type,paymentPrice:N(e.value),handleHelpCircleIcon:()=>{return t=e,yt(r,s,!0),E(!0),void w(t);var t}})),"true"===h&&i().createElement(St,{label:"CUSTOMIZE_PAYMENTS",labelFontSize:C,isCalculatePayment:!0}))))}else if(e.find(e=>e.isFinalPrice)){const{label:t,value:n}=e.find(e=>e.isFinalPrice);A=i().createElement("dl",{className:"pricing-detail final-price line-height-condensed mb-4"},i().createElement("dt",{className:p||null},i().createElement("button",{className:_e,onClick:a,type:"button"},i().createElement("span",{dangerouslySetInnerHTML:{__html:t}}),i().createElement(St,{displayAsButton:!1,label:st,labelFontSize:C}))),i().createElement("dd",{className:De([d,I,u])},i().createElement("button",{className:_e,onClick:a,type:"button"},N(n))),i().createElement(Tt,{dealerAddress:l}))}return A}function Ct({summary:e,dealerAddress:n,viewPriceDetail:a,isMobile:l}){const r=He(document,".ddc-vehicle-pricing-summary"),s=i().createElement(It,{summary:e,viewPriceDetail:a,dealerAddress:n,isMobile:l});return r?t().createPortal(s,r):null}function Dt({summary:e,dealershipName:t,viewPriceDetail:n}){const a=(0,m.useLabels)(),l=e.find(e=>e.isFinalPrice);if(!l)return null;const r=qe(a.get("DEALERSHIP_NAME_PRICE"),{"<%=dealershipName%>":t});let s=l.value;return s===ot&&(s=a.get(ot)),i().createElement("div",{onClick:n,role:"button","aria-hidden":!0},i().createElement("ul",{className:"pricing-summary list-unstyled line-height-condensed mb-2"},i().createElement("li",{className:"text-muted"},i().createElement("span",{className:"d-block text-truncate"},r)),i().createElement("li",null,i().createElement("strong",{className:"pr-3"},s),i().createElement("span",{className:"text-link"},a.get("DETAILS")))))}vt.propTypes={label:re().string.isRequired},vt.displayName="LabelAsHTML",wt.propTypes={price:re().shape({type:re().string.isRequired,label:re().string.isRequired,value:re().number.isRequired,isFinalPrice:re().bool.isRequired}).isRequired,buttonResetClasses:re().string,viewPriceDetail:re().func.isRequired,finalLabelSize:re().string,finalPrice:re().string.isRequired,finalPriceSize:re().string},wt.defaultProps={buttonResetClasses:"",finalLabelSize:"",finalPriceSize:""},wt.displayName="PricingSummaryFinalPrice",Nt.propTypes={price:re().shape({type:re().string.isRequired,label:re().string.isRequired,value:re().number.isRequired,isFinalPrice:re().bool.isRequired}).isRequired,paymentLabelSize:re().string,paymentPrice:re().string.isRequired,paymentPriceSize:re().string,handleHelpCircleIcon:re().func.isRequired,pricingSummaryPaymentIntervalColor:re().string,pricingSummaryLoanLeaseHelpIconColor:re().string},Nt.defaultProps={paymentLabelSize:"",paymentPriceSize:"",pricingSummaryPaymentIntervalColor:"",pricingSummaryLoanLeaseHelpIconColor:""},Nt.displayName="PricingSummaryPayments",St.propTypes={label:re().str
1ing.isRequired,labelFontSize:re().string,isCalculatePayment:re().bool,viewPriceDetail:re().func},St.defaultProps={labelFontSize:"",isCalculatePayment:!1,viewPriceDetail:()=>{}},St.displayName="PricingSummaryLink",Tt.propTypes={dealerAddress:re().shape({state:re().string,country:re().string}),isFooter:re().bool,displayInline:re().bool},Tt.defaultProps={dealerAddress:{},isFooter:!1,displayInline:!1},Tt.displayName="CaDisclaimer",Je("ul.pricing-summary li.summary-price {\n  max-width: 40%;\n}\nul.pricing-summary li.half-width {\n  min-width: 50%;\n}\nul.pricing-summary li.third-width {\n  min-width: 33%;\n}\n\n.vdp-sidebar.responsive-content-default .ws-detailed-pricing ul.pricing-summary {\n  display: none !important;\n}"),It.displayName="PricingSummary",It.propTypes={summary:re().arrayOf(re().shape({type:re().string.isRequired,label:re().string.isRequired,value:re().string.isRequired})).isRequired,viewPriceDetail:re().func.isRequired,dealerAddress:re().shape({state:re().string,country:re().string}),isMobile:re().bool},It.defaultProps={dealerAddress:{},isMobile:!1},Ct.propTypes={summary:re().arrayOf(re().shape({type:re().string.isRequired,label:re().string.isRequired,value:re().number.isRequired})).isRequired,viewPriceDetail:re().func.isRequired,dealerAddress:re().shape({address1:re().string,address2:re().string,address3:re().string,city:re().string,state:re().string,postalCode:re().string,country:re().str
1ing}),isMobile:re().bool.isRequired},Ct.defaultProps={dealerAddress:{}},Ct.displayName="PricingSummaryPortal",Je(".mobile .ws-detailed-pricing ul.pricing-summary,\n.mobile .ws-detailed-pricing .final-price-disclaimer.summary-disclaimer {\n  display: none;\n}\n.mobile .fixed-vdp-footer .ws-detailed-pricing ul.pricing-summary,\n.mobile .fixed-vdp-footer .ws-detailed-pricing .final-price-disclaimer {\n  display: block;\n}"),Dt.propTypes={summary:re().arrayOf(re().shape({type:re().string.isRequired,label:re().string.isRequired,value:re().number.isRequired})).isRequired,dealershipName:re().string.isRequired,viewPriceDetail:re().func.isRequired},Dt.displayName="PricingSummaryFooter";class Pt extends i().Component{constructor(e){super(e),this.el=document.createElement("div")}componentWillUnmount(){this.containerEl&&this.containerEl.removeChild(this.el)}render(){this.containerEl=He(document,".ddc-detailed-pricing-footer"),this.containerEl&&this.containerEl.appendChild(this.el);const{dealerAddress:e,viewPriceDetail:n,summary:a,dealershipName:l}=this.props,r=i().createElement("div",null,i().createElement(Dt,{summary:a,viewPriceDetail:n,dealershipName:l}),i().createElement(Tt,{dealerAddress:e,isFooter:!0}));return this.containerEl?t().createPortal(r,this.el):r}}function At({summary:e,dealerAddress:t,dealershipName:n,hideStickyPricing:a}){const{widgetName:l,windowId:r,deviceType:s}=(0,m.useRequestData)(),o="MOBILE"===s.toUpperCase(),c=()=>{!function(e,t){ft({element:"Price details link",elementCTA:"Pricing Detail",result:"Scrolled to destination",widgetName:e,widgetId:t})}(l,r),(()=>{let e=document&&document.querySelector('[data-widget-id="template-navigation1"]'),t='[data-widget-id="vehicle-title1"]';o&&(e=document&&document.querySelector('[data-widget-id="template-navbar1"]'),t='[data-widget-id="detailed-pricing1"]');const n=e&&e.clientHeight||0;window&&window.DDC&&window.DDC.scrollToAnchor&&window.DDC.scrollToAnchor($(t),{heightAdj:n+66})})()};return o?Oe?i().createElement(i().Fragment,null,i().createElement(Ct,{summary:e,viewPriceDetail:c,dealerAddress:t,isMobile:o}),!a&&i().createElement(Pt,{summary:e,viewPriceDetail:c,dealerAddress:t,dealershipName:n})):null:a?null:i().createElement(i().Fragment,null,i().createElement(It,{summary:e,viewPriceDetail:c,dealerAddress:t,isMobile:o}))}function Rt({isMobile:e,summary:t,isScrollingSidebar:a,dealershipName:l}){const r=(0,m.useLabels)(),{paymentLabelColor:s,paymentLabelFontSize:o,paymentPriceFontWeight:c,paymentPriceFontSize:d,paymentPriceColor:u,paymentPriceClasses:p,hideButtonDecorationOnLoanLeaseHelpIcon:g,pricingDetailLoanLeaseHelpIconColor:h,paymentBoxPadding:f,paymentBoxBackground:y}=(0,m.usePrefs)(),[b,E]=(0,n.useState)(!1),[v,w]=(0,n.useState)(i().createElement("span",null)),[N,S]=(0,n.useState)(i().createElement("span",null)),T=(e=i().createElement("span",null),t=i().createElement("span",null))=>{E(!b),w(e),S(t)};let I=null;if(!a){const n={isMobile:e,showState:b,closeMethod:T,title:v,body:N};I=i().createElement(i().Fragment,null,(()=>{const e=["pricing-loan-lease list-unstyled d-flex mb-0",`px-${f} py-${f}`,y];return i().createElement("ul",{className:e.join(" ")},t.map((e,n)=>((e,t,n)=>{const{type:a,label:m,value:f}=e,y="LEASE"===a,b=y?it:nt,E=Ue(e),v=y?lt:at,w=[2===n?"two-item":"one-item",2===t?"border-left":null],N=i().createElement(ut,{placeholderValuesObj:E,disclaimerLabel:b,dealershipName:l}),S=i().createElement("i",{className:`ddc-icon ddc-icon-help-circle ddc-icon-size-small d-inline-block pl-1 ${h}`,"aria-hidden":"true"}),I="true"===g?"btn-no-decoration":"",C=i().createElement("span",{className:`d-block text-nowrap ${s} ${o}`},r.get(m),i().createElement("button",{className:`btn-link p-0 ${I}`,onClick:()=>T(r.get(v),N),type:"button","aria-label":r.get(dt)},S)),D=i().createElement("strong",{className:`line-height-reset ${c} ${d} ${u} ${p}`},f),P=i().createElement("span",{className:"ddc-font-size-small text-muted"},r.get("SLASH_MO"));return i().createElement("li",{className:`${w.filter(Boolean).join(" ")}`,key:`${m}`},C,i().createElement("span",null,D,P))})(e,n+1,t.length)))})(),i().createElement(mt,n))}return I}function _t({isLoanLeaseAvailable:e,isScrollingSidebar:t,isMobile:n}){const{paymentCalculatorButtonLabel:a,paymentCalculatorButtonClasse
1s:l,paymentCalculatorButtonIcon:r,paymentCalculatorButtonIconClasses:s,paymentBoxBackground:o,paymentBoxPadding:c}=(0,m.usePrefs)(),d=(0,m.useLabels)(),u=()=>{if(n){const e=We();if(e)return void e.publish("openDRTools","payment")}const e=document&&document.querySelector('[data-widget-id="template-navigation1"]'),t=e&&e.clientHeight||0;DDC&&DDC.scrollToAnchor&&DDC.scrollToAnchor($('[data-widget-id="digital-retailing-1"]'),{heightAdj:t+33})};return(()=>{let n=[`py-${c}`];if(!t){let t,i;e&&(t=`px-${c}`,i=o),n=["payment-calculator-wrapper",i,t,`pb-${c}`]}return i().createElement("div",null,i().createElement("div",{className:n.filter(Boolean).join(" ")},i().createElement("button",{className:`btn btn-${l} w-100`,onClick:u,type:"button"},i().createElement("i",{className:`ddc-icon ddc-icon-${r} ${s}`}),d.get(a))))})()}function Lt({retailPrice:e="$0",calcCashtrade:t="0%",calcTerm:n="0",calcRate:a="0",paymentPriceFontWeight:l}){const r=(0,m.useLabels)();let s="$0",o="$0";const c=((e="",t="",n="",i="")=>!(!e||"$0"===e||Number.isNaN(Number(e.replace(/[$,]/g,"")))||!t||Number.isNaN(Number(t.replace(/[%]/g,"")))||!n||Number.isNaN(Number(n))||!i||Number.isNaN(Number(i))))(e,t,n,a);return c&&(s=((e="",t="")=>{if(e){const n=Number(e.replace(/[$,]/g,""));let i=Number(t.replace(/[%]/g,""))/100*n;return i=!Number.isNaN(i)&&i>0?Math.round(i):0,ke.format(i).replace(/\D00(?=\D*$)/,"")}return"$0"})(e,t),o=((e="",t="",n="",i="")=>{const a=Number(e.replace(/[$,]/g,"")),l=Number(t.replace(/[$,]/g,"")),r=Number(n),s=Number(i),o=a-l,c=r/1200;let d=0;return d=c?(c+c/((1+c)**s-1))*o:o/s,d=!Number.isNaN(d)&&d>0?Math.round(d):0,ke.format(d).replace(/\D00(?=\D*$)/,"")})(e,s,a,n)),c?i().createElement(i().Fragment,null,i().createElement("dt",null,i().createElement("span",{className:"price-label"},r.get("ESTIMATED_PAYMENT"))),i().createElement("dd",null,i().createElement("span",{className:`price-value ${l}`},o),i().createElement("span",{className:"text-muted"},r.get(ct)),i().createElement("span",{className:"text-muted d-block ddc-font-size-xsmall"},`(${n} ${r.get("MO")} @ ${a}% ${r.get("A_P_R")}, ${s} ${r.get("DOWN")})`))):null}Pt.propTypes={summary:re().arrayOf(re().shape({type:re().string.isRequired,label:re().string.isRequired,value:re().number.isRequired})).isRequired,dealerAddress:re().shape({state:re().string,country:re().str
1ing}),viewPriceDetail:re().func.isRequired,dealershipName:re().string.isRequired},Pt.defaultProps={dealerAddress:{}},Pt.displayName="PricingSummaryFooterPortal",At.propTypes={summary:re().arrayOf(re().shape({type:re().string,label:re().string,value:re().string})),dealershipName:re().string.isRequired,dealerAddress:re().shape({address1:re().string,address2:re().string,address3:re().string,city:re().string,state:re().string,postalCode:re().string,country:re().string}),hideStickyPricing:re().bool},At.defaultProps={dealerAddress:{},summary:[],hideStickyPricing:!1},At.displayName="PricingSummaryContainer",Rt.propTypes={isMobile:re().bool.isRequired,summary:re().arrayOf(re().shape({type:re().string.isRequired,key:re().string,label:re().string.isRequired,value:re().number.isRequired})).isRequired,isScrollingSidebar:re().bool.isRequired,dealershipName:re().string.isRequired},Rt.displayName="PricingLoanLease",_t.propTypes={isLoanLeaseAvailable:re().bool.isRequired,isScrollingSidebar:re().bool.isRequired,isMobile:re().bool.isRequired},_t.displayName="accountInfo",Lt.propTypes={retailPrice:re().string.isRequired,calcCashtrade:re().string.isRequired,calcTerm:re().string.isRequired,calcRate:re().string.isRequired,paymentPriceFontWeight:re().string},Lt.defaultProps={paymentPriceFontWeight:"font-weight-bold"},Lt.displayName="EstMonthlyPayment";const kt="undefined"!=typeof window&&void 0!==window.DDC&&window.DDC.getSiteProperty&&"function"==typeof window.DDC.getSiteProperty,xt=e=>[...new Set(e)].filter(e=>e).join(" ")||null,Ot="default",Ft="responsive",Mt="undefined"!=typeof window&&void 0!==window.document,qt=({title:e,isOpen:t,onClose:a,children:l,onOpen:r,width:s})=>{const o=(0,n.useRef)(null),c=!((e,t=!1)=>{const[i,a]=(0,n.useState)(((e,t)=>void 0!==t?t:!!Mt&&window?.matchMedia(e).matches)(e,t));return(0,n.useEffect)(()=>{let t=!0;const n="function"==typeof window?.matchMedia?window.matchMedia(e):{matches:!window?.DDC?.client?.isMobile,addEventListener:()=>{},removeEventListener:()=>{}},i=()=>{t&&a(!!n.matches)};return n?.addEventListener("change",i),a(n.matches),()=>{t=!1,n?.removeEventListener("change",i)}},[e]),i})("(min-width: 992px)",!0),d=s===Ft,u=xt(["my-0 mx-auto",!c&&"center-block-vertical"]),m=xt(["wsm-common-modal",d&&"responsive",c&&"dock-right"]);return i().createElement(ae.Modal,{show:t,onHide:a,onShow:r,className:m,onExited:()=>{window?.DDC?.pubsub?.publish("wsm-common-modal/closed")},onEntered:()=>{window?.DDC?.pubsub?.publish("wsm-common-modal/showed");const e=document.querySelector(".wsm-common-modal");e&&((e=>{const t=e.closest("[aria-hidden]");t&&t.removeAttribute("aria-hidden")})(e),o?.current?.focus())},dialogClassName:u,"aria-modal":"true","aria-labelledby":"wsm-common-modal-title",backdropClassName:"wsm-modal-backdrop"},i().createElement(ae.Modal.Header,{className:"px-4 py-4 sticky-top"},i().createElement(ae.Modal.Title,{componentClass:"h2",className:"text-lg-center font-weight-bold ddc-font-size-large"},i().createElement("button",{type:"button","aria-label":"Close",className:"close mt-2",ref:o,onClick:a},i().createElement("i",{className:"ddc-icon ddc-icon-remove2 ddc-icon-size-large","aria-hidden":"true"})),i().createElement("span",{id:"wsm-common-modal-title"},e))),i().createElement(ae.Modal.Body,{className:"overflow-auto pb-6 px-4 p-lg-6 mx-lg-6 mb-lg-6"},l))};qt.propTypes={isOpen:re().bool.isRequired,title:re().oneOfType([re().string,re().element]).isRequired,onClose:re().func.isRequired,onOpen:re().func,children:re().node.isRequired,width:re().oneOf([Ot,Ft])},qt.defaultProps={onOpen:()=>{},width:Ot},qt.displayName="CommonModal",re().number.isRequired,re().shape({title:re().string.isRequired,details:re().string.isRequired,isPicked:re().bool}).isRequired,re().shape({mainDetail:re().string,subContent:re().arrayOf(re().shape({title:re().string.isRequired,details:re().string.isRequired,isPicked:re().bool})).isRequired,subText:re().string.isRequired,learnMoreLink:re().string,facetId:re().string,evInfoPageHref:re().string}).isRequired,re().shape({details:re().string.isRequired,subText:re().string.isRequired,learnMoreLink:re().str
1ing,facetId:re().string,evInfoPageHref:re().string}).isRequired,re().shape({}).isRequired,re().bool.isRequired,re().bool.isRequired,re().func.isRequired,re().shape({}).isRequired,re().string.isRequired,re().bool.isRequired;const{entries:$t,setPrototypeOf:zt,isFrozen:Ht,getPrototypeOf:Ut,getOwnPropertyDescriptor:Bt}=Object;let{freeze:jt,seal:Wt,create:Vt}=Object,{apply:Gt,construct:Kt}="undefined"!=typeof Reflect&&Reflect;jt||(jt=function(e){return e}),Wt||(Wt=function(e){return e}),Gt||(Gt=function(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a];return e.apply(t,i)}),Kt||(Kt=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return new e(...n)});const Yt=yn(Array.prototype.forEach),Xt=yn(Array.prototype.lastIndexOf),Jt=yn(Array.prototype.pop),Qt=yn(Array.prototype.push),Zt=yn(Array.prototype.splice),en=Array.isArray,tn=yn(String.prototype.toLowerCase),nn=yn(String.prototype.toString),an=yn(String.prototype.match),ln=yn(String.prototype.replace),rn=yn(String.prototype.indexOf),sn=yn(String.prototype.trim),on=yn(Number.prototype.toString),cn=yn(Boolean.prototype.toString),dn="undefined"==typeof BigInt?null:yn(BigInt.prototype.toString),un="undefined"==typeof Symbol?null:yn(Symbol.prototype.toString),mn=yn(Object.prototype.hasOwnProperty),pn=yn(Object.prototype.toString),gn=yn(RegExp.prototype.test),hn=(fn=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Kt(fn,t)});var fn;function yn(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];return Gt(e,t,i)}}function bn(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:tn;if(zt&&zt(e,null),!en(t))return e;let i=t.length;for(;i--;){let a=t[i];if("string"==typeof a){const e=n(a);e!==a&&(Ht(t)||(t[i]=e),a=e)}e[a]=!0}return e}function En(e){for(let t=0;t<e.length;t++)mn(e,t)||(e[t]=null);return e}function vn(e){const t=Vt(null);for(const[n,i]of $t(e))mn(e,n)&&(en(i)?t[n]=En(i):i&&"object"==typeof i&&i.constructor===Object?t[n]=vn(i):t[n]=i);return t}function wn(e,t){for(;null!==e;
1){const n=Bt(e,t);if(n){if(n.get)return yn(n.get);if("function"==typeof n.value)return yn(n.value)}e=Ut(e)}return function(){return null}}const Nn=jt(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Sn=jt(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Tn=jt(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),In=jt(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Cn=jt(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Dn=jt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Pn=jt(["#text"]),An=jt(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Rn=jt(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),_n=jt(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","
1subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Ln=jt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),kn=Wt(/\{\{[\w\W]*|[\w\W]*\}\}/gm),xn=Wt(/<%[\w\W]*|[\w\W]*%>/gm),On=Wt(/\$\{[\w\W]*/gm),Fn=Wt(/^data-[\-\w.\u00B7-\uFFFF]+$/),Mn=Wt(/^aria-[\-\w]+$/),qn=Wt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),$n=Wt(/^(?:\w+script|data):/i),zn=Wt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Hn=Wt(/^html$/i),Un=Wt(/^[a-z][.\w]*(-[.\w]+)+$/i);var Bn=Object.freeze({__proto__:null,ARIA_ATTR:Mn,ATTR_WHITESPACE:zn,CUSTOM_ELEMENT:Un,DATA_ATTR:Fn,DOCTYPE_NAME:Hn,ERB_EXPR:xn,IS_ALLOWED_URI:qn,IS_SCRIPT_OR_DATA:$n,MUSTACHE_EXPR:kn,TMPLIT_EXPR:On});function jn({data:e}){const[t,a]=(0,n.useState)(!1),l=(0,m.useLabels)(),r=l.get("LEASE"),s=l.get("FINANCE"),o=e?.lease?.optIn,c=e?.finance?.optIn,d=e?.lease?.showContactDealer?l.get("CONTACT_DEALER"):`$${e?.lease?.payment}${l.get("SLASH_MO")}`,u=e?.finance?.showContactDealer?l.get("CONTACT_DEALER"):`$${e?.finance?.payment}${l.get("SLASH_MO")}`,p=e?.finance?.marketingLabel,g=e?.lease?.marketingLabel;if(!o&&!c)return null;const h=i().createElement(i().Fragment,null,o&&g&&i().createElement("div",null,i().createElement("h3",{className:"h2"},r),i().createElement("p",{className:"ddc-font-size-small"},g)),c&&p&&i().createElement("div",null,i().createElement("h3",{className:"h2"},s),i().createElement("p",{className:"ddc-font-size-small"},p)));return i().createElement(i().Fragment,null,o&&i().createElement(i().Fragment,null,i().createElement("dt",null,i().createElement("span",{className:"price-label"},r)),i().createElement("dd",null,i().createElement("span",{className:"price-value"},d))),c&&i().createElement(i().Fragment,null,i().createElement("dt",null,i().createElement("span",{className:"price-label"},s)),i().createElement("dd",null,i().createElement("span",{className:"price-value"},u))),(g||p)&&i().createElement("dt",null,i().createElement("button",{type:"button",className:"p-0 text-decoration-underline text-link",onClick:()=>{a(!0)},"aria-label":l.get("DETAILS_ABOUT_PAYMENTS")},l.get("DETAILS"))),i().createElement(qt,{title:l.get("FINANCE_AND_LEASE_DETAILS"),onClose:()=>{a(!1)},isOpen:t},h))}function Wn({accountId:e,accountInfo:t,condition:a,dealerOptions:l,fetchDealerOptionsCallback:r,isLoadingDealerOptions:s,dealerFees:o,fetchDealerFeesCallback:c,isLoadingDealerFees:d,incentives:u,isDisplayingEPrice:p,isGridLayout:g,isScrollingSidebar:h,layout:f,pricing:y,vehicleAccountId:b,vehicleId:E,vehicleData:v,hidePricingSummary:w,gmPayments:N=null,gmPaymentsError:S,isLoadingGMPayments:T}){const[I,C]=(0,n.useState)(!1),[D,P]=(0,n.useState)(null),A=(0,m.useLabels)(),[R,_]=(0,n.use
1State)("dPrice"),{calcCashtrade:L,calcRate:k,calcTerm:x,paymentCalculatorButtonDisplayCondition:O,paymentPriceFontWeight:F,showDealerOptions:M,showDealerFees:q,showEstimatePayment:$,showLoanLeasePricing:z,showMSRPDisclaimerHyperlink:H="false",showOnlyMSRPForSharedInventory:U,hideStickyPricing:B,conditionalOffersTitle:j,conditionalOffersTitleFontSize:W,showGMPayments:V}=(0,m.usePrefs)(),G=(0,m.useSitemap)(),{deviceType:K,widgetName:Y,windowId:X}=(0,m.useRequestData)(),{ePrice:J,lease:Q={},loan:Z={},retailPrice:ee=""}=y,te={...v,condition:a,pricing:y};(0,n.useEffect)(()=>{p&&J&&DDC&&je(DDC.userProfile)&&_("ePrice")}),(0,n.useEffect)(()=>{if("ePrice"===R){const e=We();if(e){const{ePriceValue:t,ePriceDifference:n}=ze(y[R]);e.publish("instant-eprice.show-for-accelerate",{ePriceDifference:n,yourEPrice:t}),e.publishDelayed("instant-eprice.show-for-mywallet",{ePriceDifference:n,yourEPrice:t,uuid:E})}}},[R]);let ne=y[R];const ie=$e(ne),ae=ie[0]&&ie[0].value,le=[{...Z,type:"LOAN"},{...Q,type:"LEASE"}],re=[...le,{...ie[0]}],oe=((e={})=>({isFinalPrice:!0,type:"UNKNOWN",label:"PRICE",value:Pe,...e}))(),ce=(e=>{const t={};return e&&Object.keys(e).forEach(n=>{n.replace(/\[|]|\s/gm,"").split(",").forEach(i=>{t[i]=e[n]})}),t})(u),de="MOBILE"===K,ue=f.toLowerCase(),me=("withFees"===V||"withoutFees"===V)&&N&&!T&&!S;"true"===U&&e!==b&&(ne=((e=[],t="")=>e.filter(e=>e.value===t))(ne,ee));const pe=(e=null)=>{e&&!I&&ce[e]?(((e,t,n)=>{se(e,"Widget name"),se(t,"Widget id");if("undefined"!=typeof window){const{DDC:i={}}=window,a={action:"clicked",element:void 0,elementCTA:void 0,event:"widgetUserEvent",fieldValue:void 0,formEventId:void 0,formId:void 0,nonInteractive:!1,sourceData:void 0,value:void 0,widgetId:t,widgetName:e,widgetState:"default"};i.fireTrackingEvent&&i.fireTrackingEvent({result:n?.result?n?.result:void 0,...a,...n}),i.fireTrackingEvent}})(Y,X,{element:"Details button",result:"Open pricing details dialog",widgetState:"Pricing dialog"}),P({[e]:[{...ce[e],key:e}]}),C(!0)):(P(null),C(!1))},ge=a?(he=a)?he.normalize("NFD").replace(/\s/g,"-").replace(/[\u0300-\u036f]/g,"").replace("'","").toLowerCase():"":"NEW";var he;const fe=ge?`inv-type-${ge}`:"";let ye=null;Object.keys(ce).length>0&&D&&(ye=i().createElement(Ce,{isOpen:I,isMobile:de,onModalClose:pe,account:t,newListingPath:G.get("INVENTORY_LISTING_DEFAULT_AUTO_NEW"),usedListingPath:G.get("INVENTORY_LISTING_DEFAULT_AUTO_USED"),title:A.get("CONDITIONAL_SPECIAL"),subTitle:A.get("FIND_OUT_IF_YOU_QUALIFY_FOR_A_SPECIAL"),isGrouping:!1,vehicleData:te,groupIncentive:D}));const be=e=>e&&e.length>0?i().createElement(i().Fragment,null,ye,e.map((n,a)=>{const u=!a,m=e.length-a,p=`price-item-${n.typeClass?n.typeClass.toLowerCase():"none"}-${m}`,h="true"===H&&"msrp"===n.typeClass,f="true"===M&&"+"===n.type&&"ABCRule"===n.typeClass,y="true"===q&&"totalFees"===n.typeClass;return i().createElement(tt,{accountInfo:t,conditionClassName:fe,isFirstItem:u,isGridLayout:g,isMobile:de,item:n,layoutClassName:ue,showHyperlink:h,showOptionsToggle:f,stackType:R,vehicleCondition:ge,vehicleId:E,fetchDealerOptionsCallback:r,dealerOptions:l,isLoadingDealerOptions:s,showFeesToggle:y,fetchDealerFeesCallback:c,dealerFees:o,isLoadingDealerFees:d,incentives:ce,handleDetailClick:pe,key:p,dataKey:p})})):i().createElement(tt,{item:oe,stackType:R,incentives:{},isMobile:de,isGridLayout:g,vehicleCondition:ge,conditionClassName:fe,layoutClassName:ue,accountInfo:t,vehicleId:E,isFirstItem:!0}),Ee=Z&&Z.value||Q&&Q.value,ve="true"===B;let we=null;w||(we=f===Ae?i().createElement(At,{summary:re,dealerAddress:t.address,dealershipName:t.name,hideStickyPricing:ve}):i().createElement(i().Fragment,null,Ee&&!Et&&i().createElement(pt,{loan:Z,lease:Q,isMobile:de,accountInfo:t,paymentPriceFontWeight:F}),!Ee&&!Et&&"true"===$&&i().createElement(Lt,{retailPrice:ae,calcCashtrade:L,calcTerm:x,calcRate:k,paymentPriceFontWeight:F})));let Ne=!1;kt&&(Ne=window.DDC.getSiteProperty(O));let Se=null;f===Ae&&le.length>0&&"true"===z&&Z&&Z.value&&Q&&Q.value&&(Se=i().createElement(Rt,{summary:le,isMobile:de,isScrollingSidebar:h,dealershipName:t.name}));let Te=null;f===Ae&&Ne&&(Te=i().createElement(_t,{isLoanLeaseAvailable:le.length>0&&"true"===z,isScrollingSidebar:h,isMobile:de}));let Ie=null;const Re=ne&&ne.filter(e=>e.value);Re&&Re.filter(e=>e.isFinalPrice).length>0&&(Ie=i().createElement(Tt,{dealerAddress:t.address,key:`${E}-ca-disclaimer`}));const _e=(Re??[]).findIndex(e=>"SICCI"===e.type);if(j&&"BLANK"!==j&&-1!==_e){const e=Re.slice(0,_e),t=Re.slice(_e),n=e&&e.length>0,a=t&&t.length>0,l=De(["conditional-offers-title","mt-2","mb-3","w-100",W]);return i().createElement(i().Fragment,null,i().createElement(Ve,{className:De(["mb-0",fe])},be(e),Ie),i().createElement("h3",{className:De([l])},A.get(j)),i().createElement(Ve,{className:De(["mb-4",fe])},be(t),Ie,f!==Ae&&(n||a)&&we,me&&i().createElement(jn,{data:N})),Se,Te,f===Ae&&(n||a)&&we)}{const e=Re&&Re.length>0;return i().createElement(i().Fragment,null,i().createElement(Ve,{className:De(["mb-4",fe])},be(Re),Ie,f!==Ae&&e&&we,me&&i().createElement(jn,{data:N})),Se,Te,f===Ae&&e&&we)}}function Vn({buttonLabel:e,buttonSize:t,vehicleId:n,vehicleCategory:a,pageAlias:l}){const r=(0,m.useLabels)(),s=(0,m.useSitemap)(),{instantEpriceNoDiscountFormAlias:o}=(0,m.usePrefs)(),c=!!o,d=r.get("INSTANT_EPRICE_CHECK_AVAILABILITY"),u=`${s.get(o)}?itemId=${n}&vehicleId=${n}&category=${a}&parentPageAlias=${l}`,p={rel:"nofollow",className:De(["btn-block","btn","btn-primary","instant-eprice","dialog",t&&"default"!==t?`btn-${t}`:null]),"data-width":"600px"},g=i().createElement(ae.Tooltip,{className:"tooltip",id:"eprice-tooltip"},r.get("INSTANT_EPRICE_DISABLED_POPOVER")),h=i().createElement("div",{key:"epriceButtonContainer",className:"instantEPriceButton mb-3"},i().createElement("button",Ge({},p,{type:"button",disabled:!0}),e));return c?i().createElement("div",{key:"epriceButtonContainer",className:"instantEPriceButton mb-3"},i().createElement("button",Ge({},p,{type:"button","data-vehicle-uuid":n,"data-href":u}),d)):i().createElement("div",{className:"disabled"},"undefined"!=typeof window&&window.document?i().createElement(ae.OverlayTrigger,{placement:"top",overlay:g,trigger:["hover","click"]},h):h)}function Gn({isModalVisible:e,loadingUserProfile:t,hasUserProfileData:a,ePriceDetail:r,handleClick:s,buttonLabel:o,buttonStyle:c,buttonSize:d,vehicleId:u,vehicleCategory:m,vehicleTrackingData:p,pageAlias:g,disabled:h,preventMultipleEpriceLeads:f,ePriceFontWeight:y,userProfile:b}){if(!o)return null;const{labels:E}=(0,l.useSelector)(e=>e),{widgetName:v,windowId:w}=(0,l.useSelector)(e=>
1e.requestData),[N,S]=(0,n.useState)(null),T=(0,n.useCallback)(e=>{const t=We();if(t&&e){const{ePriceValue:n,ePriceDifference:i}=ze(e);t.publish("instant-eprice.show",{ePriceDifference:i,yourEPrice:n})}},[]);(0,n.useEffect)(()=>{const e=We();e&&N&&e.subscribe("instant-eprice.complete",()=>{T(N)})},[N]);const I=`/instant-eprice-form.htm?itemId=${u}&vehicleId=${u}&category=${m}&parentPageAlias=${g}&vcdaInstantEPrice`,C={className:De(["btn-block","btn",`btn-${c}`,d&&"default"!==d?`btn-${d}`:null,"instant-eprice",a?"slidein-disabled":"dialog",e?"d-none":null]),"data-width":"600px"};return h?i().createElement(Vn,{buttonLabel:o,buttonStyle:c,buttonSize:d,vehicleId:u,vehicleCategory:m,pageAlias:g}):i().createElement("div",{key:"epriceButtonContainer",className:"instantEPriceButton mb-3"},i().createElement("button",Ge({},C,{type:"button",onClick:()=>{const{DDC:e}=window;e&&(a?(e.userProfileController.saveInstantEpriceVehicle(null,u),T(r)):(e.currentVLPDialog={instantEpriceUrl:I,instantEpriceVehicleId:u},S(r)));try{s(u)}catch(e){throw new Error("Unable to handle click.")}finally{!a||f&&window.DDC.userProfile.ePriceVehicles&&window.DDC.userProfileController.hasUserContactData()||window.DDC.userProfileController.sendLeadForm(I)}!function({buttonLabel:e,widgetName:t,widgetId:n,openModal:i,vehicleTrackingData:a}){ft({element:"Instant ePrice button",elementCTA:e,result:i?"Opened dialog":"ePrice diplayed",widgetName:t,widgetId:n,...a&&{vehicle:{bodyStyle:a.bodyStyle,condition:a.condition,listingType:a.priorityType,make:a.make,model:a.model,price:a?.pricing?.finalPrice,stockNumber:a.stockNumber,title:a.title,trim:a.trim,type:a.type,uuid:a.uuid,vin:a.vin,year:a.year}}})}({buttonLabel:o,widgetName:v,windowId:w,openModal:!1,vehicleTrackingData:p})},"data-vehicle-uuid":u,"data-name":"instant-price-dialog","data-href":a&&!e||b&&Object.keys(b).length?null:I}),t&&i().createElement(i().Fragment,null,i().createElement("i",{className:"mr-3 ddc-icon ddc-icon-loading ddc-icon-animate-spin","aria-hidden":"true"}),i().createElement("span",{className:"sr-only"},E.LOADING)),o),i().createElement("div",{key:"label",className:De(["instanteprice-pending",y,"text-success","text-center",e?null:"d-none"])},E.EPRICE_PENDING))}function Kn({accountId:e,buttonSize:t,buttonStyle:a,ePriceFontWeight:l,instantEpricePreventMultipleEpriceLeads:r,instantEpriceShowAllAfterLeadSubmit:s,pageAlias:o,pricing:c,showEPrice:d,showInstantEpriceForSharedInventory:u,userProfile:p,vehicleAccountId:g,vehicleId:h,vehicleTrackingData:f}
1){const[y,b]=(0,n.useState)(!1),[E,v]=(0,n.useState)(!0),[w,N]=(0,n.useState)(!1),[S,T]=(0,n.useState)(null),[I,C]=(0,n.useState)(Re),{deviceType:D}=(0,m.useRequestData)(),P="MOBILE"===D,A=We(),{ePriceStatus:R,ePrice:_,ePriceButtonLabel:L}=c,k=R&&"DISABLED"===R,x=R&&"NON_APPLICABLE"!==R,O=e!==g,F=!!kt&&window.DDC.getSiteProperty("disableInstantEpriceButton"),M=!("false"===u&&O||F),q=(e={})=>{je(e)?(N(void 0!==e.ePriceVehicles),A&&A.publish("instant-ePrice-completed")):(N(!1),d("none"))},$=(e={})=>{q(e)},z=()=>{const{DDC:e}=window,t="instant-price-dialog",n=e.dialogs&&e.dialogs[t]&&null!==e.dialogs[t]&&e.dialogs[t].closest(".ui-dialog");n&&n.dialog("destroy").remove(),e.dialogs[t]=null};return(0,n.useEffect)(()=>{const{DDC:e,document:t}=window;t.getElementsByTagName("html")[0].className.includes(Ae.toLowerCase())&&C(Ae),e&&(A&&A.subscribe("userProfile-updated",()=>$(e.userProfile)),e.userProfile&&($(e.userProfile),v(!1)),P&&e.mobile.slidein&&e.mobile.slidein.init(),e.pubsub.subscribe("wiapi-unlock-eprice",e=>{(e=>{e===h&&(d(e),setTimeout(()=>{window.DDC.userProfileController.saveProfile({itemUUID:e},null,!1)},0))})(e)}))},[]),(0,n.useEffect)(()=>{A&&S&&y&&(A.subscribe("instant-eprice.complete",e=>{(I===Ae||I===Re&&h===e)&&d(S),$(window.DDC.userProfile),T(null)}),A.subscribe("instant-eprice.cancel",()=>{b(!1),z()}),A.subscribe("instant-eprice.close",()=>{z()}))},[y,S]),(0,n.useEffect)(()=>{if(je(p)){const{ePriceVehicles:e}=p;"true"!==s||y?e&&e.find(e=>e.itemUUID===h)&&!y&&d(h):d(h)}},[p]),x&&M?i().createElement(Gn,{hasUserProfileData:w,loadingUserProfile:E,isModalVisible:y,ePriceDetail:_,buttonLabel:L,buttonStyle:a,buttonSize:t,handleClick:e=>{const{DDC:t}=window;let n=!1;return!w&&je(t.userProfile)?(q(t.userProfile),d(e)):w?d(e):((e=>{b(!0),T(e)})(e),n=!0),n},vehicleId:h,vehicleCategory:"AUTO",vehicleTrackingData:f,pageAlias:o,disabled:k,preventMultipleEpriceLeads:"true"===r,ePriceFontWeight:l,userProfile:p}):null}function Yn({account:e,isMobile:t,isGridLayout:n,pricing:a}){const{showTitlePriceLabel:l}=(0,m.usePrefs)();return"PLEASE_CALL"===a.label?null:i().createElement(i().Fragment,null,"true"===l&&i().createElement("small",{className:"d-block"},a.label),a.value,(t||n)&&i().createElement(Tt,{dealerAddress:e.address}))}!function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window;const n=t=>e(t);if(n.version="3.4.2",n.removed=[],!t||!t.document||9!==t.document.nodeType||!t.Element)return n.isSupported=!1,n;let{document:i}=t;const a=i,l=a.currentScript,{DocumentFragment:r,HTMLTemplateElement:s,Node:o,Element:c,NodeFilter:d,NamedNodeMap:u=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:m,DOMParser:p,trustedTypes:g}=t,h=c.prototype,f=wn(h,"cloneNode"),y=wn(h,"remove"),b=wn(h,"nextSibling"),E=wn(h,"childNodes"),v=wn(h,"parentNode");if("function"==typeof s){const e=i.createElement("template");e.content&&e.content.ownerDocument&&(i=e.content.ownerDocument)}let w,N="";const{implementation:S,createNodeIterator:T,createDocumentFragment:I,getElementsByTagName:C}=i,{importNode:D}=a;let P={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof $t&&"function"==typeof v&&S&&void 0!==S.createHTMLDocument;const{MUSTACHE_EXPR:A,ERB_EXPR:R,TMPLIT_EXPR:_,DATA_ATTR:L,ARIA_ATTR:k,IS_SCRIPT_OR_DATA:x,ATTR_WHITESPACE:O,CUSTOM_ELEMENT:F}=Bn;let{IS_ALLOWED_URI:M}=Bn,q=null;const $=bn({},[...Nn,...Sn,...Tn,...Cn,...Pn]);let z=null;const H=bn({},[...An,...Rn,..._n,...Ln]);let U=Object.seal(Vt(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),B=null,j=null;const W=Object.seal(Vt(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let V=!0,G=!0,K=!1,Y=!0,X=!1,J=!0,Q=!1,Z=!1,ee=!1,te=!1,ne=!1,ie=!1,ae=!0,le=!1;const re="user-content-";let se=!0,oe=!1,ce={},de=null;const ue=bn({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let me=null;const pe=bn({},["audio","video","img","source","image","track"]);let ge=null;const he=bn({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),fe="http://www.w3.org/1998/Math/MathML",ye="http://www.w3.org/2000/svg",be="http://www.w3.org/1999/xhtml";let Ee=be,ve=!1,we=null;const Ne=bn({},[fe,ye,be],nn);let Se=bn({},["mi","mo","mn","ms","mtext"]),Te=bn({},["annotation-xml"]);const Ie=bn({}
vendor: 3,987 bytes, line 1
1,["title","style","font","a","script"]);let Ce=null;const De=["application/xhtml+xml","text/html"];let Pe=null,Ae=null;const Re=i.createElement("form"),_e=function(e){return e instanceof RegExp||e instanceof Function},Le=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(Ae&&Ae===e)return;e&&"object"==typeof e||(e={}),e=vn(e),Ce=-1===De.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Pe="application/xhtml+xml"===Ce?nn:tn,q=mn(e,"ALLOWED_TAGS")&&en(e.ALLOWED_TAGS)?bn({},e.ALLOWED_TAGS,Pe):$,z=mn(e,"ALLOWED_ATTR")&&en(e.ALLOWED_ATTR)?bn({},e.ALLOWED_ATTR,Pe):H,we=mn(e,"ALLOWED_NAMESPACES")&&en(e.ALLOWED_NAMESPACES)?bn({},e.ALLOWED_NAMESPACES,nn):Ne,ge=mn(e,"ADD_URI_SAFE_ATTR")&&en(e.ADD_URI_SAFE_ATTR)?bn(vn(he),e.ADD_URI_SAFE_ATTR,Pe):he,me=mn(e,"ADD_DATA_URI_TAGS")&&en(e.ADD_DATA_URI_TAGS)?bn(vn(pe),e.ADD_DATA_URI_TAGS,Pe):pe,de=mn(e,"FORBID_CONTENTS")&&en(e.FORBID_CONTENTS)?bn({},e.FORBID_CONTENTS,Pe):ue,B=mn(e,"FORBID_TAGS")&&en(e.FORBID_TAGS)?bn({},e.FORBID_TAGS,Pe):vn({}),j=mn(e,"FORBID_ATTR")&&en(e.FORBID_ATTR)?bn({},e.FORBID_ATTR,Pe):vn({}),ce=!!mn(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?vn(e.USE_PROFILES):e.USE_PROFILES),V=!1!==e.ALLOW_ARIA_ATTR,G=!1!==e.ALLOW_DATA_ATTR,K=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Y=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,X=e.SAFE_FOR_TEMPLATES||!1,J=!1!==e.SAFE_FOR_XML,Q=e.WHOLE_DOCUMENT||!1,te=e.RETURN_DOM||!1,ne=e.RETURN_DOM_FRAGMENT||!1,ie=e.RETURN_TRUSTED_TYPE||!1,ee=e.FORCE_BODY||!1,ae=!1!==e.SANITIZE_DOM,le=e.SANITIZE_NAMED_PROPS||!1,se=!1!==e.KEEP_CONTENT,oe=e.IN_PLACE||!1,M=function(e){try{return gn(e,""),!0}catch(e){return!1}}(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:qn,Ee="string"==typeof e.NAMESPACE?e.NAMESPACE:be,Se=mn(e,"MATHML_TEXT_INTEGRATION_POINTS")&&e.MATHML_TEXT_INTEGRATION_POINTS&&"object"==typeof e.MATHML_TEXT_INTEGRATION_POINTS?vn(e.MATHML_TEXT_INTEGRATION_POINTS):bn({},["mi","mo","mn","ms","mtext"]),Te=mn(e,"HTML_INTEGRATION_POINTS")&&e.HTML_INTEGRATION_POINTS&&"object"==typeof e.HTML_INTEGRATION_POINTS?vn(e.HTML_INTEGRATION_POINTS):bn({},["annotation-xml"]);const t=mn(e,"CUSTOM_ELEMENT_HANDLING")&&e.CUSTOM_ELEMENT_HANDLING&&"object"==typeof e.CUSTOM_ELEMENT_HANDLING?vn(e.CUSTOM_ELEMENT_HANDLING):Vt(null);if(U=Vt(null),mn(t,"tagNameCheck")&&_e(t.tagNameCheck)&&(U.tagNameCheck=t.tagNameCheck),mn(t,"attributeNameCheck")&&_e(t.attributeNameCheck)&&(U.attributeNameCheck=t.attributeNameCheck),mn(t,"allowCustomizedBuiltInElements")&&"boolean"==typeof t.allowCustomizedBuiltInElements&&(U.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),X&&(G=!1),ne&&(te=!0),ce&&(q=bn({},Pn),z=Vt(null),!0===ce.html&&(bn(q,Nn),bn(z,An)),!0===ce.svg&&(bn(q,Sn),bn(z,Rn),bn(z,Ln)),!0===ce.svgFilters&&(bn(q,Tn),bn(z,Rn),bn(z,Ln)),!0===ce.mathMl&&(bn(q,Cn),bn(z,_n),bn(z,Ln))),W.tagCheck=null,W.attributeCheck=null,mn(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?W.tagCheck=e.ADD_TAGS:en(e.ADD_TAGS)&&(q===$&&(q=vn(q)),bn(q,e.ADD_TAGS,Pe))),mn(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?W.attributeCheck=e.ADD_ATTR:en(e.ADD_ATTR)&&(z===H&&(z=vn(z)),bn(z,e.ADD_ATTR,Pe))),mn(e,"ADD_URI_SAFE_ATTR")&&en(e.ADD_URI_SAFE_ATTR)&&bn(ge,e.ADD_URI_SAFE_ATTR,Pe),mn(e,"FORBID_CONTENTS")&&en(e.FORBID_CONTENTS)&&(de===ue&&(de=vn(de)),bn(de,e.FORBID_CONTENTS,Pe)),mn(e,"ADD_FORBID_CONTENTS")&&en(e.ADD_FORBID_CONTENTS)&&(de===ue&&(de=vn(de)),bn(de,e.ADD_FORBID_CONTENTS,Pe)),se&&(q["#text"]=!0),Q&&bn(q,["html","head","body"]),q.table&&(bn(q,["tbody"]),delete B.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw hn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw hn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=e.TRUSTED_TYPES_POLICY,N=w.createHTML("")}else void 0===w&&(w=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;
vendor: 3,422 bytes, line 1
1const i="data-tt-policy-suffix";t&&t.hasAttribute(i)&&(n=t.getAttribute(i));const a="dompurify"+(n?"#"+n:"");try{return e.createPolicy(a,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+a+" could not be created."),null}}(g,l)),null!==w&&"string"==typeof N&&(N=w.createHTML(""));jt&&jt(e),Ae=e},ke=bn({},[...Sn,...Tn,...In]),xe=bn({},[...Cn,...Dn]),Oe=function(e){Qt(n.removed,{element:e});try{v(e).removeChild(e)}catch(t){y(e)}},Fe=function(e,t){try{Qt(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){Qt(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(te||ne)try{Oe(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Me=function(e){let t=null,n=null;if(ee)e="<remove></remove>"+e;else{const t=an(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===Ce&&Ee===be&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const a=w?w.createHTML(e):e;if(Ee===be)try{t=(new p).parseFromString(a,Ce)}catch(e){}if(!t||!t.documentElement){t=S.createDocument(Ee,"template",null);try{t.documentElement.innerHTML=ve?N:a}catch(e){}}const l=t.body||t.documentElement;return e&&n&&l.insertBefore(i.createTextNode(n),l.childNodes[0]||null),Ee===be?C.call(t,Q?"html":"body")[0]:Q?t.documentElement:l},qe=function(e){return T.call(e.ownerDocument||e,e,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},$e=function(e){return e instanceof m&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof u)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},ze=function(e){return"function"==typeof o&&e instanceof o};function He(e,t,i){Yt(e,e=>{e.call(n,t,i,Ae)})}const Ue=function(e){let t=null;if(He(P.beforeSanitizeElements,e,null),$e(e))return Oe(e),!0;const i=Pe(e.nodeName);if(He(P.uponSanitizeElement,e,{tagName:i,allowedTags:q}),J&&e.hasChildNodes()&&!ze(e.firstElementChild)&&gn(/<[/\w!]/g,e.innerHTML)&&gn(/<[/\w!]/g,e.textContent))return Oe(e),!0;if(J&&e.namespaceURI===be&&"style"===i&&ze(e.firstElementChild))return Oe(e),!0;if(7===e.nodeType)return Oe(e),!0;if(J&&8===e.nodeType&&gn(/<[/\w]/g,e.data))return Oe(e),!0;if(B[i]||!(W.tagCheck instanceof Function&&W.tagCheck(i))&&!q[i]){if(!B[i]&&We(i)){if(U.tagNameCheck instanceof RegExp&&gn(U.tagNameCheck,i))return!1;if(U.tagNameCheck instanceof Function&&U.tagNameCheck(i))return!1}if(se&&!de[i]){const t=v(e)||e.parentNode,n=E(e)||e.childNodes;if(n&&t)for(let i=n.length-1;i>=0;--i){const a=f(n[i],!0);t.insertBefore(a,b(e))}}return Oe(e),!0}return e instanceof c&&!function(e){let t=v(e);t&&t.tagName||(t={namespaceURI:Ee,tagName:"template"});const n=tn(e.tagName),i=tn(t.tagName);return!!we[e.namespaceURI]&&(e.namespaceURI===ye?t.namespaceURI===be?"svg"===n:t.namespaceURI===fe?"svg"===n&&("annotation-xml"===i||Se[i]):Boolean(ke[n]):e.namespaceURI===fe?t.namespaceURI===be?"math"===n:t.namespaceURI===ye?"math"===n&&Te[i]:Boolean(xe[n]):e.namespaceURI===be?!(t.namespaceURI===ye&&!Te[i])&&!(t.namespaceURI===fe&&!Se[i])&&!xe[n]&&(Ie[n]||!ke[n]):!("application/xhtml+xml"!==Ce||!we[e.namespaceURI]))}(e)?(Oe(e),!0):"noscript"!==i&&"noembed"!==i&&"noframes"!==i||!gn(/<\/no(script|embed|frames)/i,e.innerHTML)?(X&&3===e.n
vendor: 5,453 bytes, line 1
1odeType&&(t=e.textContent,Yt([A,R,_],e=>{t=ln(t,e," ")}),e.textContent!==t&&(Qt(n.removed,{element:e.cloneNode()}),e.textContent=t)),He(P.afterSanitizeElements,e,null),!1):(Oe(e),!0)},Be=function(e,t,n){if(j[t])return!1;if(ae&&("id"===t||"name"===t)&&(n in i||n in Re))return!1;const a=z[t]||W.attributeCheck instanceof Function&&W.attributeCheck(t,e);if(G&&!j[t]&&gn(L,t));else if(V&&gn(k,t));else if(!a||j[t]){if(!(We(e)&&(U.tagNameCheck instanceof RegExp&&gn(U.tagNameCheck,e)||U.tagNameCheck instanceof Function&&U.tagNameCheck(e))&&(U.attributeNameCheck instanceof RegExp&&gn(U.attributeNameCheck,t)||U.attributeNameCheck instanceof Function&&U.attributeNameCheck(t,e))||"is"===t&&U.allowCustomizedBuiltInElements&&(U.tagNameCheck instanceof RegExp&&gn(U.tagNameCheck,n)||U.tagNameCheck instanceof Function&&U.tagNameCheck(n))))return!1}else if(ge[t]);else if(gn(M,ln(n,O,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==rn(n,"data:")||!me[e])if(K&&!gn(x,ln(n,O,"")));else if(n)return!1;return!0},je=bn({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),We=function(e){return!je[tn(e)]&&gn(F,e)},Ve=function(e){He(P.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||$e(e))return;const i={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:z,forceKeepAttr:void 0};let a=t.length;for(;a--;){const l=t[a],{name:r,namespaceURI:s,value:o}=l,c=Pe(r),d=o;let u="value"===r?d:sn(d);if(i.attrName=c,i.attrValue=u,i.keepAttr=!0,i.forceKeepAttr=void 0,He(P.uponSanitizeAttribute,e,i),u=i.attrValue,!le||"id"!==c&&"name"!==c||0===rn(u,re)||(Fe(r,e),u=re+u),J&&gn(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,u)){Fe(r,e);continue}if("attributename"===c&&an(u,"href")){Fe(r,e);continue}if(i.forceKeepAttr)continue;if(!i.keepAttr){Fe(r,e);continue}if(!Y&&gn(/\/>/i,u)){Fe(r,e);continue}X&&Yt([A,R,_],e=>{u=ln(u,e," ")});const m=Pe(e.nodeName);if(Be(m,c,u)){if(w&&"object"==typeof g&&"function"==typeof g.getAttributeType)if(s);else switch(g.getAttributeType(m,c)){case"TrustedHTML":u=w.createHTML(u);break;case"TrustedScriptURL":u=w.createScriptURL(u)}if(u!==d)try{s?e.setAttributeNS(s,r,u):e.setAttribute(r,u),$e(e)?Oe(e):Jt(n.removed)}catch(t){Fe(r,e)}}else Fe(r,e)}He(P.afterSanitizeAttributes,e,null)},Ge=function(e){let t=null;const n=qe(e);for(He(P.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)He(P.uponSanitizeShadowNode,t,null),Ue(t),Ve(t),t.content instanceof r&&Ge(t.content);He(P.afterSanitizeShadowDOM,e,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null,l=null,s=null,c=null;if(ve=!e,ve&&(e="\x3c!--\x3e"),"string"!=typeof e&&!ze(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return on(e);case"boolean":return cn(e);case"bigint":return dn?dn(e):"0";case"symbol":return un?un(e):"Symbol()";case"undefined":default:return pn(e);case"function":case"object":{if(null===e)return pn(e);const t=e,n=wn(t,"toString");if("function"==typeof n){const e=n(t);return"string"==typeof e?e:pn(e)}return pn(e)}}}(e)))throw hn("dirty is not a string, aborting");if(!n.isSupported)return e;if(Z||Le(t),n.removed=[],"string"==typeof e&&(oe=!1),oe){const t=e.nodeName;if("string"==typeof t){const e=Pe(t);if(!q[e]||B[e])throw hn("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof o)i=Me("\x3c!----\x3e"),l=i.ownerDocument.importNode(e,!0),1===l.nodeType&&"BODY"===l.nodeName||"HTML"===l.nodeName?i=l:i.appendChild(l);else{if(!te&&!X&&!Q&&-1===e.indexOf("<"))return w&&ie?w.createHTML(e):e;if(i=Me(e),!i)return te?null:ie?N:""}i&&ee&&Oe(i.firstChild);const d=qe(oe?e:i);for(;s=d.nextNode();)Ue(s),Ve(s),s.content instanceof r&&Ge(s.content);if(oe)return e;if(te){if(X){i.normalize();let e=i.innerHTML;Yt([A,R,_],t=>{e=ln(e,t," ")}),i.innerHTML=e}if(ne)for(c=I.call(i.ownerDocument);i.firstChild;)c.appendChild(i.firstChild);else c=i;return(z.shadowroot||z.shadowrootmode)&&(c=D.call(a,c,!0)),c}let u=Q?i.outerHTML:i.innerHTML;return Q&&q["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&gn(Hn,i.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+u),X&&Yt([A,R,_],e=>{u=ln(u,e," ")}),w&&ie?w.createHTML(u):u},n.setConfig=function(){Le(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Z=!0},n.clearConfig=function(){Ae=null,Z=!1},n.isValidAttribute=function(e,t,n){Ae||Le({});const i=Pe(e),a=Pe(t);return Be(i,a,n)},n.addHook=function(e,t){"function"==typeof t&&Qt(P[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=Xt(P[e],t);return-1===n?void 0:Zt(P[e],n,1)[0]}return Jt(P[e])},n.removeHooks=function(e){P[e]=[]},n.removeAllHooks=function(){P={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}(),re().bool.isRequired,re().func.isRequired,re().string.isRequired,re().bool.isRequired,re().bool.isRequired,re().string.isRequired,function(){if("undefined"==typeof window)return;const e=document.createElement("style");e.setAttribute("type","text/css"),e.innerHTML=".wsm-modal-backdrop {\n  z-index: 2147483647;\n}\n\n.wsm-common-modal .modal-content {\n  max-height: calc(100vh - 64px);\n  overflow-y: auto;\n}
1\n.wsm-common-modal .modal-content .modal-header {\n  background-color: inherit;\n}\n.wsm-common-modal .modal-content div.facet-list:last-child .facet-list-group {\n  border-bottom: none;\n}\n.wsm-common-modal .modal-content div#normalFuelType h4 {\n  margin: 0;\n  padding: 16px 0 8px 0;\n}\n.wsm-common-modal .modal-content div#normalFuelType h4:first-of-type {\n  padding-top: 0;\n}\n.wsm-common-modal .modal-content div#normalFuelType p {\n  margin-bottom: 8px;\n}\n.wsm-common-modal .modal-content div#normalFuelType span {\n  display: block;\n  padding-bottom: 16px;\n  border-bottom: 1px solid var(--color-neutral-100);\n}\n.wsm-common-modal .modal-content div#normalFuelType small {\n  display: inline-block;\n}\n.wsm-common-modal .modal-content div#normalFuelType span:last-of-type {\n  border-bottom: none;\n  padding-bottom: 0px;\n}\n.wsm-common-modal.dock-right .modal-content {\n  max-height: 100vh;\n}\n.wsm-common-modal.dock-right div#normalFuelType span:last-of-type {\n  padding-bottom: 16px;\n}\n.wsm-common-modal.responsive:not(.dock-right) {\n  padding: 0 32px;\n}\n.wsm-common-modal.responsive:not(.dock-right) .modal-dialog {\n  width: auto;\n  max-width: 896px;\n  min-width: 704px;\n}",document.head.appendChild(e)}(),jn.propTypes={data:re().shape({lease:re().shape({payment:re().number,marketingLabel:re().string,optIn:re().bool,showContactDealer:re().bool}),finance:re().shape({payment:re().number,marketingLabel:re().string,optIn:re().bool,showContactDealer:re().bool})})},jn.displayName="GmPayments",Wn.defaultProps={accountInfo:{},dealerOptions:[{description:"",msrp:""}],fetchDealerOptionsCallback:null,isLoadingDealerOptions:!1,dealerFees:[],fetchDealerFeesCallback:null,isLoadingDealerFees:!1,incentives:{},isGridLayout:!1,isScrollingSidebar:!1,layout:Re,hidePricingSummary:!1},Wn.propTypes={pricing:re().shape({dPrice:re().arrayOf(re().shape({})),ePrice:re().arrayOf(re().shape({})),vehicle:re().shape({}),lease:re().shape({value:re().string,label:re().string}),loan:re().shape({value:re().string,label:re().string}),retailPrice:re().string,ePriceStatus:re().string,ePriceButtonLabel:re().string}).isRequired,incentives:re().shape({}),accountInfo:re().shape({name:re().string.isRequired,address:re().shape({city:re().string.isRequired,state:re().string,country:re().str
1ing.isRequired}).isRequired}),accountId:re().string.isRequired,vehicleAccountId:re().string.isRequired,vehicleId:re().string.isRequired,condition:re().string.isRequired,isDisplayingEPrice:re().bool.isRequired,isScrollingSidebar:re().bool,layout:re().string,isGridLayout:re().bool,fetchDealerOptionsCallback:re().func,dealerOptions:re().arrayOf(re().shape({description:re().string,msrp:re().string})),isLoadingDealerOptions:re().bool,fetchDealerFeesCallback:re().func,dealerFees:re().arrayOf(re().shape({description:re().string,price:re().string})),isLoadingDealerFees:re().bool,vehicleData:re().shape({}).isRequired,gmPaymentData:re().shape({}),hidePricingSummary:re().bool,gmPayments:re().shape({}),gmPaymentsError:re().oneOfType([re().string,re().oneOf([null])]),isLoadingGMPayments:re().bool},Wn.displayName="PricingDetail",Vn.propTypes={buttonLabel:re().string.isRequired,buttonSize:re().string.isRequired,vehicleId:re().string.isRequired,vehicleCategory:re().string.isRequired,pageAlias:re().string.isRequired},Vn.displayName="NoEpriceButton",Gn.propTypes={ePriceDetail:re().arrayOf(re().shape({type:re().string.isRequired,label:re().string.isRequired,value:re().string.isRequired,key:re().string,isFinalPrice:re().bool,incentives:re().arrayOf(re().string)})),isModalVisible:re().bool.isRequired,disabled:re().bool.isRequired,loadingUserProfile:re().bool.isRequired,hasUserProfileData:re().bool.isRequired,buttonLabel:re().string.isRequired,buttonStyle:re().string.isRequired,buttonSize:re().string.isRequired,handleClick:re().func.isRequired,vehicleId:re().string.isRequired,vehicleCategory:re().string.isRequired,vehicleTrackingData:re().shape({}),pageAlias:re().string.isRequired,preventMultipleEpriceLeads:re().bool.isRequired,ePriceFontWeight:re().string,userProfile:re().oneOfType([re().shape({}),re().number])},Gn.defaultProps={ePriceDetail:[],ePriceFontWeight:"font-weight-bold",userProfile:null},Gn.displayName="InstantEpriceButton",Kn.propTypes={accountId:re().string.isRequired,buttonSize:re().string,buttonStyle:re().string,ePriceFontWeight:re().string,instantEpriceShowAllAfterLeadSubmit:re().string,pageAlias:re().string.isRequired,instantEpricePreventMultipleEpriceLeads:re().string.isRequired,pricing:re().shape({ePriceStatus:re().string,ePrice:re().arrayOf(re().shape({})),ePriceButtonLabel:re().string}).isRequired,showEPrice:re().func.isRequired,showInstantEpriceForSharedInventory:re().string.isRequired,userProfile:re().oneOfType([re().shape({}),re().number]),vehicleId:re().string.isRequired,vehicleAccountId:re().string.isRequired,vehicleTrackingData:re().shape({})},Kn.defaultProps={buttonSize:"default",buttonStyle:"primary",ePriceFontWeight:"font-weight-bold",instantEpriceShowAllAfterLeadSubmit:"false",userProfile:null},Kn.displayName="InstantEpriceContainer",Yn.propTypes={account:re().shape({address:re().shape({})}).isRequired,isMobile:re().bool.isRequired,isGridLayout:re().bool.isRequired,pricing:re().shape({label:re().string.isRequired,value:re().string,isFinalPrice:re().bool})},Yn.defaultProps={pricing:{value:"",isFinalPrice:!1}},Yn.displayName="PriceTitle";const Xn=(e,t)=>{const n=t?e?.ePrice:e?.dPrice,i=n?.find(e=>e.isFinalPrice)??null,a=n?.length>=2?n[0]:null;var l,r;return{priceArray:n,finalPriceItem:i,startingPriceItem:a,hasStartingPrice:!(!a||(l=a,r=i,l?.value===r?.value)),hasFinalPrice:!!i}};function Jn({pricing:e={},isDisplayingEPrice:t,isDREnabled:n=!1,onViewPriceDetails:a}){const l=(0,m.useLabels)(),{finalPriceItem:r,startingPriceItem:s,hasStartingPrice:o}=Xn(e,t);if(!r)return i().createElement("div",{className:"price-summary"},i().createElement("span",{className:"ddc-font-size-xxlarge"},l.get("PLEASE_CALL")));const c=(e=>{if(!e)return{symbol:"",amount:e,position:null};const t=e.match(/^(\$)(.*)/);if(t)return{symbol:t[1],amount:t[2],position:"before"};const n=e.match(/(.*?)(\$)$/);return n?{symbol:n[2],amount:n[1].trim(),position:"after"}:{symbol:"",amount:e,position:null}})(r.value);return i().createElement("div",{className:"price-summary"},o&&i().createElement("div",{className:"price-summary__starting-price d-flex flex-row align-items-baseline pb-1 line-height-reset"},i().createElement("span",{className:"price-summary__starting-price-value ddc-font-size-xsmall text-muted"},s.value),i().createElement("span",{className:"price-summary__starting-price-label ddc-font-size-xsmall text-muted ml-2",dangerouslySetInnerHTML:{__html:s.label}})),i().createElement("div",{className:"price-summary__final-price d-flex flex-row align-items-baseline pb-3 line-height-reset"},"before"===c.position&&i().createElement("span",{className:"price-summary__currency-symbol align-self-center ddc-font-size-base mr-1"},c.symbol),i().createElement("span",{className:"price-summary__final-price-value ddc-font-size-xxlarge"},c.amount),"after"===c.position&&i().createElement("span",{className:"price-summary__currency-symbol align-self-center ddc-font-size-base ml-1"},c.symbol),i().createElement("span",{className:"price-summary__final-price-label ddc-font-size-xsmall ml-2",dangerouslySetInnerHTML:{__html:r.label}})),n&&i().createElement("a",{href:"#vdp-price-purchase-detailed-pricing",className:"price-summary__details-link ddc-font-size-xsmall text-decoration-underline text-muted d-block",onClick:e=>{e.preventDefault(),a(e)}},l.get("VIEW_PRICE_DETAILS")))}function Qn({account:e,condition:t="",isGridLayout:n,pricing:a,isDisplayingEPrice:l,onToggle:r,isNewCarBoost:s=!1,finalPriceClassName:o}
1){const{showTitlePriceLabel:c}=(0,m.usePrefs)(),{deviceType:d}=(0,m.useRequestData)(),u=(0,m.useLabels)(),p="MOBILE"===d,{finalPriceItem:g,startingPriceItem:h,hasStartingPrice:f}=Xn(a,l),y=t?`inv-type-${t}`.toLowerCase().replace(/ /g,"-"):"";let b;b=s?p?"ddc-font-size-small":"ddc-font-size-base":o&&"BLANK"!==o?o:"BLANK"===o?null:p?"ddc-font-size-xxlarge":"ddc-font-size-large";const E=De([b,"font-weight-bold","py-2","d-block","text-left","mb-0"]),v=["font-weight-normal",p?"ddc-font-size-small":"ddc-font-size-xsmall","text-muted","d-inline-block"],w=e=>i().createElement("span",{className:De([...v,"pl-3","text-decoration-underline"])},e),N=w(u.get("DETAILS"));let S,T=null;return f?T=w(i().createElement("span",{dangerouslySetInnerHTML:{__html:`${h.value} ${h.label}`}})):h&&(T=N),S=g?i().createElement(i().Fragment,null,g.value,"true"===c&&i().createElement("span",{className:De([...v,"pl-2"]),dangerouslySetInnerHTML:{__html:g.label}}),(p||n)&&i().createElement(Tt,{dealerAddress:e.address,displayInline:!0}),T):i().createElement("span",null,u.get("PLEASE_CALL")),i().createElement("span",{className:"portal-price","data-style-editor-id":`srp-${y}-portal-price-value`,"data-style-editor-text":`.srp .vehicle-card-title.${y} .portal-price`},i().createElement("span",{className:E,role:"button",tabIndex:0,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(" "===e.key&&e.preventDefault(),r())},onClick:()=>r()},S))}Jn.propTypes={pricing:re().shape({ePrice:re().arrayOf(re().shape({})),dPrice:re().arrayOf(re().shape({}))}),isDisplayingEPrice:re().bool.isRequired,isDREnabled:re().bool,onViewPriceDetails:re().func},Jn.displayName="PriceSummary",Qn.propTypes={account:re().shape({address:re().shape({})}).isRequired,isGridLayout:re().bool.isRequired,isDisplayingEPrice:re().bool.isRequired,condition:re().string,pricing:re().shape({ePrice:re().arrayOf(re().shape({})),dPrice:re().arrayOf(re().shape({}))}),onToggle:re().func.isRequired,isNewCarBoost:re().bool,finalPriceClassName:re().string},Qn.displayName="PriceToggle";const Zn=({isFullStack:e,priceMode:t,pricing:a,isDisplayingEPrice:l,accountId:r,vehicleAccountId:s,condition:o,uuid:c,vin:d,finalPriceMarkup:u})=>{const p=(0,m.useLabels)(),[g,h]=(0,n.useState)(!1);if(!e)return u;const f=i().createElement(Wn,{accountId:r,condition:o,isDisplayingEPrice:l,isGridLayout:!1,layout:"SRP",pricing:a,vehicleAccountId:s,vehicleId:c,vehicleData:{condition:o,uuid:c,vin:d}});let y=f;return"collapsed"===t&&(y=i().createElement(i().Fragment,null,i().createElement(ae.Collapse,{in:!g},i().createElement("div",null,i().createElement(Qn,{account:{address:{}},condition:o,isGridLayout:!1,pricing:a,isDisplayingEPrice:l,onToggle:()=>h(!0)}))),i().createElement(ae.Collapse,{in:g},i().createElement("div",null,f,i().createElement("div",{className:"hide-pricing-container"},i().createElement("button",{type:"button",className:"hide-pricing ddc-font-size-xsmall font-weight-bold text-muted",onClick:()=>h(!1),"data-testid":"hidePricing"},p.get("HIDE_PRICING")||"Hide Pricing")))))),i().createElement("div",{className:"vehicle-price-stack","data-testid":"priceStack",onClick:e=>e.stopPropagation()},y)};Zn.defaultProps={isFullStack:!1,priceMode:"final",pricing:{},isDisplayingEPrice:!1,accountId:"",vehicleAccountId:"",condition:"",uuid:"",vin:"",finalPriceMarkup:null};const ei=Zn;function ti({info:{uuid:e,vin:t,link:a,totalPrice:l,offSite:r,imagePath:s,label:o,condition:c,pricing:d,vehicleAccountId:u,titleAttributes:g=[],supplementalTitleAttributes:h=[]},trackEventElement:f,index:y,activeSlide:E=y,trackingData:v={},pageAlias:N}){const{showPriceLabel:S,showVin:T,priceLabelClasses:I,pricingValueClasses:C,pricingClasses:D,vehicleSupplementalTitleClasses:P,vehicleTitleHeadingClasses:x,vehicleTitleSubHeadingClasses:O,vehicleTitleAlignment:F,displayStyle:M}=(0,m.usePrefs)(),q=(0,m.useLabels)(),{locale:$,deviceType:z,windowId:H,widgetName:U,accountId:B}=(0,m.useRequestData)();(0,n.useEffect)(()=>{R(z,y)},[]);const j="true"===S,W="true"===T,V="DESKTOP"===z,G="Standard Horizontal"!==M,{priceMode:K,normalizedPricing:Y,isFullStack:X,isDisplayingEPrice:J}=(e=>{const{showPrice:t="final",displayStyle:n}=(0,m.usePrefs)(),i=(0,m.useFlags)(),a=Boolean(i?.["ws-rec-vehicles-full-price-stack-enabled"]),l="Standard Horizontal"===n&&a?t:"final",r={...e,dPrice:e?.dPrice??e?.dprice,ePrice:e?.ePrice??e?.eprice},s=(r.dPrice?.length??0)>0||(r.ePrice?.length??0)>0;return{priceMode:l,normalizedPricing:r,hasPriceStack:s,isFullStack:("full"===l||"collapsed"===l)&&s,isDisplayingEPrice:!1}})(d),Q=G?"h5":"h3",Z=["media","d-flex justify-content-center align-items-center","w-100",V?"vehicle-media-container":"vehicle-media-container-mobile",L(s)?"bg-neutral-400":"bg-white"],ee="collapsed"===K||"full"===K||"left"===F?"text-left":"",te=[P,ee,"mb-0","ddc-font-size-small","font-weight-light"],ne=[x,ee,"mb-0","text-body","h5"],ae=[O,ee,"mb-2",G?"py-0 px-0":"pb-1","text-body",V?"h3":"h2"],le=[D,"d-flex justify-content-center flex-column","mb-0","text-body","ddc-font-size-large"],re=[I,V?"ddc-font-size-xsmall":"ddc-font-size-small","vehicle-price-label","text-muted"],se=[C,V?G?"ddc-font-size-base":"ddc-font-size-large":"ddc-font-size-xxlarge","value","mb-2",G?"":"pb-1"],oe=["vehicle-vin-label","mb-2",G?"":"pb-1","text-muted",V&&!G?"ddc-font-size-xxsmall":"ddc-font-size-xsmall"],ce=["border-top","vehicle-card-detail
1s-container","ddc-section-height-default","bg-contrast-low","px-4","w-100","vehicle-card-info","text-center",G?"pt-3":"pt-4",V?"":"landscape-details pb-3",G?"pb-2":""],de=["h-100","pointer","d-flex","flex-column","text-decoration-none","text-body",G?"":"pb-3"],ue=V&&s&&"Standard Horizontal"===M?`${s}?impolicy=downsize_bkpt&w=410`:`${s}?impolicy=downsize_bkpt&w=325`;let me,pe="",ge="",he="";0!==h.length&&(he=((e,t,n)=>e.reduce((e,{name:i,itemValue:a})=>{let l=a;switch(i){case"odometer":if(!w.test(a))return e;break;case"status":l=k(a,t,n)}return l?`${e} ${e?"|":""} ${l}`:e},"").trim())(h,q,r)),0!==g.length&&(he?ge=_(g):(me=g.map(({name:e})=>e).indexOf("lineBreak"),me=-1===me?g.length:me,pe=_(g.slice(0,me)),me!==g.length&&(ge=_(g.slice(me)))));const fe=l?i().createElement("div",{className:p(le)},j&&i().createElement("span",{className:`${p(re)}`,dangerouslySetInnerHTML:{__html:V?A(o):o},onClick:e=>e.preventDefault(),"data-testid":"totalPriceLabel"}),i().createElement("span",{className:p(se),"data-testid":"totalPrice"},l&&`${function(e,t="en_US",n=!1){if("undefined"==typeof Intl||!Intl.NumberFormat)return e.toString();const i={style:"currency",currency:t.length&&t.indexOf("CA")>-1?"CAD":"USD"};let a;return"number"!=typeof e?(console.warn("formatCurrency: unexpected currency value: ".concat(e," of type ").concat(typeof e)),""):(n?a=e:(a=Math.round(e),i.minimumFractionDigits=0),new Intl.NumberFormat(t.replace("_","-"),i).format(a))}(l,$)}`)):null;return i().createElement("div",{className:p(de),onClick:()=>(({subtitle:e,title:t="",supplementalTitle:n=""})=>{const i={pageAlias:N,element:f,result:"Navigated to VDP",dataToExcludeFromWidgetUserEvent:{link:a,supplementalTitle:n,subtitle:e,title:t,...v}};b(U,H,i),window.location.href=a})({subtitle:ge,title:pe,supplementalTitle:he}),"data-testid":"card"},i().createElement("div",{className:p(Z),"data-testid":"photo"},s&&i().createElement("img",{className:"photo thumb",src:ue,"data-src":ue,alt:[he,pe,ge].filter(
1Boolean).join(" ")})),i().createElement("div",{className:p(ce)},i().createElement(Q,{className:"vehicle-card-titles m-0"},i().createElement("a",{className:"d-flex flex-column text-body",href:a,"data-vdp-href":"#","data-click-url":"","data-vehicle-tracer":"","data-testid":"card-link",tabIndex:E===y?"0":"-1","aria-label":[he,pe,ge].filter(Boolean).join(" ")},i().createElement("span",{className:p(te),"data-testid":"card-supplemental-title",dangerouslySetInnerHTML:{__html:he}}),i().createElement("span",{className:p(ne),"data-testid":"card-heading",dangerouslySetInnerHTML:{__html:pe}}),i().createElement("span",{className:p(ae),style:{wordWrap:"break-word"},"data-testid":"card-subheading",dangerouslySetInnerHTML:{__html:ge}}))),i().createElement(ei,{isFullStack:X,priceMode:K,pricing:Y,isDisplayingEPrice:J,accountId:B,vehicleAccountId:u,condition:c,uuid:e,vin:t,finalPriceMarkup:fe}),t&&W?i().createElement("div",{className:p(oe),"data-testid":"vin"},`VIN: ${t}`):null,i().createElement(ie,{isNavFragment:G,href:a,tabIndex:E===y?"0":"-1",supplementalTitle:he,title:pe,subtitle:ge})))}const ni="undefined"!=typeof window,ii=({children:e,placeholder:t=null,maxWait:i=5e3})=>
1{const[a,l]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{"complete"===document.readyState?l(!0):(async e=>Promise.race([new Promise(e=>{window.addEventListener("load",()=>{e("pageLoad")})}),new Promise(t=>{setTimeout(()=>{t("maxWait")},e)})]))(i).then(e=>{l(!0)})},[i]),ni&&a?React.createElement(n.Suspense,{fallback:t},e):t};ii.displayName="DeferredComponent";const ai=ii,li=({trackEventElement:e,pageAlias:t,action:i})=>{const[a,l]=(0,n.useState)(0),{windowId:r,widgetName:s}=(0,m.useRequestData)();return{activeSlide:a,afterSlide:n=>{b(s,r,{pageAlias:t,element:e,result:`Moved to vehicle ${n+1}`,action:i,previousIndex:a,currentIndex:n}),l(n)}}},ri=i().lazy(()=>a.e(830).then(a.bind(a,830))),si=({direction:e,disabled:t,onClick:n})=>{const a="previous"===e;return i().createElement("button",{type:"button",className:p(["rec-vehicles-carousel-arrow",`rec-vehicles-carousel-arrow-${e}`,"bg-neutral-0","border-0","rounded-circle","d-flex","align-items-center","justify-content-center","p-0"]),onClick:n,disabled:t,"aria-label":a?"Previous vehicles":"Next vehicles","data-testid":`carousel-arrow-${e}`},i().createElement("svg",{width:"12",height:"20",viewBox:"0 0 12 20","aria-hidden":"true"},i().createElement("path",{d:a?"M10 2 2 10l8 8":"m2 2 8 8-8 8",fill:"none",stroke:"currentColor",strokeWidth:"2.5"})))};function oi({vehicleData:e,slidesToShow:t,trackEventElement:n,pageAlias:a,placeholder:l}){const{listItemClasses:r}=(0,m.usePrefs)(),s=Math.max(e.length-t,0),{afterSlide:o}=li({trackEventElement:n,pageAlias:a,action:"clicked"}),c={cellAlign:"left",cellSpacing:20,className:"rec-vehicles-desktop-carousel px-7",heightMode:"max",slidesToShow:t,slidesToScroll:1,dragging:!1,renderBottomCenterControls:null,renderCenterLeftControls:({previousSlide:e,currentSlide:t})=>i().createElement(si,{direction:"previous",disabled:t<=0,onClick:e}),renderCenterRightControls:({nextSlide:e,currentSlide:t})=>i().createElement(si,{direction:"next",disabled:t>=s,onClick:e}),enableKeyboardControls:!0,afterSlide:o},d=["BLANK"!==r?r:"","vehicle-card","overflow-hidden","position-relative","my-1","mb-4","bg-contrast-low"];return i().createElement(ai,{placeholder:l},i().createElement(ri,c,e.map((e,t)=>i().createElement("div",{className:p(d),key:e.uuid,"data-testid":"card-carousel-slide"},i().createElement(ti,{info:e,index:t,trackEventElement:n,trackingData:I(e),pageAlias:a})))))}const ci=({vehicleState:e,vehicleData:t,displayPref:n,trackEventElement:a,pageAlias:l,isNavDrawer:r=!1})=>{const{listItemClasses:s,listClasses:o,vehicleListGapClasses:c,displayStyle:d}=(0,m.usePrefs)(),{isLoading:u}=e,{showPriceLabel:g,showVin:h}=n,f="Standard Horizontal"===d&&!r,{isConfigurableLayout:y,pageSize:b,isMultiRow:E,cardsPerRow:v,displayedVehicles:w,showCarousel:N}=(({isSingleRow:e,isLoading:t,vehicleData:n})=>{const{pageSize:i,useCarousel:a}=(0,m.usePrefs)(),l=(0,m.useFlags)(),{deviceType:r}=(0,m.useRequestData)(),s=Boolean(l["enable-rec-vehicles-enhancements"])&&"DESKTOP"===r&&e,o=T(i),c="false"!==a,d=s&&!c,u=Z(s&&c),p=s?n.slice(0,o):n;return{isConfigurableLayout:s,pageSize:o,useCarousel:c,isMultiRow:d,cardsPerRow:u,displayedVehicles:p,showCarousel:s&&c&&!t&&p.length>u}})({isSingleRow:f,isLoading:u,vehicleData:t});let S,C;r?(S=2,C=3):f?(S=4,C=1):(S=3,C=2);const D=y?b:S*C,P=E||w.length<3,A=""!==c,R=["BLANK"!==s?s:"","vehicle-card","overflow-hidden","position-relative","my-1","mb-4","bg-contrast-low"];let _;const L=A?Math.floor(100/S):Math.floor(100/S)-2,k=f?{}:{flex:`0 0 ${L}%`};let x;_=u?((e=5)=>{const t=[];for(let n=0;n<e;n++)t.push({id:n});return t})(D).map(t=>{const{id:n}=t;let a;a=h&&g?"vehicle-card-skeleton-label-vin-pref":h?"vehicle-card-skeleton-vin-pref":g?"vehicle-card-skeleton-label-pref":"vehicle-card-skeleton-non-pref";const l=[f?a:"vehicle-card-skeleton","mt-1 mb-3",...R];return i().createElement("li",{className:p(l),style:k,key:`loader_${n}`,"data-testid":"card-li-loader"},i().createElement(ne,{vehicleState:e,displayStyle:d}))}):w.map((e,t)=>i().createElement("li",{className:p(R),key:e.uuid,style:k,"data-testid":"card-li"},i().createElement(ti,{info:e,index:t,trackEventElement:a,trackingData:I(e),pageAlias:l}))),x=E?"multi-row":f?"static-width overflow-hidden":"hide-from-7";const O=["BLANK"!==o?o:"",x,P?"justify-content-left":"justify-content-between","list-unstyled","vehicle-list",E?"":"d-flex",E?"":"flex-wrap","mb
1-0",c],F=A?{}:{gap:"2%"},M=i().createElement("ul",{className:p(O),style:F,"data-testid":"static-width-carousel"},_);return N?i().createElement(oi,{vehicleData:w,slidesToShow:v,trackEventElement:a,pageAlias:l,placeholder:M}):M},di=({state:e,personalized:t,noVehicles:n,hideIfUnpersonalized:a})=>{const{deviceType:l}=(0,m.useRequestData)(),r=(0,m.useLabels)(),{personalizedVehiclesHeading:s,nonPersonalizedVehiclesHeading:o,displayStyle:c,headingAlignment:d,headingSize:u}=(0,m.usePrefs)();let g="";const h="DESKTOP"===l,f="Standard Horizontal"!==c,{isLoading:y,fadeIn:b}=e;g=t?r.get(s):r.get(o);const E=[h?f?"mb-4":"mb-6":""],v=["p-0","widget-heading","mb-0",u,`text-${d}`,h?"":"mx-5"],w=[u,b?"fade-in":"fade-out",h?"mb-5":"mx-7",h?"mt-4":""],N=a&&n?{}:{marginBottom:h?"0px":"20px"};return i().createElement("div",{className:p(a&&n?"":E),style:N},n?(()=>{if(y){let e=h?1.25:2.5;const t=f?"97%":"100%";return f&&(e=.5),i().createElement("div",{className:p(w),"data-testid":"vehicle-list-title-skeleton"},i().createElement(te(),{width:t,height:`${e}em`}))}return""})():(()=>{if("Navigation"===c){const e=[`text-${d}`,"px-0"];return i().createElement("h4",{className:p(e),"data-testid":"widget-heading"},i().createElement("span",null,g))}return i().createElement("h2",{className:p(v),"data-testid":"widget-heading"},i().createElement("span",null,g))})())},ui=({slideCount:e,slidesToScroll:t,slidesToShow:n,cellAlign:i,scrollMode:a,defaultControlsConfig:l,currentSlide:r,goToSlide:s})=>{const o=((e,t,n,i,a)=>{const l=[];let r=e-n;switch(i){case"center":case"right":r+=n-1}if(r<0)return[0];for(let e=0;e<r;e+=t)l.push(e);return"left"===i&&"page"===a&&(r=Math.floor(e-(e%n||n))),l.push(r),l})(e,t,n,i,a),{pagingDotsContainerClassName:c,pagingDotsClassName:d,pagingDotsStyle:u={}}=l;return React.createElement("ul",{className:c,style:{position:"relative",top:-10,display:"flex",margin:0,padding:0,listStyleType:"none"}},o.map(e=>{const t=r===e;return React.createElement("li",{key:e,className:t?"paging-item active":"paging-item","data-testid":"paging-dot"},React.createElement("button",{className:d,type:"button",style:{...(n=t,{cursor:"pointer",opacity:n?1:.5,background:"transparent",border:"none",fill:"black"}),...u},onClick:s.bind(null,e),"aria-label":`View Slide ${e+1}`},React.createElement("svg",{className:"paging-dot",width:"6",height:"6"},React.createElement("circle",{cx:"3",cy:"3",r:"3"}))));var n}))};function mi({vehicleData:e,vehicleState:t,trackEventElement:a,pageAlias:l}){const r=(0,n.useRef)(null),s=(0,n.useRef)(null),{listClassesPref:o,listItemClasses:c,displayStyle:d}=(0,m.usePrefs)(),{isLoading:u}=t,g=1===e.length,{activeSlide:h,afterSlide:f}=li({trackEventElement:a,pageAlias:l,action:"swiped"}),y={animation:"zoom",cellAlign:"center",cellSpacing:20,className:"pb-8",defaultControlsConfig:{pagingDotsClassName:"px-1"},heightMode:"current",initialSlideHeight:315,renderCenterLeftControls:null,renderCenterRightControls:null,renderBottomCenterControls:g?null:ui,slideOffset:g?0:50,ref:s,zoomScale:.9,enableKeyboardControls:!0,afterSlide:f};(0,n.useEffect)(()=>{"undefined"!=typeof ResizeObserver&&(r.current=new ResizeObserver(()=>{s.current&&s.current.setDimensions()}));const e=r.current;return()=>{e&&e.disconnect()}},[]);const b=["BLANK"!==c?c:"","vehicle-card","overflow-hidden","position-relative"];if(u){const e=["flex-grow-1 mx-7",...b],n=["BLANK"!==o?o:"","list-unstyled","vehicle-list","d-flex","flex-wrap","overflow-hidden","pb-8","mb-0"];return i().createElement("ul",{className:p(n),style:{minHeight:"316px"}},i().createElement("li",{className:p(e),key:"loader_0","data-testid":"card-li-loader"},i().createElement(ne,{vehicleState:t,displayStyle:d})))}return i().createElement(ai,null,i().createElement(ri,y,e.map((e,t)=>{const{uuid:n}=e,s=["mx-4",...b];return i().createElement("div",{className:p(s),style:{minHeight:"316px"},key:n,ref:e=>{e&&r.current&&r.current.observe(e)}},i().createElement(ti,{info:e,key:`vehicle_${n}`,index:t,trackEventElement:a,activeSlide:h,pageAlias:l}))})))}const pi=(0,l.connect)(e=>{const{accountId:t,siteId:n,vehicleId:i,pageAlias:a,pageId:l,uri:r,host:s,scheme:o}=e.storedRequestData;return{accountId:t,siteId:n,vehicleId:i,pageAlias:a,pageId:l,uri:r,host:s,scheme:o}},e=>({}))(function({accountId:e,siteId:t,vehicleId:a,pageAlias:l,pageId:r,uri:s,host:o,scheme:c}){const{displayerInstanceId:d,excludeBasedOnImages:u,"listing.config.id":h,showPriceLabel:f,showVin:y,hideIfUnpersonalized:b,showFeaturedOnly:E,containerClasses:v,"required.display.attributes":w}=(0,m.usePrefs)(),N="true"===E,S="true"===b&&!N,{deviceType:T,locale:I}
1=(0,m.useRequestData)(),C="DESKTOP"===T,[D,P,A,R]=(()=>{const[e,t]=(0,n.useState)(g),i=(0,n.useRef)(!1),a=(0,n.useRef)(),l=(0,n.useRef)();return(0,n.useEffect)(()=>(i.current=!0,()=>{i.current=!1,a.current&&clearTimeout(a.current),l.current&&clearTimeout(l.current)}),[]),[e,()=>{i.current&&t(e=>({...e,isLoading:!0,fadeIn:!0}))},e=>{i.current&&(t(e=>({...e,fadeIn:!1})),a.current=setTimeout(()=>{i.current&&(e(),t(e=>({...e,isLoading:!1})))},300))},()=>{l.current=setTimeout(()=>{i.current&&t(e=>({...e,fadeIn:!1,collapse:!0,isLoading:!1}))},1e3)}]})(),[_,L]=Y({vehicleId:a,siteId:t,locale:I,deviceType:T,accountId:e}),k=(0,n.useRef)(null),x=J(k),{isLoading:O,collapse:F}=D,M={accountId:e,containerRef:k,siteId:t,displayerInstanceId:d,excludeBasedOnImages:u,listingConfigId:h,requiredDisplayAttributes:w,hideIfUnpersonalized:S,showFeaturedOnly:N,vdpData:_||void 0,pageAlias:l,pageId:r,uri:s,host:o,scheme:c,storedEOData:L,vehicleId:_?a:void 0},q={vehicleState:D,startFadeIn:P,startFadeout:A,startCollapse:R},[{vehicleData:$,personalized:z,trackEventElement:H}]=B(M,q),U=["rec-vehicles-container","text-center","section","m-0",O?"loading bg-none h-auto":"",v],j="true"===f,W="true"===y,V={showPriceLabel:j,showVin:W};let G=C?477:440;j&&(G+=C?17:10),W&&(G+=C?22:15);const K=`${S?0:G}px`;return F?i().createElement("div",null):i().createElement("div",{className:p(U),ref:k,style:{minHeight:K},"data-display-sets":"TITLE,SUPPLEMENTAL_TITLE","hide-base-facet-category":"true"},i().createElement(di,{state:D,personalized:z,noVehicles:0===$.length,hideIfUnpersonalized:S}),C||x?i().createElement(ci,{pageAlias:l,vehicleState:D,vehicleData:$,displayPref:V,trackEventElement:H,isNavDrawer:x}):i().createElement(mi,{pageAlias:l,vehicleState:D,vehicleData:$,trackEventElement:H}))}),gi=(e,t,n)=>{const i=["ddc-content",t];return e&&i.push(e),n&&i.push("collapse-container"),i},hi=(e,t,n)=>{const i=[],{widgetHeading:a,headingIconClasses:l,headingIconSize:r,headingIconStyle:s}=e;return a&&t&&(i.push("ddc-icon"),n||i.push(`ddc-icon-${s}`),r&&i.push(`ddc-icon-size-${r}`),l&&i.push(l)),i},fi=(e,t,n)=>{const i=[],{headingSize:a,headingStyles:l,headingClasses:r}=e;return i.push("widget-heading"),"MOBILE"===t&&i.push("ddc-heading"),r&&i.push(r),a&&i.push(a),l&&i.push(`ddc-heading-${l}`),n&&i.push("collapse-heading"),i},yi=({outputWrapperDiv:e,store:t,widgetId:n,widgetName:a})=>{const r=t.getState(),s=r.prefs||{},o=s.widgetHeading&&"true"===s.toggleCollapse||!1,d=!!s.headingIconStyle||o;const m=i().createElement(l.Provider,{store:t},i().createElement(c,{HeadingTag:s.headingTag,headingText:s.widgetHeading,widgetId:n,toggleCollapse:o,showIcon:d,headingClasses:fi(s,r.requestData.deviceType,o),iconClasses:hi(s,d,o)}),i().createElement(u,{id:n,toggleCollapse:o},i().createElement(pi,null)));if(e){if(!a)throw new Error("widgetName is required if outputWrapperDiv is true.");return i().createElement("div",{id:`${n}-app-root`,className:gi(s.widgetClasses,a,o).join(" "),"data-widget-name":a,"data-widget-id":n},m)}return m},bi=RTK;const Ei=[],vi={requestData:function(e={},t=null){return!t.error&&t.payload&&"WS_SCRIPTS_SET_REQUEST_DATA"===t.type?t.payload:e},prefs:function(e={},t=null){return t.error||void 0===t.payload||"WS_SCRIPTS_SET_PREFS"!==t.type?e:t.payload},labels:function(e={},t=null){return t.error||void 0===t.payload||"WS_SCRIPTS_ADD_LABELS"!==t.type?e:{...e,...t.payload}},sitemap:function(e={},t=null){return t.error||void 0===t.payload||"WS_SCRIPTS_ADD_SITEMAP"!==t.type?e:{...e,...t.payload}},flags:function(e={},t=null){return t.error||void 0===t.payload||"WS_SCRIPTS_SET_FEATURE_FLAGS"!==t.type?e:t.payload}};function wi(e){const[t,n]=(()=>{let e={},t={};const n=[];try{e=a(444).A,n.push("../reducers")}catch(e){}try{t=Object(function(){var e=new Error("Cannot find module '../features'");throw e.code="MODULE_NOT_FOUND",e}()),n.push("../features")}catch(e){}return[{...e,...t},n]})();return(0,bi.configureStore)({reducer:{...t,...vi},middleware:e=>e().concat(Ei),preloadedState:e})}const Ni={};(()=>{const t=(n="ws-rec-vehicles",window.DDC&&window.DDC.WS&&window.DDC.WS.state&&window.DDC.WS.state[n]?window.DDC.WS.state[n]:{});var n;Object.keys(t).forEach(n=>{const i=wi(((e,t)=>{let n=e[t];return"string"==typeof n&&(n=JSON.parse(n)),n})(t,n));Ni[n]=i,(0,e.hydrate)(React.createElement(yi,{outputWrapperDiv:!1,store:i,widgetId:n}),document.getElementById(`${n}-app-root`)),delete t[n]})})()})()})();
2//# sourceMappingURL=bundle.0c1b34957ff5e5164fd19654f154e602.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.