PageSourceSearch

https://vehiclesforsalenearindianapolis.com/_next/static/chunks/0e…?dpl=dpl_BMDzFcmYt5zJqonp2HkjHzdjMsPk

js vehiclesforsalenearindianapolis.com collected 2026-10-07 21:57:32 UTC 50,321 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,27307,e=>{e.q("/_next/static/media/location.08wforrleh~x_.png")},70065,e=>{"use strict";var t=e.i(43476),r=e.i(47163);e.s(["Card",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card",className:(0,r.cn)("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...a})},"CardContent",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-content",className:(0,r.cn)("px-6",e),...a})},"CardHeader",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-header",className:(0,r.cn)("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...a})},"CardTitle",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-title",className:(0,r.cn)("leading-none font-semibold",e),...a})}])},73375,e=>{"use strict";let t=(0,e.i(75254).default)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);e.s(["ChevronLeft",0,t],73375)},67668,e=>{"use strict";var t=e.i(71645);let r="user_location";function a(e,t){try{let a={latitude:e,longitude:t,timestamp:Date.now()};document.cookie=`${r}=${JSON.stringify(a)}; max-age=86400; path=/; SameSite=Lax`}catch(e){}}function n(){try{let e=document.cookie.split("; ").find(e=>e.startsWith(`${r}=`));if(!e)return null;let t=e.split("=")[1],a=JSON.parse(decodeURIComponent(t));if(Date.now()-a.timestamp>864e5)return null;return a}catch(e){return null}}e.s(["useUserLocation",0,(e=!1)=>{let r=(0,t.useRef)(!1),[l,i]=(0,t.useState)(()=>{let e=n();return e?{latitude:e.latitude,longitude:e.longitude,loading:!1,error:null,permissionDenied:!1}:{latitude:null,longitude:null,loading:!0,error:null,permissionDenied:!1}});return(0,t.useEffect)(()=>{if(r.current)return;r.current=!0;let e=n();if(e){navigator.geolocation&&navigator.geolocation.getCurrentPosition(t=>{var r,n;let l,s,o,c,d,u=t.coords.latitude,m=t.coords.longitude;r=e.latitude,n=e.longitude,l=r*Math.PI/180,s=u*Math.PI/180,6371e3*(2*Math.atan2(Math.sqrt(d=Math.sin((o=(u-r)*Math.PI/180)/2)*Math.sin(o/2)+Math.cos(l)*Math.cos(s)*Math.sin((c=(m-n)*Math.PI/180)/2)*Math.sin(c/2)),Math.sqrt(1-d)))>1e3&&(a(u,m),i({latitude:u,longitude:m,loading:!1,error:null,permissionDenied:!1}))},e=>{},{enableHighAccuracy:!1,timeout:1e4,maximumAge:6e4});return}navigator.geolocation?navigator.geolocation.getCurrentPosition(e=>{let t=e.coords.latitude,r=e.coords.longitude;a(t,r),i({latitude:t,longitude:r,loading:!1,error:null,permissionDenied:!1})},e=>{let t="Unable to retrieve your location",r=!1;switch(e.code){case e.PERMISSION_DENIED:t="Location access denied",r=!0;break;case e.POSITION_UNAVAILABLE:t="Location information unavailable";break;case e.TIMEOUT:t="Location request timed out"}i({latitude:null,longitude:null,loading:!1,error:t,permissionDenied:r})},{enableHighAccuracy:!0,timeout:5e3,maximumAge:0}):i({latitude:null,longitude:null,loading:!1,error:"Geolocation is not supported by your browser",permissionDenied:!1})},[]),l}],67668)},23287,e=>{"use strict";let t=(0,e.i(75254).default)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);e.s(["default",0,t])},52571,e=>{"use strict";let t=(0,e.i(75254).default)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);e.s(["Info",0,t],52571)},10682,e=>{"use strict";let t=(0,e.i(75254).default)("heart-off",[["line",{x1:"2",y1:"2",x2:"22",y2:"22",key:"1w4vcy"}],["path",{d:"M16.5 16.5 12 21l-7-7c-1.5-1.45-3-3.2-3-5.5a5.5 5.5 0 0 1 2.14-4.35",key:"3mpagl"}],["path",{d:"M8.76 3.1c1.15.22 2.13.78 3.24 1.9 1.5-1.5 2.74-2 4.5-2A5.5 5.5 0 0 1 22 8.5c0 2.12-1.3 3.78-2.67 5.17",key:"1gh3v3"}]]);e.s(["HeartOff",0,t],10682)},31343,95242,e=>{"use strict";var t=e.i(75254);let r=(0,t.default)("play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);e.s(["Play",0,r],31343);let a=(0,t.default)("pause",[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]]);e.s(["Pause",0,a],95242)},1048,72520,40617,e=>{"use strict";var t=e.i(23287);e.s(["CircleCheck",()=>t.default],1048);
1let r=(0,e.i(75254).default)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);e.s(["ArrowRight",0,r],72520);var a=e.i(43476),n=e.i(71645),l=e.i(57688),i=e.i(31343),s=e.i(95242),o=e.i(71829);let c=null;function d(e){c&&c!==e&&c.pause(),c=e}let u=(0,n.memo)(({src:e,posterSrc:t,alt:r="Vehicle video",sizes:u="(max-width: 640px) 100vw, (max-width: 1024px) 50vw, 350px"})=>{let m=(0,n.useRef)(null),p=(0,n.useRef)(null),f=(0,n.useRef)(!1),h=(0,n.useRef)(!1),[v,g]=(0,n.useState)(!1),[x,y]=(0,n.useState)(!1),[b,w]=(0,n.useState)(!1),[j,N]=(0,n.useState)(!1),[k,C]=(0,n.useState)(!1),[E,S]=(0,n.useState)(!1),[I,P]=(0,n.useState)(!1),R=t||o.placeHolderImage;(0,n.useEffect)(()=>{let e=m.current;if(!e)return;let t=new IntersectionObserver(([e])=>g(e.isIntersecting),{rootMargin:"200px"}),r=new IntersectionObserver(([e])=>y(e.isIntersecting),{threshold:.3});return t.observe(e),r.observe(e),()=>{t.disconnect(),r.disconnect()}},[]),(0,n.useEffect)(()=>{x||!p.current||p.current.paused||(p.current.pause(),h.current=!1)},[x]),(0,n.useEffect)(()=>{!v&&k&&(C(!1),w(!1),N(!1),S(!1),h.current=!1,c===p.current&&(c=null))},[v,k]);let A=(0,n.useCallback)(()=>{let e=p.current;e&&!I&&(h.current=!0,N(!0),d(e),e.play().catch(e=>{N(!1),h.current=!1}))},[I]),M=(0,n.useCallback)(()=>{if(f.current=!0,!k){h.current=!0,N(!0),C(!0);return}E?A():(h.current=!0,N(!0))},[k,E,A]),$=(0,n.useCallback)(()=>{f.current=!1,h.current=!1,N(!1);let e=p.current;e&&!e.paused&&(e.pause(),e.currentTime=0)},[]),_=(0,n.useCallback)(e=>{if(e.preventDefault(),e.stopPropagation(),!k){h.current=!0,N(!0),C(!0);return}let t=p.current;t&&(t.paused?A():(t.pause(),t.currentTime=0,h.current=!1))},[k,A]),D=(0,n.useCallback)(()=>{if(S(!0),h.current&&f.current){let e=p.current;e&&(d(e),e.play().catch(e=>{N(!1),h.current=!1}))}else N(!1),h.current=!1},[]),F=(0,n.useCallback)(()=>{w(!0),N(!1)},[]),T=(0,n.useCallback)(()=>{w(!1),N(!1)},[]),L=(0,n.useCallback)(()=>{w(!1),N(!1),h.current=!1,c===p.current&&(c=null)},[]),O=(0,n.useCallback)(()=>{N(!0)},[]),z=(0,n.useCallback)(()=>{let e=p.current;e?.error,P(!0),N(!1),h.current=!1},[e]),U=k&&v&&!I;return(0,a.jsxs)("div",{ref:m,className:"absolute inset-0",onMouseEnter:M,onMouseLeave:$,children:[(0,a.jsx)("div",{className:`absolute inset-0 transition-opacity duration-300 ${U&&E&&b?"opacity-0":"opacity-100"}`,children:(0,a.jsx)(l.default,{src:R,alt:r,fill:!0,sizes:u,className:"object-contain"})}),U&&(0,a.jsx)("video",{ref:p,src:e,className:`absolute inset-0 w-full h-full object-contain transition-opacity duration-300 ${E&&b?"opacity-100":"opacity-0"}`,playsInline:!0,preload:"auto",onCanPlay:D,onPlay:F,onPause:T,onEnded:L,onWaiting:O,onError:z,onClick:e=>e.stopPropagation()}),j&&!I&&(0,a.jsx)("div",{className:"absolute inset-0 z-[3] flex items-center justify-center",children:(0,a.jsx)("div",{className:"w-10 h-10 border-4 border-[#8FC947] border-t-transparent rounded-full animate-spin"})}),(0,a.jsx)("button",{className:"absolute inset-0 z-[4] flex items-center cursor-pointer justify-center group",onClick:_,children:(0,a.jsx)("div",{className:`bg-black/50 rounded-full p-3 transition-opacity duration-200 ${b||j?"opacity-0 group-hover:opacity-100":"opacity-100"}`,children:b?(0,a.jsx)(s.Pause,{className:"w-8 h-8 text-white"}):(0,a.jsx)(i.Play,{className:"w-8 h-8 text-white ml-0.5"})})}),I&&(0,a.jsx)("div",{className:"absolute inset-0 flex items-center justify-center bg-black/20 z-[5]",children:(0,a.jsx)("p",{className:"text-white text-xs bg-black/60 px-2 py-1 rounded",children:"Video unavailable"})})]})});u.displayName="LazyVideoPlayer",e.s(["default",0,u],40617)},63209,e=>{"use strict";let t=(0,e.i(75254).default)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);e.s(["AlertCircle",0,t],63209)},95544,e=>{"use strict";var t=e.i(43476),r=e.i(63209);e.s(["default",0,function({className:e=""}){return(0,t.jsxs)("div",{className:`bg-amber-50 container mx-auto my-2 border border-amber-200 rounded-lg p-6 ${e}`,children:[(0,t.jsxs)("div",{className:"flex items-center gap-3 mb-3",children:[(0,t.jsx)(r.AlertCircle,{className:"w-5 h-5 text-amber-600 flex-shrink-0"}),(0,t.jsx)("h3",{className:"text-lg font-semibold text-gray-900 p-0 m-0 leading-[0.8]",children:"Disclaimer"})]}),(0,t.jsx)("p",{className:"text-sm text-gray-700 leading-relaxed",children:"We are not responsible for typographical, pricing, product information or advertising errors. In the event a vehicle is listed at an incorrect price due to typographical, photographic, or technical errors or errors in pricing information received from one of the manufacturers we represent, we shall have the right to refuse or cancel any sell, offer, or order placed for vehicles listed at the incorrect price. Price
1s are subject to change at the dealers discretion, all prices are plus tax, title, license and Documentation Fees. See Dealer for details. The list of standard equipment and accessories contained on this document reflect equipment which was standard at the time vehicle was manufactured. This vehicle may or may not contain some or most of the equipment and accessories listed as a result of the vehicle identification number equipment compilation provided by a third party source. This VIN equipment compilation is provided as a service by the dealer and a third party source and is in no way intended to serve as a warranty or list of actual equipment contained on the vehicle."})]})}])},12463,27612,e=>{"use strict";var t=e.i(43476),r=e.i(71645),a=e.i(18566),n=e.i(57688);let l=(0,e.i(75254).default)("trash-2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);e.s(["Trash2",0,l],27612);var i=e.i(63059),s=e.i(73375),o=e.i(1048),c=e.i(52571),d=e.i(90597),u=e.i(10682),m=e.i(72520),p=e.i(70065),f=e.i(71829),h=e.i(47163),v=e.i(22016),g=e.i(58249),x=e.i(67668),y=e.i(56066),b=e.i(47433),w=e.i(55487),j=e.i(75544),N=e.i(48112),k=e.i(46696),C=e.i(40617),E=e.i(95066);let S=(0,r.memo)(({index:e=0,id:S,vin:I,name:P,title:R,condition:A,price:M,year:$,mileage:_,comments:D,transmission:F,model:T,trim:L,dealer:O,combinedMPG:z,combinedMPGe:U,media:V,videos:B,make:H,fuel:q,estimatedRange:K,showwishlist:W=!0,showDivision:G=!0,showDelete:X=!1,clickLocation:J="SRP",priceLadder:Z,services:Q,onDelete:Y})=>{let ee,et=(0,r.useRef)(null),[er,ea]=(0,r.useState)(0),[en,el]=(0,r.useState)(!1),[ei,es]=(0,r.useState)(!1),[eo,ec]=(0,r.useState)(!1),[ed,eu]=(0,r.useState)(!1),[em,ep]=(0,r.useState)(!0),{user:ef,isLoggedIn:eh}=(0,b.useAuth)(),ev=(0,w.useSelector)(e=>e.wishlist.ids),eg=(0,w.useDispatch)(),ex=(0,a.useRouter)(),ey=(0,x.useUserLocation)(!1),eb=(0,r.useMemo)(()=>(0,h.hyphenateString)(O?.name),[O?.name]),ew=Q?.find(e=>e.serviceName?.toLowerCase()==="carfax")?.details,ej=ew?.carfaxInformation,eN=ew?.carfaxWindowSticker,ek=ej?.iconUrl||eN?.iconUrl||null,eC=ew?.carfaxReport||ej?.carfaxUrl||null,eE=(0,r.useMemo)(()=>({item_id:I||null,item_number:null,item_price:M?Math.floor(Number(M)):null,item_condition:A||"used",item_year:parseInt($)||null,item_make:H||null,item_model:T||null,item_variant:L||null,item_color:null,item_type:null,item_category:null,item_inventory_date:null,item_location:O?.city||O?.name||null}),[I,M,A,$,H,T,L,O?.city,O?.name]),eS=(0,r.useMemo)(()=>{let e=`/${eb}/cars/${(0,h.hyphenateString)(H)}/${(0,h.hyphenateString)(T)}/${(0,h.hyphenateString)(L)}/${$}/${I}`;return"SavedVehicles"===J?`https://vehiclesforsalenearme.com${e}`:e},[eb,H,T,L,$,I,J]),eI=(0,r.useMemo)(()=>(V||[]).filter(e=>e?.type==="image"&&!!e?.src),[V]),eP=(0,r.useMemo)(()=>(B||[]).map(e=>e?.originalUrl).filter(Boolean).join(","),[B]),eR=(0,r.useMemo)(()=>eI.map(e=>e.src).join(","),[eI]),eA=(0,r.useMemo)(()=>[...(B||[]).filter(e=>e?.originalUrl).map(e=>({type:"video",src:e.originalUrl})),...eI.map(e=>({type:"image",src:e.src}))],[eP,eR]);(0,r.useEffect)(()=>{ea(0)},[eA.length,I]);let eM=eA.length>0?eA[er]:null,e$=eM?.type==="video",e_=eI.length>0?eI[0].src:null;(0,r.useEffect)(()=>{if(eh&&ef&&S){let e=S.toString();ec(ev.some(t=>t.toString()===e))}else ec(!1)},[S,ef,eh,ev]),(0,r.useEffect)(()=>{e$||ep(!0)},[er,e$]);let eD=(0,r.useCallback)(e=>ey.latitude&&ey.longitude&&e?.latitude&&e?.longitude?(0,h.calculateDistanceMiles)(ey.latitude,ey.longitude,e.latitude,e.longitude):null,[ey.latitude,ey.longitude]),eF=(0,r.useCallback)(()=>{let e=eA.length;0!==e&&(ea(t=>(t+1)%e),(0,N.trackMediaInteraction)({pageType:"itemlist",eventAction:"click",eventActionResult:"next_step",mediaType:"gallery",vehicleParams:eE}))},[eA.length,eE]),eT=(0,r.useCallback)(()=>{let e=eA.length;0!==e&&(ea(t=>0===t?e-1:t-1),(0,N.trackMediaInteraction)({pageType:"itemlist",eventAction:"click",eventActionResult:"next_step",mediaType:"gallery",vehicleParam
1s:eE}))},[eA.length,eE]);(0,r.useEffect)(()=>{let e=et.current;if(!e)return;let t=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&!ei&&((0,g.trackEvent)("vehicle_impression",{dealerId:O?.dealerId||null,dealerName:O?.name||null,vin:I||null,year:$||null,make:H||null,model:T||null,trim:L||null,price:M?parseInt(M):null,condition:A||"used",fuelType:null,clickLocation:J,vehicleLocation:O?.city||null,isVideo:(B?.length??0)>0}),es(!0))})},{threshold:.5});return t.observe(e),()=>t.disconnect()},[ei,O,I,$,H,T,L,M,A,J]);let eL=(0,r.useCallback)(e=>{e.target.closest("button")||e.target.closest("video")||((0,g.trackEvent)("vehicle_card_click",{dealerId:O?.dealerId||null,dealerName:O?.name||null,vin:I||null,item_year:parseInt($)||null,item_make:H||null,item_model:T||null,item_variant:L||null,price:M?parseInt(M):null,condition:A||"used",fuelType:null,clickLocation:J,vehicleLocation:O?.city||null,isVideo:(B?.length??0)>0}),(0,N.trackMediaInteraction)({pageType:"itemlist",eventAction:"click",eventActionResult:"redirect",mediaType:"thumbnail",linkUrl:eS,vehicleParams:eE}),ex.push(eS))},[O,I,$,H,T,L,M,A,J,eS,eE,ex]),eO=(0,r.useCallback)(async e=>{if(e.preventDefault(),e.stopPropagation(),!eh||!ef)return void k.toast.error("Please log in to save vehicles to your wishlist");if(!I||!S)return void k.toast.error("Missing VIN or ID for wishlist operation");ec(!eo),eu(!0);try{let e=eo?await (0,y.deleteWishlist)({id:ef.id,vehicleId:S.toString()}):await (0,y.addToWishlist)({id:ef.id,vehicleId:S.toString()});if(!e.success){ec(eo),k.toast.error(e?.message||"Failed to update wishlist");return}eo?(eg((0,j.removeFromWishlistRedux)(S)),k.toast.success("Removed from wishlist")):(eg((0,j.addToWishlistRedux)(S)),k.toast.success("Added to wishlist")),(0,g.trackEvent)("vehicle_wishlist",{dealerId:O?.dealerId||null,dealerName:O?.name||null,vin:I||null,year:$||null,make:H||null,model:T||null,trim:L||null,price:M?parseInt(M.toString()):null,condition:A||"used",fuelType:null,clickLocation:J,vehicleLocation:O?.city||null,isVideo:(B?.length??0)>0,action:eo?"removed":"added"}),(0,N.trackCTAInteraction)({pageType:"itemlist",elementText:eo?"Remove from Wishlist":"Add to Wishlist",elementType:"body",elementSubtype:"cta_icon",eventAction:"click",eventActionResult:eo?"uncheck":"check",vehicleParams:eE}),eo&&Y&&Y()}catch(e){ec(eo),k.toast.error("An error occurred. Please try again.")}finally{eu(!1)}},[eh,ef,I,S,eo,O,$,H,T,L,M,A,J,eE,eg,Y]),ez=eD(O?.coordinates);return(0,t.jsxs)(p.Card,{ref:et,className:"rounded-xl border p-2 md:p-4 relative cursor-pointer w-[350px] md:w-full",onClick:eL,children:[(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-6",children:[(0,t.jsxs)("div",{className:"flex gap-6 flex-col",children:[(0,t.jsxs)("div",{className:"relative w-full aspect-video overflow-hidden rounded-lg md:rounded-xl bg-black",children:[W&&(0,t.jsx)("button",{className:`absolute top-3 left-3 z-10 h-8 w-8 rounded-lg transition-colors duration-200 flex items-center justify-center bg-[#8FC947] hover:bg-[#7AB83A] ${ed?"opacity-50 cursor-not-allowed":""}`,onClick:e=>{(e.stopPropagation(),ef)?eO(e):k.toast.error("Please login to add wishlist")},disabled:ed,children:eo?(0,t.jsx)(u.HeartOff,{className:"w-4 h-4 text-white stroke-2"}):(0,t.jsx)(d.Heart,{className:"w-4 h-4 text-white fill-transparent stroke-2"})}),eM?e$?(0,t.jsx)(C.default,{src:eM.src,posterSrc:e_,alt:`${A} ${H} ${T} ${L} ${$} video`,sizes:"(max-width: 640px) 100vw, (max-width: 1024px) 50vw, 350px"},eM.src):(0,t.jsxs)(t.Fragment,{children:[em&&(0,t.jsx)("div",{className:"absolute inset-0 bg-gray-200 animate-pulse flex items-center justify-center z-[5]",children:(0,t.jsx)("div",{className:"w-12 h-12 border-4 border-[#8FC947] border-t-transparent rounded-full animate-spin"})}),(0,t.jsx)(n.default,{src:eM.src||f.placeHolderImage,alt:`${A} ${H} ${T} ${L} ${$} | ${I} - For Sale`,fill:!0,sizes:"(max-width: 640px) 100vw, (max-width: 1024px) 50vw, 350px",className:`object-contain transition-opacity duration-500 ease-in-out ${em?"opacity-0":"opacity-100"}`,priority:e<4,onLoadStart:()=>ep(!0),onLoad:()=>ep(!1)})]}):(0,t.jsx)(n.default,{src:f.placeHolderImage,alt:`${$} ${H} ${T} ${L} - ${I}
1`,fill:!0,sizes:"(max-width: 640px) 100vw, (max-width: 1024px) 50vw, 350px",className:"object-cover",priority:e<4}),eA.length>0&&(0,t.jsxs)("div",{className:"absolute bottom-3 left-3 z-10 bg-black/70 text-white text-xs px-2 py-1 rounded-md flex items-center gap-1",children:[e$&&(0,t.jsx)("svg",{className:"w-3 h-3",viewBox:"0 0 24 24",fill:"currentColor",children:(0,t.jsx)("path",{d:"M8 5v14l11-7z"})}),er+1," / ",eA.length]}),(0,t.jsx)("button",{className:`absolute top-1/2 left-3 -translate-y-1/2 z-10 bg-[#07507B] hover:bg-[#07507B]/90 p-2 rounded-lg transition-all ${eA.length<=1?"opacity-40 cursor-not-allowed":""}`,disabled:eA.length<=1,onClick:e=>{e.preventDefault(),e.stopPropagation(),eT()},children:(0,t.jsx)(s.ChevronLeft,{className:"text-[#90C846] size-5"})}),(0,t.jsx)("button",{className:`absolute top-1/2 right-3 -translate-y-1/2 z-10 bg-[#07507B] hover:bg-[#07507B]/90 p-2 rounded-lg transition-all ${eA.length<=1?"opacity-40 cursor-not-allowed":""}`,disabled:eA.length<=1,onClick:e=>{e.preventDefault(),e.stopPropagation(),eF()},children:(0,t.jsx)(i.ChevronRight,{className:"text-[#90C846] size-5"})})]}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsxs)("span",{className:"flex items-start justify-between",children:[(0,t.jsx)("p",{className:"text-sm text-[#777777] font-semibold",children:A}),X&&(0,t.jsx)("button",{className:"border block lg:hidden z-50 border-red-500 p-1.5 rounded-full hover:bg-red-100 transition-colors cursor-pointer",onClick:e=>{e.preventDefault(),e.stopPropagation(),Y?.(),k.toast.success("Removed from saved vehicles")},children:(0,t.jsx)(l,{className:"w-5 h-5 text-red-500"})})]}),(0,t.jsxs)("div",{className:"flex items-start justify-between",children:[(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,h.isMakeExists)(H||"")&&(0,t.jsx)("div",{className:"relative w-[50px] h-[50px] flex-shrink-0",children:(0,t.jsx)(n.default,{src:(0,h.findMake)(H||"")?.logoUrl||"",alt:`${H} logo`,fill:!0,sizes:"50px",className:"object-contain",loading:"lazy",quality:70})}),(0,t.jsx)("h3",{className:"self-center text-base md:text-lg lg:text-xl font-bold text-[#1E1E1E] px-[5px]",children:P})]}),!Z?.rows?.length&&(0,t.jsx)("span",{className:"self-center text-green-600 font-bold text-lg mt-1",children:(0,h.NumberFormatter)(parseInt(M))})]}),(0,t.jsxs)("div",{className:"text-sm text-[#777777] flex justify-between gap-2 border-y py-2 mt-2",children:[(0,t.jsx)("span",{children:$})," | ",(0,t.jsxs)("span",{children:[_," mi"]}),(ee=e=>{if(null==e||""===e)return!1;let t="number"==typeof e?e:Number(e);return Number.isFinite(t)&&0!==t&&-1!==t})(z)?(0,t.jsxs)(t.Fragment,{children:[" ","| ",(0,t.jsx)("span",{children:`${z}${"Electric"===q?" MPGe":" MPG"}`})]}):ee(U)?(0,t.jsxs)(t.Fragment,{children:[" ","| ",(0,t.jsx)("span",{children:`${U} MPGe`})]}):null," ","|"," ","Electric"===q&&K?(0,t.jsxs)("span",{children:[K," mi range"]}):(0,t.jsx)("span",{children:F})]}),(0,t.jsx)(E.PricingBlock,{priceLadder:Z}),ek&&(0,t.jsx)("div",{className:"flex justify-center",children:eC?(0,t.jsx)("a",{href:eC,target:"_blank",rel:"noopener noreferrer","aria-label":"View CARFAX report",onClick:e=>{e.preventDefault(),e.stopPropagation(),window.open(eC,"_blank","noopener,noreferrer")},className:"inline-flex",children:(0,t.jsx)("img",{src:ek,alt:"CARFAX",className:"h-18 w-auto object-contain"})}):(0,t.jsx)("img",{src:ek,alt:"CARFAX",className:"h-18 w-auto object-contain"})}),G&&(0,t.jsxs)("div",{className:"space-y-1 my-5 flex items-start justify-between",children:[(0,t.jsxs)("span",{children:[(0,t.jsx)("p",{className:"font-semibold text-lg text-[#1E1E1E]",children:O.name}),(0,t.jsxs)("p",{className:"text-gray-600 flex items-center gap-3 mt-2",children:[(0,t.jsx)(n.default,{src:"http://srp-vdp-optimizer.autoplai.com/wp-content/uploads/2025/10/location.png",alt:"Location",width:16,height:16,className:"w-4 h-4"}),(0,t.jsx)("span",{children:O.city}),ey.loading?(0,t.jsx)("span",{className:"text-xs text-gray-400",children:"Getting location..."}
1):null!==ez?(0,t.jsxs)("span",{className:"text-[#8FC947] font-semibold",children:["• ",ez.toFixed(1)," mi away"]}):ey.error?(0,t.jsx)("span",{className:"text-xs text-gray-400",children:"Distance unavailable"}):null]})]}),""!=D?(0,t.jsxs)("span",{className:"relative cursor-pointer text-green-500 transition-colors",onMouseEnter:e=>{e.preventDefault(),e.stopPropagation(),el(!0)},onMouseLeave:e=>{e.preventDefault(),e.stopPropagation(),el(!1)},onClick:e=>{e.preventDefault(),e.stopPropagation()},children:[(0,t.jsx)(c.Info,{className:"size-5 cursor-pointer hover:text-green-500 transition-colors"}),en&&(0,t.jsxs)("div",{className:"absolute top-5 right-0 z-50 bg-white shadow-lg border rounded-md p-3 min-w-64 text-sm text-gray-700 flex items-center gap-2",children:[(0,t.jsx)(o.CircleCheck,{className:"size-8 text-green-500"}),(0,t.jsx)("span",{className:"text-xs text-gray-700",dangerouslySetInnerHTML:(0,h.createSafeHTML)(D)})]})]}):null]})]})]}),(0,t.jsx)("hr",{className:"border-gray-200"})]}),(0,t.jsx)(v.default,{href:eS,target:"SavedVehicles"===J?"_blank":void 0,children:(0,t.jsx)("div",{className:"flex items-center md:flex-col xl:flex-row gap-2 w-full",children:(0,t.jsx)("button",{className:"flex-1 items-center gap-1 cursor-pointer bg-red-600 hover:bg-red-700 text-white font-semibold py-3 px-4 rounded-lg transition-colors text-xs sm:text-sm md:text-base animate-pulseCustom",onClick:()=>{(0,N.trackCTAInteraction)({pageType:"itemlist",elementText:"See Every Detail Now",elementType:"body",elementSubtype:"cta_button",eventAction:"click",eventActionResult:"redirect",linkUrl:eS,vehicleParams:eE})},children:(0,t.jsxs)("span",{className:"flex items-center gap-1 text-center justify-center",children:["See Every Detail Now - Shop Locally & Transparently"," ",(0,t.jsx)(m.ArrowRight,{className:"size-4"})]})})})})]})});S.displayName="GridCarCard",e.s(["default",0,S],12463)},59377,e=>{"use strict";var t=e.i(43476),r=e.i(71645),a=e.i(81140),n=e.i(20783),l=e.i(30030),i=e.i(26330),s=e.i(3536),o=e.i(65491),c=e.i(10772),d=e.i(53660),u=e.i(74606),m=e.i(96626),p=e.i(48425),f=e.i(91918),h=e.i(69340),v=e.i(86312),g=e.i(85369),x="Popover",[y,b]=(0,l.createContextScope)(x,[d.createPopperScope]),w=(0,d.createPopperScope)(),[j,N]=y(x),k=e=>{let{__scopePopover:a,children:n,open:l,defaultOpen:i,onOpenChange:s,modal:o=!1}=e,u=w(a),m=r.useRef(null),[p,f]=r.useState(!1),[v,g]=(0,h.useControllableState)({prop:l,defaultProp:i??!1,onChange:s,caller:x});return(0,t.jsx)(d.Root,{...u,children:(0,t.jsx)(j,{scope:a,contentId:(0,c.useId)(),triggerRef:m,open:v,onOpenChange:g,onOpenToggle:r.useCallback(()=>g(e=>!e),[g]),hasCustomAnchor:p,onCustomAnchorAdd:r.useCallback(()=>f(!0),[]),onCustomAnchorRemove:r.useCallback(()=>f(!1),[]),modal:o,children:n})})};k.displayName=x;var C="PopoverAnchor";r.forwardRef((e,a)=>{let{__scopePopover:n,...l}=e,i=N(C,n),s=w(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:c}=i;return r.useEffect(()=>(o(),()=>c()),[o,c]),(0,t.jsx)(d.Anchor,{...s,...l,ref:a})}).displayName=C;var E="PopoverTrigger",S=r.forwardRef((e,r)=>{let{__scopePopover:l,...i}=e,s=N(E,l),o=w(l),c=(0,n.useComposedRefs)(r,s.triggerRef),u=(0,t.jsx)(p.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":O(s.open),...i,ref:c,onClick:(0,a.composeEventHandlers)(e.onClick,s.onOpenToggle)});return s.hasCustomAnchor?u:(0,t.jsx)(d.Anchor,{asChild:!0,...o,children:u})});S.displayName=E;var I="PopoverPortal",[P,R]=y(I,{forceMount:void 0}),A=e=>{let{__scopePopover:r,forceMount:a,children:n,container:l}=e,i=N(I,r);return(0,t.jsx)(P,{scope:r,forceMount:a,children:(0,t.jsx)(m.Presence,{present:a||i.open,children:(0,t.jsx)(u.Portal,{asChild:!0,container:l,children:n})})})};A.displayName=I;var M="PopoverContent",$=r.forwardRef((e,r)=>{let a=R(M,e.__scopePopover),{forceMount:n=a.forceMount,...l}=e,i=N(M,e.__scopePopover);return(0,t.jsx)(m.Presence,{present:n||i.open,children:i.modal?(0,t.jsx)(D,{...l,ref:r}):(0,t.jsx)(F,{...l,ref:r})})});$.displayName=M;var _=(0,f.createSlot)("PopoverContent.RemoveScroll"),D=r.forwardRef((e,l)=>{let i=N(M,e.__scopePopover),s=r.useRef(null),o=(0,n.useComposedRefs)(l,s),c=r.useRef(!1);return r.useEffect(()=>{let e=s.current;if(e)return(0,v.hideOthers)(e)},[]),(0,t.jsx)(g.RemoveScroll,{as:_,allowPinchZoom:!0,children:(0,t.jsx)(T,{...e,ref:o,trapFocus:i.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,a.composeEventHandlers)(e.onCloseAutoFocus,e=>{e.preventDefault(),c.current||i.triggerRef.current?.focus()}),onPointerDownOutside:(0,a.composeEventHandlers)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;c.current=2===t.button||r},{checkForDefaultPrevented:!1}),onFocusOutside:(0,a.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),F=r.forwardRef((e,a)=>{let n=N(M,e.__scopePopover),l=r.useRef(!1),i=r.useRef(!1);return(0,t.jsx)(T,{...e,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(l.current||n.triggerRef.current?.focus(),t.preventDefault()),l.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(l.current=!0,"pointerdown"===t.detail.originalEvent.type&&(i.current=!0));let r=t.target;n.triggerRef.current?.contains(r)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})}),T=r.forwardRef((e,r)=>{let{__scopePopover:a,trapFocus:n,onOpenAutoFocus:l,onCloseAutoFocus:c,disableOutsidePointerEvents:u,onEscapeKeyDown:m,onPointerDownOutside:p,onFocusOutside:f,onInteractOutside:h,...v}=e,g=N(M,a),x=w(a);return(0,s.useFocusGuards)(),(0,t.jsx)(o.FocusScope,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:l,onUnmountAutoFocus:c,children:(0,t.jsx)(i.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:u,onInteractOutside:h,onEscapeKeyDown:m,onPointerDownOutside:p,onFocusOutside:f,onDismiss:()=>
1g.onOpenChange(!1),children:(0,t.jsx)(d.Content,{"data-state":O(g.open),role:"dialog",id:g.contentId,...x,...v,ref:r,style:{...v.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),L="PopoverClose";function O(e){return e?"open":"closed"}r.forwardRef((e,r)=>{let{__scopePopover:n,...l}=e,i=N(L,n);return(0,t.jsx)(p.Primitive.button,{type:"button",...l,ref:r,onClick:(0,a.composeEventHandlers)(e.onClick,()=>i.onOpenChange(!1))})}).displayName=L,r.forwardRef((e,r)=>{let{__scopePopover:a,...n}=e,l=w(a);return(0,t.jsx)(d.Arrow,{...l,...n,ref:r})}).displayName="PopoverArrow";var z=e.i(47163);e.s(["Popover",0,function({...e}){return(0,t.jsx)(k,{"data-slot":"popover",...e})},"PopoverContent",0,function({className:e,align:r="center",sideOffset:a=4,...n}){return(0,t.jsx)(A,{children:(0,t.jsx)($,{"data-slot":"popover-content",align:r,sideOffset:a,className:(0,z.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",e),...n})})},"PopoverTrigger",0,function({...e}){return(0,t.jsx)(S,{"data-slot":"popover-trigger",...e})}],59377)},53751,e=>{"use strict";var t=e.i(43476),r=/[\\\/_+.#"@\[\(\{&]/,a=/[\\\/_+.#"@\[\(\{&]/g,n=/[\s-]/,l=/[\s-]/g;function i(e){return e.toLowerCase().replace(l," ")}var s=e.i(26999),o=e.i(71645),c=e.i(48425),d=e.i(10772),u=e.i(20783),m='[cmdk-group=""]',p='[cmdk-group-items=""]',f='[cmdk-item=""]',h=`${f}:not([aria-disabled="true"])`,v="cmdk-item-select",g="data-value",x=(e,t,s)=>{var o;return o=e,function e(t,i,s,o,c,d,u){if(d===i.length)return c===t.length?1:.99;var m=`${c},${d}`;if(void 0!==u[m])return u[m];for(var p,f,h,v,g=o.charAt(d),x=s.indexOf(g,c),y=0;x>=0;)(p=e(t,i,s,o,x+1,d+1,u))>y&&(x===c?p*=1:r.test(t.charAt(x-1))?(p*=.8,(h=t.slice(c,x-1).match(a))&&c>0&&(p*=Math.pow(.999,h.length))):n.test(t.charAt(x-1))?(p*=.9,(v=t.slice(c,x-1).match(l))&&c>0&&(p*=Math.pow(.999,v.length))):(p*=.17,c>0&&(p*=Math.pow(.999,x-c))),t.charAt(x)!==i.charAt(d)&&(p*=.9999)),(p<.1&&s.charAt(x-1)===o.charAt(d+1)||o.charAt(d+1)===o.charAt(d)&&s.charAt(x-1)!==o.charAt(d))&&.1*(f=e(t,i,s,o,x+1,d+2,u))>p&&(p=.1*f),p>y&&(y=p),x=s.indexOf(g,x+1);return u[m]=y,y}(o=s&&s.length>0?`${o+" "+s.join(" ")}`:o,t,i(o),i(t),0,0,{})},y=o.createContext(void 0),b=o.createContext(void 0),w=o.createContext(void 0),j=o.forwardRef((e,t)=>{let r=M(()=>{var t,r;return{search:"",value:null!=(r=null!=(t=e.value)?t:e.defaultValue)?r:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),a=M(()=>new Set),n=M(()=>new Map),l=M(()=>new Map),i=M(()=>new Set),s=R(e),{label:u,children:w,value:j,onValueChange:N,filter:k,shouldFilter:C,loop:E,disablePointerSelection:S=!1,vimBindings:I=!0,...P}=e,$=(0,d.useId)(),_=(0,d.useId)(),L=(0,d.useId)(),O=o.useRef(null),z=D();A(()=>{if(void 0!==j){let e=j.trim();r.current.value=e,U.emit()}},[j]),A(()=>{z(6,W)},[]);let U=o.useMemo(()=>({subscribe:e=>(i.current.add(e),()=>i.current.delete(e)),snapshot:()=>r.current,setState:(e,t,a)=>{var n,l,i,o;if(!Object.is(r.current[e],t)){if(r.current[e]=t,"search"===e)K(),H(),z(1,q);else if("value"===e){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let e=document.getElementById(L);e?e.focus():null==(n=document.getElementById($))||n.focus()}if(z(7,()=>{var e;r.current.selectedItemId=null==(e=G())?void 0:e.id,U.emit()}),a||z(5,W),(null==(l=s.current)?void 0:l.value)!==void 0){null==(o=(i=s.current).onValueChange)||o.call(i,null!=t?t:"");return}}U.emit()}},emit:()=>
1{i.current.forEach(e=>e())}}),[]),V=o.useMemo(()=>({value:(e,t,a)=>{var n;t!==(null==(n=l.current.get(e))?void 0:n.value)&&(l.current.set(e,{value:t,keywords:a}),r.current.filtered.items.set(e,B(t,a)),z(2,()=>{H(),U.emit()}))},item:(e,t)=>(a.current.add(e),t&&(n.current.has(t)?n.current.get(t).add(e):n.current.set(t,new Set([e]))),z(3,()=>{K(),H(),r.current.value||q(),U.emit()}),()=>{l.current.delete(e),a.current.delete(e),r.current.filtered.items.delete(e);let t=G();z(4,()=>{K(),(null==t?void 0:t.getAttribute("id"))===e&&q(),U.emit()})}),group:e=>(n.current.has(e)||n.current.set(e,new Set),()=>{l.current.delete(e),n.current.delete(e)}),filter:()=>s.current.shouldFilter,label:u||e["aria-label"],getDisablePointerSelection:()=>s.current.disablePointerSelection,listId:$,inputId:L,labelId:_,listInnerRef:O}),[]);function B(e,t){var a,n;let l=null!=(n=null==(a=s.current)?void 0:a.filter)?n:x;return e?l(e,r.current.search,t):0}function H(){if(!r.current.search||!1===s.current.shouldFilter)return;let e=r.current.filtered.items,t=[];r.current.filtered.groups.forEach(r=>{let a=n.current.get(r),l=0;a.forEach(t=>{l=Math.max(e.get(t),l)}),t.push([r,l])});let a=O.current;X().sort((t,r)=>{var a,n;let l=t.getAttribute("id"),i=r.getAttribute("id");return(null!=(a=e.get(i))?a:0)-(null!=(n=e.get(l))?n:0)}).forEach(e=>{let t=e.closest(p);t?t.appendChild(e.parentElement===t?e:e.closest(`${p} > *`)):a.appendChild(e.parentElement===a?e:e.closest(`${p} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{var t;let r=null==(t=O.current)?void 0:t.querySelector(`${m}[${g}="${encodeURIComponent(e[0])}"]`);null==r||r.parentElement.appendChild(r)})}function q(){let e=X().find(e=>"true"!==e.getAttribute("aria-disabled")),t=null==e?void 0:e.getAttribute(g);U.setState("value",t||void 0)}function K(){var e,t,i,o;if(!r.current.search||!1===s.current.shouldFilter){r.current.filtered.count=a.current.size;return}r.current.filtered.groups=new Set;let c=0;for(let n of a.current){let a=B(null!=(t=null==(e=l.current.get(n))?void 0:e.value)?t:"",null!=(o=null==(i=l.current.get(n))?void 0:i.keywords)?o:[]);r.current.filtered.items.set(n,a),a>0&&c++}for(let[e,t]of n.current)for(let a of t)if(r.current.filtered.items.get(a)>0){r.current.filtered.groups.add(e);break}r.current.filtered.count=c}function W(){var e,t,r;let a=G();a&&((null==(e=a.parentElement)?void 0:e.firstChild)===a&&(null==(r=null==(t=a.closest(m))?void 0:t.querySelector('[cmdk-group-heading=""]'))||r.scrollIntoView({block:"nearest"})),a.scrollIntoView({block:"nearest"}))}function G(){var e;return null==(e=O.current)?void 0:e.querySelector(`${f}[aria-selected="true"]`)}function X(){var e;return Array.from((null==(e=O.current)?void 0:e.querySelectorAll(h))||[])}function J(e){let t=X()[e];t&&U.setState("value",t.getAttribute(g))}function Z(e){var t;let r=G(),a=X(),n=a.findIndex(e=>e===r),l=a[n+e];null!=(t=s.current)&&t.loop&&(l=n+e<0?a[a.length-1]:n+e===a.length?a[0]:a[n+e]),l&&U.setState("value",l.getAttribute(g))}function Q(e){let t=G(),r=null==t?void 0:t.closest(m),a;for(;r&&!a;)a=null==(r=e>0?function(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}(r,m):function(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}(r,m))?void 0:r.querySelector(h);a?U.setState("value",a.getAttribute(g)):Z(e)}let Y=()=>J(X().length-1),ee=e=>{e.preventDefault(),e.metaKey?Y():e.altKey?Q(1):Z(1)},et=e=>{e.preventDefault(),e.metaKey?J(0):e.altKey?Q(-1):Z(-1)};return o.createElement(c.Primitive.div,{ref:t,tabIndex:-1,...P,"cmdk-root":"",onKeyDown:e=>{var t;null==(t=P.onKeyDown)||t.call(P,e);let r=e.nativeEvent.isComposing||229===e.keyCode;if(!(e.defaultPrevented||r))switch(e.key){case"n":case"j":I&&e.ctrlKey&&ee(e);break;case"ArrowDown":ee(e);break;case"p":case"k":I&&e.ctrlKey&&et(e);break;case"ArrowUp":et(e);break;case"Home":e.preventDefault(),J(0);break;case"End":e.preventDefault(),Y();break;case"Enter":{e.preventDefault();let t=G();if(t){let e=new Event(v);t.dispatchEvent(e)}}}}},o.createElement("label",{"cmdk-label":"",htmlFor:V.inputId,id:V.labelId,style:T},u),F(e,e=>o.createElement(b.Provider,{value:U},o.createElement(y.Provider,{value:V},e))))}),N=o.forwardRef((e,t)=>
1{var r,a;let n=(0,d.useId)(),l=o.useRef(null),i=o.useContext(w),s=o.useContext(y),m=R(e),p=null!=(a=null==(r=m.current)?void 0:r.forceMount)?a:null==i?void 0:i.forceMount;A(()=>{if(!p)return s.item(n,null==i?void 0:i.id)},[p]);let f=_(n,l,[e.value,e.children,l],e.keywords),h=o.useContext(b),g=$(e=>e.value&&e.value===f.current),x=$(e=>!!p||!1===s.filter()||!e.search||e.filtered.items.get(n)>0);function j(){var e,t;N(),null==(t=(e=m.current).onSelect)||t.call(e,f.current)}function N(){h.setState("value",f.current,!0)}if(o.useEffect(()=>{let t=l.current;if(!(!t||e.disabled))return t.addEventListener(v,j),()=>t.removeEventListener(v,j)},[x,e.onSelect,e.disabled]),!x)return null;let{disabled:k,value:C,onSelect:E,forceMount:S,keywords:I,...P}=e;return o.createElement(c.Primitive.div,{ref:(0,u.composeRefs)(l,t),...P,id:n,"cmdk-item":"",role:"option","aria-disabled":!!k,"aria-selected":!!g,"data-disabled":!!k,"data-selected":!!g,onPointerMove:k||s.getDisablePointerSelection()?void 0:N,onClick:k?void 0:j},e.children)}),k=o.forwardRef((e,t)=>{let{heading:r,children:a,forceMount:n,...l}=e,i=(0,d.useId)(),s=o.useRef(null),m=o.useRef(null),p=(0,d.useId)(),f=o.useContext(y),h=$(e=>!!n||!1===f.filter()||!e.search||e.filtered.groups.has(i));A(()=>f.group(i),[]),_(i,s,[e.value,e.heading,m]);let v=o.useMemo(()=>({id:i,forceMount:n}),[n]);return o.createElement(c.Primitive.div,{ref:(0,u.composeRefs)(s,t),...l,"cmdk-group":"",role:"presentation",hidden:!h||void 0},r&&o.createElement("div",{ref:m,"cmdk-group-heading":"","aria-hidden":!0,id:p},r),F(e,e=>o.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?p:void 0},o.createElement(w.Provider,{value:v},e))))}),C=o.forwardRef((e,t)=>{let{alwaysRender:r,...a}=e,n=o.useRef(null),l=$(e=>!e.search);return r||l?o.createElement(c.Primitive.div,{ref:(0,u.composeRefs)(n,t),...a,"cmdk-separator":"",role:"separator"}):null}),E=o.forwardRef((e,t)=>{let{onValueChange:r,...a}=e,n=null!=e.value,l=o.useContext(b),i=$(e=>e.search),s=$(e=>e.selectedItemId),d=o.useContext(y);return o.useEffect(()=>{null!=e.value&&l.setState("search",e.value)},[e.value]),o.createElement(c.Primitive.input,{ref:t,...a,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":d.listId,"aria-labelledby":d.labelId,"aria-activedescendant":s,id:d.inputId,type:"text",value:n?e.value:i,onChange:e=>{n||l.setState("search",e.target.value),null==r||r(e.target.value)}})}),S=o.forwardRef((e,t)=>{let{children:r,label:a="Suggestions",...n}=e,l=o.useRef(null),i=o.useRef(null),s=$(e=>e.selectedItemId),d=o.useContext(y);return o.useEffect(()=>{if(i.current&&l.current){let e=i.current,t=l.current,r,a=new ResizeObserver(()=>{r=requestAnimationFrame(()=>{let r=e.offsetHeight;t.style.setProperty("--cmdk-list-height",r.toFixed(1)+"px")})});return a.observe(e),()=>{cancelAnimationFrame(r),a.unobserve(e)}}},[]),o.createElement(c.Primitive.div,{ref:(0,u.composeRefs)(l,t),...n,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":s,"aria-label":a,id:d.listId},F(e,e=>o.createElement("div",{ref:(0,u.composeRefs)(i,d.listInnerRef),"cmdk-list-sizer":""},e)))}),I=o.forwardRef((e,t)=>{let{open:r,onOpenChange:a,overlayClassName:n,contentClassName:l,container:i,...c}=e;return o.createElement(s.Root,{open:r,onOpenChange:a},o.createElement(s.Portal,{container:i},o.createElement(s.Overlay,{"cmdk-overlay":"",className:n}),o.createElement(s.Content,{"aria-label":e.label,"cmdk-dialog":"",className:l},o.createElement(j,{ref:t,...c}))))}),P=Object.assign(j,{List:S,Item:N,Input:E,Group:k,Separator:C,Dialog:I,Empty:o.forwardRef((e,t)=>$(e=>0===e.filtered.count)?o.createElement(c.Primitive.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Loading:o.forwardRef((e,t)=>{let{progress:r,children:a,label:n="Loading...",...l}=e;return o.createElement(c.Primitive.div,{ref:t,...l,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":n},F(e,e=>o.createElement("div",{"aria-hidden":!0},e)))})});function R(e){let t=o.useRef(e);return A(()=>{t.current=e}),t}var A="u"<typeof window?o.useEffect:o.useLayoutEffect;function M(e){let t=o.useRef();return void 0===t.current&&(t.current=e()),t}function $(e){let t=o.useContext(b),r=()=>e(t.snapshot());return o.useSyncExternalStore(t.subscribe,r,r)}function _(e,t,r,a=[]){let n=o.useRef(),l=o.useContext(y);return A(()=>{var i;let s=(()=>{var e;
1for(let t of r){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():n.current}})(),o=a.map(e=>e.trim());l.value(e,s,o),null==(i=t.current)||i.setAttribute(g,s),n.current=s}),n}var D=()=>{let[e,t]=o.useState(),r=M(()=>new Map);return A(()=>{r.current.forEach(e=>e()),r.current=new Map},[e]),(e,a)=>{r.current.set(e,a),t({})}};function F({asChild:e,children:t},r){let a;return e&&o.isValidElement(t)?o.cloneElement("function"==typeof(a=t.type)?a(t.props):"render"in a?a.render(t.props):t,{ref:t.ref},r(t.props.children)):r(t)}var T={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},L=e.i(54943),L=L,O=e.i(47163);e.i(30374),e.s(["Command",0,function({className:e,...r}){return(0,t.jsx)(P,{"data-slot":"command",className:(0,O.cn)("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...r})},"CommandEmpty",0,function({...e}){return(0,t.jsx)(P.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...e})},"CommandGroup",0,function({className:e,...r}){return(0,t.jsx)(P.Group,{"data-slot":"command-group",className:(0,O.cn)("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",e),...r})},"CommandInput",0,function({className:e,...r}){return(0,t.jsxs)("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[(0,t.jsx)(L.default,{className:"size-4 shrink-0 opacity-50"}),(0,t.jsx)(P.Input,{"data-slot":"command-input",className:(0,O.cn)("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",e),...r})]})},"CommandItem",0,function({className:e,...r}){return(0,t.jsx)(P.Item,{"data-slot":"command-item",className:(0,O.cn)("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r})},"CommandList",0,function({className:e,...r}){return(0,t.jsx)(P.List,{"data-slot":"command-list",className:(0,O.cn)("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",e),...r})}],53751)},43531,e=>{"use strict";var t=e.i(78745);e.s(["Check",()=>t.default])},95066,e=>{"use strict";var t=e.i(43476),r=e.i(71645),a=e.i(52571),n=e.i(47163);let l=e=>null==e?"":"string"==typeof e||"number"==typeof e||"boolean"==typeof e?String(e):"object"==typeof e?[l(e.title),l(e.body)].filter(Boolean).join(": "):"",i=e=>{if(null!=e&&""!==e){if("number"==typeof e&&Number.isFinite(e))return e;if("string"==typeof e&&""!==e.trim()&&Number.isFinite(Number(e)))return Number(e)}},s=e=>l(e.type).trim().toUpperCase(),o=e=>{let t=l(e.customFieldKey).trim().toLowerCase();return"CUSTOM"===s(e)&&"saving-accessories"===t},c=(e,t)=>{let r=e.find(e=>s(e)===t);return r?i(r.value):void 0},d=(e,t)=>{let r=e.style;return r?{color:r.color?.trim()?r.color:void 0,fontFamily:r.fontFamily||void 0,fontSize:r.fontSize?.replace(/\s+px$/i,"px")||void 0,fontWeight:r.isBold?600:void 0,fontStyle:r.isItalic?"italic":void 0,textDecoration:r.isCrossedOver||t&&"MSRP"===s(e)?"line-through":void 0}:{}};function u({title:e,body:n}){let[l,i]=(0,r.useState)(!1),s=(0,r.useRef)(null);return(0,r.useEffect)(()=>{if(!l)return;let e=e=>{s.current&&!s.current.contains(e.target)&&i(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[l]),(0,t.jsxs)("button",{ref:s,type:"button",className:"relative inline-flex items-center text-gray-400 hover:text-gray-600 transition-colors","aria-label":`Disclaimer: ${e}`,onClick:e=>{e.preventDefault(),e.stopPropagation(),i(e=>!e)},children:[(0,t.jsx)(a.Info,{className:"w-3.5 h-3.5"}),l&&(0,t.jsxs)("div",{className:"absolute bottom-full right-0 mb-1.5 z-50 w-56 bg-white border border-gray-200 rounded-lg shadow-md p-3 text-left",children:[(0,t.jsx)("p",{className:"text-xs font-semibold text-gray-800 mb
1-1",children:e}),(0,t.jsx)("p",{className:"text-xs text-gray-600 leading-relaxed",children:n})]})]})}function m({row:e,index:r,finalPrice:a,strikethroughMsrp:c}){if(!e.isVisible)return null;let p="FINAL_PRICE"===s(e),f=i(p&&null!=a?a:e.value)??0,h=Math.abs(f),v=p?"":((e,t)=>{if(o(e))return t<0?"-":"+";let r=l(e.calculationOperator).trim().toUpperCase()||"NONE";return"ADD"===r?"+":"SUBTRACT"===r||t<0?"-":""})(e,f),g=o(e)&&f<0&&l(e.alternateLabel).trim()||e.label,x=e.style,y=`pl-row-${r}`,b={fontWeight:x?.isBold?600:void 0,fontStyle:x?.isItalic?"italic":void 0,textDecoration:x?.isCrossedOver||c&&"MSRP"===s(e)?"line-through":void 0},w=()=>{let e=(0,n.NumberFormatter)(h);return p?e:v?`${v}${e}`:e};return p?(0,t.jsxs)(t.Fragment,{children:[x?.fontFamily&&(0,t.jsx)("style",{children:`#${y}#${y} { font-family: ${x.fontFamily} !important; }`}),(0,t.jsx)("hr",{className:"border-gray-200 my-1"}),(0,t.jsxs)("div",{id:y,className:"flex items-center justify-between py-2",children:[(0,t.jsx)("span",{className:"text-xs font-semibold text-[#1E1E1E] uppercase tracking-wide",style:b,children:g}),(0,t.jsx)("span",{className:"text-lg font-bold text-[#1E1E1E]",style:d(e,c),children:w()})]})]}):(0,t.jsxs)(t.Fragment,{children:[x?.fontFamily&&(0,t.jsx)("style",{children:`#${y}#${y} { font-family: ${x.fontFamily} !important; }`}),(0,t.jsxs)("div",{id:y,className:"flex items-center justify-between py-1.5",children:[(0,t.jsxs)("span",{className:"flex items-center gap-1.5 text-xs font-medium text-gray-500 uppercase tracking-wide",style:b,children:[g,e.disclaimer&&(0,t.jsx)(u,{title:e.disclaimer.title,body:e.disclaimer.body})]}),(0,t.jsx)("span",{className:`text-sm font-medium ${p?"":"-"===v||o(e)||"DEALER_SAVINGS"===e.type||"MANUFACTURER_REBATE"===e.type?"text-green-600":"DOC_FEE"===e.type||"COMPUTERIZED_VEHICLE_REGISTRATION_FEE"===e.type?"text-orange-500":"text-[#1E1E1E]"}`,style:d(e,c),children:w()})]})]})}function p({priceLadder:e,className:a}){let n=(0,r.useMemo)(()=>(e?.rows??[]).filter(e=>e&&!1!==e.isVisible),[e?.rows]),i=(0,r.useMemo)(()=>{var e;let t,r;return t=c(e=n,"MSRP"),r=c(e,"RETAIL"),void 0!==t&&void 0!==r&&r>t&&e.some(e=>{if(!1===e.isVisible)return!1;let t=l(e.customFieldKey).trim().toLowerCase(),r=l(e.label).trim().toLowerCase();return"CUSTOM_FIELD"===l(e.valueSource).trim().toUpperCase()&&("savings-accessories"===t||"accessories"===t||"accessories"===r)})},[n]);return 0===n.length?null:(0,t.jsx)("div",{className:`w-full ${a??""}`,children:n.map((r,a)=>(0,t.jsx)(m,{row:r,index:a,finalPrice:e?.finalPrice,strikethroughMsrp:i},`${r.type}-${a}`))})}e.s(["PriceLadder",0,p,"PricingBlock",0,function({priceLadder:e,className:r,fallback:a}){return Array.isArray(e?.rows)&&e.rows.length>0?(0,t.jsx)(p,{priceLadder:e,className:r}):(0,t.jsx)(t.Fragment,{children:a??null})}])},37727,e=>{"use strict";var t=e.i(41947);e.s(["X",()=>t.default])},55900,e=>{"use strict";var t=e.i(99219);e.s(["ChevronUp",()=>t.default])},7233,e=>{"use strict";let t=(0,e.i(75254).default)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);e.s(["Plus",0,t],7233)},99023,e=>{"use strict";let t=(0,e.i(75254).default)("minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);e.s(["Minus",0,t],99023)},71651,e=>{"use strict";var t=e.i(43476),r=e.i(70065);e.s(["UnifiedCarCardSkeleton",0,()=>(0,t.jsx)(r.Card,{className:"rounded-xl border p-4 relative animate-pulse",children:(0,t.jsx)("div",{className:"grid grid-cols-1 gap-6",children:(0,t.jsxs)("div",{className:"flex gap-6 flex-col",children:[(0,t.jsx)("div",{className:"relative w-full overflow-hidden rounded-xl",children:(0,t.jsx)("div",{className:"w-full h-[300px] bg-gray-200 rounded-xl"})}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("div",{className:"h-6 bg-gray-200 rounded w-3/4"}),(0,t.jsx)("div",{className:"h-7 bg-gray-200 rounded w-1/2"}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("div",{className:"h-4 bg-gray-200 rounded w-1/3"}),(0,t.jsx)("div",{className:"h-4 bg-gray-200 rounded w-1/4"})]}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2 mt-2",children:[(0,t.jsx)("div",{className:"h-6 bg-gray-200 rounded w-16"}),(0,t.jsx)("div",{className:"h-6 bg-gray-200 rounded w-20"}),(0,t.jsx)("div",{className:"h-6 bg-gray-200 rounded w-14"})]}),(0,t.jsxs)("div",{className:"flex gap-3 mt-4",children:[(0,t.jsx)("div",{className:"h-10 bg-gray-200 rounded flex-1"}),(0,t.jsx)("div",{className:"h-10 bg-gray-200 rounded w-10"})]})]})]})})}),"UnifiedCarCardSkeletonItem",0,()=>(0,t.jsxs)("div",{className:"animate-pulse",children:[(0,t.jsx)("div",{className:"w-full h-[300px] bg-gray-200 rounded-xl mb-4"}),(0,t.jsx)("div",{className:"h-6 bg-gray-200 rounded w-3/4 mb-3"}),(0,t.jsx)("div",{className:"h-7 bg-gray-200 rounded w-1/2 mb-3"}),(0,t.jsxs)("div",{className:"flex gap-2 mb-3",children:[(0,t.jsx)("div",{className:"h-4 bg-gray-200 rounded w-1/3"}),(0,t.jsx)("div",{className:"h-4 bg-gray-200 rounded w-1/4"})]}),(0,t.jsxs)("div",{className:"flex gap-2 mb-4",children:[(0,t.jsx)("div",{className:"h-6 bg-gray-200 rounded w-16"}),(0,t.jsx)("div",{className:"h-6 bg-gray-200 rounded w-20"})]}),(0,t.jsxs)("div",{className:"flex gap-3",children:[(0,t.jsx)("div",{className:"h-10 bg-gray-200 rounded flex-1"}),(0,t.jsx)("div",{className:"h-10 bg-gray-200 rounded w-10"})]})]})])},31278,e=>{"use strict";
1let t=(0,e.i(75254).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);e.s(["Loader2",0,t],31278)}]);

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.