1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,36700,e=>{"use strict";var t=e.i(91788);let a={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},r={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},s="mousemove",i="mouseup";function l(e,t){if(0===t)return e;let a=Math.PI/180*t;return[e[0]*Math.cos(a)+e[1]*Math.sin(a),e[1]*Math.cos(a)-e[0]*Math.sin(a)]}e.s(["useSwipeable",0,function(e){var n,c,o;let d,{trackMouse:m}=e,u=t.useRef(Object.assign({},r)),p=t.useRef(Object.assign({},a)),h=t.useRef(Object.assign({},p.current));for(d in h.current=Object.assign({},p.current),p.current=Object.assign(Object.assign({},a),e),a)void 0===p.current[d]&&(p.current[d]=a[d]);let[f,g]=t.useMemo(()=>{var e,t;let n,c,o,d,h,f;return e=e=>u.current=e(u.current,p.current),t={trackMouse:m},n=t=>{let a="touches"in t;a&&t.touches.length>1||e((e,n)=>{n.trackMouse&&!a&&(document.addEventListener(s,c),document.addEventListener(i,d));let{clientX:o,clientY:m}=a?t.touches[0]:t,u=l([o,m],n.rotationAngle);return n.onTouchStartOrOnMouseDown&&n.onTouchStartOrOnMouseDown({event:t}),Object.assign(Object.assign(Object.assign({},e),r),{initial:u.slice(),xy:u,start:t.timeStamp||0})})},c=t=>{e((e,r)=>{var s,i,n,c;let o="touches"in t;if(o&&t.touches.length>1)return e;if(t.timeStamp-e.start>r.swipeDuration)return e.swiping?Object.assign(Object.assign({},e),{swiping:!1}):e;let{clientX:d,clientY:m}=o?t.touches[0]:t,[u,p]=l([d,m],r.rotationAngle),h=u-e.xy[0],f=p-e.xy[1],g=Math.abs(h),x=Math.abs(f),b=(t.timeStamp||0)-e.start,v=Math.sqrt(g*g+x*x)/(b||1),_=[h/(b||1),f/(b||1)],j=(s=g,i=x,n=h,c=f,s>i?n>0?"Right":"Left":c>0?"Down":"Up"),y="number"==typeof r.delta?r.delta:r.delta[j.toLowerCase()]||a.delta;if(g<y&&x<y&&!e.swiping)return e;let w={absX:g,absY:x,deltaX:h,deltaY:f,dir:j,event:t,first:e.first,initial:e.initial,velocity:v,vxvy:_};w.first&&r.onSwipeStart&&r.onSwipeStart(w),r.onSwiping&&r.onSwiping(w);let N=!1;return(r.onSwiping||r.onSwiped||r[`onSwiped${j}`])&&(N=!0),N&&r.preventScrollOnSwipe&&r.trackTouch&&t.cancelable&&t.preventDefault(),Object.assign(Object.assign({},e),{first:!1,eventData:w,swiping:!0})})},o=t=>{e((e,a)=>{let s;if(e.swiping&&e.eventData){if(t.timeStamp-e.start<a.swipeDuration){s=Object.assign(Object.assign({},e.eventData),{event:t}),a.onSwiped&&a.onSwiped(s);let r=a[`onSwiped${s.dir}`];r&&r(s)}}else a.onTap&&a.onTap({event:t});return a.onTouchEndOrOnMouseUp&&a.onTouchEndOrOnMouseUp({event:t}),Object.assign(Object.assign(Object.assign({},e),r),{eventData:s})})},d=e=>{document.removeEventListener(s,c),document.removeEventListener(i,d),o(e)},h=(e,t)=>{let r=()=>{};if(e&&e.addEventListener){let s=Object.assign(Object.assign({},a.touchEventOptions),t.touchEventOptions),i=[["touchstart",n,s],["touchmove",c,Object.assign(Object.assign({},s),t.preventScrollOnSwipe?{passive:!1}:{})],["touchend",o,s]];i.forEach(([t,a,r])=>e.addEventListener(t,a,r)),r=()=>i.forEach(([t,a])=>e.removeEventListener(t,a))}return r},f={ref:t=>{null!==t&&e((e,a)=>{if(e.el===t)return e;let r={};return e.el&&e.el!==t&&e.cleanUpTouch&&(e.cleanUpTouch(),r.cleanUpTouch=void 0),a.trackTouch&&t&&(r.cleanUpTouch=h(t,a)),Object.assign(Object.assign(Object.assign({},e),{el:t}),r)})}},t.trackMouse&&(f.onMouseDown=n),[f,h]},[m]);return n=u.current,c=p.current,o=h.current,u.current=c.trackTouch&&n.el?n.cleanUpTouch?c.preventScrollOnSwipe!==o.preventScrollOnSwipe||c.touchEventOptions.passive!==o.touchEventOptions.passive?(n.cleanUpTouch(),Object.assign(Object.assign({},n),{cleanUpTouch:g(n.el,c)})):n:Object.assign(Object.assign({},n),{cleanUpTouch:g(n.el,c)}):(n.cleanUpTouch&&n.cleanUpTouch(),Object.assign(Object.assign({},n),{cleanUpTouch:void 0})),f}])},97016,e=>{"use strict";var t=e.i(91398),a=e.i(91788),r=e.i(72102),s=e.i(95427),i=e.i(60134),l=e.i(3828),n=e.i(80495),c=e.i(46910),o=e.i(19771),d=e.i(3200),m=e.i(53854);e.s(["default",0,function(u){let p=u?.style??"button",{favorites:h,create:f,remove:g,clear:x}=(0,c.default)(),b=(0,l.useRouter)(),{trackClick:v}=(0,m.useMatomoTracking)(),[_,j]=(0,a.useState)(!!h.includes(u.vehicle.id));(0,a.useEffect)(()=>{j(!!h.includes(u.vehicle.id))},[h,b.asPath]);let y=t=>{j(!_),!0==!_?(f(u.vehicle.id),setTimeout(()=>{(0,o.createFavorite)(u.vehicle.dealer_id,u.vehicle.id,u.visitorId,(0,n.getCookie)("clientIp"))},0)):(g(u.vehicle.id),setTimeout(()=>{(0,o.deleteFavorite)(u.vehicle.dealer_id,u.vehicle.id,u.visitorId,(0,n.getCookie)("clientIp"))},0)),v("button","favorite"),e.g.cmsTrack("asc_cta_interaction",{element_text:"Save",element_type:"checkbox",event_action:"favorite",event_action_result:_?"uncheck":"check"})};return"button"===p?(0,t.jsx)(s.Form,{children:(0,t.jsxs)(r.Button,{className:"w-100","data-cy":"btn-favorite",variant:"default",onClick:e=>y(e),size:u.size??"md",children:[(0,t.jsx)(d.default,{className:"fa-"+(_?"solid":"regular")+" fa-heart text-"+(_?"primary":"muted")}),(0,t.jsx)("span",{className:"d-inline-block ms-2",children:!0===_?"Saved":"Save"})]})}):"col"===p?(0,t.jsxs)(i.Col,{xs:4,className:"py-3 cursor-pointer","data-cy":"btn-favorite",onClick:e=>y(e),children:[(0,t.jsx)(d.default,{className:"fa-"+(!0===_?"solid":"regular")+" fa-heart h4 w-100 d-block text-center text-"+(!0===_?"primary":"muted")}),"Save"]}):(0,t.jsx)(d.default,{"data-cy":"btn-favorite","aria-label":!0===_?"Remove from favorites":"Save to favorites",className:"fa-"+(!0===_?"solid":"regular")+" fa-heart h4 w-100 d-block text-center text-"+(!0===_?"primary ":"muted ")+(u?.className??""),onClick:e=>y(e)})}])},24033,e=>{"use strict";var t=e.i(91398);
1e.s(["default",0,function({vehicle:e}){let a,r=(a=e?.advertised?.advertised_apr)&&0!==a.length&&a.filter(e=>(e?.enabled===1||e?.enabled==="1"||e?.enabled===!0)&&e?.apr!==null&&e?.apr!==void 0&&e?.apr!=="").sort((e,t)=>Number(e.apr||999)-Number(t.apr||999))[0]||null;if(!r)return null;let s=Number(r.apr),i=Number.isInteger(s)?`${s}%`:`${s.toFixed(2)}%`,l=r.term?r.term:"";return(0,t.jsxs)("div",{className:"apr-ribbon",children:[i,l?` for ${l} mo.`:"","â "]})}])},48914,e=>{"use strict";var t=e.i(91398),a=e.i(91788),r=e.i(41158),s=e.i(90029),i=e.i(60134),l=e.i(98295),n=e.i(70380),c=e.i(92525),o=e.i(72102),d=e.i(3828),m=e.i(97016),u=e.i(19814),p=e.i(7314),h=e.i(87957),f=e.i(24181),g=e.i(25217),x=e.i(42448),b=e.i(94004),v=e.i(59488),_=e.i(33748),j=e.i(24033),y=e.i(6464),w=e.i(12040),N=e.i(23959),k=e.i(21628),C=e.i(53854),S=e.i(81319),P=e.i(6163),M=e.i(56572),T=e.i(76474),F=e.i(97112),O=e.i(3200),A=e.i(63416);e.s(["default",0,function($){let L=(0,d.useRouter)(),{trackClick:D}=(0,C.useMatomoTracking)(),{update:E}=(0,P.default)(),{priceLocked:R,feesUnlocked:I,dealer:U,update:q,ePrice:V}=(0,M.default)(),{wipeFormState:z}=(0,T.default)(),B=(0,S.default)(),G=e.g.dealerSettings||{},H=$.vehicle,{vehicle:W,displayEPrice:J,hasDiscount:X}=(0,y.normalizeVehiclePricing)(H,G,V),{priceIsLocked:K,hideFees:Y}=(0,v.default)({vehicle:W,dealerSettings:G,priceLocked:R,feesUnlocked:I,lockPrice:$.lockPrice,surface:"srp"}),Q=Y?(0,v.stripFees)(W):W,Z=(0,b.default)(Q,G,"srp"),ee=$?.context==="SRP"&&"sold"!==Q.status&&(0,x.showsGubagooPaymentPreview)(G,"srp")?(0,t.jsx)(x.default,{surface:"srp",vehicle:Q,dealerSettings:G}):void 0,et=Q?.dealer?.settings,ea=et?.guarantee_html??G?.guarantee_html,er=et?.guarantee_label??G?.guarantee_label,es=et?.guarantee_filters??G?.guarantee_filters,ei=ea&&(!es||(0,w.vehicleMatchesSettingFilters)(es,Q)),el=$.dealer.related.find(e=>e.id===Q.dealer_id),en=$.dealer.id===Q.dealer_id?$.dealer:el,ec=en?.leasespecials,eo=(0,F.default)(e=>e.lease_payment_factor),[ed,em]=(0,a.useState)(!1);(0,a.useEffect)(()=>{em(!0)},[]);let eu=(ed?eo:$.ssrLeaseFactor??1)||1,ep=(0,F.default)(e=>e.shopby_lens),eh=ed?ep??$.ssrPaymentLens:$.ssrPaymentLens??null,{payment:ef,isLease:eg}=(0,N.resolveCardMonthlyPayment)(Q,G?.finance_tab,ec,eh),ex=eg?ef*eu:ef,eb={...Q,dealer:{...Q.dealer,leasespecials:ec}},ev="New"===Q.condition?"New":"Used";Number(Q.certified)>0&&(ev+=" certified");let{colSizeLg:e_,colSizeMd:ej,colSizeSm:ey,colSizeXl:ew,colSizeXxl:eN}=(0,y.getColumnSizes)($),ek="New"===Q.condition?G?.srp_btns_new||G?.srp_btns:G?.srp_btns_used||G?.srp_btns,eC=e=>{if("string"!=typeof e||!e.trim())return!1;try{return new URL(e),!0}catch(t){return e.trim().startsWith("/")}},eS=e=>(0,k.resolveTemplateVariables)(e,Q?.dealer??U,Q),eP=e=>{if(!e)return;let t=eS(e);try{return new URL(t),t}catch{return eC(encodeURI(t))?encodeURI(t):void 0}},eM=(0,y.getDisplayCtas)(ek),eT=!1==!!Q?.onhold&&Q?.statusoverride!="hold";if(!(G?.stripe_account_id&&$.dealer?.package?.indexOf("+dr")>-1)||!eT){let e=eM.indexOf("PayDeposit");e>-1&&eM.splice(e,1)}let eF={};(0,y.getCustomSrpCtas)(G?.cta_srp_custom_buttons).forEach(e=>{let t=e.newModule?.trim(),a=e.url?eP(e.url):void 0,r=t||a;if(r&&!eF[r]&&(eF[r]={baseModule:e.baseModule??"",newModule:e.newModule??"",icon:e.icon??"circle-xmark",textTop:eS(e.textTop??""),textBottom:eS(e.textBottom??""),cta:eS(e.cta??"No text"),url:eP(e.url),target:e.target??void 0,size:e.size??void 0,action:e.action?encodeURI(eS(e.action)):void 0},!eM.includes(r))){let t=e.baseModule?.trim(),a=t?eM.indexOf(t):-1;a>-1?eM.splice(a,1,r):eM.push(r)}});let eO={...(0,w.CTAButtons)(G,{dealer_location_name:el?.name||U?.name}),...eF},eA=(0,y.parseCardAttributes)(G?.card_extras),e$=$.dealer?.settings?.include_series_in_title&&!(0,w.seriesAlreadyShown)(Q.trim,Q.series)?Q.series:"",eL=[Q.trim,e$].filter(e=>"string"==typeof e&&""!==e.trim()).join(" "),eD=t=>{q({vehicle:eb}),E({title:G.string_cta_paymentcalc,module:"PaymentCalculator",size:"sm",show:!0,url:L.asPath,initialTab:"lease"===t||"finance"===t?t:void 0}),D("button",G.string_cta_paymentcalc),e.g.cmsTrack("asc_cta_interaction",{element_text:G.string_cta_paymentcalc,element_type:"button",event_action:"UPDATE_SLIDEOUT",event_action_result:"Open PaymentCalculator slideout"},{vehicle:{results:Q}})},eE=()=>{q({vehicle:Q}),$.setShowUnlockPrice?.(Q.id)},eR=(e,t)=>{B(Q?.dealer??U,e,t)},eI=1===Number(G?.replace_click2call_with_anchor),eU=G?.trade_url,eq=Q.dealer?.
1settings?.creditapp_override||G?.creditapp_override,eV=(0,t.jsxs)(c.Popover,{id:"popover-guarantee",className:"condition"+ev,children:[(0,t.jsx)(c.Popover.Header,{as:"h3",children:er??"Peace of mind guarantee"}),(0,t.jsx)(c.Popover.Body,{children:(0,t.jsx)("div",{dangerouslySetInnerHTML:{__html:`${ea}`}})})]}),ez=(0,t.jsx)(c.Popover,{id:"popover-intransit-"+Q.id,children:(0,t.jsxs)(c.Popover.Body,{children:["For in-transit inventory, the date of arrival is estimated. The actual date of delivery may vary due to circumstances beyond ",Q.make," and the dealer's control. Please contact us for availability details."]})});return(0,t.jsx)(i.Col,{className:"srp-cardcontainer mb-3 ePrice-"+(V.includes(Q.id)?"unlocked ":"locked ")+(X?"has-discount ":"no-discount ")+"px-2 "+($?.className?$.className:"")+"make_"+Q.make.toLowerCase().replace(/\s+/g,"-")+" body_"+Q.body.toLowerCase().replace(/\s+/g,"-")+" "+(Q.dealer_id?"dealer-"+Q.dealer_id+" ":"")+(Q.status?"status-"+Q.status.toLowerCase().replace(/\s+/g,"-")+" ":"")+(Q.statusoverride?"statusoverride-"+Q.statusoverride.toLowerCase().replace(/\s+/g,"-"):""),xs:12,sm:ey,md:ej,lg:e_,xl:ew,xxl:eN,"data-vin":Q.vin,children:(0,t.jsxs)(l.Card,{"data-cy":"vehicle-card",className:"srp-card overflow-hidden h-100 condition"+ev,"data-priority":$?.priority||!1,children:[(0,t.jsxs)(l.Card.Body,{className:"px-0 pt-0 pb-0",children:[(0,t.jsxs)("div",{className:"new-arrival position-relative border-bottom overflow-hidden",children:[(0,t.jsx)(_.default,{vehicle:Q}),(0,t.jsx)(j.default,{vehicle:Q}),(0,t.jsx)(r.default,{"data-cy":"inventory-link",href:`${Q.url}`,title:Q.title,className:"position-relative",onClick:()=>{e.g.cmsTrack("asc_cta_interaction",{element_text:Q.title,element_type:"card",event_action:"redirect",event_action_result:"open vehicle page",link_url:`${Q.url}`},{vehicle:{results:Q}})},children:(0,t.jsx)(u.default,{dealerSettings:G,vehicle:Q,priority:!!$?.priority||void 0})})]}),(0,t.jsxs)("div",{className:"px-3 pt-3 pb-0",children:[(0,t.jsxs)("div",{className:"d-flex justify-content-between",children:[(0,t.jsx)("small",{className:"opacity-75 srp-stocknum",children:(0,t.jsxs)(r.default,{href:`${Q.url}`,children:["Stock # ",Q.stocknumber]})}),G?.which_oem==="nissan"&&(0,t.jsx)("small",{className:"opacity-75 srp-stocknum",children:(0,t.jsxs)(r.default,{href:`${Q.url}`,children:["VIN: ",Q.vin]})}),G?.which_oem!=="nissan"&&Q?.location==="transit"?(0,t.jsx)(n.OverlayTrigger,{placement:"top",overlay:ez,children:(0,t.jsx)("span",{className:"badge badge-default srp-intransit-badge",tabIndex:0,style:{marginTop:"-3px"},children:"IN TRANSIT"})}):G?.which_oem!=="nissan"&&Number(Q.certified)>0&&(0,t.jsx)("small",{className:"opacity-75 srpCertified",children:2===Number(Q.certified)?(0,w.mapConditionDisplayLabel)("Verified pre-owned",G):(0,w.cpoFilterLabel)(G,"Certified Pre-Owned")})]}),(0,t.jsxs)(s.Row,{className:"no-gutters mt-1 mb-2",children:[(0,t.jsx)(i.Col,{xs:11,children:(0,t.jsx)("div",{className:"text-truncate",children:(0,t.jsx)(r.default,{href:`${Q.url}`,children:(0,t.jsx)("h2",{className:"h5 m-0 font-weight-bold text-truncate notranslate",children:Q.year+" "+Q.make+" "+Q.model+($.dealer?.settings?.include_modelnumber_in_title&&Q.modelnumber?" "+Q.modelnumber:"")})})})}),(0,t.jsx)(i.Col,{xs:1,className:"text-end",children:(0,t.jsx)(m.default,{style:"icon",className:"h5 cursor-pointer mb-0",vehicle:Q,visitorId:$.visitorId})}),(0,t.jsxs)(i.Col,{xs:12,className:"srp-miles opacity-75 d-flex w-100 mt-1",children:[eL&&(0,t.jsx)("div",{className:"text-truncate",style:{height:24},children:eL}),(0,t.jsx)("div",{className:eL?"ps-2 text-nowrap ms-auto text-end":"srp-miles-no-trim",children:(0,t.jsxs)(r.default,{href:`${Q.url}`,children:[Q.mileage>0?(0,w.numberWithCommas)(Q.mileage):"0"," ","Aircraft"===Q.body||"Watercraft"===Q.body?"hours":$.dealer?.settings?.inventory_miles_to_kilometers?"kilometers":"miles"]})})]}),eA instanceof Array&&eA.length>0&&eA.map((e,a)=>{if(!["interiorcolor","exteriorcolor"].includes(e.name))return(0,t.jsx)(i.Col,{xs:12,className:"opacity-75 w-100 mt-1",children:(0,t.jsxs)("div",{className:"text-truncate",children:[e.label,": ",Q[e.name]||"--"]})},"data-attr-"+a);{let r=Q[e.name+"standard"];return(0,t.jsx)(i.Col,{xs:12,className:"opacity-75 w-100 mt-1",children:(0,t.jsxs)("div",{className:"text-truncate",children:[e.label,":"," ",r?(0,t.jsx)("span",{className:"colorIndicator text-large",style:{backgroundColor:r.toLowerCase(),marginLeft:0}}):null," ",Q[e.name]||r||"--"]})},"data-attr-"+a)}})]}),G?.srp_price_stack&&Q.price>10?(0,t.jsxs)("div",{className:"mt-2 pt-2 border-top",children:[(0,t.jsx)(g.default,{context:"srp",vehicle:eb,dealer:$.dealer,compact:!0,defaultCollapsed:!0,hideEstimatedPayment:ei||G?.hide_payments&&G.hide_payments>=Q.price,paymentRowReplacement:ee,displayEPrice:J,monthlyPayment:Q?.finance?.monthly_payment,leasePaymentFactor:eu,onOpenPaymentCalc:eD,ssrPaymentLens:$.ssrPaymentLens,...Z,priceIsLocked:K}),ei&&(0,t.jsxs)(t.Fragment,{children:[!ee&&ex>0&&(!G?.hide_payments||G.hide_payments<Q.price)&&(0,t.jsxs)("div",{"data-cy":"btn-srp-paymentcalc",className:"cursor-pointer rounded p-2 border mt-3 mb-2 d-flex align-items-center gap-2 flex-wrap",onClick:()=>eD(eg?"lease":"finance"),children:[(0,t.jsx)("span",{className:"badge badge-secondary text-uppercase text-nowrap",children:eg?"Est. Lease"
1:"Est. Payment"}),(0,t.jsxs)("span",{className:"ms-auto d-inline-flex align-items-center text-nowrap",children:[(0,w.formatCurrency)(Math.round(ex))," / mo.",(0,t.jsx)(O.default,{className:"fa-regular fa-pen-to-square text-primary ms-2",width:16,height:16})]})]}),(0,t.jsx)("div",{className:"d-flex align-items-center pb-2",children:(0,t.jsxs)("div",{className:"srp-guarantee mt-0",children:[(0,t.jsx)(O.default,{className:"fa-solid fa-shield-check me-1 text-primary"}),er??"Guarantee",(0,t.jsx)(n.OverlayTrigger,{trigger:"click",placement:"top",overlay:eV,rootClose:!0,children:({ref:e,...a})=>(0,t.jsx)(O.default,{forwardRef:e,forwardEvents:a,className:"fa-regular fa-circle-question ms-1 fa-fw text-muted cursor-pointer"})})]})})]})]}):G?.srp_condensed?(0,t.jsx)(h.default,{vehicle:Q,dealer:U,dealerSettings:G,totalfees:Z.totalfees,monthlyPayment:ex,paymentIsLease:eg,popoverGuarantee:eV,showGuarantee:ei,displayEPrice:J,priceIsLocked:K,isMobile:$?.isMobile,onOpenPaymentCalc:eD,onClick2Call:eR,paymentRowReplacement:ee}):(0,t.jsx)(f.default,{vehicle:Q,dealer:U,dealerSettings:G,negativediscounts:Z.negativediscounts,totalfees:Z.totalfees,monthlyPayment:ex,paymentIsLease:eg,popoverGuarantee:eV,showGuarantee:ei,priceIsLocked:K,isMobile:$?.isMobile,onShowUnlockPrice:eE,onClick2Call:eR,paymentRowReplacement:ee})]})]}),Q?.eprice instanceof Object&&Q?.eprice?.type==="formfill"&&(0,t.jsx)("div",{className:"p-3 border-top","data-test":"ePrice",children:(0,t.jsx)(o.Button,{className:"w-100","data-test":"btn-ePrice",variant:V.includes(Q.id)?"outline-primary":"primary",onClick:()=>{Q.price?(setTimeout(()=>{q({vehicle:Q}),E({title:Q.eprice.buttontext,module:"UnlockEPrice",show:!0,url:L.asPath})},0),D("button",Q.eprice.buttontext),e.g.cmsTrack("asc_cta_interaction",{element_text:Q.eprice.buttontext,element_type:"button",event_action:"UPDATE_SLIDEOUT",event_action_result:"Open e-Price slideout"},{vehicle:{results:Q}})):B(Q?.dealer??U,"sales","button")},disabled:V.includes(Q.id),children:Q.price?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(O.default,{className:"fa-regular fa-"+(Q?.eprice?.buttonicon??"unlock-keyhole")+" me-2"}),V.includes(Q.id)?"Price Unlocked":Q?.eprice?.buttontext??"Unlock e-Price"]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(O.default,{className:"fa-regular fa-phone me-2"}),G?.label_noprice??"Call for price"]})})}),eM.length>0&&(0,t.jsx)("div",{className:"p-3 border-top","data-test":"displayCtas",children:eM.map((a,r)=>"Click2Call"===a&&eI?(0,t.jsxs)("a",{"data-cy":"btn-"+a,"data-asc-tracked":"",href:"tel:"+(0,w.formatPhoneNumber)(Q?.dealer?.phonemain??U?.phonemain,!1),className:`btn btn-${0===r?"primary":"secondary"} text-nowrap w-100 mb-2 text-start`,onClick:e=>{if(e.preventDefault(),$?.isMobile===!1)return},children:[(0,t.jsx)(O.default,{className:`fa-regular fa-${eO[a].icon} me-2 text-white`}),eO[a].cta,(0,t.jsx)("span",{className:"swap-target","aria-hidden":"true",children:(0,w.formatPhoneNumber)(Q?.dealer?.phonemain??U?.phonemain,!1)})]},"btn-"+a):"TradeValue"===a&&eU?(0,t.jsxs)("a",{"data-cy":"btn-"+a,href:eU,className:`btn btn-${0===r?"primary":"secondary"} text-nowrap w-100 mb-2 text-start`,onClick:e=>{eU.includes("#")&&e.preventDefault(),D("button",eO[a].cta)},children:[(0,t.jsx)(O.default,{className:`fa-regular fa-${eO[a].icon} me-2 text-white`}),eO[a].cta]},"btn-"+a):(0,t.jsxs)(o.Button,{"data-cy":"btn-"+a,variant:0===r?"primary":"secondary",className:"text-nowrap w-100 mb-2 text-start",onClick:t=>{if("Click2Call"===a)t.preventDefault(),$?.isMobile!==!1&&B(Q?.dealer??U);else if(a.includes("iFrame")&&eO[a].url&&eC(eO[a].url))q({vehicle:$.vehicle}),E({title:eO[a].cta,module:"IFrame",show:!0,size:eO[a].size||"sm",url:L.asPath,iframeSrc:eO[a].url}),D("button",eO[a].cta);else if(eO[a].action){let e=["sms:","tel:","mailto:"],t=eO[a].action;e.some(e=>t.startsWith(e))?window.location.href=t:console.error(`cta_srp_custom_buttons: action uses unsupported protocol. Allowed: ${e.join(", ")}`),D("button",eO[a].cta)}else if(eq&&a.includes("CreditCheck"))L.push(eq),D("button",eO[a].cta);else if(eC(a)){let e=eO[a].url.trim(),t=eO[a].target||"_self";/^[a-z][a-z0-9+\-.]*:/i.test(e)?window.open(e,t):"_self"===t?L.push(e):window.open(e,t),D("button",eO[a].cta)}else"PayDeposit"===a&&G?.enable_deposit_cart=="1"?((0,A.setCartItem)(Q),q({vehicle:Q,c
1artUpdated:Date.now()}),D("button",eO[a].cta),e.g.cmsTrack("asc_cta_interaction",{element_text:eO[a].cta,element_type:"button",event_action:"ADD_TO_CART",event_action_result:"Added vehicle to deposit cart"},{vehicle:{results:Q}})):(setTimeout(()=>{q({vehicle:$.vehicle}),"TradeValue"!==a&&z(),E({title:eO[a].cta,module:eO[a].newModule?eO[a].baseModule?eO[a].baseModule:"OneStepForm":a,customModule:eO[a].newModule,show:!0,size:eO[a].size??("Retail"===a?"lg":"md"),url:L.asPath,textTop:eO[a].textTop??"",textBottom:eO[a].textBottom??""})},0),D("button",eO[a].cta),e.g.cmsTrack("asc_cta_interaction",{element_text:eO[a].cta,element_type:"button",event_action:"UPDATE_SLIDEOUT",event_action_result:`Open ${a} slideout`},{vehicle:{results:Q}}))},children:[(0,t.jsx)(O.default,{className:`fa-regular fa-${eO[a].icon} me-2 text-white`}),"Hold this vehicle"===eO[a].cta?"Hold vehicle":"TestDrive"===a?G?.string_cta_testdrive??"Test drive":eO[a].cta]},"btn-"+a))}),K&&(0,t.jsx)("div",{className:"p-3 border-top","data-test":"lockPrice",children:(0,t.jsxs)(o.Button,{"data-cy":"btn-LockPrice",className:"w-100",variant:"primary",onClick:eE,children:[(0,t.jsx)(O.default,{className:"fa-regular fa-lock-keyhole me-2"}),G.lock_price_cta]})}),("CT"===Q.dealer.state||G?.disclaimer_price_srp)&&(Q.pricingdisclaimer||G?.disclaimer_price)&&(0,t.jsx)("div",{className:"px-3 py-2 bg-lighter border-top text-small","data-test":"srp-disclaimer",children:(0,t.jsx)(n.OverlayTrigger,{placement:"bottom",overlay:(0,t.jsxs)(c.Popover,{className:"popoverwide",id:"popover_pricedisclaimer",children:[(0,t.jsx)(c.Popover.Header,{as:"h3",children:"Pricing Disclaimer"}),(0,t.jsx)(c.Popover.Body,{children:(0,t.jsx)("div",{dangerouslySetInnerHTML:{__html:Q.pricingdisclaimer||G?.disclaimer_price}})})]}),children:({ref:e,...a})=>(0,t.jsxs)(t.Fragment,{children:["Pricing Disclaimer",(0,t.jsx)(O.default,{"aria-label":"Pricing disclaimer",width:14,height:14,forwardRef:e,forwardEvents:a,className:"fa-regular fa-circle-question fa-fw text-muted cursor-pointer ms-1 h6 mb-0"})]})})}),(0,t.jsx)(p.default,{vehicle:Q,dealerSettings:G,totalfees:Z.totalfees,router:L,context:$?.context}),el?.name&&(G?.srp_show_location||G?.srp_show_state||G?.srp_show_city)?eI?(0,t.jsxs)("a",{"data-asc-tracked":"",href:"tel:+1"+(Q?.dealer?.phonemain??U.phonemain),className:"bg-lighter py-2 px-3 border-top srpCardLocation text-truncate cursor-pointer d-block "+(el?.prefix?el.prefix:""),onClick:()=>{$?.isMobile!==!1&&eR("sales","link")},children:[(0,t.jsx)(O.default,{className:"fa-solid fa-phone text-primary me-2"}),G?.srp_show_location===1?el.name:"",G?.srp_show_city===1?el.city+", "+el.state:"",1===G.srp_show_state&&Q.dealer.state in w.statesList&&(0,t.jsx)(t.Fragment,{children:w.statesList[Q.dealer.state]}),(0,t.jsx)("span",{className:"swap-target","aria-hidden":"true",children:(0,w.formatPhoneNumber)(Q?.dealer?.phonemain??U.phonemain,!1)})]}):(0,t.jsxs)("div",{className:"bg-lighter py-2 px-3 border-top srpCardLocation text-truncate cursor-pointer "+(el?.prefix?el.prefix:""),onClick:()=>{$?.isMobile!==!1&&eR()},children:[(0,t.jsx)(O.default,{className:"fa-solid fa-phone text-primary me-2"}),G?.srp_show_location===1?el.name:"",G?.srp_show_city===1?el.city+", "+el.state:"",1===G.srp_show_state&&Q.dealer.state in w.statesList&&(0,t.jsx)(t.Fragment,{children:w.statesList[Q.dealer.state]})]}):""]})},Q.id)}])},27913,e=>{"use strict";var t=e.i(91398);e.s(["default",0,function({badge:e,className:a=""}){let r=(e.color||"").replace("#",""),[s,i,l]=[0,2,4].map(e=>parseInt(r.substr(e,2),16)||0),n=(299*s+587*i+114*l)/1e3>=150?"#212529":"#fff";return(0,t.jsx)("div",{className:"small py-1 px-2 rounded font-weight-bold text-truncate vc-badge "+a,style:{backgroundColor:e.color,color:n},title:e.text,children:e.text})}])},19814,94575,7314,87957,24181,10796,25217,42448,59488,e=>{"use strict";var t=e.i(91398),a=e.i(91788),r=e.i(41158),s=e.i(26019),i=e.i(72102),l=e.i(36700),n=e.i(60814),c=e.i(53854),o=e.i(3200);let d=n.default.div.withConfig({displayName:"PhotoGallery__HasMorePhotos",componentId:"sc-994c9d70-0"})` 2position: absolute; 3color: white; 4top: 0; 5left: 0; 6width: 100%; 7height: 100%; 8background-color: rgb(0,0,0,.6); 9z-index: 3; 10padding-top: 30%; 11text-align: center; 12`,m=n.default.div.withConfig({displayName:"PhotoGallery__SwipeIndicator",componentId:"sc-994c9d70-1"})` 13position: absolute; 14left: 0; 15width: 100%; 16fill: rgba(255, 255, 255, 0.75); 17z-index: 2; 18text-align: center; 19 20.active { 21 fill: #fff; 22} 23 24@media(min-width: 575px) { 25 display: ${e=>e.$alwaysShow?"inherit":"none"}; 26} 27`,u=n.default.div.withConfig({displayName:"PhotoGallery__CarouselContainer",componentId:"sc-994c9d70-2"})` 28position: absolute; 29top: 5px; 30left: 0; 31width: 100%; 32height: 100%; 33z-index: 1; 34 35.left-toggle { 36 position: absolute; 37 background-color: rgb(0,0,0,.6); 38 top: 35%; 39 left: 0; 40 padding: 0.5rem; 41} 42 43.right-toggle { 44 position: absolute; 45 background-color: rgb(0,0,0,.6); 46 top: 35%; 47 right: 0; 48 padding: 0.5rem; 49} 50 51@media(min-width: 575px) { 52 .toggle { display: none; } 53 &:hover .toggle { display: block !important; } 54} 55`;e.s(["default",0,function({vehicle:e,dealerSettings:n,priority:p}){let[h,f]=(0,a.useState)(0),{trackClick:g}=(0,c.useMatomoTracking)(),x=(0,l.useSwipeable)({delta:{right:20,left
55:20},onSwipedRight:()=>{if(0===h)return!1;f(h-1)},onSwipedLeft:()=>{if(h>=4)return!1;f(h+1)}}),b=(e,t)=>(e.preventDefault(),"left"===t&&h>0)?void f(h-1):"right"===t&&h<4&&void f(h+1);return(0,t.jsxs)("div",{className:"img-srp-container",...x,children:[e.photocount>1&&e?.photos&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(u,{children:[(0,t.jsx)("div",{className:"toggle left-toggle","data-direction":"left",onClick:e=>b(e,"left"),children:(0,t.jsx)(o.default,{className:"fa-regular fa-angle-left h2 m-0 text-white"})}),(0,t.jsx)("div",{className:"toggle right-toggle","data-direction":"right",onClick:e=>b(e,"right"),children:(0,t.jsx)(o.default,{className:"fa-regular fa-angle-right h2 m-0 text-white"})})]}),(0,t.jsx)(m,{$alwaysShow:n?.srp_swipe_show>0,style:{[n?.srp_swipe_location==="bottom"?"bottom":"top"]:n?.srp_swipe_margin?n?.srp_swipe_margin:15},children:[void 0,void 0,void 0,void 0,void 0].map((a,r)=>(0,t.jsx)(o.default,{className:`fa-${h!==r?"solid":"regular"} fa-${h!==r?"circle-small":"circle-dot"} me-1 ${h===r?"active":""}`},`vehiclePhoto${e.id}_${r}`))})]}),null!==e.featuredphoto?e?.photos instanceof Array&&e.photos.length>0?e.photos.slice(0,Math.min(e.photos.length,5)).map((a,r)=>(0,t.jsx)(s.default,{width:640,height:480,loading:!0===p&&0===r?"eager":"lazy",fetchPriority:!0===p&&0===r?"high":"auto",className:`img-srp ${h===r?"d-block":"d-none"}`,src:n?.srp_nothumb?a.replace("-thumb",""):a,alt:(0===r&&e.exteriorcolorstandard?`${e.exteriorcolorstandard} `:"")+(1===r?"Photos of ":"")+(2===r?"Another view of ":"")+(r>=3?"More photos of ":"")+e.title+(r<3?` for sale in ${e.dealer.city}, ${e.dealer.state}`:"")+(r>0?` at ${e.dealer.name}`:"")+(r>=3?`, ${e.dealer.state}`:"")},`${e.stocknumber}_${r}`)):(0,t.jsx)(s.default,{width:640,height:480,loading:!0===p?"eager":"lazy",priority:p||void 0,fetchPriority:!0===p?"high":"auto",className:"img-srp",src:e.featuredphoto,alt:`${e.exteriorcolorstandard?`${e.exteriorcolorstandard} `:""}${e.title} for sale in ${e.dealer.city}, ${e.dealer.state}`}):(0,t.jsx)(s.default,{width:640,height:480,priority:p||void 0,fetchPriority:!0===p?"high":"auto",className:"img-srp",alt:`${"lot"===e.location?"New arrival":"In transit"} - photos coming soon`,src:n?.new_arrival_photo??"https://static.overfuel.com/images/assets/new-arrival-2026.webp"}),(4===h||h>0&&h===e.photocount-1)&&(0,t.jsx)(d,{id:"has-more-photos",children:(0,t.jsxs)("div",{className:`w-75 mx-auto ${n?.srp_gallery_cta?"mt-n4":"mt-0"}`,children:[(0,t.jsxs)(i.Button,{variant:"default",size:"lg",className:"w-100 text-white border-white",children:["View all ",e.photocount," photos"]}),n?.srp_gallery_cta&&n?.srp_gallery_link&&(0,t.jsx)(i.Button,{variant:"primary",size:"lg",as:r.default,href:n?.srp_gallery_link,target:n?.srp_gallery_link?.includes("http")?"_blank":"_self",title:n?.srp_gallery_cta,className:"mt-4 w-100",onClick:e=>{n?.srp_gallery_link?.includes("http")&&e.stopPropagation(),g("button","srp card gallery cta")},children:n?.srp_gallery_cta})]})})]})}],19814);var p=e.i(68489);let h=!1;function f({vin:r,className:s=""}){let i=(0,a.useRef)(null);return((0,a.useEffect)(()=>{let t=i.current;if(!t||!r)return;for(;t.firstChild;)t.removeChild(t.firstChild);let a=document.createElement("template");a.setAttribute("data-m4w",""),a.setAttribute("data-inventory",r),t.appendChild(a),h||(h=!0,setTimeout(()=>{h=!1;try{let e=window.maxsdk;e?.app?.M4W&&e.use("M4W")}catch(t){e.g.devDebug&&console.log("acvmax: vendor re-scan failed",t)}},0))},[r]),r)?(0,t.jsx)("div",{className:("acvmax-showroom-slot "+s).trim(),style:{minHeight:52},ref:i}):null}e.s(["default",0,f],94575);var g=e.i(5981);let x=(0,p.default)(()=>e.A(40755),{loadableGenerated:{modules:[32529]},ssr:!0}),b=(0,p.default)(()=>e.A(35598),{loadableGenerated:{modules:[26299]},ssr:!0}),v=(0,p.default)(()=>e.A(71065),{loadableGenerated:{modules:[22199]},ssr:!0}),_=(0,p.default)(()=>e.A(99764),{loadableGenerated:{modules:[54298]},ssr:!1});e.s(["default",0,function({vehicle:r,dealerSettings:s,totalfees:l,router:n,context:d}){let[m,u]=(0,a.useState)(!1),p=n.asPath.split("?")[0];if("/"===p||"sold"===r.status)return null;let{trackClick:h}=(0,c.useMatomoTracking)(),j=s?.srp_show_carfax_badge&&("SRP"===d||"craft"===d)&&r.carfaxurl&&r.carfaxicon&&"New"!==r.condition&&!s?.vdp_hide_carfax&&!s?.carfax_display_contact_form&&!s?.vdp_minify_carfax_generic;return(0,t.jsxs)("div",{"data-test":"srpThirdParty",children:[s?.pureinfluencer&&(0,t.jsx)("div",{className:"px-3 pb-2",children:(0,t.jsx)("div",{className:"pi-pullup-container"})}),s?.srp_show_cargurus_badge&&(0,t.jsx)("div",{className:"cargurus-container px-3 pb-3 border-top text-center",onClick:()=>{h("externallink","CarGurus"),e.g.cmsTrack("asc_cta_interaction",{element_text:"View CarGurus Rating",element_type:"link",event_action:"redirect",event_action_result:"open the CarGurus rating in new tab"})},children:(0,t.jsx)("span",{"data-cg-vin":r.vin,"data-cg-price":r.price},`cg-${r.vin}-${r.price??0}`)}),j&&(0,t.jsxs)("div",{className:"carfax-container px-3 pb-3 text-center",children:[(0,t.jsx)("a",{href:r.carfaxurl,target:"_blank",rel:"noopener",onClick:t=>{s?.carfax_disclaimer&&(t.preventDefault(),u(!0)),h("externallink","CARFAX"),e.g.cmsTrack("asc_cta_interaction",{element_text:"View CARFAX Report",element_type:"link",event_action:"redirect",event_action_result:"open carfax report"})},children:(0,t.jsx)("span",{className:"d-inline-block py-1 px-2 rounded",style:{backgroundColor:"#fff"},children:(0,t.jsx)("img",{src:r.carfaxicon,alt:r.carfaxalt||"View CARFAX Report",height:90,loading:"lazy"})})}
55),s?.carfax_disclaimer&&(0,t.jsx)(_,{showCarfaxDisclaimer:m,setShowCarfaxDisclaimer:u,carfaxLink:r.carfaxurl})]}),s?.clicklease&&(0,t.jsx)("div",{className:"px-3 pb-2 clicklease",id:`clickLease${r.id}`,"data-price":r.price}),s?.tradepending_js_url&&(0,t.jsxs)("div",{className:"px-3 srp-tradepending-container",children:[(0,t.jsx)("div",{className:"vin d-none",children:r.vin}),(0,t.jsx)("div",{className:"tp_trade"}),(0,t.jsx)("div",{className:"tp_price"}),(0,t.jsx)("div",{className:"tp_avail"}),(0,t.jsx)("div",{className:"tp_sched"}),(0,t.jsx)("div",{className:"tp_reveal"}),(0,t.jsx)("div",{className:"tp_srpautobio"})]}),s?.carnow_key&&s?.carnow_extras_srp==1&&(0,t.jsx)("div",{className:"cn-button-container","data-vin":r.vin,"data-page-type":"srp","data-type":"New"===r.condition?"new":"used"}),s?.gubagoo_url&&(s?.gubagoo_mode==="cta"||s?.gubagoo_mode==="both")&&(0,t.jsx)("div",{className:"px-3 pb-2 mt-n3",style:{minHeight:144},children:(0,t.jsx)("div",{className:"gubagoo-vr-button","data-vin":r.vin,"data-page-type":"vsp"})}),s?.expresscta_key&&(0,t.jsx)("div",{"ecta-container":"true","vehicle-year":r?.year,"vehicle-make":r?.make,"vehicle-model":r?.model,"vehicle-trim":r?.trim,"vehicle-stock":r?.stocknumber,"vehicle-vin":r?.vin,"vehicle-type":r?.condition==="New"?"new":"used"}),r?.dealer?.capitalone_token&&1===Number(s?.capitalone_srp)&&!s?.capitalone_stacked&&"SRP"===d&&(0,t.jsx)("div",{className:"capitalone-button-container p-2",children:(0,t.jsx)(x,{token:r?.dealer?.capitalone_token,dealer:r?.dealer?.capitalone_dealer,price:r.price,featuredphoto:r?.photos[0]?.large??s?.new_arrival_photo??"https://static.overfuel.com/images/assets/new-arrival-2026.webp",vin:r.vin,router:n})}),r?.dealer?.capitalone_token&&1===Number(s?.capitalone_srp)&&1===Number(s?.capitalone_stacked)&&"/"!==p&&(0,t.jsx)("div",{className:"p-2 pb-1",style:{minHeight:"85px"},children:(0,t.jsx)(b,{token:r?.dealer?.capitalone_token,dealer:r?.dealer?.capitalone_dealer,price:r.price,featuredphoto:r?.photos[0]?.large??s?.new_arrival_photo??"https://static.overfuel.com/images/assets/new-arrival-2026.webp",vin:r.vin})}),s?.prodigy_website_id&&s?.prodigy_button_srp&&(0,t.jsx)("div",{className:"pt-3 pb-1 prodigyCLSfix mb-n2",dangerouslySetInnerHTML:{__html:`<div class="${s.prodigy_button_srp}" data-vin=${r.vin} data-config-type="SRP"></div>`}}),s?.acvmax_showroom==1&&r?.condition!=="New"&&(0,t.jsx)("div",{className:"px-3 pb-2",children:(0,t.jsx)(f,{vin:r.vin})}),s?.motoacquire_tradein&&(0,t.jsx)("div",{className:"motoacquire_srp_cta p-3",children:(0,t.jsxs)(i.Button,{variant:"primary","data-cy":"btn-motoacquire",className:"text-nowrap text-start w-100 d-flex align-items-center",onClick:()=>window.MotoAcquire&&window.MotoAcquire.openVVRDrawer(),children:[(0,t.jsx)(o.default,{width:26,height:21,className:"fa-regular fa-sack-dollar me-2 fa-fw text-white"}),"Value My Trade"]})}),"SRP"===d&&(0,g.hasSelectfiPlacement)(s,"srp-calculator")&&(0,t.jsx)(g.default,{placement:"srp-calculator",vehicle:r,dealerSettings:s,totalfees:l,context:"srp"}),"SRP"===d&&s?.runmylease_script_url&&(0,t.jsx)(v,{surface:"srp",vehicle:r,dealerSettings:s})]})}],7314);var j=e.i(70380),y=e.i(12040),w=e.i(94004);function N({useAnchor:e,phoneMain:a,label:r,isMobile:s,onClick:i,className:l,style:n}){return e?(0,t.jsxs)("a",{"data-asc-tracked":"",href:`tel:+1${a}`,className:l,style:n,onClick:()=>{!1!==s&&i?.("link")},children:[(0,t.jsx)(o.default,{className:"fa-solid fa-phone me-2"}),r,(0,t.jsx)("span",{className:"swap-target","aria-hidden":"true",children:(0,y.formatPhoneNumber)(a,!1)})]}):(0,t.jsxs)("span",{role:"button",className:l,style:n,onClick:()=>{!1!==s&&i?.("button")},children:[(0,t.jsx)(o.default,{className:"fa-solid fa-phone me-2"}),r]})}function k({fees:e,certified:a,price:r}){return Array.isArray(e)&&0!==e.length?e.map((e,s)=>!e.pretax||e.optional||"Pre-owned"===e.condition&&Number(e.certified)!==Number(a)?null:(0,t.jsxs)("div",{className:"text-muted text-small fw-normal",children:[e.shortname||e.name,":"," ","percent"===e.type?(0,y.formatCurrency)(parseFloat(e.value)*r):(0,y.formatCurrency)(e.value)]},`fee-${s}`)):null}e.s(["default",0,function({vehicle:e,dealer:a,dealerSettings:s,totalfees:i,monthlyPayment:l,paymentIsLease:n,popoverGuarantee:c,showGuarantee:d,displayEPrice:m,priceIsLocked:u,isMobile:p,onOpenPaymentCalc:h,onClick2Call:f,paymentRowReplacement:g}){let x=1===Number(s?.replace_click2call_with_anchor),b=Number(a?.settings?.lock_price)>0,v=null!==e.specialpricelabel&&void 0!==e.specialpricelabel&&e.specialprice>0,_=null!==e.price&&void 0!==e.price&&e.price>10,C=null!==e.price&&void 0!==e.price&&e.price>0,S=v?e.specialprice:m?e.price:(0,w.resolveDisplayPrice)(e.price,s,i,"srp",(0,y.isStellantisLockedStack)(s,e,"vdp"));return u&&b?(0,t.jsxs)("div",{className:`${"sold"===e.status?"d-none ":""}bg-lighter border rounded py-2 px-3 mt-2 mb-3 align-items-center text-center cursor-pointer`,onClick:()=>h(n?"lease":"finance"),children:[(0,t.jsx)("span",{className:"badge badge-secondary text-uppercase text-nowrap mb-2 pt-2",children:n?"Est. Lease"
55:"Est. Payment"}),(0,t.jsxs)("div",{className:"text-large",children:[(0,y.formatCurrency)(Math.round(l)),u?` - ${(0,y.formatCurrency)(Math.round(1.1*l))}`:" / month",e.price>0&&(0,t.jsx)(o.default,{className:"fa-regular fa-pen-to-square ms-2 text-primary"})]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:`${"sold"===e.status?"d-none ":"d-flex "}align-items-center mb-3 border-top pt-2 srpPriceContainer`,children:[(0,t.jsxs)("div",{className:"font-weight-bold",children:[m&&(0,t.jsxs)("small",{style:{fontWeight:"normal"},className:"d-block text-muted",children:["was"," ",(0,y.formatVehiclePrice)(e.price+e.eprice.discountamount-(e.eprice.stackeddiscount??0))]}),_?s?.srp_strike&&!m&&(null!==e.originalprice&&e.originalprice>=1.005*e.price||s?.show_msrp_used&&null!==e.msrp&&e.msrp>=1.005*e.price||"New"==e.condition&&null!==e.msrp&&e.msrp>=1.005*e.price)?(s?.show_msrp_used||"New"==e.condition)&&null!==e.msrp&&e.msrp>=1.005*e.price?(0,t.jsxs)(t.Fragment,{children:[!s?.hide_recently_discounted&&(2!==Number(s?.hide_dealer_discount_used)||"New"==e.condition)&&(0,t.jsxs)("span",{className:"text-muted",children:[(0,t.jsxs)("small",{children:["was ",(0,y.formatVehiclePrice)(e.msrp+e.addonprice)]})," ",(0,t.jsx)(o.default,{className:"fa-solid fa-circle-arrow-down-right ms-1 text-small text-success"}),(0,t.jsx)("br",{})]}),(0,t.jsx)("span",{className:"h4 font-weight-bold m-0 label-price",children:(0,y.formatVehiclePrice)(S)})]}):(0,t.jsxs)(t.Fragment,{children:[!s?.hide_recently_discounted&&!m&&(0,t.jsxs)("span",{className:"text-muted",children:[(0,t.jsxs)("small",{children:["was ",(0,y.formatVehiclePrice)(e.originalprice)]})," ",(0,t.jsx)(o.default,{className:"fa-solid fa-circle-arrow-down-right ms-1 text-small text-success"}),(0,t.jsx)("br",{})]}),(0,t.jsx)("span",{className:"h4 font-weight-bold m-0 label-price",children:(0,y.formatVehiclePrice)(S)}),!s?.srp_hide_fees&&(0,t.jsx)(k,{fees:e.finance?.fees,certified:e.certified,price:e.price})]}):(0,t.jsxs)(t.Fragment,{children:[m&&(0,t.jsx)(o.default,{width:20,height:20,className:"fa-regular fa-unlock-keyhole text-primary me-2 float-start",style:{marginTop:3}}),(0,t.jsx)("span",{className:`h4 font-weight-bold ${m?"my-0":"mt-3 label-price"}`,children:(0,t.jsx)(r.default,{href:`${e.url}`,children:(0,y.formatVehiclePrice)(S)})}),!s?.srp_hide_fees&&(0,t.jsx)(k,{fees:e.finance?.fees,certified:e.certified,price:e.price})]}):(0,t.jsx)(N,{useAnchor:x,phoneMain:e?.dealer?.phonemain??a.phonemain,label:s?.label_noprice??"Call for price",isMobile:p,className:"d-block",style:{padding:"15px 0"},onClick:e=>{"link"===e?f("sales","link"):f()}}),d&&(0,t.jsxs)("div",{className:"srp-guarantee fw-normal mt-1",children:[(0,t.jsx)(o.default,{className:"fa-solid fa-shield-check me-1 text-primary"}),s?.guarantee_label??"Guarantee",(0,t.jsx)(j.OverlayTrigger,{trigger:"click",placement:"top",overlay:c,rootClose:!0,children:({ref:e,...a})=>(0,t.jsx)(o.default,{forwardRef:e,forwardEvents:a,className:"fa-regular fa-circle-question ms-1 fa-fw text-muted cursor-pointer"})})]})]}),(0,t.jsx)("div",{className:`text-end text-nowrap ms-auto ${m||e.originalprice<=1.005*e.price?"my-1":"mt-0"}`,children:!g&&(!s?.hide_payments||s?.hide_payments<e.price)&&(0,t.jsx)("span",{className:"cursor-pointer",role:"button",onClick:()=>h(n?"lease":"finance"),children:C?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("small",{className:"opacity-75",children:n?"Est. Lease":"Est. Payment"}),(0,t.jsx)("br",{}),(0,y.formatCurrency)(Math.round(l))+(u?` - ${(0,y.formatCurrency)(Math.round(1.1*l))}`:"/mo"),(0,t.jsx)(o.default,{className:"fa-regular fa-pen-to-square ms-2 text-primary"})]}):"--"})})]}),g]})}],87957);var C=e.i(70233);e.s(["default",0,function({vehicle:e,dealer:a,dealerSettings:s,totalfees:i,monthlyPayment:l,negativediscounts:n,paymentIsLease:c,popoverGuarantee:d,showGuarantee:m,priceIsLocked:u,isMobile:p,onShowUnlockPrice:h,onClick2Call:f,paymentRowReplacement:g}){let x=1===Number(s?.replace_click2call_with_anchor),b=Number(a?.settings?.lock_price)>0,v=null!==e.specialpricelabel&&void 0!==e.specialpricelabel&&e.specialprice>0,_=null!==e.price&&void 0!==e.price&&e.price>10,k=null!==e.price&&void 0!==e.price&&e.price>0,S=null!==e.msrp&&void 0!==e.msrp,P=2===Number(e?.certified),M=P?(0,y.mapConditionDisplayLabel)("Verified pre-owned",s):e.condition,T=v?Math.round(e.msrp-e.specialprice):Math.round(Math.abs(Math.min(0,Number(n)||0))),F=s?.vdp_label_totaldiscounts||"Save",O=(0,y.isStellantisLockedStack)(s,e,"vdp"),A=(0,w.resolveDisplayPrice)(e.price,s,i,"srp",O),$=(e=>{if("string"!=typeof e)return null;try{return JSON.parse(e)}catch(e){return null}})(s?.filter_location_label);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:`${"sold"===e.status?"d-none ":"d-flex "}align-items-center border-top mt-1 pt-3 mb-3 srpPriceContainer`,children:[(0,t.jsxs)("div",{children:["New"===e.condition||s?.show_msrp_used?(0,t.jsxs)(t.Fragment,{children:[S&&e.msrp>0&&("New"===e.condition||e.msrp>=e.price)&&(0,t.jsxs)("span",{className:"label-msrp",children:["New"===e.condition?s?.label_msrp_new??"MSRP":s?.label_msrp_used??"MSRP",": ",(0,t.jsx)("span",{className:"msrp-price",children:(0,y.formatVehiclePrice)(e.msrp)})]}),1===Number(s?.srp_show_addonprice)&&e.addonprice>0&&(0,t.jsxs)("span",{className:"label-addonprice",children:[(0,t.jsx)("br",{}),(0,t.jsx)("span",{className:"addonprice-label",children:"Add-on"}),": ",(0,t.jsx)("span",{className:"addonprice-value",children:(0,y.formatCurrency)(e.addonprice)})]}),v&&(0,t.jsxs)("span",{className:"label-specialprice",children:[(0,t.jsx)("br",{}),(s?.label_saleprice?s.label_saleprice:"Sale price")+": "+(0,y.formatVehiclePrice)(v?e.specialprice:e.price)]}),S&&_&&!O&&T>0&&(0,t.jsx)("div",{className:"text-success font-weight-bold label-savings",children:(0,t.jsxs)("em",{children:[(0,t.jsx)("span",{className:"label_save",children:F})," ",(0,y.formatCurrency)(T.toFixed(0))]})}),e?.location==="transit"&&(0,t.jsx)("div",{children:$?.transit??"In transit"}),e?.location==="order"&&(0,t.jsx)("div",{children:$?.order??"Available"}),e?.location==="preorder"&&(0,t.jsx)("div",{children:$?.preorder??"Pre-order"})]}):(0,t.jsxs)(t.Fragment,{children:["Condition:",(0,t.jsx)("br",{}),!P&&e.certified?"Certified ":"",M,(0,t.jsx)("br",{}),1===e.certified&&s?.certified_warranty_short&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.default,{className:"fa-solid fa-shield-check me-1 text-primary"}),"Warranty",(0,t.jsx)(C.default,{terms:s?.certified_warranty_popover})]})]}),m&&(0,t.jsxs)("div",{className:"srp-guarantee",children:[(0,t.jsx)(o.default,{className:"fa-solid fa-shield-check me-1 text-primary"}),s?.guarantee_label??"Guarantee",(0,t.jsx)(j.OverlayTrigger,{trigger:"click",placement:"top",overlay:d,rootClose:!0,children:({ref:e,...a})=>(0,t.jsx)(o.default,{forwardRef:e,forwardEvents:a,className:"fa-regular fa-circle-question ms-1 fa-fw text-muted cursor-pointer"})})]})]}),(0,t.jsxs)("div",{className:"ms-auto text-end text-nowrap",children:[(v||_||u&&b)&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("b",{children:v?e.specialpricelabel:s?.label_saleprice&&!s?.exclude_addonprice_topline?s.label_saleprice:s?.exclude_addonprice_topline?"Base price":"Sale price"}),(0,t.jsx)("br",{})]}),(0,t.jsx)("div",{className:"h5 mb-0 font-weight-bold",children:u&&b?(0,t.jsxs)("div",{className:"cursor-pointer",onClick:h,children:[(0,t.jsx)(o.default,{className:"fa-regular fa-lock me-2"}),"Price Locked"]}):v?(0,t.jsx)(r.default,{href:`${e.url}`,children:(0,t.jsx)("span",{className:"label-price",children:(0,y.formatVehiclePrice)(e.specialprice)})}):_?(0,t.jsx)(r.default,{href:`${e.url}`,children:(0,t.jsx)("span",{className:"label-price",children:(0,y.formatVehiclePrice)(s?.exclude_addonprice_topline?A-e.addonprice:A)})}):(0,t.jsx)(N,{useAnchor:x,phoneMain:e?.dealer?.phonemain??a.phonemain,label:s?.label_noprice??"Call for price",isMobile:p,onClick:e=>{"link"===e?f("sales","link"):f()}})}),!g&&(!s?.hide_payments||s?.hide_payments<e.price)&&(0,t.jsx)("span",{children:k?`${(0,y.formatCurrency)(Math.round(l))} / mo. ${c?"lease est.":"est."}`:"--"})]})]}),g]})}],24181);var S=e.i(44434),P=e.i(68160),M=e.i(86150),T=e.i(92525);function F({html:e,id:a,className:r=""}){return e?(0,t.jsx)(j.OverlayTrigger,{trigger:"click",placement:"top",rootClose:!0,overlay:(0,t.jsx)(T.Popover,{id:a,children:(0,t.jsx)(T.Popover.Body,{className:"text-start text-small",children:(0,P.default)(e)})}),children:({ref:e,...a})=>(0,t.jsx)("span",{ref:e,...a,role:"button",onClick:e=>{e.stopPropagation(),a.onClick?.(e)},className:"d-inline-block text-muted text-small cursor-pointer "+r,children:"Disclosure"})}):null}e.s(["default",0,F],10796);var O=e.i(55490),A=e.i(97112),$=e.i(23959);function L(e,t){if(!e?.gubagoo_url)return!1;let a=e?.gubagoo_payment_preview;return"both"===a||a===t}e.s(["default",0,({vehicle:s,fees:l,totaldiscounts:n,totalfees:c,pretaxfees:d,nettedDiscountTotal:m,totaldiscountsRowAmount:u,hide_dealer_discount:p,adjustmentsBeforeAggregate:h,adjustmentsAfterAggregate:f,shouldShowAggregateDiscounts:g,aggregateDealerDiscount:x,dealerDiscountTotal:b,aggregateDiscountModalDescription:v,showAdjustmentsTable:_,shouldShowIncreasesGroup:j,increasesGroupConfig:N,groupedIncreases:k,specialFinancingRows:C,increasesTotal:P,increasesAmountDisplay:T,increasesDisplayAmount:L,increasesGroupModalDescription:D,shouldShowGroupedIncentiveLine:E,nonGuaranteedIncentivesConfig:R,groupedIncentivesDisplayTotal:I,groupedIncentivesModalDescription:U,stackIncentives:q,monthlyPayment:V,priceIsLocked:z,showPayment:B,onOpenPaymentCalc:G,leasePaymentFactor:H,ssrPaymentLens:W,onActiveTabChange:J,defaultCollapsed:X,compact:K,hideEstimatedPayment:Y,paymentRowReplacement:Q,displayEPrice:Z,context:ee,lockedLayout:et})=>{let ea=Z&&s?.eprice?.discountamount>0,er=!!et,es=(m||0)+(ea?-s.eprice.discountamount:0),ei=(u||0)+(ea?-s.eprice.discountamount:0),el=(0,w.resolveTotaldiscountsPlacement)(e.g.dealerSettings?.vdp_show_totaldiscounts),en=e=>e?.financerate!=null&&e?.financeterm!=null,ec=Z&&s?.eprice?.discounttype==="special"&&en(s?.eprice),eo=Array.isArray(C)?C.filter(en):[],ed=eo.length>0,em=ed||ec,eu="New"==s.condition||e.g.dealerSettings?.show_msrp_used&&s.msrp>
55=s.price,ep="New"!=s.condition&&(!e.g.dealerSettings?.show_msrp_used||null==s.msrp)&&s.price-n!=s.price,eh=Array.isArray(h)?h.filter(e=>!p||e.amount>0):[],ef=Array.isArray(f)?f.filter(e=>!p||e.amount>0):[],eg=Array.isArray(l)&&l.length>0||eh.some(e=>e.amount>0)||ef.some(e=>e.amount>0),ex=(_?eh.length:0)+(!p&&g&&x?.displayDiscountLine!==!1?1:0)+(_?ef.length:0)+ +!!E+ +!!ea,eb=j&&Array.isArray(k)?k:[],ev=eu&&s.msrp==s.price&&0===ex&&!eg&&!j&&!em&&!er,e_=(eu||ep||ex>0||eg||j||em||er)&&!ev,ej=ex>0||!er&&j,ey=(e,t)=>{let a=Number(e),r=Number.isInteger(a)?String(a):a.toFixed(2);return`${r}% APR for ${t} mo.`},ew=null;try{ew=JSON.parse(e.g.dealerSettings?.pricestack_collapse_default||"null")}catch(e){}let eN=ew&&ee&&"object"==typeof ew[ee]&&null!==ew[ee]?ew[ee]:null,ek=Array.isArray(l)?l.filter(e=>"Pre-owned"!==e.condition||e.certified===s.certified).length:0,eC=!!X,eS=!!X,eP=!!X,eM=Number.isInteger(eN?.auto_collapse_min)?eN.auto_collapse_min:1;eN&&"expanded"===eN.default?(eC=!1,eS=!1,eP=!1):eN&&"collapsed"===eN.default&&(eC=ex>=eM,eS=ek>=eM,eP=eb.length>=eM);let eT=eN?ex>eM:ex>2,eF=eN?ek>eM:ek>2,eO=N?.label??"Added Value",eA=x?.discountLineText??"Total Rebates",e$=_?[...eh,...ef]:[],eL=e$.some(e=>e.amount<=0)||!p&&g&&x?.displayDiscountLine!==!1||E||ea,eD=e$.some(e=>e.amount>0&&"saleprice"!==e.discounttype),eE=s?.lease||null,eR=s?.dealer?.leasespecials==1&&"New"==s.condition&&!!eE,eI=!!s?.finance?.ais_override||eR,eU=!K&&eR,eq=K&&eR&&e.g.dealerSettings?.finance_tab==="lease",eV=e.g.dealerSettings?.finance_tab==="lease"&&(eU||eq)?"lease":"finance",[ez,eB]=(0,a.useState)(eV),eG=(0,A.default)(e=>e.shopby_lens),eH=(0,A.default)(e=>e.update),[eW,eJ]=(0,a.useState)(!1);(0,a.useEffect)(()=>{eJ(!0)},[]);let eX=eW?eG??W:W??null,eK=eq&&("finance"===eX||"lease"===eX)?eX:ez,eY=e=>{eB(e),eq&&("finance"===e||"lease"===e)&&(eH({shopby_lens:e}),(0,$.persistFinanceCookie)({...A.default.getState(),shopby_lens:e}))},[eQ,eZ]=(0,a.useState)(!eC||!eT),[e0,e1]=(0,a.useState)(!eS||!eF),[e2,e4]=(0,a.useState)(!eP),[e3,e9]=(0,a.useState)(!1),[e5,e8]=(0,a.useState)(null),[e7,e6]=(0,a.useState)(null),[te,tt]=(0,a.useState)("lg"),ta=s?.vin||s?.id;(0,a.useEffect)(()=>{eB(eV)},[ta,eV]),(0,a.useEffect)(()=>{"function"==typeof J&&J(eK)},[eK,J]);let tr=(e,t)=>{e8(e),e6(t),tt("lg"),e9(!0)},ts=eE?.start_date,ti=eE?.end_date,tl=ts&&ti?`${(0,y.getFormattedDate)(ts)} through ${(0,y.getFormattedDate)(ti)}`:ti?`Through ${(0,y.getFormattedDate)(ti)}`:null,tn=(e,a,r,s="border-bottom",i="",l="")=>{let n=((e,t="plain")=>{if(null==e||""===e)return null;let a=Math.abs(Number(e));return"minus"===t?"- "+(0,y.formatCurrency)(a,!1):(0,y.formatCurrency)(e,!1)})(a,r);if(null==n)return null;let c=[l,0>Number(a)||"minus"===r?"text-success font-weight-bold":"","text-end"].filter(
55Boolean).join(" ");return(0,t.jsxs)("tr",{className:s,children:[(0,t.jsx)("td",{className:i,children:e}),(0,t.jsx)("td",{className:c,children:n})]})},tc=(e,a)=>{let r=e.amount<=0,s=er&&et.rebates.includes(e);return(0,t.jsxs)("tr",{className:e.title.toLowerCase().replaceAll(" ","-").replaceAll("/","-")+" text-small border-bottom",children:[(0,t.jsxs)("td",{className:s?"bg-light ps-3":"bg-light",children:[e?.description&&""!=e.description&&(0,t.jsx)(o.default,{width:11,height:11,className:"fa-regular fa-circle-question fa-fw cursor-pointer me-2",onClick:()=>tr(e.title,e.description)}),e.title]}),(0,t.jsx)("td",{className:r?"bg-light text-success font-weight-bold text-end":"bg-light text-end",children:r?(0,y.formatCurrency)(Math.round(e.amount)):(er?"+":"")+(0,y.formatCurrency)(e.amount)})]},`d${a}`)},to=z?null:(0,t.jsx)("table",{role:"presentation",className:"table mb-0 table-borderless table-sm"+(K?"":" mt-3"),id:"vdp-price-table",children:(0,t.jsxs)("tbody",{children:["New"!=s.condition&&(!e.g.dealerSettings?.show_msrp_used||null==s.msrp)&&ej?(0,t.jsxs)("tr",{className:"border-bottom roworiginalprice",children:[(0,t.jsx)("td",{children:s?.dealer?.settings?.label_originalprice??e.g.dealerSettings?.label_originalprice??"Original price"}),(0,t.jsx)("td",{className:"text-end",children:(0,y.formatCurrency)(Math.round(s.price-n))})]}):"","New"==s.condition||e.g.dealerSettings?.show_msrp_used&&s.msrp>0&&(s.msrp>=s.price-n||e_)?(0,t.jsxs)("tr",{className:"label-msrp border-bottom",children:[(0,t.jsxs)("td",{children:[e.g.dealerSettings?.disclaimer_msrp&&(0,t.jsx)(o.default,{className:"fa-regular fa-circle-question fa-fw cursor-pointer me-2",onClick:()=>tr("New"==s.condition?s?.dealer?.settings?.label_msrp_new??e.g.dealerSettings?.label_msrp_new??"MSRP":s?.dealer?.settings?.label_msrp_used??e.g.dealerSettings?.label_msrp_used??"MSRP",e.g.dealerSettings?.disclaimer_msrp)}),"New"==s.condition?s?.dealer?.settings?.label_msrp_new??e.g.dealerSettings?.label_msrp_new??"MSRP":s?.dealer?.settings?.label_msrp_used??e.g.dealerSettings?.label_msrp_used??"MSRP"]}),(0,t.jsx)("td",{className:"text-end",children:(0,t.jsx)("span",{className:"msrp-price",children:(0,y.formatCurrency)(Math.round(s.msrp))})})]}):"",er&&0!==et.addOnsTotal&&et.addOns.map(tc),er&&et.dealerDiscount<0&&(0,t.jsxs)("tr",{className:"locked-dealer-discount border-bottom",children:[(0,t.jsx)("td",{children:et.dealerDiscountLabel}),(0,t.jsx)("td",{className:"text-success font-weight-bold text-end",children:(0,y.formatCurrency)(Math.round(et.dealerDiscount))})]}),er&&null!=et.sellingPrice&&(0,t.jsxs)("tr",{className:"locked-selling-price border-bottom",children:[(0,t.jsx)("td",{className:"font-weight-bold",children:et.sellingPriceLabel}),(0,t.jsx)("td",{className:"font-weight-bold text-end",children:(0,y.formatCurrency)(Math.round(et.sellingPrice))})]}),er&&et.rebates.length>0&&0!==et.rebatesTotal&&(0,t.jsxs)("tr",{className:"locked-rebates border-bottom",children:[(0,t.jsxs)("td",{className:"pt-4",children:[x?.modalDescription&&(0,t.jsx)(o.default,{width:11,height:11,className:"fa-regular fa-circle-question fa-fw cursor-pointer me-2",onClick:()=>tr(x?.modalTitle??eA,v)}),eA]}),(0,t.jsx)("td",{className:"pt-4 text-end",children:(0,y.formatCurrency)(Math.round(et.rebatesTotal))})]}),er&&0!==et.rebatesTotal&&et.rebates.map(tc),!er&&j&&(0,t.jsxs)("tr",{className:"increasesgrouprow border-bottom cursor-pointer",onClick:()=>e4(!e2),children:[(0,t.jsxs)("td",{children:[(0,t.jsx)(o.default,{width:11,height:11,className:"fa-regular fa-circle-question fa-fw cursor-pointer me-2",onClick:e=>{e.stopPropagation(),tr(N?.modalTitle??eO,D)}}),eO]}),(0,t.jsxs)("td",{className:"text-end text-nowrap",children:[!e2&&("subtotal"===T?(0,t.jsx)("span",{className:"increases-subtotal text-decoration-line-through me-2",children:(0,y.formatCurrency)(Math.round(L))}):(0,t.jsx)("span",{className:"me-2",children:(0,y.formatCurrency)(Math.round(L))})),(0,t.jsx)("span",{className:"font-weight-bold",children:e2?"â":"+"})]})]}),!er&&j&&e2&&eb.map(tc),!er&&eT&&(0,t.jsxs)("tr",{className:"discountsfeesrow border-bottom cursor-pointer",onClick:()=>eZ(!eQ),children:[(0,t.jsx)("td",{children:eL&&eD?"Discounts & Fees":eD?"Fees":"Discounts"}),(0,t.jsxs)("td",{className:"text-end text-nowrap",children:[!eQ&&(0,t.jsx)("span",{className:(es<0?"text-success ":"")+"font-weight-bold me-2",children:(0,y.formatCurrency)(Math.round(es))}),(0,t.jsx)("span",{className:"font-weight-bold",children:eQ?"â":"+"})]})]}),!er&&(!eT||eQ)&&eh.length>0&&_&&eh.map(tc),!er&&(!eT||eQ)&&!p&&g&&x?.displayDiscountLine!==!1&&(0,t.jsxs)("tr",{className:"text-small border-bottom",children:[(0,t.jsxs)("td",{className:"bg-light",children:[(0,t.jsx)(o.default,{width:11,height:11,className:"fa-regular fa-circle-question fa-fw curs
55or-pointer me-2",onClick:()=>tr(x?.modalTitle??"Dealer Discounts",v)}),x?.discountLineText??"Dealer Discounts"]}),(0,t.jsx)("td",{className:`bg-light ${b<=0?"text-success font-weight-bold ":""}text-end`,children:(0,y.formatCurrency)(Math.round(b))})]},"df_aggregate"),!er&&(!eT||eQ)&&ef.length>0&&_&&ef.map(tc),!er&&(!eT||eQ)&&E&&(0,t.jsxs)("tr",{className:"text-small border-bottom",children:[(0,t.jsxs)("td",{className:"bg-light",children:[(0,t.jsx)(o.default,{width:11,height:11,className:"fa-regular fa-circle-question fa-fw cursor-pointer me-2",onClick:()=>tr(R?.modalTitle??"Special Incentives",U)}),R?.discountLineText??"Special Incentives"]}),(0,t.jsx)("td",{className:`bg-light ${I<=0?"text-success font-weight-bold ":""}text-end`,children:(0,y.formatCurrency)(Math.round(I))})]},"df_grouped_incentives"),(!eT||eQ)&&ea&&(0,t.jsxs)("tr",{className:"text-small border-bottom",children:[(0,t.jsxs)("td",{className:"bg-light",children:[(0,t.jsx)(o.default,{width:11,height:11,className:"fa-regular fa-circle-question fa-fw cursor-pointer me-2",onClick:()=>tr(s?.eprice?.buttontext??"ePrice Savings",s?.eprice?.disclaimer??"Unlock additional savings by submitting your information.")}),"â",s?.eprice?.buttontext??"ePrice Savings","â Unlocked"]}),(0,t.jsx)("td",{className:"bg-light text-success font-weight-bold text-end",children:(0,y.formatCurrency)(Math.round(-s.eprice.discountamount))})]}),(!eT||eQ)&&ed&&eo.map((e,a)=>(0,t.jsxs)("tr",{className:"text-small border-bottom",children:[(0,t.jsxs)("td",{className:"bg-light",children:[e?.description&&""!==e.description&&(0,t.jsx)(o.default,{width:11,height:11,className:"fa-regular fa-circle-question fa-fw cursor-pointer me-2",onClick:()=>tr(e.title??"Special Financing",e.description)}),e.title??"Special Financing"]}),(0,t.jsx)("td",{className:"bg-light text-end",children:ey(e.financerate,e.financeterm)})]},`sf-override-${e.id??a}`)),(!eT||eQ)&&ec&&(0,t.jsxs)("tr",{className:"text-small border-bottom",children:[(0,t.jsxs)("td",{className:"bg-light",children:[s?.eprice?.disclaimer&&""!==s.eprice.disclaimer&&(0,t.jsx)(o.default,{width:11,height:11,className:"fa-regular fa-circle-question fa-fw cursor-pointer me-2",onClick:()=>tr(s?.eprice?.buttontext??"Special Financing",s.eprice.disclaimer)}),s?.eprice?.buttontext??"Special Financing"]}),(0,t.jsx)("td",{className:"bg-light text-end",children:ey(s.eprice.financerate,s.eprice.financeterm)})]}),(0,t.jsxs)("tr",{className:"label-price border-bottom salepricerow",children:[(0,t.jsxs)("td",{className:"label-price font-weight-bold",children:[(s.pricingdisclaimer||e.g.dealerSettings?.disclaimer_price)&&(0,t.jsx)(o.default,{className:"fa-regular fa-circle-question fa-fw cursor-pointer me-1",width:12,height:12,onClick:()=>tr("Pricing Disclaimer",s.pricingdisclaimer||e.g.dealerSettings?.disclaimer_price)}),s?.dealer?.settings?.label_saleprice??e.g.dealerSettings?.label_saleprice??"Sale price"]}),(0,t.jsx)("td",{className:"text-end font-weight-bold",children:"srp"===ee?(0,t.jsx)(r.default,{href:`${s.url}`,children:(0,t.jsx)("span",{className:"label-price",children:(0,y.formatCurrency)(Math.round(er?et.netSalePrice:s.price))})}):(0,t.jsx)("span",{className:"label-price",children:(0,y.formatCurrency)(Math.round(er?et.netSalePrice:s.price))})})]}),"vdp"===ee&&Array.isArray(q)&&q.map((e,a)=>(0,t.jsxs)("tr",{className:"text-small border-bottom",children:[(0,t.jsxs)("td",{className:"bg-light",children:[e?.details&&""!=e.details&&(0,t.jsx)(o.default,{width:11,height:11,className:"fa-regular fa-circle-question fa-fw cursor-pointer me-2",onClick:()=>tr(e.program,e.details)}),e.program]}),(0,t.jsx)("td",{className:"bg-light text-success font-weight-bold text-end",children:"-"+(0,y.formatCurrency)(parseInt(e.cash))})]},"si"+a)),!er&&eF&&(0,t.jsxs)("tr",{className:"border-bottom cursor-pointer",onClick:()=>e1(!e0),children:[(0,t.jsx)("td",{children:"Fees"}),(0,t.jsxs)("td",{className:"text-end text-nowrap",children:[!e0&&(0,t.jsx)("span",{className:"font-weight-bold me-2",children:(0,y.formatCurrency)(Math.round(c))}),(0,t.jsx)("span",{className:"font-weight-bold",children:e0?"â":"+"})]})]}),!er&&(!eF||e0)&&Array.isArray(l)&&l?.length>0&&l.map((e,a)=>"Pre-owned"==e.condition&&e.certified!=s.certified?null:(0,t.jsxs)("tr",{className:"text-small border-bottom",children:[(0,t.jsxs)("td",{className:"bg-light",children:[e?.description&&""!=e.description&&(0,t.jsx)(o.default,{width:11,height:11,className:"fa-regular fa-circle-question fa-fw curs
55or-pointer me-2",onClick:()=>tr(e.title,e.description)}),e.shortname||e.name]}),(0,t.jsx)("td",{className:e.value<=0?"bg-light text-success font-weight-bold text-end":"bg-light text-end",children:"percent"===e.type?e.pretax?(0,y.formatCurrency)(e.value*s.price):(0,y.formatCurrency)(e.value*(s.price+d)):(0,y.formatCurrency)(e.value)})]},"f"+a)),!er&&["price_stack","both"].includes(el)&&ei<0&&(0,t.jsxs)("tr",{className:"label-price-totaldiscounts border-bottom",children:[(0,t.jsxs)("td",{className:"font-weight-bold label-price-totaldiscounts",children:[e.g.dealerSettings?.vdp_disclaimer_totaldiscounts&&(0,t.jsx)(o.default,{className:"fa-regular fa-circle-question fa-fw cursor-pointer me-2",onClick:()=>tr(e.g.dealerSettings?.vdp_label_totaldiscounts?e.g.dealerSettings?.vdp_label_totaldiscounts:"You Save",e.g.dealerSettings?.vdp_disclaimer_totaldiscounts)}),e.g.dealerSettings?.vdp_label_totaldiscounts?e.g.dealerSettings?.vdp_label_totaldiscounts:"You Save"]}),(0,t.jsx)("td",{className:"font-weight-bold text-end",children:(0,t.jsx)("span",{className:"label-price-totaldiscounts",children:(0,y.formatCurrency)(Math.round(-1*ei))})})]}),!er&&e.g.dealerSettings?.vdp_show_totalprice&&0!=c&&(0,t.jsxs)("tr",{className:"border-bottom vdp-show-totalprice",children:[(0,t.jsx)("td",{className:"font-weight-bold",children:e.g.dealerSettings?.vdp_label_totalprice?e.g.dealerSettings?.vdp_label_totalprice:"Estimated price"}),(0,t.jsx)("td",{className:"font-weight-bold text-end",children:(0,t.jsx)("span",{className:"label-price",children:(0,y.formatCurrency)(Math.round(s.price+c))})})]}),s?.specialpricelabel!=null&&s?.specialprice>0&&(0,t.jsxs)("tr",{className:"rowspecialprice border-bottom",children:[(0,t.jsx)("td",{children:s.specialpricelabel}),(0,t.jsx)("td",{className:"text-end",children:(0,y.formatCurrency)(Math.round(s.specialprice))})]})]})}),td=()=>{let e=s?.finance?.ais_override?s?.finance?.ais_financial_institution:null;return`Excl. taxes and fees on approved credit.${e?`<br/><br/>${(0,M.getAprDisclaimer)(e)}`:""}`},tm=()=>`Excl. taxes and fees on approved credit.${s?.lease?.financial_institution?` Offer from ${s.lease.financial_institution}.`:""}${tl?` Available ${tl}.`:""}${eE?.program_name?` Program: ${eE.program_name}.`:""}${eE?.financial_institution?`<br/><br/>${(0,M.getLeaseDisclaimer)(eE.financial_institution)}`:""}`,tu=(e,a)=>(0,t.jsx)(F,{html:e,id:a,className:"mt-2"}),tp=eq&&"lease"===eK,th=tp?eE?.monthly_payment*(H||1):V;return(0,t.jsxs)(t.Fragment,{children:[eU&&(0,t.jsx)(O.default,{className:"mt-3",value:eK,onChange:eY,options:[{value:"finance",label:(0,t.jsxs)(t.Fragment,{children:["Finance",(0,t.jsx)("br",{}),(0,t.jsxs)("strong",{className:"text-lowercase",children:[(0,y.formatCurrency)(Math.round(V))," / mo."]})]})},{value:"lease",label:(0,t.jsxs)(t.Fragment,{children:["Lease",(0,t.jsx)("br",{}),(0,t.jsxs)("strong",{className:"text-lowercase",children:[(0,y.formatCurrency)(Math.round(eE.monthly_payment))," / mo."]})]})},{value:"cash",label:(0,t.jsxs)(t.Fragment,{children:["Cash",(0,t.jsx)("br",{}),(0,t.jsx)("strong",{className:"text-lowercase",children:(0,y.formatCurrency)(Math.round(s.price+c))})]})}]}),K?(0,t.jsxs)(t.Fragment,{children:[eq&&(0,t.jsx)(O.default,{className:"mb-2",value:eK,onChange:eY,options:[{value:"finance",label:"Finance",dataCy:"btn-srp-tab-finance"},{value:"lease",label:"Lease",dataCy:"btn-srp-tab-lease"}]}),to,Q,!Q&&!Y&&th>0&&(0,t.jsxs)("div",{"data-cy":"btn-srp-paymentcalc",className:"cursor-pointer rounded p-2 border mt-3 mb-2 d-flex align-items-center gap-2 flex-wrap",onClick:()=>G?.(tp?"lease":"finance"),children:[(0,t.jsx)("span",{className:"badge badge-secondary text-uppercase text-nowrap",children:tp?"Est. Lease":"Est. Payment"}),(0,t.jsxs)("span",{className:"ms-auto d-inline-flex align-items-center text-nowrap",children:[(0,y.formatCurrency)(Math.round(th))," / mo.",(0,t.jsx)(o.default,{className:"fa-regular fa-pen-to-square text-primary ms-2",width:16,height:16})]})]}),eI&&(0,t.jsx)("div",{className:"text-center mb-2",children:tu(tp?tm():td(),"popover-card-disclosure")})]}):"finance"===eK?(0,t.jsxs)(t.Fragment,{children:[B&&(0,t.jsx)("div",{"data-cy":"btn-paymentcalc",className:"cursor-pointer",onClick:()=>G?.("finance"),children:(0,t.jsxs)("span",{className:"rounded p-2 d-block text-end border my-3",children:[(0,t.jsx)("span",{className:"badge badge-secondary text-uppercase me-2 float-start",children:"Estimated Payment"}),V>0?(0,t.jsxs)(t.Fragment,{children:[(0,y.formatCurrency)(Math.round(V)),z?" - "+(0,y.formatCurrency)(Math.round(1.1*V)):" / mo."]}):(0,t.jsx)(t.Fragment,{children:"â"}),(0,t.jsx)(o.default,{className:"fa-regular fa-pen-to-square text-primary ms-2",width:16,height:16})]})}),e_&&to,eI&&(0,t.jsx)("div",{className:"text-center",children:tu(td(),"popover-vdp-finance-disclosure")})]}):null,!K&&"lease"===eK&&(0,t.jsxs)(t.Fragment,{children:[B&&eE?.monthly_payment>0&&(0,t.jsx)("div",{"data-cy":"btn-paymentcalc-lease",className:"cursor-pointer",onClick:()=>G?.("lease"),children:(0,t.jsxs)("span",{className:"rounded p-2 d-block text-end border my-3",children:[(0,t.jsx)("span",{className:"badge badge-secondary text-uppercase me-2 float-start",children:"Estimated Payment"}),(0,y.formatCurrency)(Math.round(eE.monthly_payment))," / mo.",(0,t.jsx)(o.default,{className:"fa-regular fa-pen-to-square text-primary ms-2",width:16,height:16})]})}),e_&&to,eE&&(0,t.jsxs)("div",{className:"mt-3 text-center",children:[(null!=eE.term||null!=eE.annual_miles)&&(0,t.jsxs)("div",{children:[null!=eE.term?eE.term+" months":"",null!=eE.term&&null!=eE.annual_miles?" @ ":"",null!=eE.annual_miles?eE.annual_miles.toLocaleStr
55ing()+" miles / year":""]}),null!=eE.due_at_signing&&(0,t.jsxs)("div",{children:[(0,y.formatCurrency)(Math.round(eE.due_at_signing))," due at signing"]}),s?.lease?.financial_institution&&(0,t.jsxs)("div",{children:["Offer from ",s.lease.financial_institution,(0,t.jsx)("a",{href:"#",className:"ms-1 text-decoration-underline",onClick:e=>{let a,r,s,i,l;e.preventDefault(),a=eE?.breakdown,s=(r=Array.isArray(eE?.eprice?.stackableeprices)?eE.eprice.stackableeprices.filter(e=>0!==Number(e?.discountamount)):[]).filter(e=>0>-Number(e.discountamount)),i=r.filter(e=>-Number(e.discountamount)>0),l=(e,a)=>{let r=-Number(e.discountamount),s=r<0;return(0,t.jsxs)("tr",{className:"text-small border-bottom",children:[(0,t.jsx)("td",{className:"bg-light",children:e.title}),(0,t.jsx)("td",{className:"bg-light text-end"+(s?" text-success font-weight-bold":""),children:(0,y.formatCurrency)(r,!1)})]},`eprice-${e.id??a}`)},e8("Lease Offer Breakdown"),e6((0,t.jsxs)("div",{children:[a&&(0,t.jsx)("table",{className:"table mb-0 table-borderless table-sm",children:(0,t.jsxs)("tbody",{children:[tn("MSRP",a.msrp),tn("Dealer Discount",a.dealer_discount,"plain","text-small border-bottom","bg-light","bg-light"),s.map(l),tn("Listing Price",a.listing_price,"plain","font-weight-bold border-bottom"),tn("Acquisition Fee",a.acquisition_fee,"plain","text-small border-bottom","bg-light","bg-light"),i.map(l),tn("First Month's Payment",a.first_month_payment,"plain","text-small border-bottom","bg-light","bg-light"),tn("Down Payment",a.down_payment,"minus","text-small border-bottom","bg-light","bg-light"),tn("Total Due at Signing",a.due_at_signing,"plain","font-weight-bold border-bottom"),tn("Est. Adjusted Cap Cost",a.adjusted_cap_cost,"plain","text-small border-bottom","bg-light","bg-light"),tn("Estimated Monthly Payment",a.monthly_payment,"plain","font-weight-bold border-bottom","label-price","font-weight-bold label-price")]})}),(0,t.jsxs)("div",{className:"text-small text-muted mt-3",children:["Estimated monthly payment",a?.listing_price!=null&&(0,t.jsxs)(t.Fragment,{children:[" based on listing price of ",(0,y.formatCurrency)(a.listing_price)]}),eE?.term!=null&&(0,t.jsxs)(t.Fragment,{children:[" for ",eE.term," months"]}),eE?.annual_miles!=null&&(0,t.jsxs)(t.Fragment,{children:[" with ",eE.annual_miles.toLocaleString()," miles per year"]}),eE?.due_at_signing!=null&&(0,t.jsxs)(t.Fragment,{children:[", ",(0,y.formatCurrency)(eE.due_at_signing,!1)," due at signing"]}),a?.acquisition_fee!=null&&(0,t.jsxs)(t.Fragment,{children:[", including a ",(0,y.formatCurrency)(a.acquisition_fee,!1)," acquisition fee"]}),". Excludes tax, title, registration, and license fees. Available to qualified lessees",eE?.financial_institution&&(0,t.jsxs)(t.Fragment,{children:[" through ",eE.financial_institution]}),tl&&(0,t.jsxs)(t.Fragment,{children:[". Available ",tl]}),eE?.program_name&&(0,t.jsxs)(t.Fragment,{children:[". Program: ",eE.program_name]}),"."]})]})),tt(null),e9(!0)},children:"Details"})]}),tu(tm(),"popover-vdp-lease-disclosure")]})]}),!K&&"cash"===eK&&e_&&to,(0,t.jsxs)(S.Modal,{show:e3,onClose:()=>e9(!1),onHide:()=>e9(!1),animation:!1,size:te||void 0,centered:!te,children:[(0,t.jsxs)("h3",{className:"border-bottom d-flex align-items-center bg-white w-100 h5 ps-4 pe-0 mb-0 float-start border-theme border-thick d-inline-block py-2 sticky-top",children:[e5,(0,t.jsx)(i.Button,{variant:"link",className:"btn-xs ms-auto close text-large float-end d-inline-block me-0 py-0","aria-label":"Close",onClick:()=>e9(!1),children:"Ã"})]}),(0,t.jsx)(S.Modal.Body,{children:"string"==typeof e7?(0,t.jsx)("div",{dangerouslySetInnerHTML:{__html:e7}}):e7}),(0,t.jsx)(S.Modal.Footer,{className:"text-end",children:(0,t.jsx)(i.Button,{variant:"primary",onClick:()=>e9(!1),children:"Close"})})]})]})}],25217),e.s(["default",0,function({surface:e,vehicle:r,dealerSettings:s}){let i=(0,a.useRef)(null),l=r?.vin,n=r?.condition=="New"?"new":1===Number(r?.certified)?"cpo":"used",c=!!l&&L(s,e);return((0,a.useEffect)(()=>{let e=i.current;if(!e||!c||(e.replaceChildren(),null===e.offsetParent))return;let t=document.createElement("div");
55return t.className="cbo-preview-payments",t.setAttribute("data-vin",l),t.setAttribute("data-vehicle-type",n),t.setAttribute("style","display: none !important;"),e.appendChild(t),()=>e.replaceChildren()},[c,l,n]),c)?(0,t.jsx)("div",{ref:i,className:`gubagoo-payment-preview gubagoo-payment-preview--${"new"===n?"new":"used"}`}):null},"showsGubagooPaymentPreview",0,L],42448),e.s(["default",0,function({vehicle:e,dealerSettings:t,priceLocked:a,feesUnlocked:r,lockPrice:s,surface:i="vdp"}){let l=parseInt(e?.price)>0,n=parseInt(s);if(t?.lock_price_scope!=="fees"){let t=l&&n>parseInt(e?.price);return{priceIsLocked:!!(a&&t),feesLocked:!1,hideFees:!1}}let c=l&&(!(n>0)||n>parseInt(e?.price));if("srp"===i)return{priceIsLocked:!1,feesLocked:!1,hideFees:c};let o=c&&!(r??[]).includes(e?.id)&&Array.isArray(e?.finance?.fees)&&e.finance.fees.some(t=>"Pre-owned"!=t.condition||t.certified==e.certified);return{priceIsLocked:!1,feesLocked:o,hideFees:o}},"stripFees",0,function(e){return e?.finance?{...e,finance:{...e.finance,fees:[]}}:e}],59488)},33748,e=>{"use strict";var t=e.i(91398),a=e.i(3200),r=e.i(27913);e.s(["default",0,function({vehicle:e}){let s="sold"===e.status||"sold"===e.statusoverride,i=!s&&"hold"===e.statusoverride;return(0,t.jsxs)(t.Fragment,{children:[s&&(0,t.jsxs)("div",{className:"bg-danger text-white small py-1 px-2 rounded text-danger font-weight-bold vc-sold",children:[(0,t.jsx)(a.default,{className:"fa-solid fa-handshake me-1 text-white"}),"Sold"]}),i&&(0,t.jsxs)("div",{className:"text-black small py-1 px-2 rounded text-danger font-weight-bold vc-hold",children:[(0,t.jsx)(a.default,{className:"fa-solid fa-lock-keyhole me-1 text-black"}),"On hold"]}),e.badge&&!i&&!s&&(0,t.jsx)(r.default,{badge:e.badge}),1===e.hot&&"hold"!==e.statusoverride&&(0,t.jsxs)("div",{className:"bg-danger text-white small py-1 px-2 rounded text-danger font-weight-bold vc-popular",children:[(0,t.jsx)(a.default,{className:"fa-solid fa-fire-flame-curved me-1 text-white"}),"Hot"]}),1===e.featured&&(0,t.jsxs)("div",{className:"bg-white small py-1 px-2 rounded font-weight-bold vc-featured",children:[(0,t.jsx)(a.default,{className:"fa-solid fa-star me-1 text-primary"}),"Featured"]}),1===e.wholesale&&(0,t.jsxs)("div",{className:"bg-secondary text-white small py-1 px-2 rounded font-weight-bold vc-wholesale",children:[(0,t.jsx)(a.default,{className:"fa-solid fa-star me-1 text-white"}),"Wholesale"]})]})}])},6464,e=>{"use strict";var t=e.i(12040);let a=new Set(["Click2Call","AskQuestion","ConfirmAvailability","TestDrive","PayDeposit","FreeHold","MakeOffer","ManagersSpecial","TradeValue","CreditCheckHard","CreditCheckSoft"]),r={honda:"Honda",acura:"Acura"},s=(e,t)=>{let a=parseFloat(e?.price),r=parseFloat(e?.msrp);if(t?.which_oem!=="acura"||e?.condition!=="New"||e?.make!=="Acura"||!Number.isFinite(a)||a<=0||!Number.isFinite(r)||r<=0||a>=r)return{vehicle:e,msrpFloored:!1};let s=Array.isArray(e.discounts)?e.discounts:[],i=s.filter(e=>!(0>(Number(e?.amount)||0))),l=Math.max(a-s.reduce((e,t)=>e+Math.min(Number(t?.amount)||0,0),0),r);if(l===a)return{vehicle:e,msrpFloored:!1};let n={...e,price:l,discounts:i},c=Array.isArray(e.incentives)?e.incentives:[],o=new Set(c.map(e=>String(e?.program??"").trim().toLowerCase())),d=s.filter(e=>0>(Number(e?.amount)||0)&&"oem"===String(e?.discounttype??"").toLowerCase()).filter(e=>!o.has(String(e?.title??"").trim().toLowerCase())).map((e,t)=>({id:`oem-floor-${t}`,program:e.title,category:"OEM",type:"Cash",guaranteed:0,featured:0,cash:String(Math.abs(Number(e.amount)||0)),details:e.description??"",expiration:e.expiration??null,position:"incentives_block"}));d.length>0&&(n.incentives=[...c,...d]);let m=parseFloat(e?.finance?.monthly_payment);return Number.isFinite(m)&&m>0&&(n.finance={...e.finance,monthly_payment:Math.round(l/a*m*100)/100}),{vehicle:n,msrpFloored:!0}};e.s(["applyOemMissingMsrpPriceSuppression",0,(e,t)=>{let a=r[t?.which_oem],s=parseFloat(e?.msrp),i=parseFloat(e?.price);return!a||e?.condition!=="New"||e?.make!==a||Number.isFinite(s)&&s>0||!Number.isFinite(i)||i<=0?{vehicle:e,msrpMissing:!1}:{vehicle:{...e,price:0},msrpMissing:!0}},"applyOemMsrpDisplayFloor",0,s,"getColumnSizes",0,({colSizeLg:e,colSizeMd:t,colSizeSm:a,colSizeXl:r,colSizeXxl:s,colCount:i,context:l})=>{let n=e||3;i&&"craft"===l&&(n=12/i);let c=r||n;return{colSizeLg:n,colSizeMd:t||4,colSizeSm:a||4,colSizeXl:c,colSizeXxl:s||c}},"getCustomSrpCtas",0,e=>{if(!e)return[];try{let t=JSON.parse(e);return Array.isArray(t)?t:[t]}catch(e){return console.error("Error - parsing the cta_srp_custom_buttons:",e),[]}},"getDisplayCtas",0,e=>e?(e.includes(",")?e.split(","):[e]).filter(e=>a.has(e)):[],"normalizeVehiclePricing",0,(e,t,a)=>{let r={...e},i=!1;r?.eprice?.discountamount!=0&&r?.eprice?.type==="formfill"&&r?.eprice?.display&&a.includes(r.id)&&
55(r.originalprice=r.price,r.price+=-1*r.eprice.discountamount,i=!0);let{vehicle:l,msrpFloored:n}=s(r,t);r=l,n&&(i=!1);let c=!n&&null!==r.originalprice&&r.originalprice>=1.005*r.price;return{vehicle:r,displayEPrice:i,hasDiscount:c,msrpFloored:n}},"parseCardAttributes",0,e=>(0,t.isJson)(e)?JSON.parse(e):e])},21628,e=>{"use strict";var t=e.i(12040);let a={dealername:"name",city:"city",state:"state",postalcode:"postalcode",street1:"street1",phonemain:"phonemain",phonesales:"phonesales",phoneservice:"phoneservice",emailmain:"emailmain",emailsales:"emailsales"},r={year:"year",make:"make",model:"model",trim:"trim",vin:"vin",stocknumber:"stocknumber",price:"price",condition:"condition",title:"title",mileage:"mileage",body:"body",msrp:"msrp",url:"url"};e.s(["resolveInventoryVariables",0,(e,a)=>{if("string"!=typeof e||!a||"object"!=typeof a)return e;let r=e=>Number(a[e])||0,s=r("Certified pre-owned")+r("Verified pre-owned"),i=r("Pre-owned")+s,l={total:r("New")+i,new:r("New"),used:i,certified:s};return e.replace(/\{inventory\.(total|new|used|certified)\}/g,(e,a)=>(0,t.numberWithCommas)(l[a]))},"resolveTemplateVariables",0,(t,s=null,i=null,l=null)=>{if("string"!=typeof t)return t;let n=s||e.g.superProp?.related;return t.replace(/\{(\w+)\}/g,(e,t)=>{if("count"===t)return null!=l?String(l):e;let s=t.toLowerCase(),c=a[s],o=c?n?.[c]:void 0;if(null!=o&&""!==o)return o;let d=r[s],m=d?i?.[d]:void 0;return null!=m&&""!==m?m:c||d&&null!=i?"-":e})}])}]);
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.