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,f=Function.prototype,h=Object.prototype,y=m["__core-js_shared__"],b=(p=/[^.]+$/.exec(y&&y.keys&&y.keys.IE_PROTO||""))?"Symbol(src)_1."+p:"",E=f.toString,v=h.hasOwnProperty,w=h.toString,N=RegExp("^"+E.call(v).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),T=m.Symbol,S=g.splice,I=F(m,"Map"),C=F(Object,"create"),D=T?T.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 O(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 x(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 O(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():S.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 x(this,e).delete(e)},_.prototype.get=function(e){return x(this,e).get(e)},_.prototype.has=function(e){return x(this,e).has(e)},_.prototype.set=function(e,t){return x(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.3158a62388322b50251cfe9138310c94.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},f=DDC.Hysterics;var h=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(?=[/:?#]|$)/,T=/(?:^|\/\/)[^/]*\/[a-zA-Z]\//,S=e=>e.reduce((e,{count:t=0})=>e+t,0),I=(e,t)=>e?.vehicles?.length>0&&!t.fadeIn&&!t.isLoading&&!t.collapse,C=(e,t)=>n=>{const[i]=n;i.intersectionRatio>.5&&(e(),t&&t?.current?.disconnect&&t.current.disconnect())},D=(e="")=>e.includes('data-toggle="popover"')?e.replace(/(data-toggle="popover")/,'$1 data-container="body" '):e,P=(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),A=e=>e.reduce((e,{itemValue:t})=>t?`${e} ${t}`:e,"").trim(),R=e=>N.test(e)&&T.test(e),_=(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"),L="REC_VEHICLES",k=`${L}/CLIENT/VEHICLES_ENDPOINT_FETCH_ERROR`,O=`${L}/CLIENT/VEHICLES_ENDPOINT_FETCH_SUCCESS`,x=(0,f.hysteriFetch)("vehicleData",{timeout:{timeout:3e3}}),F=(e,t)=>{window&&window.newrelic&&"object"==typeof window.newrelic&&window.newrelic.addPageAction(e,t)},M=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]})),q=(e,t)=>({vehicles:M(e)?.slice(0,t)}),z=e=>{const t=e?.querySelectorAll(".vehicle-list > li"),n=Array.from(t);return n?.filter(e=>e?.offsetWidth&&e?.offsetHeight)?.length},H=({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:f,scheme:y,storedEOData:E,vehicleId:v},{vehicleState:w,startFadeIn:N,startFadeout:T,startCollapse:D})=>{const[P,A]=(0,n.useState)({vehicleData:[],personalized:!1,trackEventElement:""}),{deviceType:R,locale:_,windowId:L,widgetName:M}=(0,m.useRequestData)(),{displayStyle:$,geoRange:H}=(0,m.usePrefs)(),U="Standard Horizontal"!==$,B=(0,m.useFlags)(),j=(0,n.useRef)(null),{chromeStyleId:W,type:V}=(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:G,model:K}=(e=>Object.entries(e).map(([e,{make:t,views:n}])=>({model:e,make:t,count:S(n??[])})).reduce((e,t)=>e.count<t.count?t:e,{count:0}))(E),Y=B["ws-vdplink-endpoint-enabled"],X=B["wsm-account-data-distributor-timeout"],J=B["ws-rec-vehicles-cvre-num-results"],Q=Boolean(B["enable-cads-driveq-over-cvre-api"]);async function Z(){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")),h=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:_,device:R.toLowerCase(),pageAlias:u,pageId:p,windowId:L,referrer:document.referrer,host:f,uri:g,
1scheme:y},w={pixallId:n,offerSeedVehicleChromeStyleId:b,seedVehicleType:E,siteId:i,displayLimit:"Navigation"===$?8:6,enableVDPLink:Y,addTimeout:X,displayerInstanceId:a,eoChromeId:W,eoModel:K,eoMake:G,eoType:V,locale:_,excludeBasedOnImages:l,listingConfigId:r,requiredDisplayAttributes:s,numResultsCVRE:J,hideIfUnpersonalized:o,showFeaturedOnly:c,inventoryRequestBody:v,geoRange:H,geoZip:h,enableCadsDriveqOverCVREApi:Q};d&&(w.vdpData={chromeStyleId:d?.chromeStyleId,type:d?.type,vin:d?.vin});const S=JSON.stringify(w),I=Date.now();let C;try{o||N(),C=await x(t,{method:"POST",headers:{"content-type":"application/json;charset=UTF-8"},body:S})}catch(e){D();const{message:n}=e;throw F(`${k}`,{requestUrl:t,error:n}),new Error(`${k}: ${e.message}`)}const P=Date.now()-I;return F(`${O}`,{requestUrl:t,responseStatus:200,requestDuration:P,totalVehicles:C?.vehicles?.length??0}),C?.vehicles?.length>0?T(()=>{A({vehicleData:C.vehicles,personalized:C.personalized,trackEventElement:C.trackEventElement})}):D(),C}return(0,n.useEffect)(()=>{if(v&&!d&&!U)return null;if(h.isBrowser&&t)if("undefined"!=typeof IntersectionObserver){const e={threshold:.5};j.current&&j.current.disconnect();const n=t.current;o?Z().then(t=>{j.current=new IntersectionObserver(C(()=>{if(I(t,w)){const e=z(n),i={pageAlias:u,element:t.trackEventElement,action:"viewed",result:"Recommended vehicles impression",nonInteractive:!0,dataToExcludeFromWidgetUserEvent:q(t.vehicles,e,t.personalized)};b(M,L,i)}},j),e),j.current.observe(n)}):(j.current=new IntersectionObserver(C(async()=>{const e=await Z();if(I(e,w)){const t=z(n),i={pageAlias:u,element:e.trackEventElement,action:"viewed",result:"Recommended vehicles impression",nonInteractive:!0,dataToExcludeFromWidgetUserEvent:q(e.vehicles,t)};b(M,L,i)}},j),e),j.current.observe(n))}else Z().then(e=>{if(I(e,w)){const n=z(t.current),i={pageAlias:u,element:e.trackEventElement,action:"viewed",result:"Recommended vehicles impression",nonInteractive:!0,dataToExcludeFromWidgetUserEvent:q(e.vehicles,n)};b(M,L,i)}});return()=>{j?.current?.disconnect()}},[E]),[P]},U="REC_VEHICLES",B=`${U}/CLIENT/VEHICLES_ENDPOINT_FETCH_ERROR`,j=`${U}/CLIENT/VEHICLES_ENDPOINT_FETCH_SUCCESS`,W=(0,f.hysteriFetch)("vdpData",{timeout:{[f.wrappers.timeout.contextKey]:1e3}}),V=(e,t)=>{window&&window.newrelic&&"object"==typeof window.newrelic&&window.newrelic.addPageAction(e,t)},G=({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 W(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 V(`${B}`,{requestUrl:t,err:e}),new Error(`${B}: ${e.message}`)}const a=Date.now()-i;V(`${j}`,{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]},K=h.isBrowser?n.useLayoutEffect:n.useEffect,Y=e=>{const[t,i]=(0,n.useState)(!1);return K(()=>{h.isBrowser&&i(Boolean(e.current?.closest('[data-rec-vehicles-context="nav-drawer"]')))},[e]),t};var X=a(19),J=a.n(X);const Q=({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"}
1,i().createElement(J(),{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"},i().createElement(J(),{skeletonClasses:"m-auto",height:"80%",width:"80%"})):i().createElement("h3",{className:"vehicle-card-title-container",style:{height:"2rem"},"data-testid":"shimmer-wrapper"},i().createElement(J(),{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(J(),{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(J(),{skeletonClasses:"m-auto",height:a?"50%":"100%",width:"50%"}))))))};const Z=({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},ee=ReactBootstrap;var te=a(935),ne=a.n(te);const ie=(e,t)=>{if("string"!=typeof e||0===e.length)throw new Error(`${t} must be a non-zero length string. Got: ${e}.`)},ae=e=>[...new Set(e)].filter(e=>e).join(" ")||null,le="CASH_BACK",re="PROMOTION_FROM",se="POTENTIAL_EV_TAX_CREDIT",oe=({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};oe.propTypes={disclaimer:ne().string,isDisclosure:ne().bool},oe.defaultProps={disclaimer:"",isDisclosure:!1},oe.displayName="IncentiveDisclaimer";const ce=({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 de(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}ce.propTypes={incentiveId:ne().string.isRequired,incentiveAccountId:ne().string.isRequired,incentiveName:ne().string,condition:ne().string,newListingPath:ne().string,usedListingPath:ne().string},ce.defaultProps={incentiveName:"",condition:"NEW",newListingPath:null,usedListingPath:null},ce.displayName="ListingLink";const ue=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};ue.propTypes={incentiveTerms:ne().arrayOf(ne().shape({term:ne().number.isRequired,value:ne().number.isRequired}))},ue.defaultProps={incentiveTerms:[]},ue.displayName="TermsList";const me=({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,`${de(m.cashOption,r)} ${e.content}`):null:m.cashOption?i().createElement("p",null,`${de(m.cashOption,r)} ${t?n.get(se):n.get(le)}`):null;const g=m.cashDue?i().createElement("p",null,`${de(m.cashDue,r)} ${n.get("CASH_DUE_AT_SIGNING")}`):null,f=m.monthlyPayment?i().createElement("p",null,`${de(m.monthlyPayment,r)} ${n.get("PER_MONTH")}`,m.cashOption?i().createElement(i().Fragment,null,i().createElement("br",null),`${de(m.cashOption,r)} ${n.get(le)}`):null):"",h=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(h)switch(h){case"CASH":s=i().createElement(i().Fragment,null,o,y(p),c);break;case"FINANCE":s=i().createElement(i().Fragment,null,i().createElement(ue,{incentiveTerms:m.terms,locale:r,labels:n}),y(p),c,g);break;case"CASH_AND_FINANCE":s=i().createElement(i().Fragment,null,i().createElement(ue,{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(ue,{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,f,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};me.propTypes={incentive:ne().shape({key:ne().string,title:ne().string,label:ne().string,offerDetails:ne().string,shortTitle:ne().string,disclaimer:ne().string,effectiveDate:ne().string,expirationDate:ne().string,conditional:ne().bool,make:ne().string,condition:ne().string,manufacturerOffer:ne().bool,specific:ne().shape({})}).isRequired,isPotentialTaxCredit:ne().bool.isRequired},me.displayName="SpecificDetails";const pe=({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:f,disclaimer:h,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=re;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=re}return`${r.get(l)} ${a}`})(o,f,p,a.name),T=c===r.get(se),S=u||y||b||E?.length||o?.cashOption||o?.cashDue||o?.monthlyPayment||o?.terms||t||n||h;return i().createElement(i().Fragment,null,!l&&i().createElement(i().Fragment,null,!T&&i().createElement("h4",{className:"mt-2 mb-0 h5","data-testid":"offerType"},N),i().createElement("p",{className:"mt-0"},c),S&&i().createElement("h4",{className:"mt-2 mb-0 h5 text-capitalize"},r.get("DETAILS"))),i().createElement("p",null,u),i().createElement(me,{incentive:e,isPotentialTaxCredit:T}),i().createElement(ce,{incentiveId:v,incentiveAccountId:w,incentiveName:d,condition:g,newListingPath:t,usedListingPath:n}),l&&i().createElement(oe,{disclaimer:h}))};pe.propTypes={newListingPath:ne().string,usedListingPath:ne().string,incentive:ne().shape({key:ne().string,title:ne().string,label:ne().string,offerDetails:ne().string,shortTitle:ne().string,disclaimer:ne().string,effectiveDate:ne().string,expirationDate:ne().string,conditional:ne().bool,make:ne().string,condition:ne().string,manufacturerOffer:ne().bool,specific:ne().shape({}),incentiveContentLinkData:ne().arrayOf(ne().shape({}))}).isRequired,account:ne().shape({name:ne().string}),isMultiIncentive:ne().bool},pe.defaultProps={newListingPath:null,usedListingPath:null,account:null,isMultiIncentive:null},pe.displayName="IncentiveDetails";const ge=({vehicleData:e})=>
1{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)))},fe=ne().shape({uri:ne().string,alt:ne().string,title:ne().string}),he=ne().arrayOf(ne().shape({value:ne().string,isFinalPrice:ne().bool})),ye=ne().shape({images:ne().arrayOf(fe),pricing:ne().shape({dprice:he}),title:ne().arrayOf(ne().string),condition:ne().string});ge.propTypes={vehicleData:ye.isRequired},ge.displayName="VehicleInfo";const be=({children:e,title:t,isGrouping:a})=>{const[l,r]=(0,n.useState)(!1);return i().createElement("div",null,a?i().createElement(ee.PanelGroup,{className:"my-2",id:t},i().createElement(ee.Panel,{onToggle:()=>r(!l)},i().createElement(ee.Panel.Heading,null,i().createElement(ee.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(ee.Panel.Collapse,null,i().createElement(ee.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))))};be.propTypes={title:ne().string.isRequired,children:ne().element.isRequired,isGrouping:ne().bool.isRequired},be.displayName="IncentiveContent";const Ee=({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(be,{title:u(e.title,e.shortTitle),isGrouping:r,key:`${l}-${e.uniqueId}`},i().createElement(pe,{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(ge,{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))))};Ee.propTypes={vehicleData:ye.isRequired,isMobile:ne().bool.isRequired,incentives:ne().objectOf(ne().arrayOf(ne().shape({condition:ne().string.isRequired,conditional:ne().bool.isRequired,content:ne().string,disclaimer:ne().string.isRequired,effectiveDate:ne().string.isRequired,expirationDate:ne().string.isRequired,key:ne().string.isRequired,make:ne().string.isRequired,manufacturerOffer:ne().bool,offerDetails:ne().string.isRequired,shortTitle:ne().string.isRequired,title:ne().string.isRequired,uniqueId:ne().string.isRequired}))),titleOptions:ne().shape({incentiveTitleDisplay:ne().string.isRequired,incentiveTitleCustom:ne().string.isRequired}).isRequired,isGrouping:ne().bool.isRequired,account:ne().shape({name:ne().string,id:ne().string}).isRequired,newListingPath:ne().string,usedListingPath:ne().string,isMultiIncentive:ne().bool},Ee.defaultProps={newListingPath:"",usedListingPath:"",incentives:{}},Ee.displayName="IncentiveGroup";const ve={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 we(e){const t=window&&window.jQuery?window.jQuery(document):{};Object.keys(t).length>0&&t.trigger("trackEvent",{...ve,...e})}const Ne=({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:f,isMobile:h,ctaPrint:y,isDisclosure:b})=>{const{shortTitle:E,disclaimer:v}=t,{windowId:w,widgetName:N}=(0,m.useRequestData)(),T=Object.keys(f).length>0,S=()=>
1{l(),function(e,t){we({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(ee.Modal,{show:n,onHide:S,onShow:()=>{if(t&&Object.keys(t).length>0){const{title:e}=t;!function(e,t,n){we({widgetId:t,widgetName:e,element:"Specials details link",elementCTA:n,result:"Opened dialog"})}(N,w,e)}},className:ae(["m-1",T?"multi-incentive-modal":"single-incentive-modal",h&&"dock-right"])},i().createElement(ee.Modal.Header,null,i().createElement(ee.Modal.Title,{className:"text-center"},i().createElement("button",{type:"button","aria-label":"Close",className:"close text-muted",onClick:S},i().createElement("i",{className:ae(["ddc-icon",...T?["ddc-icon-remove2","ddc-icon-size-large"]:["ddc-icon-close"]]),"aria-hidden":"true"})),i().createElement("span",{className:ae([...T?[]:["h3","my-0","px-5"]])},T?I:E))),i().createElement(ee.Modal.Body,null,T?i().createElement(Ee,{incentives:f,account:e,newListingPath:a,usedListingPath:r,titleOptions:c,isGrouping:u,vehicleData:g,isMobile:h,isMultiIncentive:T}):i().createElement(i().Fragment,null,i().createElement(pe,{incentive:t,newListingPath:a,usedListingPath:r,account:e,isMultiIncentive:T}),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(oe,{disclaimer:v,isDisclosure:b}))))};Ne.propTypes={incentive:ne().shape({key:ne().string,title:ne().string,label:ne().string,offerDetails:ne().string,shortTitle:ne().string,disclaimer:ne().string,effectiveDate:ne().string,expirationDate:ne().string,conditional:ne().bool,make:ne().string,condition:ne().string,manufacturerOffer:ne().bool,specific:ne().shape({})}),isOpen:ne().bool.isRequired,onModalClose:ne().func.isRequired,account:ne().shape({name:ne().string,id:ne().string}).isRequired,newListingPath:ne().string,usedListingPath:ne().string,cta:ne().shape({clickEvent:ne().func,classes:ne().arrayOf(ne().string),isVisible:ne().bool,label:ne().string,url:ne().string,promo:ne().shape({})}),applePassBtn:ne().shape({title:ne().string,description:ne().string,disclaimer:ne().string,discountValue:ne().string,promoDiscountType:ne().string,endDateDisplay:ne().string,id:ne().string,promoDetails:ne().string,incentive:ne().shape({})}),titleOptions:ne().shape({incentiveTitleDisplay:ne().string.isRequired,incentiveTitleCustom:ne().string.isRequired}),title:ne().string,subTitle:ne().string,isMobile:ne().bool,isGrouping:ne().bool,vehicleData:ye,groupIncentive:ne().objectOf(ne().arrayOf(ne().shape({condition:ne().string.isRequired,conditional:ne().bool.isRequired,content:ne().string,disclaimer:ne().string.isRequired,effectiveDate:ne().string.isRequired,expirationDate:ne().string.isRequired,key:ne().string.isRequired,make:ne().string.isRequired,manufacturerOffer:ne().bool,offerDetails:ne().string.isRequired,shortTitle:ne().string.isRequired,title:ne().string.isRequired,uniqueId:ne().string.isRequired}))),ctaPrint:ne().shape({pushOutsiderCtaPrint:ne().func}),isDisclosure:ne().bool},Ne.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},Ne.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}
1\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 Te=e=>[...new Set(e)].filter(e=>e).join(" ")||null,Se="PLEASE_CALL",Ie="VDP",Ce="SRP",De="p-0 text-left bg-transparent border-0",Pe="DEFINITIONS_DISCLOSURES",Ae=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}),Re=new Intl.DateTimeFormat("en-US"),_e="object"==typeof document,Le=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%>":Ae.format(r),"<%=downPayment%>":Ae.format(i),"<%=lenderLegalName%>":a,"<%=loanProgramEndDate%>":s?Re.format(new Date(s)):"","<%=dealershipName%>":n}},ke=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?Re.format(new Date(i)):"","<%=leaseTerm%>":a,"<%=leaseDueAtSigning%>":Ae.format(l),"<%=acquisitionFee%>":Ae.format(r),"<%=capCostTotal%>":Ae.format(s),"<%=totalMonthlyPayments%>":Ae.format(o),"<%=capCostReduction%>":Ae.format(c),"<%=leaseSecurityDeposit%>":Ae.format(d),"<%=monthlyPayment%>":u,"<%=excessMileCharge%>":Ae.format(m),"<%=annualMiles%>":p,"<%=dealershipName%>":g}},Oe=(e,t)=>{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 xe(e=[]){return e.filter(e=>e.isFinalPrice)}function Fe(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 Me(e,t){const[n]=e.querySelectorAll(t);return n}function qe(e){return"LOAN"===e.type?Le(e):"LEASE"===e.type?ke(e):{}}const $e=(e,t)=>
1n=>{"click"!==n.type&&("keydown"!==n.type||13!==n.which&&32!==n.which)||e(t)},ze=(e={})=>"object"==typeof e&&null!==e&&0!==Object.entries(e).length,He=()=>"undefined"!=typeof window&&window.DDC?.pubsub||void 0;function Ue({className:e,children:t}){return i().createElement("dl",{className:Te(["pricing-detail","line-height-condensed",e])},t)}function Be(){return Be=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},Be.apply(null,arguments)}function je({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"}))}Ue.propTypes={className:ne().string.isRequired,children:ne().oneOfType([ne().element,ne().array]).isRequired},Ue.displayName="PricingWrapper",je.propTypes={labelKey:ne().string.isRequired,isExpanded:ne().bool,onToggleClick:ne().func,onPrefetch:ne().func},je.defaultProps={isExpanded:!1,onToggleClick:null,onPrefetch:null},je.displayName="DealerDetailsToggle","undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self;var We={exports:{}};We.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(),ne());var Ve=We.exports;function Ge(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 Ke({data:e,isLoading:t,labelKey:n,dataTestId:a,rowClassName:l,className:r,columns:s}){return i().createElement("div",{className:Te([r,"mt-2 w-100"])},t?i().createElement(Ve,{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 Ye({isStyleEditable:e,priceClassName:t,vehicleCondition:n,conditionClassName:a,layoutClassName:l,handleClick:r,tabIndex:s=0,children:o}){return i().createElement("span",Be({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 Xe({href:e,children:t,target:n,classNames:a}){return i().createElement("sup",{className:Te(a)},i().createElement("a",{target:n,href:e},t))}function Je({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:f,isFirstItem:h,handleDetailClick:y,showHyperlink:b,showOptionsToggle:E,fetchDealerOptionsCallback:v,dealerOptions:w,isLoadingDealerOptions:N,showFeesToggle:T,fetchDealerFeesCallback:S,dealerFees:I,isLoadingDealerFees:C,dataKey:D}){const P=(0,m.useLabels)(),{priceDiscountColor:A,finalPriceFontWeight:R,finalPriceLabelFontWeight:_,finalPriceClasses:L,finalPriceSize:k,finalPriceLabelSize:O,finalPriceColor:x,finalPriceLabelColor:F,incentiveTitleDisplay:M,incentiveTitleCustom:q,showMinusForIncentives:$,showDealerFeesOnPageLoad:z,showDealerOptionsOnPageLoad:H}=(0,m.usePrefs)();let{priceLabelClasses:U}=(0,m.usePrefs)();
1const 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)(()=>{T&&V&&S&&S()},[V,S]);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||h||(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===Se&&(le="no-value",K=P.get(Se)),(s||Z||"oemPriceMapDiscountBonusTotal"===r)&&a!==Se){const e="true"===$||s?"-":"";K=u?`${e} ${a}`:`${e}${a}`,ee=A}(X&&l||a===Se||J)&&(te=Te([R,L]),a!==Se&&(te=Te([te,k,"line-height-reset","pb-2"]))),X&&l&&(U=Te([U,O,F,_])),Q&&(ne="eprice"),J&&(te=Te([te,"text-muted"])),l&&(te=Te([te,x]));const re=""!==g&&""!==ie,se=i().createElement("dd",{className:"pricing-divider my-3",key:`${e}-divider`}),oe=i().createElement("span",Be({className:Te(["price-value",le]),"data-style-editor-id":re?`${f}-${p}-price-value`:null,"data-style-editor-text":re?`.${f} .${g}.pricing-detail .${ie} .price-value`:null},Z&&{role:"button",onClick:$e(y,t),onKeyDown:$e(y,t),tabIndex:0}),K);return[Y?se:"",i().createElement("dt",{"data-style-editor-price":re?"true":null,className:Te([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:Te(["text-link","d-block",u?"ddc-font-size-small":"ddc-font-size-xsmall"])},P.get("DETAILS")):null;let l=null;return b&&B.has(Pe)&&(l=i().createElement(Xe,{key:`${e}-sup`,target:"_blank",href:B.get(Pe)},"1")),i().createElement(Ye,Be({isStyleEditable:re,priceClassName:ie,vehicleCondition:p,conditionClassName:g,layoutClassName:f},Z&&{handleClick:$e(y,t),tabIndex:0}),P.getHTML(n),l,a)})()),i().createElement("dd",{"data-style-editor-price":re?"true":null,className:Te([ie,ae,ee,te,ne,Z?"pointer":""]),key:`${e}-dd`,"data-key":D},oe),E&&i().createElement(je,{labelKey:"ADDITIONAL_DETAILS",isExpanded:j,onToggleClick:()=>{W(e=>!e)},onPrefetch:v}),E&&j&&i().createElement(Ke,{data:w,isLoading:N,labelKey:P.get("ADDITIONAL_DETAILS"),dataTestId:"dealer-options-skeleton",className:"dealer-options-expanded",columns:["description","price"]}),T&&i().createElement(je,{key:`${e}-fees-toggle`,labelKey:"DETAILS",isExpanded:V,onToggleClick:()=>{G(e=>!e)},onPrefetch:S}),T&&V&&i().createElement(Ke,{key:`${e}-fees-expanded`,data:I,isLoading:C,labelKey:P.get("DETAILS"),dataTestId:"dealer-fees-skeleton",className:"dealer-fees-expanded",columns:["description","price"]})]}Ge(".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}"),Ke.propTypes={data:ne().arrayOf(ne().shape({})).isRequired,isLoading:ne().bool,labelKey:ne().string.isRequired,dataTestId:ne().string,rowClassName:ne().string,className:ne().string,columns:ne().arrayOf(ne().string)},Ke.defaultProps={isLoading:!1,dataTestId:void 0,rowClassName:"",className:"",columns:null},Ke.displayName="DealerExpandedRow",Ye.defaultProps={isStyleEditable:!1,priceClassName:"",vehicleCondition:"",conditionClassName:"",layoutClassName:"",handleClick:null,tabIndex:0},Ye.propTypes={isStyleEditable:ne().bool,priceClassName:ne().string,vehicleCondition:ne().string,conditionClassName:ne().string,layoutClassName:ne().string,handleClick:ne().func,tabIndex:ne().number,children:ne().oneOfType([ne().element,ne().arrayOf(ne().element)]).isRequired}
1,Ye.displayName="PriceLabel",Xe.propTypes={href:ne().string.isRequired,children:ne().oneOfType([ne().string,ne().element]).isRequired,target:ne().string,classNames:ne().arrayOf(ne().string)},Xe.defaultProps={target:"",classNames:[]},Xe.displayName="SupHyperlink",Je.propTypes={item:ne().shape({type:ne().string.isRequired,label:ne().string.isRequired,value:ne().string,isFinalPrice:ne().bool,incentiveId:ne().string,typeClass:ne().string,isDiscount:ne().bool}),incentives:ne().shape({}).isRequired,stackType:ne().string.isRequired,isMobile:ne().bool.isRequired,vehicleCondition:ne().string.isRequired,conditionClassName:ne().string.isRequired,layoutClassName:ne().string.isRequired,isFirstItem:ne().bool.isRequired,handleDetailClick:ne().func,showHyperlink:ne().bool,showFeesToggle:ne().bool,isLoadingDealerFees:ne().bool,showOptionsToggle:ne().bool,isLoadingDealerOptions:ne().bool,showFeesTooltip:ne().bool,fetchDealerFeesCallback:ne().func,dealerFees:ne().arrayOf(ne().shape({description:ne().string,price:ne().string})),dataKey:ne().string},Je.defaultProps={item:{value:"",isFinalPrice:!1,incentiveId:"",typeClass:"",isDiscount:!1},showHyperlink:!1,showFeesToggle:!1,isLoadingDealerFees:!1,showOptionsToggle:!1,isLoadingDealerOptions:!1,fetchDealerFeesCallback:null,dealerFees:[]},Je.displayName="PriceItem";const Qe="FINANCE_DRIVER_FINANCE_PAYMENT_TOOLTIP_VERBIAGE",Ze="FINANCE_DRIVER_LEASE_PAYMENT_TOOLTIP_VERBIAGE",et="EST_FINANCE_DISCLAIMER_HEADING",tt="EST_LEASE_DISCLAIMER_HEADING",nt="THE_DEALERSHIP",it="DETAILED_PRICING",at="PLEASE_CALL",lt="SLASH_MO",rt="CLICK_TO_VIEW_DISCLAIMER";function st({dealershipName:e,disclaimerLabel:t,placeholderValuesObj:n}){const a=(0,m.useLabels)(),l=a.get("FINANCE_DRIVER_PAYMENT_INFO_VDP_TOOLTIP_VERBIAGE"),r=e===nt?a.get(nt):e,s=Oe(a.get(t),{...n,"<%=dealershipName%>":r});return[i().createElement("div",{key:"introHtml",dangerouslySetInnerHTML:{__html:l}}),i().createElement("div",{key:"disclaimerHtml",dangerouslySetInnerHTML:{__html:s}})]}function ot({...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(ee.Modal,{show:n,onHide:()=>a(),className:`m-1 ${o}`},i().createElement("div",{className:"p-1"},i().createElement(ee.Modal.Header,null,i().createElement(ee.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(ee.Modal.Body,null,r)))}function ct({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)),f=(e=i().createElement("span",null),t=i().createElement("span",null))=>{c(!o),u(e),g(t)},h=e=>{const{label:t,value:n}=e,a="lease"===e.type,o=a?Ze:Qe,c=a?ke(e):Le(e),d=a?tt:et,u=i().createElement(st,{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:()=>f(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:f,title:d,body:p};return i().createElement(i().Fragment,null,e&&y.value&&h(y),t&&b.value&&h(b),i().createElement(ot,E))}function dt(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=qe(l);return"LOAN"===o&&(s=t.get(et),r=i().createElement(st,{placeholderValuesObj:d,disclaimerLabel:Qe,dealershipName:c})),"LEASE"===o&&(s=t.get(tt),r=i().createElement(st,{placeholderValuesObj:d,disclaimerLabel:Ze,dealershipName:c})),i().createElement(ee.Modal,{show:n,onHide:a},i().createElement(ee.Modal.Header,{closeButton:!0},i().createElement(ee.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(ee.Modal.Body,null,r))}st.propTypes={dealershipName:ne().string.isRequired,disclaimerLabel:ne().string.isRequired,placeholderValuesObj:ne().shape().isRequired},st.displayName="DisclaimerContent",ot.propTypes={showState:ne().bool.isRequired,closeMethod:ne().func.isRequired,body:ne().element.isRequired},ot.displayName="LoanLeaseModal",ct.defaultProps={loan:{},lease:{}},ct.propTypes={loan:ne().shape({}),lease:ne().shape({}),isMobile:ne().bool.isRequired,accountInfo:ne().shape({name:ne().string.isRequired,id:ne().string.isRequired}).isRequired,paymentPriceFontWeight:ne().string},ct.defaultProps={paymentPriceFontWeight:"font-weight-bold"},ct.displayName="Payments",dt.defaultProps={paymentInfo:null},dt.propTypes={isModalVisible:ne().bool.isRequired,handleClose:ne().func.isRequired,paymentInfo:ne().shape()},dt.displayName="DisclaimersModal";const ut={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 mt(e){let t={};"object"==typeof window&&(t=window.jQuery(document)||{}),Object.keys(t).length>0&&t.trigger("trackEvent",{...ut,...e})}function pt(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},mt(i)}const gt=(()=>{if(!_e)return{};const e=window.sessionStorage;return JSON.parse(e.getItem("wiapiSettings"))||{}})(),ft=gt?.hideDefaultPayments||!1;function ht({label:e}){return i().createElement("span",{className:"price-label",dangerouslySetInnerHTML:{__html:e}})}function yt({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:Te(["text-muted","d-block",a])},i().createElement(ht,{label:e.label})," "),i().createElement("strong",{className:Te(["line-height-reset",r])},l)):null}function bt({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:Te(["text-muted","text-nowrap","d-block",t])},i().createElement(ht,{label:o.get(e.label)}),";",i().createElement("button",{className:"text-link line-height-reset help-icon",onClick:l,type:"button"},i().createElement("i",{className:Te(["ddc-icon","ddc-icon-help-circle","d-inline-block","pl-1",s]),"aria-hidden":"true"}),i().createElement("span",{className:"sr-only"},o.get(rt)))),i().createElement("strong",{className:Te(["line-height-reset",a])},n),i().createElement("span",{className:Te(["ddc-font-size-small","d-inline","line-height-reset",r])},o.get(lt))):null}function Et({label:e,labelFontSize:t,isCalculatePayment:n,viewPriceDetail:a,displayAsButton:l=!0}){const r=(0,m.useLabels)();let s=null;if(e){const o=Te(["text-link","text-left","d-block","line-height-reset",t,...n?["calculate-payment-integrated","calculate-payment-scroll-up"]:[]]);
1s=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 vt({dealerAddress:e,isFooter:t,displayInline:n}){const a=(0,m.useLabels)(),l=Te(["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 wt({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:f,pricingSummaryLoanLeaseHelpIconColor:h,pricingSummaryAlignItems:y}=(0,m.usePrefs)(),[b,E]=(0,n.useState)(!1),[v,w]=(0,n.useState)(null),N=e=>e===at?o.get(at):e,T=()=>{pt(r,s,!1),E(!1)},S=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=xe(e),n=function(e=[],t=!1){return t?[]:e.filter(e=>"LOAN"===e.type||"LEASE"===e.type)}(e,ft);A=i().createElement("div",null,i().createElement(dt,{isModalVisible:b,handleClose:T,paymentInfo:v}),i().createElement("ul",{className:Te(["pricing-summary","list-unstyled","d-flex","justify-items-between","mb-4",y])},i().createElement("li",{className:Te([P<=2?"half-width":"third-width"," d-flex","flex-wrap","mr-4","summary-price"])},t.map(e=>i().createElement(yt,{price:e,viewPriceDetail:a,finalLabelSize:S,finalPriceSize:I,paymentLabelSize:C,key:e.type,buttonResetClasses:De,finalPrice:N(e.value)})),i().createElement(Et,{label:it,labelFontSize:C,isCalculatePayment:!1,viewPriceDetail:a})),i().createElement("li",{className:"d-flex flex-wrap flex-grow-1"},n.map(e=>i().createElement(bt,{price:e,paymentLabelSize:C,paymentPriceSize:D,pricingSummaryPaymentIntervalColor:g,pricingSummaryLoanLeaseHelpIconColor:h,key:e.type,paymentPrice:N(e.value),handleHelpCircleIcon:()=>{return t=e,pt(r,s,!0),E(!0),void w(t);var t}})),"true"===f&&i().createElement(Et,{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:De,onClick:a,type:"button"},i().createElement("span",{dangerouslySetInnerHTML:{__html:t}}),i().createElement(Et,{displayAsButton:!1,label:it,labelFontSize:C}))),i().createElement("dd",{className:Te([d,I,u])},i().createElement("button",{className:De,onClick:a,type:"button"},N(n))),i().createElement(vt,{dealerAddress:l}))}return A}function Nt({summary:e,dealerAddress:n,viewPriceDetail:a,isMobile:l}){const r=Me(document,".ddc-vehicle-pricing-summary"),s=i().createElement(wt,{summary:e,viewPriceDetail:a,dealerAddress:n,isMobile:l});return r?t().createPortal(s,r):null}function Tt({summary:e,dealershipName:t,viewPriceDetail:n}){const a=(0,m.useLabels)(),l=e.find(e=>e.isFinalPrice);if(!l)return null;const r=Oe(a.get("DEALERSHIP_NAME_PRICE"),{"<%=dealershipName%>":t});let s=l.value;return s===at&&(s=a.get(at)),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")))))}ht.propTypes={label:ne().string.isRequired},ht.displayName="LabelAsHTML",yt.propTypes={price:ne().shape({type:ne().string.isRequired,label:ne().string.isRequired,value:ne().number.isRequired,isFinalPrice
1:ne().bool.isRequired}).isRequired,buttonResetClasses:ne().string,viewPriceDetail:ne().func.isRequired,finalLabelSize:ne().string,finalPrice:ne().string.isRequired,finalPriceSize:ne().string},yt.defaultProps={buttonResetClasses:"",finalLabelSize:"",finalPriceSize:""},yt.displayName="PricingSummaryFinalPrice",bt.propTypes={price:ne().shape({type:ne().string.isRequired,label:ne().string.isRequired,value:ne().number.isRequired,isFinalPrice:ne().bool.isRequired}).isRequired,paymentLabelSize:ne().string,paymentPrice:ne().string.isRequired,paymentPriceSize:ne().string,handleHelpCircleIcon:ne().func.isRequired,pricingSummaryPaymentIntervalColor:ne().string,pricingSummaryLoanLeaseHelpIconColor:ne().string},bt.defaultProps={paymentLabelSize:"",paymentPriceSize:"",pricingSummaryPaymentIntervalColor:"",pricingSummaryLoanLeaseHelpIconColor:""},bt.displayName="PricingSummaryPayments",Et.propTypes={label:ne().string.isRequired,labelFontSize:ne().string,isCalculatePayment:ne().bool,viewPriceDetail:ne().func},Et.defaultProps={labelFontSize:"",isCalculatePayment:!1,viewPriceDetail:()=>{}},Et.displayName="PricingSummaryLink",vt.propTypes={dealerAddress:ne().shape({state:ne().string,country:ne().string}),isFooter:ne().bool,displayInline:ne().bool},vt.defaultProps={dealerAddress:{},isFooter:!1,displayInline:!1},vt.displayName="CaDisclaimer",Ge("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}"),wt.displayName="PricingSummary",wt.propTypes={summary:ne().arrayOf(ne().shape({type:ne().string.isRequired,label:ne().string.isRequired,value:ne().string.isRequired})).isRequired,viewPriceDetail:ne().func.isRequired,dealerAddress:ne().shape({state:ne().string,country:ne().string}),isMobile:ne().bool},wt.defaultProps={dealerAddress:{},isMobile:!1},Nt.propTypes={summary:ne().arrayOf(ne().shape({type:ne().string.isRequired,label:ne().string.isRequired,value:ne().number.isRequired})).isRequired,viewPriceDetail:ne().func.isRequired,dealerAddress:ne().shape({address1:ne().string,address2:ne().string,address3:ne().string,city:ne().string,state:ne().string,postalCode:ne().string,country:ne().string}),isMobile:ne().bool.isRequired},Nt.defaultProps={dealerAddress:{}},Nt.displayName="PricingSummaryPortal",Ge(".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}"),Tt.propTypes={summary:ne().arrayOf(ne().shape({type:ne().string.isRequired,label:ne().string.isRequired,value:ne().number.isRequired})).isRequired,dealershipName:ne().string.isRequired,viewPriceDetail:ne().func.isRequired},Tt.displayName="PricingSummaryFooter";class St extends i().Component{constructor(e){super(e),this.el=document.createElement("div")}componentWillUnmount(){this.containerEl&&this.containerEl.removeChild(this.el)}render(){this.containerEl=Me(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(Tt,{summary:a,viewPriceDetail:n,dealershipName:l}),i().createElement(vt,{dealerAddress:e,isFooter:!0}));return this.containerEl?t().createPortal(r,this.el):r}}function It({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){mt({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?_e?i().createElement(i().Fragment,null,i().createElement(Nt,{summary:e,viewPriceDetail:c,dealerAddress:t,isMobile:o}),!a&&i().createElement(St,{summary:e,viewPriceDetail:c,dealerAddress:t,dealershipName:n})):null:a?null:i().createElement(i().Fragment,null,i().createElement(wt,{summary:e,viewPriceDetail:c,dealerAddress:t,isMobile:o}))}function Ct({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:f,paymentBoxPadding:h,paymentBoxBackgroun
1d:y}=(0,m.usePrefs)(),[b,E]=(0,n.useState)(!1),[v,w]=(0,n.useState)(i().createElement("span",null)),[N,T]=(0,n.useState)(i().createElement("span",null)),S=(e=i().createElement("span",null),t=i().createElement("span",null))=>{E(!b),w(e),T(t)};let I=null;if(!a){const n={isMobile:e,showState:b,closeMethod:S,title:v,body:N};I=i().createElement(i().Fragment,null,(()=>{const e=["pricing-loan-lease list-unstyled d-flex mb-0",`px-${h} py-${h}`,y];return i().createElement("ul",{className:e.join(" ")},t.map((e,n)=>((e,t,n)=>{const{type:a,label:m,value:h}=e,y="LEASE"===a,b=y?Ze:Qe,E=qe(e),v=y?tt:et,w=[2===n?"two-item":"one-item",2===t?"border-left":null],N=i().createElement(st,{placeholderValuesObj:E,disclaimerLabel:b,dealershipName:l}),T=i().createElement("i",{className:`ddc-icon ddc-icon-help-circle ddc-icon-size-small d-inline-block pl-1 ${f}`,"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:()=>S(r.get(v),N),type:"button","aria-label":r.get(rt)},T)),D=i().createElement("strong",{className:`line-height-reset ${c} ${d} ${u} ${p}`},h),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(ot,n))}return I}function Dt({isLoanLeaseAvailable:e,isScrollingSidebar:t,isMobile:n}){const{paymentCalculatorButtonLabel:a,paymentCalculatorButtonClasses:l,paymentCalculatorButtonIcon:r,paymentCalculatorButtonIconClasses:s,paymentBoxBackground:o,paymentBoxPadding:c}=(0,m.usePrefs)(),d=(0,m.useLabels)(),u=()=>{if(n){const e=He();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 Pt({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,Ae.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,Ae.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(lt)),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}St.propTypes={summary:ne().arrayOf(ne().shape({type:ne().string.isRequired,label:ne().string.isRequired,value:ne().number.isRequired})).isRequired,dealerAddress:ne().shape({state:ne().string,country:ne().string}),viewPriceDetail:ne().func.isRequired,dealershipName:ne().string.isRequired},St.defaultProps={dealerAddress:{}},St.displayName="PricingSummaryFooterPortal",It.propTypes={summary:ne().arrayOf(ne().shape({type:ne().string,label:ne().string,value:ne().string})),dealershipName:ne().string.isRequired,dealerAddress:ne().shape({address1:ne().string,address2:ne().string,address3:ne().string,city:ne().string,
1state:ne().string,postalCode:ne().string,country:ne().string}),hideStickyPricing:ne().bool},It.defaultProps={dealerAddress:{},summary:[],hideStickyPricing:!1},It.displayName="PricingSummaryContainer",Ct.propTypes={isMobile:ne().bool.isRequired,summary:ne().arrayOf(ne().shape({type:ne().string.isRequired,key:ne().string,label:ne().string.isRequired,value:ne().number.isRequired})).isRequired,isScrollingSidebar:ne().bool.isRequired,dealershipName:ne().string.isRequired},Ct.displayName="PricingLoanLease",Dt.propTypes={isLoanLeaseAvailable:ne().bool.isRequired,isScrollingSidebar:ne().bool.isRequired,isMobile:ne().bool.isRequired},Dt.displayName="accountInfo",Pt.propTypes={retailPrice:ne().string.isRequired,calcCashtrade:ne().string.isRequired,calcTerm:ne().string.isRequired,calcRate:ne().string.isRequired,paymentPriceFontWeight:ne().string},Pt.defaultProps={paymentPriceFontWeight:"font-weight-bold"},Pt.displayName="EstMonthlyPayment";const At="undefined"!=typeof window&&void 0!==window.DDC&&window.DDC.getSiteProperty&&"function"==typeof window.DDC.getSiteProperty,Rt=e=>[...new Set(e)].filter(e=>e).join(" ")||null,_t="default",Lt="responsive",kt="undefined"!=typeof window&&void 0!==window.document,Ot=({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:!!kt&&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===Lt,u=Rt(["my-0 mx-auto",!c&&"center-block-vertical"]),m=Rt(["wsm-common-modal",d&&"responsive",c&&"dock-right"]);return i().createElement(ee.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(ee.Modal.Header,{className:"px-4 py-4 sticky-top"},i().createElement(ee.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(ee.Modal.Body,{className:"overflow-auto pb-6 px-4 p-lg-6 mx-lg-6 mb-lg-6"},l))};Ot.propTypes={isOpen:ne().bool.isRequired,title:ne().oneOfType([ne().string,ne().element]).isRequired,onClose:ne().func.isRequired,onOpen:ne().func,children:ne().node.isRequired,width:ne().oneOf([_t,Lt])},Ot.defaultProps={onOpen:()=>{},width:_t},Ot.displayName="CommonModal",ne().number.isRequired,ne().shape({title:ne().string.isRequired,details:ne().string.isRequired,isPicked:ne().bool}).isRequired,ne().shape({mainDetail:ne().string,subContent:ne().arrayOf(ne().shape({title:ne().string.isRequired,details:ne().string.isRequired,isPicked:ne().bool})).isRequired,subText:ne().string.isRequired,learnMoreLink:ne().string,facetId:ne().string,evInfoPageHref:ne().string}).isRequired,ne().shape({details:ne().string.isRequired,subText:ne().string.isRequired,learnMoreLink:ne().string,facetId:ne().string,evInfoPageHref:ne().string}).isRequired,ne().shape({}).isRequired,ne().bool.isRequired,ne().bool.isRequired,ne().func.isRequired,ne().shape({}).isRequired,ne().string.isRequired,ne().bool.isRequired;const{entries:xt,setPrototypeOf:Ft,isFrozen:Mt,getPrototypeOf:qt,getOwnPropertyDescriptor:$t}=Object;let{freeze:zt,seal:Ht,create:Ut}=Object,{apply:Bt,construct:jt}="undefined"!=typeof Reflect&&Reflect;zt||(zt=function(e){return e}),Ht||(Ht=function(e){return e}),Bt||(Bt=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)}),jt||(jt=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 Wt=pn(Array.prototype.forEach),Vt=pn(Array.prototype.lastIndexOf),Gt=pn(Array.prototype.pop),Kt=pn(Array.prototype.push),Yt=pn(Array.prototype.splice),Xt=Array.isArray,Jt=pn(String.prototype.toLowerCase),Qt=pn(String.prototype.toString),Zt=pn(String.prototype.match),en=pn(String.prototype.replace),tn=pn(String.prototype.indexOf),nn=pn(String.prototype.trim),an=pn(Number.prototype.toString),ln=pn(Boolean.prototype.toString),rn="undefined"==typeof BigInt?null:pn(BigInt.prototype.toString),sn="undefined"==typeof Symbol?null:pn(Symbol.prototype.toString),on=pn(Object.prototype.hasOwnProperty),cn=pn(Object.prototype.toString),dn=pn(RegExp.prototype.test),un=(mn=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return jt(mn,t)});var mn;function pn(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 Bt(e,t,i)}}function gn(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Jt;if(Ft&&Ft(e,null),!Xt(t))return e;let i=t.length;for(;i--;){let a=t[i];if("string"==typeof a){const e=n(a);e!==a&&(Mt(t)||(t[i]=e),a=e)}e[a]=!0}return e}function fn(e){for(let t=0;t<e.length;t++)on(e,t)||(e[t]=null);return e}function hn(e){const t=Ut(null);for(const[n,i]of xt(e))on(e,n)&&(Xt(i)?t[n]=fn(i):i&&"object"==typeof i&&i.constructor===Object?t[n]=hn(i):t[n]=i);return t}function yn(e,t){for(;null!==e;){const n=$t(e,t);if(n){if(n.get)return pn(n.get);if("function"==typeof n.value)return pn(n.value)}e=qt(e)}return function(){return null}}const bn=zt(["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"]),En=zt(["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"]),vn=zt(["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"]),wn=zt(["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"]),Nn=zt(["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"]),Tn=zt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Sn=zt(["#text"]),In=zt(["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","
1spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Cn=zt(["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"]),Dn=zt(["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","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Pn=zt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),An=Ht(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Rn=Ht(/<%[\w\W]*|[\w\W]*%>/gm),_n=Ht(/\$\{[\w\W]*/gm),Ln=Ht(/^data-[\-\w.\u00B7-\uFFFF]+$/),kn=Ht(/^aria-[\-\w]+$/),On=Ht(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),xn=Ht(/^(?:\w+script|data):/i),Fn=Ht(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Mn=Ht(/^html$/i),qn=Ht(/^[a-z][.\w]*(-[.\w]+)+$/i);var $n=Object.freeze({__proto__:null,ARIA_ATTR:kn,ATTR_WHITESPACE:Fn,CUSTOM_ELEMENT:qn,DATA_ATTR:Ln,DOCTYPE_NAME:Mn,ERB_EXPR:Rn,IS_ALLOWED_URI:On,IS_SCRIPT_OR_DATA:xn,MUSTACHE_EXPR:An,TMPLIT_EXPR:_n});function zn({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 f=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(Ot,{title:l.get("FINANCE_AND_LEASE_DETAILS"),onClose:()=>{a(!1)},isOpen:t},f))}function Hn({accountId:e,accountInfo:t,condition:a,dealerOptions:l,fetchDealerOptionsCallback:r,
1isLoadingDealerOptions:s,dealerFees:o,fetchDealerFeesCallback:c,isLoadingDealerFees:d,incentives:u,isDisplayingEPrice:p,isGridLayout:g,isScrollingSidebar:f,layout:h,pricing:y,vehicleAccountId:b,vehicleId:E,vehicleData:v,hidePricingSummary:w,gmPayments:N=null,gmPaymentsError:T,isLoadingGMPayments:S}){const[I,C]=(0,n.useState)(!1),[D,P]=(0,n.useState)(null),A=(0,m.useLabels)(),[R,_]=(0,n.useState)("dPrice"),{calcCashtrade:L,calcRate:k,calcTerm:O,paymentCalculatorButtonDisplayCondition:x,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&&ze(DDC.userProfile)&&_("ePrice")}),(0,n.useEffect)(()=>{if("ePrice"===R){const e=He();if(e){const{ePriceValue:t,ePriceDifference:n}=Fe(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 ae=xe(ne),le=ae[0]&&ae[0].value,re=[{...Z,type:"LOAN"},{...Q,type:"LEASE"}],se=[...re,{...ae[0]}],oe=((e={})=>({isFinalPrice:!0,type:"UNKNOWN",label:"PRICE",value:Se,...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=h.toLowerCase(),me=("withFees"===V||"withoutFees"===V)&&N&&!S&&!T;"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)=>{ie(e,"Widget name"),ie(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?(fe=a)?fe.normalize("NFD").replace(/\s/g,"-").replace(/[\u0300-\u036f]/g,"").replace("'","").toLowerCase():"":"NEW";var fe;const he=ge?`inv-type-${ge}`:"";let ye=null;Object.keys(ce).length>0&&D&&(ye=i().createElement(Ne,{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}`,f="true"===H&&"msrp"===n.typeClass,h="true"===M&&"+"===n.type&&"ABCRule"===n.typeClass,y="true"===q&&"totalFees"===n.typeClass;return i().createElement(Je,{accountInfo:t,conditionClassName:he,isFirstItem:u,isGridLayout:g,isMobile:de,item:n,layoutClassName:ue,showHyperlink:f,showOptionsToggle:h,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(Je,{item:oe,stackType:R,incentives:{},isMobile:de,isGridLayout:g,vehicleCondition:ge,conditionClassName:he,layoutClassName:ue,accountInfo:t,vehicleId:E,isFirstItem:!0}),Ee=Z&&Z.value||Q&&Q.value,ve="true"===B;let we=null;w||(we=h===Ie?i().createElement(It,{summary:se,dealerAddress:t.address,dealershipName:t.name,hideStickyPricing:ve}):i().createElement(i().Fragment,null,Ee&&!ft&&i().createElement(ct,{loan:Z,lease:Q,isMobile:de,accountInfo:t,paymentPriceFontWeight:F}),!Ee&&!ft&&"true"===$&&i().createElement(Pt,{retailPrice:le,calcCashtrade:L,calcTerm:O,calcRate:k,paymentPriceFontWeight:F})));let Ce=!1;
1At&&(Ce=window.DDC.getSiteProperty(x));let De=null;h===Ie&&re.length>0&&"true"===z&&Z&&Z.value&&Q&&Q.value&&(De=i().createElement(Ct,{summary:re,isMobile:de,isScrollingSidebar:f,dealershipName:t.name}));let Pe=null;h===Ie&&Ce&&(Pe=i().createElement(Dt,{isLoanLeaseAvailable:re.length>0&&"true"===z,isScrollingSidebar:f,isMobile:de}));let Ae=null;const Re=ne&&ne.filter(e=>e.value);Re&&Re.filter(e=>e.isFinalPrice).length>0&&(Ae=i().createElement(vt,{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=Te(["conditional-offers-title","mt-2","mb-3","w-100",W]);return i().createElement(i().Fragment,null,i().createElement(Ue,{className:Te(["mb-0",he])},be(e),Ae),i().createElement("h3",{className:Te([l])},A.get(j)),i().createElement(Ue,{className:Te(["mb-4",he])},be(t),Ae,h!==Ie&&(n||a)&&we,me&&i().createElement(zn,{data:N})),De,Pe,h===Ie&&(n||a)&&we)}{const e=Re&&Re.length>0;return i().createElement(i().Fragment,null,i().createElement(Ue,{className:Te(["mb-4",he])},be(Re),Ae,h!==Ie&&e&&we,me&&i().createElement(zn,{data:N})),De,Pe,h===Ie&&e&&we)}}function Un({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:Te(["btn-block","btn","btn-primary","instant-eprice","dialog",t&&"default"!==t?`btn-${t}`:null]),"data-width":"600px"},g=i().createElement(ee.Tooltip,{className:"tooltip",id:"eprice-tooltip"},r.get("INSTANT_EPRICE_DISABLED_POPOVER")),f=i().createElement("div",{key:"epriceButtonContainer",className:"instantEPriceButton mb-3"},i().createElement("button",Be({},p,{type:"button",disabled:!0}),e));return c?i().createElement("div",{key:"epriceButtonContainer",className:"instantEPriceButton mb-3"},i().createElement("button",Be({},p,{type:"button","data-vehicle-uuid":n,"data-href":u}),d)):i().createElement("div",{className:"disabled"},"undefined"!=typeof window&&window.document?i().createElement(ee.OverlayTrigger,{placement:"top",overlay:g,trigger:["hover","click"]},f):f)}function Bn({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:f,preventMultipleEpriceLeads:h,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,T]=(0,n.useState)(null),S=(0,n.useCallback)(e=>{const t=He();if(t&&e){const{ePriceValue:n,ePriceDifference:i}=Fe(e);t.publish("instant-eprice.show",{ePriceDifference:i,yourEPrice:n})}},[]);(0,n.useEffect)(()=>{const e=He();e&&N&&e.subscribe("instant-eprice.complete",()=>{S(N)})},[N]);const I=`/instant-eprice-form.htm?itemId=${u}&vehicleId=${u}&category=${m}&parentPageAlias=${g}&vcdaInstantEPrice`,C={className:Te(["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 f?i().createElement(Un,{buttonLabel:o,buttonStyle:c,buttonSize:d,vehicleId:u,vehicleCategory:m,pageAlias:g}):i().createElement("div",{key:"epriceButtonContainer",className:"instantEPriceButton mb-3"},i().createElement("button",Be({},C,{type:"button",onClick:()=>{const{DDC:e}=window;e&&(a?(e.userProfileController.saveInstantEpriceVehicle(null,u),S(r)):(e.currentVLPDialog={instantEpriceUrl:I,instantEpriceVehicleId:u},T(r)));try{s(u)}catch(e){throw new Error("Unable to handle click.")}finally{!a||h&&window.DDC.userProfile.ePriceVehicles&&window.DDC.userProfileController.hasUserContactData()||window.DDC.userProfileController.sendLeadForm(I)}!function({buttonLabel:e,widgetName:t,widgetId:n,openModal:i,vehicleTrackingData:a}){mt({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:Te(["instanteprice-pending",y,"text-success","text-center",e?null:"d-none"])},E.EPRICE_PENDING))}function jn({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:f,vehicleTrackingData:h}
1){const[y,b]=(0,n.useState)(!1),[E,v]=(0,n.useState)(!0),[w,N]=(0,n.useState)(!1),[T,S]=(0,n.useState)(null),[I,C]=(0,n.useState)(Ce),{deviceType:D}=(0,m.useRequestData)(),P="MOBILE"===D,A=He(),{ePriceStatus:R,ePrice:_,ePriceButtonLabel:L}=c,k=R&&"DISABLED"===R,O=R&&"NON_APPLICABLE"!==R,x=e!==g,F=!!At&&window.DDC.getSiteProperty("disableInstantEpriceButton"),M=!("false"===u&&x||F),q=(e={})=>{ze(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(Ie.toLowerCase())&&C(Ie),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===f&&(d(e),setTimeout(()=>{window.DDC.userProfileController.saveProfile({itemUUID:e},null,!1)},0))})(e)}))},[]),(0,n.useEffect)(()=>{A&&T&&y&&(A.subscribe("instant-eprice.complete",e=>{(I===Ie||I===Ce&&f===e)&&d(T),$(window.DDC.userProfile),S(null)}),A.subscribe("instant-eprice.cancel",()=>{b(!1),z()}),A.subscribe("instant-eprice.close",()=>{z()}))},[y,T]),(0,n.useEffect)(()=>{if(ze(p)){const{ePriceVehicles:e}=p;"true"!==s||y?e&&e.find(e=>e.itemUUID===f)&&!y&&d(f):d(f)}},[p]),O&&M?i().createElement(Bn,{hasUserProfileData:w,loadingUserProfile:E,isModalVisible:y,ePriceDetail:_,buttonLabel:L,buttonStyle:a,buttonSize:t,handleClick:e=>{const{DDC:t}=window;let n=!1;return!w&&ze(t.userProfile)?(q(t.userProfile),d(e)):w?d(e):((e=>{b(!0),S(e)})(e),n=!0),n},vehicleId:f,vehicleCategory:"AUTO",vehicleTrackingData:h,pageAlias:o,disabled:k,preventMultipleEpriceLeads:"true"===r,ePriceFontWeight:l,userProfile:p}):null}function Wn({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(vt,{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,f=c.prototype,h=yn(f,"cloneNode"),y=yn(f,"remove"),b=yn(f,"nextSibling"),E=yn(f,"childNodes"),v=yn(f,"parentNode");if("function"==typeof s){const e=i.createElement("template");e.content&&e.content.ownerDocument&&(i=e.content.ownerDocument)}let w,N="";const{implementation:T,createNodeIterator:S,createDocumentFragment:I,getElementsByTagName:C}=i,{importNode:D}=a;let P={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof xt&&"function"==typeof v&&T&&void 0!==T.createHTMLDocument;const{MUSTACHE_EXPR:A,ERB_EXPR:R,TMPLIT_EXPR:_,DATA_ATTR:L,ARIA_ATTR:k,IS_SCRIPT_OR_DATA:O,ATTR_WHITESPACE:x,CUSTOM_ELEMENT:F}=$n;let{IS_ALLOWED_URI:M}=$n,q=null;const $=gn({},[...bn,...En,...vn,...Nn,...Sn]);let z=null;const H=gn({},[...In,...Cn,...Dn,...Pn]);let U=Object.seal(Ut(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(Ut(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=gn({},["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=gn({},["audio","video","img","source","image","track"]);let ge=null;const fe=gn({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),he="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=gn({},[he,ye,be],Qt);let Te=gn({},["mi","mo","mn","ms","mtext"]),Se=gn({},["annotation-xml"]);const Ie=gn({}
vendor: 12,862 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=hn(e),Ce=-1===De.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Pe="application/xhtml+xml"===Ce?Qt:Jt,q=on(e,"ALLOWED_TAGS")&&Xt(e.ALLOWED_TAGS)?gn({},e.ALLOWED_TAGS,Pe):$,z=on(e,"ALLOWED_ATTR")&&Xt(e.ALLOWED_ATTR)?gn({},e.ALLOWED_ATTR,Pe):H,we=on(e,"ALLOWED_NAMESPACES")&&Xt(e.ALLOWED_NAMESPACES)?gn({},e.ALLOWED_NAMESPACES,Qt):Ne,ge=on(e,"ADD_URI_SAFE_ATTR")&&Xt(e.ADD_URI_SAFE_ATTR)?gn(hn(fe),e.ADD_URI_SAFE_ATTR,Pe):fe,me=on(e,"ADD_DATA_URI_TAGS")&&Xt(e.ADD_DATA_URI_TAGS)?gn(hn(pe),e.ADD_DATA_URI_TAGS,Pe):pe,de=on(e,"FORBID_CONTENTS")&&Xt(e.FORBID_CONTENTS)?gn({},e.FORBID_CONTENTS,Pe):ue,B=on(e,"FORBID_TAGS")&&Xt(e.FORBID_TAGS)?gn({},e.FORBID_TAGS,Pe):hn({}),j=on(e,"FORBID_ATTR")&&Xt(e.FORBID_ATTR)?gn({},e.FORBID_ATTR,Pe):hn({}),ce=!!on(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?hn(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 dn(e,""),!0}catch(e){return!1}}(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:On,Ee="string"==typeof e.NAMESPACE?e.NAMESPACE:be,Te=on(e,"MATHML_TEXT_INTEGRATION_POINTS")&&e.MATHML_TEXT_INTEGRATION_POINTS&&"object"==typeof e.MATHML_TEXT_INTEGRATION_POINTS?hn(e.MATHML_TEXT_INTEGRATION_POINTS):gn({},["mi","mo","mn","ms","mtext"]),Se=on(e,"HTML_INTEGRATION_POINTS")&&e.HTML_INTEGRATION_POINTS&&"object"==typeof e.HTML_INTEGRATION_POINTS?hn(e.HTML_INTEGRATION_POINTS):gn({},["annotation-xml"]);const t=on(e,"CUSTOM_ELEMENT_HANDLING")&&e.CUSTOM_ELEMENT_HANDLING&&"object"==typeof e.CUSTOM_ELEMENT_HANDLING?hn(e.CUSTOM_ELEMENT_HANDLING):Ut(null);if(U=Ut(null),on(t,"tagNameCheck")&&_e(t.tagNameCheck)&&(U.tagNameCheck=t.tagNameCheck),on(t,"attributeNameCheck")&&_e(t.attributeNameCheck)&&(U.attributeNameCheck=t.attributeNameCheck),on(t,"allowCustomizedBuiltInElements")&&"boolean"==typeof t.allowCustomizedBuiltInElements&&(U.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),X&&(G=!1),ne&&(te=!0),ce&&(q=gn({},Sn),z=Ut(null),!0===ce.html&&(gn(q,bn),gn(z,In)),!0===ce.svg&&(gn(q,En),gn(z,Cn),gn(z,Pn)),!0===ce.svgFilters&&(gn(q,vn),gn(z,Cn),gn(z,Pn)),!0===ce.mathMl&&(gn(q,Nn),gn(z,Dn),gn(z,Pn))),W.tagCheck=null,W.attributeCheck=null,on(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?W.tagCheck=e.ADD_TAGS:Xt(e.ADD_TAGS)&&(q===$&&(q=hn(q)),gn(q,e.ADD_TAGS,Pe))),on(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?W.attributeCheck=e.ADD_ATTR:Xt(e.ADD_ATTR)&&(z===H&&(z=hn(z)),gn(z,e.ADD_ATTR,Pe))),on(e,"ADD_URI_SAFE_ATTR")&&Xt(e.ADD_URI_SAFE_ATTR)&&gn(ge,e.ADD_URI_SAFE_ATTR,Pe),on(e,"FORBID_CONTENTS")&&Xt(e.FORBID_CONTENTS)&&(de===ue&&(de=hn(de)),gn(de,e.FORBID_CONTENTS,Pe)),on(e,"ADD_FORBID_CONTENTS")&&Xt(e.ADD_FORBID_CONTENTS)&&(de===ue&&(de=hn(de)),gn(de,e.ADD_FORBID_CONTENTS,Pe)),se&&(q["#text"]=!0),Q&&gn(q,["html","head","body"]),q.table&&(gn(q,["tbody"]),delete B.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw un('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw un('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;const 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(""));zt&&zt(e),Ae=e},ke=gn({},[...En,...vn,...wn]),Oe=gn({},[...Nn,...Tn]),xe=function(e){Kt(n.removed,{element:e});try{v(e).removeChild(e)}catch(t){y(e)}},Fe=function(e,t){try{Kt(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){Kt(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(te||ne)try{xe(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=Zt(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=T.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 S.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){Wt(e,e=>{e.call(n,t,i,Ae)})}const Ue=function(e){let t=null;if(He(P.beforeSanitizeElements,e,null),$e(e))return xe(e),!0;const i=Pe(e.nodeName);if(He(P.uponSanitizeElement,e,{tagName:i,allowedTags:q}),J&&e.hasChildNodes()&&!ze(e.firstElementChild)&&dn(/<[/\w!]/g,e.innerHTML)&&dn(/<[/\w!]/g,e.textContent))return xe(e),!0;if(J&&e.namespaceURI===be&&"style"===i&&ze(e.firstElementChild))return xe(e),!0;if(7===e.nodeType)return xe(e),!0;if(J&&8===e.nodeType&&dn(/<[/\w]/g,e.data))return xe(e),!0;if(B[i]||!(W.tagCheck instanceof Function&&W.tagCheck(i))&&!q[i]){if(!B[i]&&We(i)){if(U.tagNameCheck instanceof RegExp&&dn(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=h(n[i],!0);t.insertBefore(a,b(e))}}return xe(e),!0}return e instanceof c&&!function(e){let t=v(e);t&&t.tagName||(t={namespaceURI:Ee,tagName:"template"});const n=Jt(e.tagName),i=Jt(t.tagName);return!!we[e.namespaceURI]&&(e.namespaceURI===ye?t.namespaceURI===be?"svg"===n:t.namespaceURI===he?"svg"===n&&("annotation-xml"===i||Te[i]):Boolean(ke[n]):e.namespaceURI===he?t.namespaceURI===be?"math"===n:t.namespaceURI===ye?"math"===n&&Se[i]:Boolean(Oe[n]):e.namespaceURI===be?!(t.namespaceURI===ye&&!Se[i])&&!(t.namespaceURI===he&&!Te[i])&&!Oe[n]&&(Ie[n]||!ke[n]):!("application/xhtml+xml"!==Ce||!we[e.namespaceURI]))}(e)?(xe(e),!0):"noscript"!==i&&"noembed"!==i&&"noframes"!==i||!dn(/<\/no(script|embed|frames)/i,e.innerHTML)?(X&&3===e.nodeType&&(t=e.textContent,Wt([A,R,_],e=>{t=en(t,e," ")}),e.textContent!==t&&(Kt(n.removed,{element:e.cloneNode()}),e.textContent=t)),He(P.afterSanitizeElements,e,null),!1):(xe(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]&&dn(L,t));else if(V&&dn(k,t));else if(!a||j[t]){if(!(We(e)&&(U.tagNameCheck instanceof RegExp&&dn(U.tagNameCheck,e)||U.tagNameCheck instanceof Function&&U.tagNameCheck(e))&&(U.attributeNameCheck instanceof RegExp&&dn(U.attributeNameCheck,t)||U.attributeNameCheck instanceof Function&&U.attributeNameCheck(t,e))||"is"===t&&U.allowCustomizedBuiltInElements&&(U.tagNameCheck instanceof RegExp&&dn(U.tagNameCheck,n)||U.tagNameCheck instanceof Function&&U.tagNameCheck(n))))return!1}else if(ge[t]);else if(dn(M,en(n,x,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==tn(n,"data:")||!me[e])if(K&&!dn(O,en(n,x,"")));else if(n)return!1;return!0},je=gn({},["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[Jt(e)]&&dn(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:nn(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===tn(u,re)||(Fe(r,e),u=re+u),J&&dn(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,u)){Fe(r,e);continue}if("attributename"===c&&Zt(u,"href")){Fe(r,e);continue}if(i.forceKeepAttr)continue;if(!i.keepAttr){Fe(r,e);continue}if(!Y&&dn(/\/>/i,u)){Fe(r,e);continue}X&&Wt([A,R,_],e=>{u=en(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)?xe(e):Gt(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 an(e);case"boolean":return ln(e);case"bigint":return rn?rn(e):"0";case"symbol":return sn?sn(e):"Symbol()";case"undefined":default:return cn(e);case"function":case"object":{if(null===e)return cn(e);const t=e,n=yn(t,"toString");if("function"==typeof n){const e=n(t);return"string"==typeof e?e:cn(e)}return cn(e)}}}(e)))throw un("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 un("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&&xe(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;Wt([A,R,_],t=>{e=en(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&&dn(Mn,i.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+u),X&&Wt([A,R,_],e=>{u=en(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&&Kt(P[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=Vt(P[e],t);return-1===n?void 0:Yt(P[e],n,1)[0]}return Gt(P[e])},n.removeHooks=function(e){P[e]=[]},n.removeAllHooks=function(){P={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}(),ne().bool.isRequired,ne().func.isRequired,ne().string.isRequired,ne().bool.isRequired,ne().bool.isRequired,ne().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)}(),zn.propTypes={data:ne().shape({lease:ne().shape({payment:ne().number,marketingLabel:ne().string,optIn:ne().bool,showContactDealer:ne().bool}),finance:ne().shape({payment:ne().number,marketingLabel:ne().string,optIn:ne().bool,showContactDealer:ne().bool})})},zn.displayName="GmPayments",Hn.defaultProps={accountInfo:{},dealerOptions:[{description:"",msrp:""}],fetchDealerOptionsCallback:null,isLoadingDealerOptions:!1,dealerFees:[],fetchDealerFeesCallback:null,isLoadingDealerFees:!1,incentives:{},isGridLayout:!1,isScrollingSidebar:!1,layout:Ce,hidePricingSummary:!1},Hn.propTypes={pricing:ne().shape({dPrice:ne().arrayOf(ne().shape({})),ePrice:ne().arrayOf(ne().shape({})),vehicle:ne().shape({}),lease:ne().shape({value:ne().string,label:ne().string}),loan:ne().shape({value:ne().string,label:ne().string}),retailPrice:ne().string,ePriceStatus:ne().string,ePriceButtonLabel:ne().string}).isRequired,incentives:ne().shape({}),accountInfo:ne().shape({name:ne().string.isRequired,address:ne().shape({city:ne().string.isRequired,state:ne().string,country:ne().string.isRequired}).isRequired}),accountId:ne().string.isRequired,vehicleAccountId:ne().string.isRequired,vehicleId:ne().string.isRequired,condition:ne().string.isRequired,isDisplayingEPrice:ne().bool.isRequired,isScrollingSidebar:ne().bool,layout:ne().string,isGridLayout:ne().bool,fetchDealerOptionsCallback:ne().func,dealerOptions:ne().arrayOf(ne().shape({description:ne().string,msrp:ne().string})),isLoadingDealerOptions:ne().bool,fetchDealerFeesCallback:ne().func,dealerFees:ne().arrayOf(ne().shape({description:ne().string,price:ne().string})),isLoadingDealerFees:ne().bool,vehicleData:ne().shape({}).isRequired,gmPaymentData:ne().shape({}),hidePricingSummary:ne().bool,gmPayments:ne().shape({}),gmPaymentsError:ne().oneOfType([ne().string,ne().oneOf([null])]),isLoadingGMPayments:ne().bool},Hn.displayName="PricingDetail",Un.propTypes={buttonLabel:ne().string.isRequired,buttonSize:ne().string.isRequired,vehicleId:ne().string.isRequired,vehicleCategory:ne().string.isRequired,pageAlias:ne().string.isRequired},Un.displayName="NoEpriceButton",Bn.propTypes={ePriceDetail:ne().arrayOf(ne().shape({type:ne().string.isRequired,label:ne().string.isRequired,value:ne().string.isRequired,key:ne().string,isFinalPrice:ne().bool,incentives:ne().arrayOf(ne().string)})),isModalVisible:ne().bool.isRequired,disabled:ne().bool.isRequired,loadingUserProfile:ne().bool.isRequired,hasUserProfileData:ne().bool.isRequired,buttonLabel:ne().string.isRequired,buttonStyle:ne().string.isRequired,buttonSize:ne().string.isRequired,handleClick:ne().func.isRequired,vehicleId:ne().string.isRequired,vehicleCategory:ne().string.isRequired,vehicleTrackingData:ne().shape({}),pageAlias:ne().string.isRequired,preventMultipleEpriceLeads:ne().bool.isRequired,ePriceFontWeight:ne().string,userProfile:ne().oneOfType([ne().shape({}),ne().number])},Bn.defaultProps={ePriceDetail:[],ePriceFontWeight:"font-weight-bold",userProfile:null},Bn.displayName="InstantEpriceButton",jn.propTypes={accountId:ne().string.isRequired,buttonSize:ne().string,buttonStyle:ne().string,ePriceFontWeight:ne().string,instantEpriceShowAllAfterLeadSubmit:ne().string,pageAlias:ne().string.isRequired,instantEpricePreventMultipleEpriceLeads:ne().string.isRequired,pricing:ne().shape({ePriceStatus:ne().string,ePrice:ne().arrayOf(ne().shape({})),ePriceButtonLabel:ne().string}).isRequired,showEPrice:ne().func.isRequired,showInstantEpriceForSharedInventory:ne().string.isRequired,userProfile:ne().oneOfType([ne().shape({}),ne().number]),vehicleId:ne().string.isRequired,vehicleAccountId:ne().string.isRequired,vehicleTrackingData:ne().shape({})},jn.defaultProps={buttonSize:"default",buttonStyle:"primary",ePriceFontWeight:"font-weight-bold",instantEpriceShowAllAfterLeadSubmit:"false",userProfile:null},jn.displayName="InstantEpriceContainer",Wn.propTypes={account:ne().shape({address:ne().shape({})}).isRequired,isMobile:ne().bool.isRequired,isGridLayout:ne().bool.isRequired,pricing:ne().shape({label:ne().string.isRequired,value:ne().string,isFinalPrice
1:ne().bool})},Wn.defaultProps={pricing:{value:"",isFinalPrice:!1}},Wn.displayName="PriceTitle";const Vn=(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 Gn({pricing:e={},isDisplayingEPrice:t,isDREnabled:n=!1,onViewPriceDetails:a}){const l=(0,m.useLabels)(),{finalPriceItem:r,startingPriceItem:s,hasStartingPrice:o}=Vn(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 Kn({account:e,condition:t="",isGridLayout:n,pricing:a,isDisplayingEPrice:l,onToggle:r,isNewCarBoost:s=!1,finalPriceClassName:o}){const{showTitlePriceLabel:c}=(0,m.usePrefs)(),{deviceType:d}=(0,m.useRequestData)(),u=(0,m.useLabels)(),p="MOBILE"===d,{finalPriceItem:g,startingPriceItem:f,hasStartingPrice:h}=Vn(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=Te([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:Te([...v,"pl-3","text-decoration-underline"])},e),N=w(u.get("DETAILS"));let T,S=null;return h?S=w(i().createElement("span",{dangerouslySetInnerHTML:{__html:`${f.value} ${f.label}`}})):f&&(S=N),T=g?i().createElement(i().Fragment,null,g.value,"true"===c&&i().createElement("span",{className:Te([...v,"pl-2"]),dangerouslySetInnerHTML:{__html:g.label}}),(p||n)&&i().createElement(vt,{dealerAddress:e.address,displayInline:!0}),S):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()},T))}Gn.propTypes={pricing:ne().shape({ePrice:ne().arrayOf(ne().shape({})),dPrice:ne().arrayOf(ne().shape({}))}),isDisplayingEPrice:ne().bool.isRequired,isDREnabled:ne().bool,onViewPriceDetails:ne().func},Gn.displayName="PriceSummary",Kn.propTypes={account:ne().shape({address:ne().shape({})}).isRequired,isGridLayout:ne().bool.isRequired,isDisplayingEPrice:ne().bool.isRequired,condition:ne().string,pricing:ne().shape({ePrice:ne().arrayOf(ne().shape({})),dPrice:ne().arrayOf(ne().shape({}))}),onToggle:ne().func.isRequired,isNewCarBoost:ne().bool,finalPriceClassName:ne().string},Kn.displayName="PriceToggle";const Yn=({isFullStack:e,priceMode:t,pricing:a,isDisplayingEPrice:l,accountId:r,vehicleAccountId:s,condition:o,uuid:c,vin:d,finalPriceMarkup:u})=>
1{const p=(0,m.useLabels)(),[g,f]=(0,n.useState)(!1);if(!e)return u;const h=i().createElement(Hn,{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=h;return"collapsed"===t&&(y=i().createElement(i().Fragment,null,i().createElement(ee.Collapse,{in:!g},i().createElement("div",null,i().createElement(Kn,{account:{address:{}},condition:o,isGridLayout:!1,pricing:a,isDisplayingEPrice:l,onToggle:()=>f(!0)}))),i().createElement(ee.Collapse,{in:g},i().createElement("div",null,h,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:()=>f(!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)};Yn.defaultProps={isFullStack:!1,priceMode:"final",pricing:{},isDisplayingEPrice:!1,accountId:"",vehicleAccountId:"",condition:"",uuid:"",vin:"",finalPriceMarkup:null};const Xn=Yn;function Jn({info:{uuid:e,vin:t,link:a,totalPrice:l,offSite:r,imagePath:s,label:o,condition:c,pricing:d,vehicleAccountId:u,titleAttributes:g=[],supplementalTitleAttributes:f=[]},trackEventElement:h,index:y,activeSlide:E=y,trackingData:v={},pageAlias:N}){const{showPriceLabel:T,showVin:S,priceLabelClasses:I,pricingValueClasses:C,pricingClasses:L,vehicleSupplementalTitleClasses:k,vehicleTitleHeadingClasses:O,vehicleTitleSubHeadingClasses:x,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)(()=>{P(z,y)},[]);const j="true"===T,W="true"===S,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",ee=["media","d-flex justify-content-center align-items-center","w-100",V?"vehicle-media-container":"vehicle-media-container-mobile",R(s)?"bg-neutral-400":"bg-white"],te="collapsed"===K||"full"===K||"left"===F?"text-left":"",ne=[k,te,"mb-0","ddc-font-size-small","font-weight-light"],ie=[O,te,"mb-0","text-body","h5"],ae=[x,te,"mb-2",G?"py-0 px-0":"pb-1","text-body",V?"h3":"h2"],le=[L,"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-details-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="",fe="";0!==f.length&&(fe=((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=_(a,t,n)}return l?`${e} ${e?"|":""} ${l}`:e},"").trim())(f,q,r)),0!==g.length&&(fe?ge=A(g):(me=g.map(({name:e})=>e).indexOf("lineBreak"),me=-1===me?g.length:me,pe=A(g.slice(0,me)),me!==g.length&&(ge=A(g.slice(me)))));const he=l?i().createElement("div",{className:p(le)},j&&i().createElement("span",{className:`${p(re)}`,dangerouslySetInnerHTML:{__html:V?D(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
1:(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:h,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:fe}),"data-testid":"card"},i().createElement("div",{className:p(ee),"data-testid":"photo"},s&&i().createElement("img",{className:"photo thumb",src:ue,"data-src":ue,alt:[fe,pe,ge].filter(Boolean).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":[fe,pe,ge].filter(Boolean).join(" ")},i().createElement("span",{className:p(ne),"data-testid":"card-supplemental-title",dangerouslySetInnerHTML:{__html:fe}}),i().createElement("span",{className:p(ie),"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(Xn,{isFullStack:X,priceMode:K,pricing:Y,isDisplayingEPrice:J,accountId:B,vehicleAccountId:u,condition:c,uuid:e,vin:t,finalPriceMarkup:he}),t&&W?i().createElement("div",{className:p(oe),"data-testid":"vin"},`VIN: ${t}`):null,i().createElement(Z,{isNavFragment:G,href:a,tabIndex:E===y?"0":"-1",supplementalTitle:fe,title:pe,subtitle:ge})))}const Qn=({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:f}=n,h="Standard Horizontal"===d&&!r;let y,b;r?(y=2,b=3):h?(y=4,b=1):(y=3,b=2);const E=y*b,v=t.length<3,w=""!==c,N=["BLANK"!==s?s:"","vehicle-card","overflow-hidden","position-relative","my-1","mb-4","bg-contrast-low"];let T;const S=w?Math.floor(100/y):Math.floor(100/y)-2,I=h?{}:{flex:`0 0 ${S}%`};T=u?((e=5)=>{const t=[];for(let n=0;n<e;n++)t.push({id:n});return t})(E).map(t=>{const{id:n}=t;let a;a=f&&g?"vehicle-card-skeleton-label-vin-pref":f?"vehicle-card-skeleton-vin-pref":g?"vehicle-card-skeleton-label-pref":"vehicle-card-skeleton-non-pref";const l=[h?a:"vehicle-card-skeleton","mt-1 mb-3",...N];return i().createElement("li",{className:p(l),style:I,key:`loader_${n}`,"data-testid":"card-li-loader"},i().createElement(Q,{vehicleState:e,displayStyle:d}))}):t.map((e,t)=>{const{bodyStyle:n,fuelEconomy:r,make:s,model:o,odometer:c,stockNumber:d,uuid:u,vin:m,year:g}=e,[f,h]=r?.value?.split("/")||[],y={bodyStyle:n,cityFuelEconomy:f,highwayFuelEconomy:h,make:s,model:o,odometer:c,stockNumber:d,uuid:u,vin:m,year:g};return i().createElement("li",{className:p(N),key:u,style:I,"data-testid":"card-li"},i().createElement(Jn,{info:e,index:t,trackEventElement:a,trackingData:y,pageAlias:l}))});const C=["BLANK"!==o?o:"",h?"static-width overflow-hidden":"hide-from-7",v?"justify-content-left":"justify-content-between","list-unstyled","vehicle-list","d-flex","flex-wrap","mb-0",c],D=w?{}:{gap:"2%"};return i().createElement("ul",{className:p(C),style:D,"data-testid":"static-width-carousel"},T)},Zn=({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 f="DESKTOP"===l,h="Standard Horizontal"!==c,{isLoading:y,fadeIn:b}=e;g=t?r.get(s):r.get(o);const E=[f?h?"mb-4":"mb-6":""],v=["p-0","widget-heading","mb-0",u,`text-${d}`,f?"":"mx-5"],w=[u,b?"fade-in":"fade-out",f?"mb-5":"mx-7",f?"mt-4":""],N=a&&n?{}:{marginBottom:f?"0px":"20px"};return i().createElement("div",{className:p(a&&n?"":E),style:N},n?(()=>{if(y){let e=f?1.25:2.5;const t=h?"97%":"100%";return h&&(e=.5),i().createElement("div",{className:p(w),"data-testid":"vehicle-list-title-skeleton"},i().createElement(J(),{width:t,height:`${e}em`}))}return""})():(()=>
1{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))})())},ei="undefined"!=typeof window,ti=({children:e,placeholder:t=null,maxWait:i=5e3})=>{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]),ei&&a?React.createElement(n.Suspense,{fallback:t},e):t};ti.displayName="DeferredComponent";const ni=ti,ii=({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}))},ai=i().lazy(()=>a.e(830).then(a.bind(a,830)));function li({vehicleData:e,vehicleState:t,trackEventElement:a,pageAlias:l}){const[r,s]=(0,n.useState)(0),o=(0,n.useRef)(null),c=(0,n.useRef)(null),{windowId:d,widgetName:u}=(0,m.useRequestData)(),{listClassesPref:g,listItemClasses:f,displayStyle:h}=(0,m.usePrefs)(),{isLoading:y}=t,E=1===e.length,v={animation:"zoom",cellAlign:"center",cellSpacing:20,className:"pb-8",defaultControlsConfig:{pagingDotsClassName:"px-1"},heightMode:"current",initialSlideHeight:315,renderCenterLeftControls:null,renderCenterRightControls:null,renderBottomCenterControls:E?null:ii,slideOffset:E?0:50,ref:c,zoomScale:.9,enableKeyboardControls:!0,afterSlide:e=>{b(u,d,{pageAlias:l,element:a,result:`Moved to vehicle ${e+1}`,action:"swiped",previousIndex:r,currentIndex:e}),s(e)}};(0,n.useEffect)(()=>{"undefined"!=typeof ResizeObserver&&(o.current=new ResizeObserver(()=>{c.current&&c.current.setDimensions()}));const e=o.current;return()=>{e&&e.disconnect()}},[]);const w=["BLANK"!==f?f:"","vehicle-card","overflow-hidden","position-relative"];if(y){const e=["flex-grow-1 mx-7",...w],n=["BLANK"!==g?g:"","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(Q,{vehicleState:t,displayStyle:h})))}return i().createElement(ni,null,i().createElement(ai,v,e.map((e,t)=>{const{uuid:n}=e,s=["mx-4",...w];return i().createElement("div",{className:p(s),style:{minHeight:"316px"},key:n,ref:e=>{e&&o.current&&o.current.observe(e)}},i().createElement(Jn,{info:e,key:`vehicle_${n}`,index:t,trackEventElement:a,activeSlide:r,pageAlias:l}))})))}const ri=(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":f,showPriceLabel:h,showVin:y,hideIfUnpersonalized:b,showFeaturedOnly:E,containerClasses:v,"required.display.attributes":w}=(0,m.usePrefs)(),N="true"===E,T="true"===b&&!N,{deviceType:S,locale:I}
1=(0,m.useRequestData)(),C="DESKTOP"===S,[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]=G({vehicleId:a,siteId:t,locale:I,deviceType:S,accountId:e}),k=(0,n.useRef)(null),O=Y(k),{isLoading:x,collapse:F}=D,M={accountId:e,containerRef:k,siteId:t,displayerInstanceId:d,excludeBasedOnImages:u,listingConfigId:f,requiredDisplayAttributes:w,hideIfUnpersonalized:T,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:U}]=H(M,q),B=["rec-vehicles-container","text-center","section","m-0",x?"loading bg-none h-auto":"",v],j="true"===h,W="true"===y,V={showPriceLabel:j,showVin:W};let K=C?477:440;j&&(K+=C?17:10),W&&(K+=C?22:15);const X=`${T?0:K}px`;return F?i().createElement("div",null):i().createElement("div",{className:p(B),ref:k,style:{minHeight:X},"data-display-sets":"TITLE,SUPPLEMENTAL_TITLE","hide-base-facet-category":"true"},i().createElement(Zn,{state:D,personalized:z,noVehicles:0===$.length,hideIfUnpersonalized:T}),C||O?i().createElement(Qn,{pageAlias:l,vehicleState:D,vehicleData:$,displayPref:V,trackEventElement:U,isNavDrawer:O}):i().createElement(li,{pageAlias:l,vehicleState:D,vehicleData:$,trackEventElement:U}))}),si=(e,t,n)=>{const i=["ddc-content",t];return e&&i.push(e),n&&i.push("collapse-container"),i},oi=(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},ci=(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},di=({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:ci(s,r.requestData.deviceType,o),iconClasses:oi(s,d,o)}),i().createElement(u,{id:n,toggleCollapse:o},i().createElement(ri,null)));if(e){if(!a)throw new Error("widgetName is required if outputWrapperDiv is true.");return i().createElement("div",{id:`${n}-app-root`,className:si(s.widgetClasses,a,o).join(" "),"data-widget-name":a,"data-widget-id":n},m)}return m},ui=RTK;const mi=[],pi={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 gi(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,ui.configureStore)({reducer:{...t,...pi},middleware:e=>e().concat(mi),preloadedState:e})}const fi={};(()=>{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=gi(((e,t)=>{let n=e[t];return"string"==typeof n&&(n=JSON.parse(n)),n})(t,n));fi[n]=i,(0,e.hydrate)(React.createElement(di,{outputWrapperDiv:!1,store:i,widgetId:n}),document.getElementById(`${n}-app-root`)),delete t[n]})})()})()})(); 2//# sourceMappingURL=bundle.23170a2653a9f030b65a4b83ac505c3f.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.