1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2643],{2306:(e,t,a)=>{"use strict";a.d(t,{H:()=>s});var n=a(6029),l=a(55729),i=a(39364),r=a(31133);let s=l.forwardRef((e,t)=>{let{children:a,type:s,theme:d,className:o,disabled:c,name:m,error:u,label:p,"data-test":y,...h}=e,g=`checkbox-group-${(0,l.useId)()}`,_=`checkbox-group-${g}`,f=!!u;return(0,n.jsx)(i.w,{value:{uid:g,ref:t,error:u,disabled:c,name:m,theme:d,type:s},children:(0,n.jsxs)("fieldset",{className:(0,r.x)("dark"===d&&"field-theme-dark-challenger",o),"aria-invalid":f,"aria-describedby":f?_:void 0,"data-test":y,...h,children:[(0,n.jsx)("legend",{className:"sr-only",children:p}),a]})})})},24615:(e,t,a)=>{"use strict";a.d(t,{a:()=>d});var n=a(6029),l=a(75155),i=a(55729),r=a(31133),s=a(33287);let d=e=>{let t,a,d,o,c,m,u,p=(0,l.c)(28),{children:y,headerContent:h,className:g,open:_,tray:f,unmountChildren:b,inset:x,expandScrollToTop:v,expandScrollToTopOffset:I,expandScrollElement:j,"data-test-item":C,"data-test":S,removeDefaultListAreaPadding:w}=e,N=void 0===x||x,k=void 0!==v&&v,T=void 0===I?0:I,F=i.useRef(null),A=j?.current;p[0]!==k||p[1]!==T||p[2]!==A?(t=()=>{if(k&&F.current){let e=F.current.getBoundingClientRect().top+(A?A.scrollTop:window.scrollY)-T;A?A.scrollTo({top:e,behavior:"smooth"}):window.scrollTo({top:e,behavior:"smooth"})}},p[0]=k,p[1]=T,p[2]=A,p[3]=t):t=p[3];let D=t;p[4]!==g?(a=(0,r.x)("expandable-list-item",g),p[4]=g,p[5]=a):a=p[5];let M=!_&&f,P=!!_,L=N&&"expandable-list-item-collapse border-t";p[6]!==L?(d=(0,r.x)(L),p[6]=L,p[7]=d):d=p[7];let $=!w&&"px-20 py-20",E=N&&"expandable-list-item-shadow",O=_&&N&&"expandable-list-item-shadow-open";return p[8]!==$||p[9]!==E||p[10]!==O?(o=(0,r.x)($,E,O),p[8]=$,p[9]=E,p[10]=O,p[11]=o):o=p[11],p[12]!==y||p[13]!==o?(c=(0,n.jsx)("div",{className:o,children:y}),p[12]=y,p[13]=o,p[14]=c):c=p[14],p[15]!==D||p[16]!==c||p[17]!==P||p[18]!==d||p[19]!==b?(m=(0,n.jsx)(s.S,{isOpen:P,className:d,unmountChildren:b,onExpanded:D,children:c}),p[15]=D,p[16]=c,p[17]=P,p[18]=d,p[19]=b,p[20]=m):m=p[20],p[21]!==S||p[22]!==C||p[23]!==h||p[24]!==m||p[25]!==a||p[26]!==M?(u=(0,n.jsxs)("div",{className:a,"data-test":S,"data-test-item":C,ref:F,children:[h,M,m]}),p[21]=S,p[22]=C,p[23]=h,p[24]=m,p[25]=a,p[26]=M,p[27]=u):u=p[27],u}},27959:(e,t,a)=>{"use strict";function n(e){return e?e.replace(/'/g,"").replace(/[^a-zA-Z0-9]/g," ").trim().toLowerCase().replace(/ +/g," ").replace(/ /g,"-"):""}a.d(t,{n:()=>n})},34112:(e,t,a)=>{"use strict";a.d(t,{Z:()=>d});var n=a(6029),l=a(75155);a(55729);var i=a(91946),r=a(82665),s=a(31133);let d=e=>{let t,a,d=(0,l.c)(14),{className:o,open:c,"data-test":m,size:u}=e,p="lg"===(void 0===u?"md":u);
1if(c){let e,t,a=p?"my-24":"my-20 mr-20";d[0]!==o||d[1]!==a?(e=(0,s.x)(a,o),d[0]=o,d[1]=a,d[2]=e):e=d[2];let l=p?24:21;return d[3]!==m||d[4]!==e||d[5]!==l?(t=(0,n.jsx)(r.L,{className:e,size:l,"data-test":m,"data-test-item":"up"}),d[3]=m,d[4]=e,d[5]=l,d[6]=t):t=d[6],t}let y=p?"my-24":"mr-20 my-20";d[7]!==o||d[8]!==y?(t=(0,s.x)(y,o),d[7]=o,d[8]=y,d[9]=t):t=d[9];let h=p?24:21;return d[10]!==m||d[11]!==t||d[12]!==h?(a=(0,n.jsx)(i.I,{className:t,size:h,"data-test":m,"data-test-item":"down"}),d[10]=m,d[11]=t,d[12]=h,d[13]=a):a=d[13],a}},39364:(e,t,a)=>{"use strict";a.d(t,{Q:()=>l,w:()=>n});let[n,l]=(0,a(48726).R)("FormCheckboxGroup")},41384:(e,t,a)=>{"use strict";a.d(t,{B:()=>r});var n=a(75155),l=a(55729),i=a(79223);let r=(e,t,a)=>{let r,s,d,o,c,m,u,p=(0,n.c)(16),{rootMargin:y}=a,h=void 0===y?"0px":y,g=(0,i.a)(),[_,f]=l.useState(!1),[b,x]=l.useState(!1),[v,I]=l.useState(!1);return p[0]!==g?(r=()=>{if(g){let e="IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype&&"isIntersecting"in window.IntersectionObserverEntry.prototype;I(e),e||(f(void 0),x(void 0))}},s=[g],p[0]=g,p[1]=r,p[2]=s):(r=p[1],s=p[2]),l.useEffect(r,s),p[3]!==b||p[4]!==_?(d=()=>{_&&!b&&x(!0)},o=[_,b],p[3]=b,p[4]=_,p[5]=d,p[6]=o):(d=p[5],o=p[6]),l.useEffect(d,o),p[7]!==t||p[8]!==v||p[9]!==h||p[10]!==e?(c=()=>{if(v&&t){let t=new IntersectionObserver(e=>f(e[0].isIntersecting),{root:null,rootMargin:h,threshold:[0,.1,.2,.3,.4,.5,.6,.7,.8,.9,1]});return e&&t.observe(e),()=>{t.disconnect()}}t||f(void 0)},m=[e,v,t,h],p[7]=t,p[8]=v,p[9]=h,p[10]=e,p[11]=c,p[12]=m):(c=p[11],m=p[12]),l.useEffect(c,m),p[13]!==b||p[14]!==_?(u={isIntersecting:_,hasIntersected:b},p[13]=b,p[14]=_,p[15]=u):u=p[15],u}},42483:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});let n={src:"/assets/_next/static/media/dealer-success-phone-handshake-desktop.ca464a1b.svg",height:214,width:272,blurWidth:0,blurHeight:0}},43682:(e,t,a)=>{"use strict";a.d(t,{A:()=>n.A});var n=a(97770)},55415:(e,t,a)=>{"use strict";a.d(t,{m:()=>n.m});var n=a(65719)},65719:(e,t,a)=>{"use strict";a.d(t,{m:()=>m});var n=a(6029),l=a(75155),i=a(31133),r=a(55729),s=a(52816),d=a(24615),o=a(34112),c=a(70299);let m=e=>{let t,a,m,u,p,y,h,g,_,f,b,x,v,I,j,C,S,w,N,k,T,F,A,D,M,P,L,$,E,O,B,z=(0,l.c)(65);z[0]!==e?({title:C,subtitle:x,children:t,className:a,initiallyOpen:v,onClick:_,tray:w,unmountChildren:N,headerClassName:y,headerTextClassName:h,tracking:S,expandScrollToTop:u,expandScrollToTopOffset:p,expandScrollElement:m,level:g,removeDefaultListAreaPadding:f,inset:I,size:j,...b}=e,z[0]=e,z[1]=t,z[2]=a,z[3]=m,z[4]=u,z[5]=p,z[6]=y,z[7]=h,z[8]=g,z[9]=_,z[10]=f,z[11]=b,z[12]=x,z[13]=v,z[14]=I,z[15]=j,z[16]=C,z[17]=S,z[18]=w,z[19]=N):(t=z[1],a=z[2],m=z[3],u=z[4],p=z[5],y=z[6],h=z[7],g=z[8],_=z[9],f=z[10],b=z[11],x=z[12],v=z[13],I=z[14],j=z[15],C=z[16],S=z[17],w=z[18],N=z[19]);let H=void 0!==v&&v,R=void 0===I||I,U=void 0===j?"md":j,V="lg"===U,G=(0,c.z)(),[q,W]=(0,r.useState)(H);z[20]!==H?(k=()=>{H||W(!1)},T=[H],z[20]=H,z[21]=k,z[22]=T):(k=z[21],T=z[22]),(0,r.useEffect)(k,T),z[23]!==y?(F=(0,i.x)("flex","flex-nowrap","justify-between","expandable-list-item-button","items-center",y),z[23]=y,z[24]=F):F=z[24],z[25]!==_||z[26]!==q||z[27]!==G||z[28]!==S?(A=e=>{e.preventDefault(),W(!q),_&&_(q),S&&G(S)},z[25]=_,z[26]=q,z[27]=G,z[28]=S,z[29]=A):A=z[29];let Y=!!q,Z=V?"text-16 font-500 pl-0 py-24":"py-20";z[30]!==h||z[31]!==Z?(D=(0,i.x)("w-full","px-20",Z,h),z[30]=h,z[31]=Z,z[32]=D):D=z[32],z[33]!==g||z[34]!==D||z[35]!==C?(M=(0,n.jsx)(s.D,{size:"4",level:g,className:D,children:C}),z[33]=g,z[34]=D,z[35]=C,z[36]=M):M=z[36],z[37]===Symbol.for("react.memo_cache_sentinel")?(P={position:"static"},z[37]=P):P=z[37],z[38]!==x?(L=x&&(0,n.jsx)("span",{className:"expandable-list-item-subtitle",children:x}),z[38]=x,z[39]=L):L=z[39],z[40]!==q||z[41]!==U?($=(0,n.jsx)(o.Z,{open:q,size:U}),z[40]=q,z[41]=U,z[42]=$):$=z[42],z[43]!==L||z[44]!==$?(E=(0,n.jsx)("span",{className:"ml-20 whitespace-nowrap",children:(0,n.jsxs)("div",{style:P,children:[L,$]})}),z[43]=L,z[44]=$,z[45]=E):E=z[45],z[46]!==b||z[47]!==M||z[48]!==E||z[49]!==F||z[50]!==A||z[51]!==Y?(O=(0,n.jsxs)("button",{className:F,onClick:A,"aria-expanded":Y,...b,children:[M,E]}),z[46]=b,z[47]=M,z[48]=E,z[49]=F,z[50]=A,z[51]=Y,z[52]=O):O=z[52];let Q=O;return z[53]!==t||z[54]!==a||z[55]!==m||z[56]!==u||z[57]!==p||z[58]!==Q||z[59]!==R||z[60]!==q||z[61]!==f||z[62]!==w||z[63]!==N?(B=(0,n.jsx)(d.a,{className:a,open:q,tray:w,headerContent:Q,unmountChildren:N,expandScrollToTop:u,expandScrollToTopOffset:p,expandScrollElement:m,removeDefaultListAreaPadding:f,inset:R,children:t}),z[53]=t,z[54]=a,z[55]=m,z[56]=u,z[57]=p,z[58]=Q,z[59]=R,z[60]=q,z[61]=f,z[62]=w,z[63]=N,z[64]=B):B=z[64],B}},66737:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>tb});var n=a(6029),l=a(37197),i=a(75812),r=a(60317),s=a(80616),d=a(6930),o=a(92692),c=a(3572),m=a(30646),u=a(68752),p=a(54178),y=a(36471);i.M,r.p,s.Y,d.M,o.I,c.u,m.I,u.i,p.U,y.l;let h=(0,l.Ay)` 2 query getAllMatchesTargetedIncentive($styleIds: [Int!], $targetTypes: [TargetTypeEnum!], $vehicleConditions: [VehicleC
2onditionEnum!]) { 3 targetedIncentives( 4 styleIds: $styleIds 5 targetTypes: $targetTypes 6 vehicleConditions: $vehicleConditions 7 ) { 8 __typename 9 edges { 10 __typename 11 cursor 12 node { 13 __typename 14 id 15 amount 16 requiresVerification 17 programId 18 styleIds 19 coupon { 20 __typename 21 id 22 code 23 } 24 } 25 } 26 } 27} 28 `;h.documentId="c559889dcf9ae7082498ee25eb8e402d2bd674e4f8a443b46f5d98befa2346a2";let g=(0,l.Ay)` 29 query getAllMatchesInventorySearch($buildId: ID!, $filters: BuildListingSearchInput, $first: Int, $offset: Int, $sort: ListingsSort, $galleryImagesCount: Int!) { 30 build(id: $buildId) { 31 __typename 32 id 33 model { 34 __typename 35 id 36 name 37 make { 38 __typename 39 id 40 name 41 slug 42 logo { 43 __typename 44 url 45 } 46 } 47 slug 48 } 49 dealerships { 50 __typename 51 edges { 52 __typename 53 cursor 54 node { 55 __typename 56 id 57 dealershipConsumerContext { 58 __typename 59 isNonCertifiedMercedes 60 } 61 name 62 location { 63 __typename 64 id 65 geolocation { 66 __typename 67 id 68 city 69 state 70 postalCode 71 } 72 } 73 databaseId 74 paymentsEnabled 75 } 76 matchingListingCount 77 prospect { 78 __typename 79 id 80 } 81 driveDistance 82 } 83 } 84 inventorySearch(filters: $filters, first: $first, offset: $offset, sort: $sort) { 85 __typename 86 totalCount 87 edges { 88 __typename 89 cursor 90 distance { 91 __typename 92 miles 93 } 94 node { 95 __typename 96 dealership { 97 __typename 98 id 99 name 100 databaseId 101 location { 102 __typename 103 id 104 geolocation { 105 __typename 106 id 107 city 108 state 109 postalCode 110 } 111 } 112 parentDealershipName 113 } 114 vehicle { 115 __typename 116 vin 117 certifiedPreOwned 118 year 119 make { 120 __typename 121 name 122 slug 123 id 124 } 125 model { 126 __typename 127 name 128 slug 129 id 130 } 131 style { 132 __typename 133 id 134 name 135 electricRange 136 } 137 condition 138 mileage 139 fuelType 140 } 141 pricing { 142 __typename 143 exclusion 144 discountLabel 145 listPrice 146 transferFee { 147 __typename 148 amount 149 fromCity 150 fromState 151 distance 152 } 153 totalMsrp 154 totalSavingsPercentage 155 baseMsrp 156 } 157 id 158 consumerProspectedAt 159 isMultiLocation 160 consumerContext { 161 __typename 162 saved 163 } 164 galleryImages(first: $galleryImagesCount) { 165 __typename 166 nodes { 167 __typename 168 width 169 height 170 url 171 metadata 172 } 173 } 174 distanceRetailing 175 precalculatedLease { 176 __typename 177 totalMonthlyPayment 178 disclaimer 179 dueAtSigning 180 term 181 mileage 182 monthlyPayment 183 } 184 precalculatedLoan { 185 totalMonthlyPayment 186 disclaimer 187 term 188 downPayment 189 __typename 190 monthlyPayment 191 } 192 preprospectDisclaimers { 193 __typename 194 lease 195 loan 196 } 197 marketAnalysis { 198 __typename 199 priceQuality 200 } 201 lease(includeTaxesAndFees: false) { 202 __typename 203 totalMonthlyPayment 204 disclaimer 205 dueAtSigning 206 term 207 mileage 208 } 209 loan(includeTaxesAndFees: false) { 210 totalMonthlyPayment 211 disclaimer 212 apr 213 term 214 downPayment 215 __typename 216 } 217 purchase(includeTaxesAndFees: false) { 218 __typename 219 totalDueAtSigning 220 } 221 } 222 } 223 filtersV2 { 224 __typename 225 makeModelTrims { 226 __typename 227 value 228 models: options { 229 __typename 230 value 231 trims: options { 232 __typename 233 label 234 value 235 count 236 } 237 } 238 } 239 years { 240 __typename 241 min 242 max 243 } 244 bodyStyles { 245 __typename 246 label 247 value 248 count 249 }
250 exteriorColorGeneric { 251 __typename 252 label 253 value 254 count 255 } 256 interiorColorGeneric { 257 __typename 258 label 259 value 260 count 261 } 262 keyFeatures { 263 __typename 264 label 265 value 266 count 267 } 268 fuelTypes { 269 __typename 270 label 271 value 272 count 273 } 274 transmissions { 275 __typename 276 label 277 value 278 count 279 } 280 driveTrains { 281 __typename 282 label 283 value 284 count 285 } 286 } 287 } 288 databaseId 289 } 290} 291 `;g.documentId="9160b55f9c8f412ccad5e86522d4800c62a9be1889545d90faa257305b178a11";var _=a(75155),f=a(55729),b=a(61552),x=a(70415),v=a(54233),I=a(29197),j=a(78106),C=a(25916),S=a(62959),w=a(30640),N=a(74159),k=a(25452),T=a(66030),F=a(95677),A=a(85338),D=a(48263),M=a(26481);a(23827);var P=a(98840),L=a(1472),$=a(54029);a(98721).x;var E=a(32185),O=a(20658);E.N,O.M;let B=(0,l.Ay)` 292 fragment AllMatchesTrimFilter_ListingAggregations on ListingAggregations { 293 __typename 294 makeModelTrims { 295 __typename 296 value 297 models: options { 298 __typename 299 value 300 trims: options { 301 __typename 302 label 303 value 304 count 305 } 306 } 307 } 308} 309 `;var z=a(54231);let H=(0,l.Ay)` 310 fragment AllMatchesYearFilter_ListingAggregations on ListingAggregations { 311 __typename 312 ...YearSelectFields_ListingAggregations 313} 314 ${z.p}`;var R=a(62868),U=a(51152),V=a(88278),G=a(4246),q=a(78161),W=a(24353),Y=a(74547);R.w,U.Y,V.y,G.m,q.h,W.l,Y.z;let Z=(0,l.Ay)` 315 fragment ConnectToBuildDealerModal_BuildDealershipEdge on BuildDealershipEdge { 316 __typename 317 cursor 318 node { 319 __typename 320 id 321 databaseId 322 name 323 } 324 driveDistance 325 matchingListingCount 326} 327 `,Q=(0,l.Ay)` 328 fragment AllMatchesDealershipFilter_BuildDealershipEdge on BuildDealershipEdge { 329 __typename 330 cursor 331 node { 332 __typename 333 id 334 databaseId 335 name 336 dealershipConsumerContext { 337 __typename 338 isNonCertifiedMercedes 339 } 340 } 341 driveDistance 342 matchingListingCount 343 prospect { 344 __typename 345 id 346 } 347 ...ConnectToBuildDealerModal_BuildDealershipEdge 348} 349 ${Z}`,X=(0,l.Ay)` 350 fragment AllMatchesDealershipFilter_Build on Build { 351 __typename 352 id 353 databaseId 354 model { 355 __typename 356 id 357 slug 358 make { 359 __typename 360 id 361 slug 362 logo { 363 __typename 364 url 365 } 366 } 367 } 368 dealerships { 369 __typename 370 edges { 371 __typename 372 cursor 373 ...AllMatchesDealershipFilter_BuildDealershipEdge 374 } 375 } 376} 377 ${Q}`;i.M,c.u;var J=a(17642),K=a(41384),ee=a(18843);a(35498).m,O.M;let et=(0,l.Ay)` 378 mutation AllMatchesListings_ProspectConnectShowroomDealership($buildId: ID!, $dealershipId: ID!, $confirmedTcpa: Boolean!) { 379 prospectConnectShowroomDealership( 380 input: {buildId: $buildId, dealershipId: $dealershipId, confirmedTcpa: $confirmedTcpa} 381 ) { 382 __typename 383 ... on ProspectConnectShowroomDealershipPayload { 384 __typename 385 prospectedItem { 386 __typename 387 id 388 databaseId 389 } 390 } 391 ... on Error { 392 __typename 393 message 394 } 395 } 396} 397 `;et.documentId="30c5f81bc0378764582c07afbe517be9344cf926e348572ab9d2eec3968f4904";let ea=(0,l.Ay)` 398 mutation AllMatchesListings_ProspectMaapVehicle($vin: String!, $confirmedTcpa: Boolean!, $financingType: PaymentMethodEnum) { 399 prospectConnectMarketplaceVehicle( 400 input: {vin: $vin, confirmedTcpa: $confirmedTcpa, financingType: $financingType} 401 ) { 402 __typename 403 ... on ProspectConnectMarketplaceVehiclePayload { 404 __typename 405 prospectedItem { 406 __typename 407 id 408 consumerProspectedAt 409 pricing { 410 __typename 411 exclusion 412 totalSavingsPercentage 413 totalMsrp 414 baseMsrp 415 } 416 vehicle { 417 __typename 418 make { 419 __typename 420 id 421 name 422 slug 423 } 424 condition 425 } 426 marketAnalysis { 427 __typename 428 priceQuality 429 } 430 lease(includeTaxesAndFees: false) { 431 __typename 432 totalMonthlyPayment 433 disclaimer 434 dueAtSigning 435 term 436 mileage 437 } 438 loan(includeTaxesAndFees: false) { 439 totalMonthlyPayment 440 disclaimer 441 apr 442 term 443 downPayment 444 __typename 445 } 446 purchase(includeTaxesAndFees: false) { 447 __typename 448 totalDueAtSigning 449 } 450 precalculatedLease { 451 __typename 452 dueAtSigning 453 term 454 mileage 455 disclaimer 456 monthlyPayment 457 } 458 precalculatedLoan { 459 term 460 downPayment 461 disclaimer 462 __typename 463 monthlyPayment 464 } 465 } 466 } 467 ... on Error { 468 __typename 469 message 470 } 471 } 472} 473 `;ea.documentId="f7090fb73481888115dd759919627cf5e505eadfc5dfb3b545e976ae56e26d2f";var en=a(71883),el=a(45650),ei=a(70299),er=a(44917),es=a(54161),ed=a(97061),eo=a(37597);let ec={cash:"CASH",loan:"LOAN",lease:"LEASE"},em=e=>{let t,a,l,i,r,s,d,o,c,m,u=(0,_.c)(42),{buildId:p,listings:y,dealerships:h,returnTo:g,refetchData:b,currentFilters:x}=e,{dealType:v}=x,{flags:I}=(0,eo.W)(),{dealBuilderEnabled:j}=I,C=j?v:"cash",S=(0,ei.z)(),[w,N]=f.useState(null);u[0]!==b?(t={onCompleted:async e=>{let t="",a="",n=e.prospectConnectShowroomDealership;n&&"ProspectConnectShowroomDealershipPayload"===n.__typename?a=n.prospectedItem.databaseId:n&&"ArgumentsError"===n.__typename&&(t=n.message),!t&&a&&(b(),N(null))}},u[0]=b,u[1]=t):t=u[1];let[k,T]=(0,en.n)(eu,t),{loading:F}=T;u[2]===Symbol.for("react.memo_cache_sentinel")?(a={onCompleted:async e=>{let t="",a="",n=e.prospectConnectMarketplaceVehicle;n&&"ProspectConnectMarketplaceVehiclePayload"===n.__typename?a=n.prospectedItem.id:n&&"ArgumentsError"===n.__typename&&(t=n.message),!t&&a&&N(null)}},u[2]=a):a=u[2];let[A,D]=(0,en.n)(ep,a),{loading:M}=D,P=w?.vin||p,L=h.some(ey)?"Authorized Mercedes-Benz Dealerships":void 0;u[3]!==P||u[4]!==L?(l={identifier:P,thirdParty:L},u[3]=P,u[4]=L,u[5]=l):l=u[5];let{confirmTcpa:$,tcpa:E}=(0,er.a)(l);u[6]!==p||u[7]!==$||u[8]!==C||u[9]!==k||u[10]!==A||u[11]!==w?(i=async()=>
473{if(w)return w.isMaapExcluded?await A({variables:{vin:w.vin,confirmedTcpa:$(w.vin),financingType:ec[C]}}):await k({variables:{buildId:p,dealershipId:w.dealershipId,confirmedTcpa:$(p)}}),!0},u[6]=p,u[7]=$,u[8]=C,u[9]=k,u[10]=A,u[11]=w,u[12]=i):i=u[12];let O=i;if(u[13]!==p||u[14]!==C||u[15]!==h||u[16]!==y||u[17]!==g||u[18]!==S){let e;u[20]!==p||u[21]!==C||u[22]!==h||u[23]!==g||u[24]!==S?(e=(e,t)=>{let a=e.node,{vin:l}=a.vehicle,i=h?.find(t=>t.id===e.node.dealership?.id),r=i?.databaseId;if(!r)return null;let s=()=>{N({vin:l,dealershipId:r,dealershipName:i.name,isMaapExcluded:a.pricing.exclusion.startsWith("MAAP"),listingId:a.id})};return(0,n.jsx)(es.V,{vehiclePosition:t,listing:a,currentUrl:g,currentFilters:{dealType:C},vdpHrefParams:{buildId:p,dealershipId:r},geolocation:i.location.geolocation,distance:e.distance?{miles:e.distance.miles}:void 0,onClick:()=>{S({eventAction:"User Clicked Inventory Detail - Dashboard",eventCategory:"Engagement",eventLabel:`${r}:${l}`})},onClickUnlockOverride:s,contentOverride:(0,n.jsx)(ed.t,{dealType:C,dealership:i,listing:a,onClickUnlock:s}),isVehicleCardRevampEnabled:!1},l)},u[20]=p,u[21]=C,u[22]=h,u[23]=g,u[24]=S,u[25]=e):e=u[25],r=y.map(e),u[13]=p,u[14]=C,u[15]=h,u[16]=y,u[17]=g,u[18]=S,u[19]=r}else r=u[19];u[26]!==r?(s=(0,n.jsx)("div",{className:"py-8 grid gap-x-8 gap-y-20 md:grid-cols-2 lg:grid-cols-3",children:r}),u[26]=r,u[27]=s):s=u[27];let B=!!w;u[28]===Symbol.for("react.memo_cache_sentinel")?(d=()=>N(null),u[28]=d):d=u[28];let z=w?.dealershipId||"",H=F||M,R=w?.isMaapExcluded?"Vehicle Card MAAP Unlock Success":"Vehicle Card Dealership Unlock Success",U=`${w?.dealershipId||""}:${w?.vin||""}`;return u[29]!==R||u[30]!==U?(o={eventAction:R,eventCategory:"Prospect",eventLabel:U},u[29]=R,u[30]=U,u[31]=o):o=u[31],u[32]!==O||u[33]!==B||u[34]!==z||u[35]!==H||u[36]!==o||u[37]!==E?(c=(0,n.jsx)(el.D,{tcpa:E,isOpen:B,toggle:d,dealershipId:z,loading:H,onConfirm:O,tracking:o}),u[32]=O,u[33]=B,u[34]=z,u[35]=H,u[36]=o,u[37]=E,u[38]=c):c=u[38],u[39]!==s||u[40]!==c?(m=(0,n.jsxs)(n.Fragment,{children:[s,c]}),u[39]=s,u[40]=c,u[41]=m):m=u[41],m},eu=et,ep=ea;function ey(e){return e?.dealershipConsumerContext?.isNonCertifiedMercedes}let eh=[{name:"Best Match",value:"best_match"},{name:"Price Low to High",value:"price_asc"},{name:"Price High to Low",value:"price_desc"},{name:"Newly Listed",value:"created_at_desc"}];var eg=a(11870);let e_=e=>{let t,a,l=(0,_.c)(5),{sort:i,updateCurrentFilters:r}=e;return l[0]!==r?(t=e=>{r({sort:e})},l[0]=r,l[1]=t):t=l[1],l[2]!==i||l[3]!==t?(a=(0,n.jsx)(eg.z,{options:eh,layout:"inline",label:"Sort By",value:i,onChange:t}),l[2]=i,l[3]=t,l[4]=a):a=l[4],a};var ef=a(66374),eb=a(80979),ex=a(31133),ev=a(21920),eI=a(64337);let ej=e=>{let t,a,l,i,r,s=(0,_.c)(11),{className:d,header:o,message:c}=e,m=void 0===o?"You filtered out all available listings.":o,u=void 0===c?"Try removing your last filter.":c;return s[0]!==d?(t=(0,ex.x)("flex","justify-center","items-center","flex-col","py-40","md:pt-64","md:pb-20",d),s[0]=d,s[1]=t):t=s[1],s[2]===Symbol.for("react.memo_cache_sentinel")?(a=(0,n.jsx)(eI.E,{width:89,height:89,alt:"No results found icon",src:"/assets/_next/static/media/icon-no-results.2a0462ad.svg",className:"mb-32"}),s[2]=a):a=s[2],s[3]!==m?(l=(0,n.jsx)(ev.D,{size:"4",children:m}),s[3]=m,s[4]=l):l=s[4],s[5]!==u?(i=(0,n.jsx)("span",{className:"hidden md:block",children:u}),s[5]=u,s[6]=i):i=s[6],s[7]!==t||s[8]!==l||s[9]!==i?(r=(0,n.jsxs)("div",{className:t,"data-test":"fallbackMessage",children:[a,l,i]}),s[7]=t,s[8]=l,s[9]=i,s[10]=r):r=s[10],r};var eC=a(54217),eS=a(5441),ew=a(88369),eN=a(25199);let ek=e=>{let t=e.page-1;return{buildId:e.buildId,first:eT,offset:t*eT,sort:(0,eN.l)(e.sort),galleryImagesCount:1,filters:{bodyStyleSlug:e.bodyStyle,trimSlug:e.trim,bedLength:e.bedLength,cabType:e.cabType,driveTrain:e.driveTrain,engine:e.engine,exteriorColorGeneric:e.exteriorColorGeneric,fuelType:e.fuelType,interiorColorGeneric:e.interiorColorGeneric,keyFeature:e.keyFeature,transmission:e.transmission,year:e.year,price:e.price,dealershipId:e.dealershipId}}},eT=30,eF=e=>{let t,a,l,i=(0,_.c)(10),{buildId:r,currentPage:s,totalCount:d,currentFilters:o}=e;i[0]!==d?(t=Math.min(Math.ceil(d/eT),333),i[0]=d,i[1]=t):t=i[1];let c=t;return i[2]!==r||i[3]!==o||i[4]!==s||i[5]!==d||i[6]!==c?(a=d>eT&&(0,n.jsx)(ew.d,{"data-test":"allMatchesPagination",currentPage:s,totalPages:c,getHref:e=>$.N.generate({...o,page:e,buildId:r})}),i[2]=r,i[3]=o,i[4]=s,i[5]=d,i[6]=c,i[7]=a):a=i[7],i[8]!==a?(l=(0,n.jsx)("div",{className:"mt-8 mb-20 flex justify-center",children:a}),i[8]=a,i[9]=l):l=i[9],l};var eA=a(57072),eD=a(48566),eM=a(80360),eP=a(48664),eL=a(38942),e$=a(32115),eE=a(86480),eO=a(33637),eB=a(43682);let ez=e=>{let t,a,l,i=(0,_.c)(11),{filterOptions:r,trims:s,updateCurrentFilters:d,model:o,make:c}=e,m=r?.makeModelTrims.find(e=>e.value===c)?.models?.find(e=>e.value===o)?.trims??[],u=(0,ei.z)();if(!m.length)return null;let p=eO.t,y=s.length,h=eB.A;i[0]!==u||i[1]!==s||i[2]!==d?(t=e=>{let t=s.includes(e.value);return{...e,checked:t,onChange:()=>{d({trim:t?s.filter(t=>t!==e.value):[...s,e.value]}),u({eventAction:"User Filtered Results",eventCategory:`Filter Engagement - ${t?"Deselect ":""}Trim`,eventLabel:e.value,eventLabelDescription:"Trim"})}}},i[0]=u,i[1]=s,i[2]=d,i[3]=t):t=i[3];let g=m.map(t);return i[4]!==h||i[5]!==g?(a=(0,n.jsx)(h,{label:"Trims",name:"trims",options:g,"data-test":"allMatchesTrimFilterOptions"}),i[4]=h,i[5]=g,i[6]=a):a=i[6],i[7]!==p||i[8]!==a||i[9]!==s.length?(l=(0,n.jsx)(p,{title:"Trim",count:y,"data-test":"trimFilter",initiallyOpen:!0,children:a}),i[7]=p,i[8]=a,i[9]=s.length,i[10]=l):l=i[10],l};var eH=a(27863);let eR=e=>{let t,a,l,i=(0,_.c)(10),{currentFilters:r,updateCurrentFilters:s,filterOptions:d}=e,o=r.year?.min,c=r.year?.max;
473i[0]!==o||i[1]!==c?(t=[o,c].filter(Boolean),i[0]=o,i[1]=c,i[2]=t):t=i[2];let m=t.length;return i[3]!==r||i[4]!==d||i[5]!==s?(a=(0,n.jsx)("div",{className:"flex flex-col gap-y-16",children:(0,n.jsx)(eH.H,{currentFilters:r,updateCurrentFilters:s,filterOptions:d})}),i[3]=r,i[4]=d,i[5]=s,i[6]=a):a=i[6],i[7]!==m||i[8]!==a?(l=(0,n.jsx)(eO.t,{title:"Year",count:m,"data-test":"allMatchesYearFilter",initiallyOpen:!0,children:a}),i[7]=m,i[8]=a,i[9]=l):l=i[9],l};var eU=a(14095);let eV=e=>{let t,a=(0,_.c)(4),{currentFilters:l,updateCurrentFilters:i}=e,{flags:r}=(0,eo.W)(),{dealBuilderEnabled:s}=r,d=s?l.dealType:"cash";return a[0]!==l||a[1]!==d||a[2]!==i?(t=(0,n.jsx)(eO.t,{title:"Price",initiallyOpen:!0,count:null,children:(0,n.jsx)(eU.z,{currentFilters:l,updateCurrentFilters:i,dealType:d})}),a[0]=l,a[1]=d,a[2]=i,a[3]=t):t=a[3],t};var eG=a(23961),eq=a(75001),eW=a(28583),eY=a(89883),eZ=a(2306),eQ=a(82866),eX=a(76688),eJ=a(27959),eK=a(99738);let e0=(0,l.Ay)` 474 mutation AllMatchesFilters_ProspectConnectShowroomDealership($dealershipId: ID!, $buildId: ID!) { 475 prospectConnectShowroomDealership( 476 input: {dealershipId: $dealershipId, buildId: $buildId, confirmedTcpa: true} 477 ) { 478 __typename 479 ... on ProspectConnectShowroomDealershipPayload { 480 __typename 481 } 482 ... on ArgumentsError { 483 __typename 484 message 485 } 486 } 487} 488 `;e0.documentId="87b2737ae653dfd65b1928b27a0679e53b29cb5a1080a1d37f0ee28081252855";var e1=a(42483),e2=a(74391),e3=a(62367),e4=a(70339),e5=a(28614);let e6=e=>{let t,a,l,i,r,s,d,o,c,m,u,p,y,h,g,b,x,v,I,j,C=(0,_.c)(61),{open:S,onClose:w,dealershipEdge:N,makeLogoUrl:k,buildId:T,pageLoading:F,onConnectionComplete:A}=e,{breakpointUp:D}=(0,ee.d)();C[0]!==D?(t=D("xl"),C[0]=D,C[1]=t):t=C[1];let M=t,[P,L]=f.useState(!1);C[2]!==w?(a=()=>{L(!1),w()},C[2]=w,C[3]=a):a=C[3];let $=a;C[4]!==A?(l=()=>{A&&A(),L(!0)},C[4]=A,C[5]=l):l=C[5],C[6]!==$||C[7]!==A?(i=()=>{A&&A(),$()},C[6]=$,C[7]=A,C[8]=i):i=C[8],C[9]!==l||C[10]!==i?(r={onCompleted:l,onError:i},C[9]=l,C[10]=i,C[11]=r):r=C[11];let[E,O]=(0,en.n)(e7,r),{loading:B}=O,z=P&&!B,H=N?.node.name||"Dealer";C[12]!==H?(s={contactPreference:"any",identifier:H},C[12]=H,C[13]=s):s=C[13];let{tcpa:R}=(0,er.a)(s);C[14]!==M||C[15]!==z?(d=z?(0,n.jsx)("div",{"data-test":"doneScreenImage",className:(0,ex.x)("w-full text-center max-w-[100vw] overflow-hidden",M?"mt-0":"mt-80"),children:(0,n.jsx)(eI.E,{src:"/assets/_next/static/media/confetti.2a030e23.svg",width:"100%",alt:""})}):(0,n.jsx)("div",{className:"mt-80 w-full text-center mb-16","data-test":"mainScreenImage",children:(0,n.jsx)(eI.E,{role:"presentation",alt:"",src:e1.A.src,width:180,height:141})}),C[14]=M,C[15]=z,C[16]=d):d=C[16],C[17]!==z?(o=z?"Amazing!":(0,n.jsxs)(n.Fragment,{children:["Get Offers and Payment Details",(0,n.jsx)("br",{className:"max-lg:hidden"})," when you connect with the dealer"]}),C[17]=z,C[18]=o):o=C[18],C[19]!==o||C[20]!==d?(c=(0,n.jsxs)(n.Fragment,{children:[d,o]}),C[19]=o,C[20]=d,C[21]=c):c=C[21],C[22]!==$||C[23]!==M?(m=!M&&(0,n.jsxs)(eq.z,{onClick:$,className:"whitespace-nowrap self-start relative z-1",children:[(0,n.jsx)(e2.T,{size:"sm"})," Back to Filters"]}),C[22]=$,C[23]=M,C[24]=m):m=C[24],C[25]!==c||C[26]!==m?(u=(0,n.jsx)(e5.r,{title:c,leftComponent:m}),C[25]=c,C[26]=m,C[27]=u):u=C[27],C[28]!==z?(p=z?"You're now connected with":(0,n.jsxs)(n.Fragment,{children:["This Certified Dealer will reach out to you",(0,n.jsx)("br",{className:"max-lg:hidden"})," with savings, incentives, and offers."]}),C[28]=z,C[29]=p):p=C[29],C[30]!==p?(y=(0,n.jsx)("p",{className:"text-center text-muted pb-20",children:p}),C[30]=p,C[31]=y):y=C[31],C[32]!==N||C[33]!==k||C[34]!==z?(h=z&&!!N&&(0,n.jsxs)("div",{className:"mb-80 flex flex-row px-16 py-16 pt-16 pb-80",children:[k&&(0,n.jsx)(eI.E,{src:k,contain:!0,width:35,alt:""}),(0,n.jsxs)("div",{className:"w-full",children:[(0,n.jsxs)("div",{className:"ml-8 flex w-full flex-row justify-between text-16 font-500",children:[(0,n.jsx)("div",{children:N.node.name}),(0,n.jsx)("div",{className:"text-right",children:N.matchingListingCount})]}),(0,n.jsxs)("div",{className:"ml-8 flex w-full flex-row justify-between text-14 text-muted",children:[(0,n.jsxs)("div",{children:[(0,eG.B)(N.driveDistance)," miles away"]}),(0,n.jsx)("div",{className:"text-right",children:"Available Offers"})]})]})]}),C[32]=N,C[33]=k,C[34]=z,C[35]=h):h=C[35];let U=B||F,V=!N;C[36]!==T||C[37]!==$||C[38]!==E||C[39]!==N||C[40]!==P?(g=async()=>{P?$():N&&(await E({variables:{dealershipId:N.node.id,buildId:T}}),L(!0))},C[36]=T,C[37]=$,C[38]=E,C[39]=N,C[40]=P,C[41]=g):g=C[41];let G=P?"Continue":"Get Offers";return C[42]!==U||C[43]!==V||C[44]!==g||C[45]!==G?(b=(0,n.jsx)(J.$,{color:"primary","data-test":"connectToDealerButton",className:"mb-32 w-full",loading:U,disabled:V,onClick:g,children:G}),C[42]=U,C[43]=V,C[44]=g,C[45]=G,C[46]=b):b=C[46],C[47]!==R?(x=(0,n.jsx)("div",{className:"text-left text-12",children:R}),C[47]=R,C[48]=x):x=C[48],C[49]!==b||C[50]!==x?(v=(0,n.jsxs)("div",{className:"text-center",children:[b,x]}),C[49]=b,C[50]=x,C[51]=v):v=C[51],C[52]!==y||C[53]!==h||C[54]!==v?(I=(0,n.jsxs)(e4.c,{children:[y,h,v]}),C[52]=y,C[53]=h,C[54]=v,C[55]=I):I=C[55],C[56]!==w||C[57]!==S||C[58]!==u||C[59]!==I?(j=(0,n.jsxs)(e3.a,{"data-test":"connectToBuildDealerModal",open:S,onClose:w,className:"items-center xl:max-w-[540px]",children:[u,I]}),C[56]=w,C[57]=S,C[58]=u,C[59]=I,C[60]=j):j=C[60],j},e7=e0,e8=e=>{let t,a,l,i,r,s,d,o,c,m,u,p,y=(0,_.c)(33),{build:h,currentFilters:g,updateCurrentFilters:b,loading:x,refetch:v}=e,I=(0,ei.z)(),[j,C]=(0,f.useState)(null),[S,w]=(0,f.useState)(!1);if(y[0]!==h||y[1]!==g.dealershipId||y[2]!==b){let e=h.dealerships.edges||[],o=e.filter(tt),c=e.filter(ta),m=[...o,...c].map(tn),u=te(c),p="Certified Dealer"===u,_=e=>{b({dealershipId:g.dealershipId?.length?g.dealershipId?.includes(e)?g.dealershipId?.filter(t=>t!==e):[...g.dealershipId,e]:m.filter(t=>t!==e)})};t=eO.t,r="Your dealers",s=!0,d=g.dealershipId?.length,a="space-y-24",l=(0,n.jsx)(eZ.H,{label:"Connected Dealerships",type:"inline-input",n
488ame:"connectedDealerships",className:"space-y-16 -mt-16",children:o.map(e=>(0,n.jsx)(eQ.Y,{value:g.dealershipId?.includes(e.node.databaseId)||!g.dealershipId?.length,onChange:()=>{_(e.node.databaseId)},label:(0,n.jsx)(e9,{dealershipEdge:e,connected:!0,build:h})},e.node.databaseId))}),i=c.length>0&&(0,n.jsxs)("div",{"data-test":"unconnectedDealersSection",children:[(0,n.jsxs)("div",{className:"mb-24 font-500 inline-block","data-test":"unconnectedDealersSectionHeader",children:["Additional ",p?"Certified ":"","Dealers",(0,n.jsx)(eW.F,{className:"ml-4 scale-90 align-middle -mt-2",placement:"top",children:"Connect with these dealers to get even more price offers, so you can comparison-shop and find an offer that works for you."})]}),(0,n.jsx)(eZ.H,{label:"More Dealers",type:"inline-input",name:"moreDealerships",className:"space-y-16 -mt-16",children:c.map(e=>(0,n.jsx)(eQ.Y,{value:g.dealershipId?.includes(e.node.databaseId)||!g.dealershipId?.length,onChange:()=>{_(e.node.databaseId)},label:(0,n.jsx)(e9,{name:u,onClick:()=>{C(e),w(!0)},dealershipEdge:e,connected:!1,build:h})},e.node.databaseId))})]}),y[0]=h,y[1]=g.dealershipId,y[2]=b,y[3]=t,y[4]=a,y[5]=l,y[6]=i,y[7]=r,y[8]=s,y[9]=d}else t=y[3],a=y[4],l=y[5],i=y[6],r=y[7],s=y[8],d=y[9];y[10]!==a||y[11]!==l||y[12]!==i?(o=(0,n.jsxs)("div",{className:a,children:[l,i]}),y[10]=a,y[11]=l,y[12]=i,y[13]=o):o=y[13],y[14]===Symbol.for("react.memo_cache_sentinel")?(c=()=>w(!1),y[14]=c):c=y[14];let N=h.model.make.logo?.url;return y[15]!==v||y[16]!==j?.node.databaseId||y[17]!==I?(m=()=>{I({eventAction:"All Matches Dealership Unlock Success",eventCategory:"Prospect",eventLabel:j?.node.databaseId}),v()},y[15]=v,y[16]=j?.node.databaseId,y[17]=I,y[18]=m):m=y[18],y[19]!==h.id||y[20]!==S||y[21]!==x||y[22]!==j||y[23]!==m||y[24]!==N?(u=(0,n.jsx)(e6,{open:S,onClose:c,buildId:h.id,dealershipEdge:j,makeLogoUrl:N,pageLoading:x,onConnectionComplete:m}),y[19]=h.id,y[20]=S,y[21]=x,y[22]=j,y[23]=m,y[24]=N,y[25]=u):u=y[25],y[26]!==t||y[27]!==u||y[28]!==r||y[29]!==s||y[30]!==d||y[31]!==o?(p=(0,n.jsxs)(t,{title:r,initiallyOpen:s,count:d,children:[o,u]}),y[26]=t,y[27]=u,y[28]=r,y[29]=s,y[30]=d,y[31]=o,y[32]=p):p=y[32],p},e9=e=>{let t,a,l,i,r,s,d,o,c=(0,_.c)(23),{connected:m,dealershipEdge:u,name:p,onClick:y,build:h}=e,{node:g,driveDistance:f,matchingListingCount:b}=u,{databaseId:x,name:v}=g,I=void 0===p?v:p;return c[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,n.jsx)("span",{className:"sr-only",children:" available offers"}),c[0]=t):t=c[0],c[1]!==b?(a=(0,n.jsxs)("span",{className:"text-12 text-muted",children:["(",b,")",t]}),c[1]=b,c[2]=a):a=c[2],c[3]!==I||c[4]!==a?(l=(0,n.jsxs)("div",{className:"inline",children:[I," ",a]}),c[3]=I,c[4]=a,c[5]=l):l=c[5],c[6]!==f?(i=(0,eG.B)(f),c[6]=f,c[7]=i):i=c[7],c[8]!==f?(r=(0,eY.td)(f,"mile"),c[8]=f,c[9]=r):r=c[9],c[10]!==i||c[11]!==r?(s=(0,n.jsxs)("div",{className:"text-12",children:[i," ",r," away"]}),c[10]=i,c[11]=r,c[12]=s):s=c[12],c[13]!==h||c[14]!==m||c[15]!==x||c[16]!==I||c[17]!==y?(d=m?(0,n.jsx)(eX.N,{"data-test":"shopThisDealerLink","data-test-item":x,className:"text-14",href:eK.T.generate({buildId:h.databaseId,dealershipId:Number(x),dealershipSlug:(0,eJ.n)(I),makeModelTrim:[{makeSlug:h.model.make.slug,modelSlug:h.model.slug}]}),onClick:y,tracking:{eventAction:"View Configured Vehicle Inventory",eventCategory:"Engagement",eventLabel:x},children:"Shop this dealer"}):(0,n.jsx)(eq.z,{className:"text-14","data-test":"getOfferLink","data-test-item":x,tracking:{eventAction:"All Matches Dealership Unlock Attempt",eventCategory:"Dealership Locked Event",eventLabel:x},onClick:y,children:"Get offers"}),c[13]=h,c[14]=m,c[15]=x,c[16]=I,c[17]=y,c[18]=d):d=c[18],c[19]!==d||c[20]!==l||c[21]!==s?(o=(0,n.jsxs)("div",{className:"space-y-4",children:[l,s,d]}),c[19]=d,c[20]=l,c[21]=s,c[22]=o):o=c[22],o},te=e=>e.every(e=>!e.node.dealershipConsumerContext?.isNonCertifiedMercedes)?"Certified Dealer":"Authorized Mercedes-Benz Dealership";function tt(e){return e.prospect}function ta(e){return!e.prospect&&e.matchingListingCount}function tn(e){return e.node.databaseId}let tl=e=>{let t,a,l,i,r,s,d,o,c,m,u,p,y,h=(0,_.c)(46),{build:g,filterOptions:f,currentFilters:b,updateCurrentFilters:x,refetch:v,loading:I}=e;if(!g||!g?.id)return null;h[0]!==g||h[1]!==b||h[2]!==I||h[3]!==v||h[4]!==x?(t=(0,n.jsx)(e8,{build:g,refetch:v,loading:I,currentFilters:b,updateCurrentFilters:x}),h[0]=g,h[1]=b,h[2]=I,h[3]=v,h[4]=x,h[5]=t):t=h[5];let j=g?.model?.slug,C=g?.model?.make?.slug;return h[6]!==b.trim||h[7]!==f||h[8]!==j||h[9]!==C||h[10]!==x?(a=(0,n.jsx)(ez,{filterOptions:f,trims:b.trim,updateCurrentFilters:x,model:j,make:C}),h[6]=b.trim,h[7]=f,h[8]=j,h[9]=C,h[10]=x,h[11]=a):a=h[11],h[12]!==b||h[13]!==x?(l=(0,n.jsx)(eV,{currentFilters:b,updateCurrentFilters:x}),h[12]=b,h[13]=x,h[14]=l):l=h[14],h[15]!==b||h[16]!==f||h[17]!==x?(i=(0,n.jsx)(eR,{currentFilters:b,updateCurrentFilters:x,filterOptions:f}),h[15]=b,h[16]=f,h[17]=x,h[18]=i):i=h[18],h[19]!==x?(r=e=>{let{bodyStyles:t}=e;return x({bodyStyle:t})},h[19]=x,h[20]=r):r=h[20],h[21]!==b.bodyStyle||h[22]!==f||h[23]!==r?(s=(0,n.jsx)(eA.o,{currentBodyStyles:b.bodyStyle,updateCurrentFilters:r,filterOptions:f}),h[21]=b.bodyStyle,h[22]=f,h[23]=r,h[24]=s):s=h[24],h[25]!==b||h[26]!==f||h[27]!==x?(p=(0,n.jsx)(eM.U,{filterOptions:f,currentFilters:b,updateCurrentFilters:x,hasSelectedMakes:!0}),d=(0,n.jsx)(e$.o,{filterOptions:f,currentFilters:b,updateCurrentFilters:x,hasSelectedMakes:!0}),o=(0,n.jsx)(eP.u,{currentFilters:b,updateCurrentFilters:x,filterOptions:f}),c=(0,n.jsx)(eL.P,{filterOptions:f,currentFilters:b,updateCurrentFilters:x,isUsed:!1}
488),m=(0,n.jsx)(eE.D,{currentFilters:b,updateCurrentFilters:x,filterOptions:f}),u=(0,n.jsx)(eD.V,{currentFilters:b,updateCurrentFilters:x,filterOptions:f}),h[25]=b,h[26]=f,h[27]=x,h[28]=d,h[29]=o,h[30]=c,h[31]=m,h[32]=u,h[33]=p):(d=h[28],o=h[29],c=h[30],m=h[31],u=h[32],p=h[33]),h[34]!==t||h[35]!==d||h[36]!==o||h[37]!==c||h[38]!==m||h[39]!==u||h[40]!==a||h[41]!==l||h[42]!==i||h[43]!==s||h[44]!==p?(y=(0,n.jsxs)("div",{className:"!divide-y",children:[t,a,l,i,s,p,d,o,c,m,u]}),h[34]=t,h[35]=d,h[36]=o,h[37]=c,h[38]=m,h[39]=u,h[40]=a,h[41]=l,h[42]=i,h[43]=s,h[44]=p,h[45]=y):y=h[45],y};var ti=a(82968),tr=a(27107),ts=a(219);let td=e=>{let t,a,l,i,r=(0,_.c)(11),{totalCount:s,hideListings:d,className:o}=e,c=d?0:s;r[0]!==o?(t=(0,ex.x)("flex whitespace-pre w-full text-20 font-500",o),r[0]=o,r[1]=t):t=r[1],r[2]!==c?(a=(0,tr.Z)(c),r[2]=c,r[3]=a):a=r[3];let m=1e4===c?"+":"";return r[4]!==c?(l=(0,ts.t)(c,"Listing"),r[4]=c,r[5]=l):l=r[5],r[6]!==t||r[7]!==a||r[8]!==m||r[9]!==l?(i=(0,n.jsxs)("div",{className:t,"data-test":"searchResultsCount",children:[a,m," ",l]}),r[6]=t,r[7]=a,r[8]=m,r[9]=l,r[10]=i):i=r[10],i},to=(0,l.Ay)` 489 query getAllMatchesMobileFilters($buildId: ID!, $filters: BuildListingSearchInput, $first: Int, $offset: Int, $sort: ListingsSort) { 490 build(id: $buildId) { 491 __typename 492 id 493 model { 494 __typename 495 id 496 slug 497 make { 498 __typename 499 id 500 slug 501 logo { 502 __typename 503 url 504 } 505 } 506 } 507 databaseId 508 dealerships { 509 __typename 510 edges { 511 __typename 512 cursor 513 node { 514 __typename 515 id 516 databaseId 517 name 518 dealershipConsumerContext { 519 __typename 520 isNonCertifiedMercedes 521 } 522 } 523 driveDistance 524 matchingListingCount 525 prospect { 526 __typename 527 id 528 } 529 } 530 } 531 inventorySearch(filters: $filters, first: $first, offset: $offset, sort: $sort) { 532 __typename 533 filtersV2 { 534 __typename 535 makeModelTrims { 536 __typename 537 value 538 models: options { 539 __typename 540 value 541 trims: options { 542 __typename 543 label 544 value 545 count 546 } 547 } 548 } 549 years { 550 __typename 551 min 552 max 553 } 554 bodyStyles { 555 __typename 556 label 557 value 558 count 559 } 560 exteriorColorGeneric { 561 __typename 562 label 563 value 564 count 565 } 566 interiorColorGeneric { 567 __typename 568 label 569 value 570 count 571 } 572 keyFeatures { 573 __typename 574 label 575 value 576 count 577 } 578 fuelTypes { 579 __typename 580 label 581 value 582 count 583 } 584 transmissions { 585 __typename 586 label 587 value 588 count 589 } 590 driveTrains { 591 __typename 592 label 593 value 594 count 595 } 596 } 597 } 598 } 599} 600 `;to.documentId="73eb896dc18aca28be8667016d8286ecf0334bceba7396b0634be8d80eebf1d3";var tc=a(38932);let tm=e=>{let t,a,l,i,r,s,d=(0,_.c)(20),{isOpen:o,onClose:c,currentFilters:m,handleApplyOnModal:u,updatePendingFilters:p,filtersComponent:y,defaultFilters:h,children:g}=e,f=(0,ei.z)();d[0]!==c||d[1]!==p?(t=()=>{p(null),c()},d[0]=c,d[1]=p,d[2]=t):t=d[2];let b=t;d[3]!==m.sort||d[4]!==h||d[5]!==f||d[6]!==p?(a=()=>{let e={sort:m.sort};p({...h,...e}),f({eventAction:"User Filtered Results",eventCategory:"Filter Engagement - Clear & Reset all",eventLabel:"Reset all",eventLabelDescription:"Clear & Reset all"})},d[3]=m.sort,d[4]=h,d[5]=f,d[6]=p,d[7]=a):a=d[7];let x=a;return d[8]===Symbol.for("react.memo_cache_sentinel")?(l=(0,n.jsx)(e5.r,{title:"Filters",sticky:!0}),d[8]=l):l=d[8],d[9]!==y?(i=(0,n.jsx)(e4.c,{"data-test":"mobileFilterContainer",noPadding:!0,children:(0,n.jsx)("div",{className:"mx-auto max-w-[100vw] px-20 sm:max-w-[400px]",children:y})}),d[9]=y,d[10]=i):i=d[10],d[11]!==u||d[12]!==x?(r=(0,n.jsx)(tu,{handleApplyOnModal:u,handleClearAllFilters:x}),d[11]=u,d[12]=x,d[13]=r):r=d[13],d[14]!==g||d[15]!==b||d[16]!==o||d[17]!==i||d[18]!==r?(s=(0,n.jsxs)(e3.a,{open:o,onClose:b,fullScreen:!0,children:[l,g,i,r]}),d[14]=g,d[15]=b,d[16]=o,d[17]=i,d[18]=r,d[19]=s):s=d[19],s},tu=e=>{let t,a,l,i=(0,_.c)(7),{handleApplyOnModal:r,handleClearAllFilters:s}=e;return i[0]!==s?(t=(0,n.jsx)(J.$,{color:"tertiary",onClick:s,children:"Reset all"}),i[0]=s,i[1]=t):t=i[1],i[2]!==r?(a=(0,n.jsx)(J.$,{block:!0,color:"primary","data-test":"applyFilters",onClick:r,type:"button",className:"mx-0",size:"lg",children:"Apply filters"}),i[2]=r,i[3]=a):a=i[3],i[4]!==t||i[5]!==a?(l=(0,n.jsxs)(tc.j,{className:"flex flex-row gap-x-20",children:[t,a]}),i[4]=t,i[5]=a,i[6]=l):l=i[6],l},tp=e=>{let t,a,l,i,r,s=(0,_.c)(21),{build:d,currentFilters:o,loading:c,currentFiltersWithPendingChanges:m,filtersModalOpen:u,closeFiltersModal:p,handleApplyOnModal:y,updatePendingFilters:h,refetch:g}=e,f=d?.inventorySearch.filtersV2;s[0]!==o.buildId?(t=$.N.validateStatic({buildId:o.buildId}),s[0]=o.buildId,s[1]=t):t=s[1];let b=t;s[2]!==m?(a=ek(m),s[2]=m,s[3]=a):a=s[3];let x=a;s[4]!==x?(l={variables:x,ssr:!1},s[4]=x,s[5]=l):l=s[5];let{data:v,loading:I}=(0,P.I)(ty,l),j=c||I,C=v?.build?.inventorySearch?.filtersV2??f;return s[6]!==d||s[7]!==m||s[8]!==C||s[9]!==j||s[10]!==g||s[11]!==h?(i=(0,n.jsx)("div",{className:"pt-8 px-4",children:(0,n.jsx)(tl,{currentFilters:m,updateCurrentFilters:h,filterOptions:C,loading:j,refetch:g,build:d})}),s[6]=d,s[7]=m,s[8]=C,s[9]=j,s[10]=g,s[11]=h,s[12]=i):i=s[12],s[13]!==p||s[14]!==m||s[15]!==b||s[16]!==u||s[17]!==y||s[18]!==i||s[19]!==h?(r=(0,n.jsx)(tm,{isOpen:u,onClose:p,currentFilters:m,updatePendingFilters:h,handleApplyOnModal:y,filtersComponent:i,defaultFilters:b}),s[13]=p,s[14]=m,s[15]=b,s[16]=u,s[17]=y,s[18]=i,s[19]=h,s[20]=r):r=s[20],r},ty=to,th=e=>{let{disclaimerId:t,currentFilters:a,build:l,consumer:i,loading:r,refetch:s}=e,{push:d}=(0,eC.c)(),o=a.buildId,{breakpointDown:c}=(0,ee.d)(),m=c("lg"),u=(0,eS.p)(),{flags:{dealBuilderEnabled:p}}=(0,eo.W)(),y=f.useCallback(e=>{d($.N.generate({...a,...e,page:1,buildId:o}),{shallow:!0})},[a,d,o]),h=l?.inventorySearch,g=h?.edges||[],b=h?.totalCount||0,v=(0,f.useRef)(null),{isIntersecting:I}=(0,K.B)(v.current,!0,{rootMargin:"-114px"}),{currentFiltersWithPendingChanges:C,updatePendingFilters:S,filtersModalOpen:w,openFiltersModal:N,closeFiltersModal:k,handleApplyOnModal:T}=(e=>{let t,a,n,l,i,r,s,d=(0,_.c)(16),{currentFilters:o,updateCurrentFilters:c}=e,[m,u]=(0,f.useState)(null);d[0]===Symbol.for("react.memo_cache_sentinel")?(t=e=>null===e?u(null):u(t=>({...t,...e})),d[0]=t):t=d[0];let p=t;e:{if(m){let e;d[1]!==o||d[2]!==m?(e={...o,...m},d[1]=o,d[2]=m,d[3]=e):e=d[3],a=e;break e}a=o}let y=a;d[4]!==m||d[5]!==c?(n=()=>{m&&c(m),u(null)},d[4]=m,d[5]=c,d[6]=n):n=d[6];let h=n,[g,b]=(0,f.useState)(!1);d[7]!==h?(l=e=>{h(),p(null),(void 0===e||e)&&b(!1)},d[7]=h,d[8]=l):l=d[8];let x=l;return d[9]===Symbol.for("react.memo_cache_sentinel")?(i=()=>b(!0),r=()=>b(!1),d[9]=i,d[10]=r):(i=d[9],r=d[10]),d[11]!==h||d[12]!==y||d[13]!==g||d[14]!==x?(s={updatePendingFilters:p,currentFiltersWithPendingChanges:y,applyPendingChanges:h,filtersModalOpen:g,openFiltersModal:i,closeFiltersModal:r,handleApplyOnModal:x},d[11]=h,d[12]=y,d[13]=g,d[14]=x,d[15]=s):s=d[15],s})({currentFilters:a,updateCurrentFilters:y});return((0,f.useEffect)(()=>{let e;return r&&(e=setTimeout(()=>{window.scrollTo({top:0,behavior:"instant"})},100)),()=>{clearTimeout(e)}},[r]),r&&!h)?(0,n.jsx)(j.D,{}):(0,n.jsxs)("div",{"data-test":"allMatchesContainer",className:"pt-32",children:[(0,n.jsx)("div",{className:"xl:hidden",ref:v,children:(0,n.jsx)(x.L,{children:(0,n.jsx)(td,{totalCount:b})})}),(0,n.jsx)("div",{className:(0,ex.x)("bg-white xl:hidden top-[114px] z-1050",b>0&&"sticky",!I&&"shadow-[0_4px_6px_-1px_rgba(0,0,0,0.1)]"),children:(0,n.jsx)(x.L,{className:"py-16",children:(0,n.jsx)(J.$,{className:"w-full",onClick:()=>N(),children:"Filters"})})}),(0,n.jsxs)(x.L,{children:[p&&(0,n.jsxs)("div",{className:"sm:hidden",children:[(0,n.jsx)("div",{className:"flex justify-center pt-20",children:(0,n.jsx)(eb.n,{routeGenerator:$.N,currentFilters:a})}),(0,n.jsx)("div",{className:"flex justify-center pt-20",children:(0,n.jsx)(ef.l,{dealType:a.dealType,routeGenerator:$.N,currentFilters:a,refetch:s})})]}),(0,n.jsx)("div",{className:"xl:hidden my-16",children:(0,n.jsx)(e_,{sort:a.sort,updateCurrentFilters:y})}),(0,n.jsxs)("div",{className:"grid grid-cols-1 xl:grid-cols-[320px_1fr] gap-24",children:[(0,n.jsx)("div",{className:"max-xl:hidden",children:(0,n.jsx)(ti.p,{resetFiltersHref:$.N.generate({buildId:l?.id||""}),children:(0,n.jsx)(tl,{updateCurrentFilters:y,build:l,filterOptions:l?.inventorySearch.filtersV2,currentFilters:a,refetch:s,loading:r})})}),(0,n.jsxs)("div",{children:[r?(0,n.jsx)(j.D,{}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"mb-16 space-y-16 max-xl:hidden",children:[b>0&&(0,n.jsx)(td,{totalCount:b}),(0,n.jsx)(e_,{sort:a.sort,updateCurrentFilters:y})]}),b<=0&&(0,n.jsx)(ej,{}),(0,n.jsx)(em,{buildId:o,listings:g,currentFilters:a,dealerships:l?.dealerships.edges.map(e=>{let{node:t}=e;return t})||[],returnTo:u,refetchData:s}),(0,n.jsx)(eF,{buildId:o,currentFilters:a,currentPage:a.page,totalCount:b})]}),(0,n.jsx)(F.b,{dealershipsEdges:l?.dealerships.edges,consumer:i,model:l?.model.name,make:l?.model.make.name,disclaimerId:t})]})]})]}),m&&(0,n.jsx)(tp,{currentFilters:a,loading:r,currentFiltersWithPendingChanges:C,updatePendingFilters:S,filtersModalOpen:w,closeFiltersModal:k,handleApplyOnModal:T,refetch:s,build:l})]})},tg=(0,l.Ay)` 601 query getAllMatchesBuild($buildId: ID!) { 602 build(id: $buildId) { 603 __typename 604 hasProspectedDealerships 605 model { 606 __typename 607 id 608 name 609 year 610 slug 611 make { 612 __typename 613 id 614 name 615 logo { 616 __typename 617 url 618 } 619 slug 620 databaseId 621 } 622 } 623 style { 624 __typename 625 id 626 name 627 image { 628 __typename 629 url 630 } 631 databaseId 632 }
633 exteriorColors { 634 __typename 635 edges { 636 __typename 637 cursor 638 node { 639 __typename 640 id 641 name 642 } 643 } 644 } 645 interiorColors { 646 __typename 647 edges { 648 __typename 649 cursor 650 node { 651 __typename 652 id 653 name 654 } 655 } 656 } 657 activeOptions { 658 __typename 659 edges { 660 __typename 661 cursor 662 node { 663 __typename 664 id 665 name 666 price 667 } 668 } 669 } 670 id 671 dealerships { 672 __typename 673 edges { 674 __typename 675 cursor 676 matchingListingCount 677 node { 678 __typename 679 databaseId 680 tradeEnabled 681 dealershipConsumerContext { 682 __typename 683 isNonCertifiedMercedes 684 } 685 name 686 paymentsEnabled 687 id 688 } 689 prospect { 690 __typename 691 id 692 } 693 driveDistance 694 } 695 } 696 databaseId 697 } 698 consumer { 699 profile { 700 __typename 701 id 702 firstName 703 lastName 704 emailAddress 705 city 706 state 707 street1 708 postalCode 709 phoneNumber 710 } 711 partner { 712 __typename 713 id 714 capselaPriceReportPriceLabel 715 } 716 id 717 militaryAffiliation { 718 __typename 719 verified 720 } 721 __typename 722 registrationType 723 affiliationGroups { 724 __typename 725 edges { 726 __typename 727 cursor 728 node { 729 __typename 730 id 731 name 732 } 733 verified 734 } 735 } 736 verified 737 } 738 partner { 739 __typename 740 id 741 crossSellBanner { 742 __typename 743 heading 744 buttonText 745 buttonUrl 746 linkText 747 linkUrl 748 } 749 partnerUrls { 750 __typename 751 partnerFinanceUrl 752 } 753 } 754 content { 755 __typename 756 oemLandingPage(buildId: $buildId) { 757 __typename 758 couponRegistrationFields { 759 __typename 760 address 761 email 762 firstName 763 lastName 764 phone 765 zipCode 766 } 767 modules { 768 __typename 769 ... on OEMLandingHeroSectionContent { 770 __typename 771 buttonText 772 } 773 } 774 } 775 } 776 makesWithIncentives { 777 __typename 778 make { 779 __typename 780 id 781 slug 782 } 783 targetedIncentive { 784 __typename 785 id 786 requiresVerification 787 coupon { 788 __typename 789 id 790 code 791 } 792 } 793 } 794} 795 `;tg.documentId="fdb1619c82d76c6135ba08ff6451c30c5639628fde7e7202b7460264e42e9bd5";let{prefetchQueries:t_,useQueries:tf}=(0,a(84411).w)($.N,e=>{let{params:t,runQuery:a}=e;return{build:a({query:tg,variables:{buildId:t.buildId},skip:!t.buildId,notifyOnNetworkStatusChange:!0})}},e=>({build:e.build?.build,consumer:e.build?.consumer,partner:e.build?.partner,content:e.build?.content,makesWithIncentives:e.build?.makesWithIncentives})),tb=e=>{let t,a,l,i,r,s,d,o,c,m,u,p,y,h,g,f,b,$,E,O,B,z=(0,_.c)(64),{params:H}=e,{buildId:R}=H;z[0]!==H?(t={params:H},z[0]=H,z[1]=t):t=z[1];let{data:U,loading:V}=tf(t),{build:G,consumer:q,partner:W,content:Y,makesWithIncentives:Z}=U;if(z[2]!==G?.dealerships.edges){let e=G?.dealerships.edges.filter(tj)||[],t=G?.dealerships.edges.filter(tC)||[];a=e.reduce(tI,0),l=t.reduce(tI,0),z[2]=G?.dealerships.edges,z[3]=a,z[4]=l}else a=z[3],l=z[4];let Q=l,X=0===a&&0===Q,J=!G||X||V;z[5]!==H?(i=ek(H),z[5]=H,z[6]=i):i=z[6],z[7]!==J||z[8]!==i?(r={variables:i,skip:J,ssr:!1},z[7]=J,z[8]=i,z[9]=r):r=z[9];let{data:K,loading:ee,refetch:et}=(0,P.I)(tv,r),{getTrackingVars:ea}=(0,D.D)(R),en=G?.style?.databaseId,el=Number(en);z[10]!==el?(s=[el],z[10]=el,z[11]=s):s=z[11],z[12]===Symbol.for("react.memo_cache_sentinel")?(d=["PTO_DEFAULT"],o=["NEW"],z[12]=d,z[13]=o):(d=z[12],o=z[13]),z[14]!==s?(c={styleIds:s,targetTypes:d,vehicleConditions:o},z[14]=s,z[15]=c):c=z[15];let ei=!en;z[16]!==c||z[17]!==ei?(m={variables:c,skip:ei,ssr:!1},z[16]=c,z[17]=ei,z[18]=m):m=z[18];let{data:er}=(0,P.I)(tx,m);if(V&&!G){let e;return z[19]===Symbol.for("react.memo_cache_sentinel")?(e=(0,n.jsx)(j.D,{}),z[19]=e):e=z[19],e}if(!G||!W)throw new C.m;if(!G.hasProspectedDealerships)throw new S.L(L.$.generate({buildId:R}),307);let es=er?.targetedIncentives?.edges[0]?.node;z[20]!==G.model.make.slug||z[21]!==Z?(u=Z?.find(e=>e.make.slug===G?.model.make.slug),z[20]=G.model.make.slug,z[21]=Z,z[22]=u):u=z[22];let ed=u;z[23]!==G||z[24]!==ea?(p=ea(G),z[23]=G,z[24]=ea,z[25]=p):p=z[25],z[26]!==W?(y=(0,n.jsx)(A.Z,{partner:W}),z[26]=W,z[27]=y):y=z[27],z[28]!==G?(h=G&&(0,n.jsx)(w.e,{build:G}),z[28]=G,z[29]=h):h=z[29],z[30]!==H||z[31]!==et?(g=(0,n.jsx)(M.l,{section:"allMatches",currentFilters:H,refetch:et}),z[30]=H,z[31]=et,z[32]=g):g=z[32],z[33]!==h||z[34]!==g?(f=(0,n.jsx)(v.V,{shadow:!0,className:"bg-white",children:(0,n.jsx)("div",{className:"border-b",children:(0,n.jsxs)(x.L,{className:"pt-8",children:[h,g]})})}),z[33]=h,z[34]=g,z[35]=f):f=z[35],z[36]!==G||z[37]!==q||z[38]!==Y||z[39]!==ed||z[40]!==es?(b=G&&q&&(0,n.jsx)(k.N,{build:G,consumer:q,content:Y,targetedIncentive:es,makeWithIncentive:ed}),z[36]=G,z[37]=q,z[38]=Y,z[39]=ed,z[40]=es,z[41]=b):b=z[41],z[42]!==G||z[43]!==q||z[44]!==H||z[45]!==K?.build||z[46]!==V||z[47]!==ee||z[48]!==X||z[49]!==et?($=G&&(X?(0,n.jsx)(T.F,{build:G}):(0,n.jsx)(th,{currentFilters:H,disclaimerId:"dashboard-disclaimers",build:K?.build,consumer:q,loading:ee||V,refetch:et})),z[42]=G,z[43]=q,z[44]=H,z[45]=K?.build,z[46]=V,z[47]=ee,z[48]=X,z[49]=et,z[50]=$):$=z[50],z[51]===Symbol.for("react.memo_cache_sentinel")?(E=(0,n.jsx)(N.L,{id:"dashboard-disclaimers",className:"py-40 bg-[white] before:mt-[-150px] before:block before:h-[150px] before:content-['']"}),z[51]=E):E=z[51];let eo=G?.dealerships?.edges,ec=G?.model.name,em=G?.model.make.name;return z[52]!==q||z[53]!==eo||z[54]!==ec||z[55]!==em?(O=(0,n.jsx)(F.b,{dealershipsEdges:eo,consumer:q,model:ec,make:em,disclaimerId:"dashboard-disclaimers"}),z[52]=q,z[53]=eo,z[54]=ec,z[55]=em,z[56]=O):O=z[56],z[57]!==p||z[58]!==y||z[59]!==f||z[60]!==b||z[61]!==$||z[62]!==O?(B=(0,n.jsxs)(I.B,{name:"New Car All Matches Dashboard",variables:p,children:[y,f,b,$,E,O]}),z[57]=p,z[58]=y,z[59]=f,z[60]=b,z[61]=$,z[62]=O,z[63]=B):B=z[63],B};tb.getInitialProps=(0,b.q)($.N,async e=>t_(e)),tb.pageName="New Car All Matches Dashboard",tb.route=$.N;let tx=h,tv=g;function tI(e,t){return e+t.matchingListingCount}function tj(e){return!e.prospect}function tC(e){return!!e.prospect}},74391:(e,t,a)=>{"use strict";a.d(t,{T:()=>n.T});var n=a(88301)},82665:(e,t,a)=>{"use strict";a.d(t,{L:()=>r});var n=a(6029),l=a(75155);a(55729);var i=a(65491);let r=e=>{let t,a,r,s=(0,l.c)(6);s[0]!==e?({fill:t,...a}=e,s[0]=e,s[1]=t,s[2]=a):(t=s[1],a=s[2]);let d="keyboard_arrow_up";return s[3]!==a||s[4]!==d?(r=(0,n.jsx)(i.I,{spriteID:d,...a}),s[3]=a,s[4]=d,s[5]=r):r=s[5],r}},91946:(e,t,a)=>{"use strict";a.d(t,{I:()=>r});var n=a(6029),l=a(75155);a(55729);var i=a(65491);let r=e=>{let t,a,r,s=(0,l.c)(6);s[0]!==e?({fill:t,...a}=e,s[0]=e,s[1]=t,s[2]=a):(t=s[1],a=s[2]);let d="keyboard_arrow_down";return s[3]!==a||s[4]!==d?(r=(0,n.jsx)(i.I,{spriteID:d,...a}),s[3]=a,s[4]=d,s[5]=r):r=s[5],r}},96956:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/[extra]/dashboard/[buildId]/all-matches",function(){return a(66737)}])},99738:(e,t,a)=>{"use strict";a.d(t,{T:()=>y});var n=a(64226),l=a(36087),i=a(23609),r=a(8012),s=a(25199),d=a(92976),o=a(75726),c=a(67712),m=a.n(c),u=a(4422),p=a(37226);let y=(0,l.v)({newness:n.u.enum("new","used").optional,splat:n.u.array.unsafeString,dealershipId:n.u.number,dealershipSlug:n.u.string,dealershipType:n.u.enum("dealership","dealership-group").optional.default("dealership"),dealType:n.u.enum("lease","loan","cash").optional.default("
795cash"),monthlyPaymentLow:n.u.number.optional,monthlyPaymentHigh:n.u.number.optional,mileageLow:n.u.number.optional,mileageHigh:n.u.number.optional,listPriceLow:n.u.number.optional,listPriceHigh:n.u.number.optional,price_low:n.u.number.optional,price_high:n.u.number.optional,yearLow:n.u.number.optional,yearHigh:n.u.number.optional,exteriorColorGeneric:n.u.array.unsafeString,priceRating:n.u.array.unsafeString,trim:n.u.unsafeString.optional,trimSlug:n.u.array.unsafeString,equipmentRating:n.u.array.unsafeString,packages:n.u.array.unsafeString,keyFeature:n.u.array.unsafeString,transmission:n.u.array.unsafeString,driveTrain:n.u.array.unsafeString,engine:n.u.array.unsafeString,interiorColorGeneric:n.u.array.unsafeString,fuelType:n.u.array.unsafeString,bedLength:n.u.array.unsafeString,cabType:n.u.array.unsafeString,page:n.u.number.optional.default(1),perPage:n.u.number.optional,sort:n.u.array.unsafeString,certifiedPreOwned:n.u.array.unsafeString,accidentHistory:n.u.enum("none","max-1","any").optional.default("any"),titleHistory:n.u.array.unsafeString,ownerHistory:n.u.enum("original","max-2","any").optional.default("any"),fleetHistory:n.u.boolean.optional.default(!0),rentalHistory:n.u.boolean.optional.default(!0),creditScore:n.u.enum("excellent","very-good","good","fair","poor").optional,financeTerm:n.u.number.optional,downPayment:n.u.number.optional,recentPriceDrop:n.u.boolean.optional.default(!1),mmt:n.u.array.string,buildId:n.u.string.optional,city:n.u.unsafeString.optional,state:n.u.unsafeString.optional,postalCode:n.u.unsafeString.optional,zipCode:n.u.unsafeString.optional,searchRadius:n.u.number.optional,excludeExpandedDelivery:n.u.boolean.optional.default(!0),hideDealerDiscount:n.u.boolean.optional,bodyStyles:n.u.array.string,buyOnline:n.u.boolean.optional,prequal:n.u.boolean.optional},e=>{let{splat:t,dealershipType:a,newness:n,sort:l,monthlyPaymentLow:r,monthlyPaymentHigh:d,mileageLow:c,mileageHigh:m,listPriceLow:y,listPriceHigh:h,price_low:g,price_high:_,yearLow:f,yearHigh:b,certifiedPreOwned:x,fuelType:v,trim:I,trimSlug:j,equipmentRating:C,searchRadius:S,excludeExpandedDelivery:w,mmt:N,hideDealerDiscount:k,dealType:T,downPayment:F,creditScore:A,financeTerm:D,bodyStyles:M,buyOnline:P,...L}=e,$=(0,u.Rr)(t??[]),E=I?[I].concat(j):j,O=(0,o.p)({makeSlug:$.makeSlug,modelSlug:$.modelSlug,mmtFromUrl:N,trims:E}),B=l[0],z=(0,i.l)((0,s.l)(n??("dealership-group"===a?"used":"new")));return{condition:z,makeModelTrim:O,bodyStyles:M.concat($.bodyStyleSlug??[]),year:$.year??{min:f??null,max:b??null},price:$.price??{min:y??g??null,max:h??_??null},monthlyPayment:{min:r??null,max:d??null},mileage:{min:c??null,max:m??null},sort:(0,i.l)(B&&"distance_asc_script"!==B?B:"best_match"),certifiedPreOwned:(0,i.l)("true"===x[0]),fuelType:(0,u.FQ)($.fuelType??v),equipmentRating:C?.map(e=>u.im[e]),..."dealership-group"===a&&{excludeExpandedDelivery:w,searchRadius:(0,i.l)((e=>{let{searchRadius:t,condition:a}=e;return t&&t>p.g?p.g:!t||t<1?"USED"===a?75:150:t})({searchRadius:S,condition:z}))},dealershipType:a,hideDealerDiscount:k,dealType:T,downPayment:(0,i.l)(F??3e3),financeTerm:(0,i.l)(D??72),creditScore:(0,i.l)(A??"good"),buyOnline:!!P||void 0,...L}},e=>{let{condition:t,dealershipType:a="dealership",dealershipSlug:n,dealershipId:l,bodyStyles:i,monthlyPayment:s,mileage:o,year:c,dealType:p,price:y,page:h,sort:g,certifiedPreOwned:_,accidentHistory:f,ownerHistory:b,fleetHistory:x,rentalHistory:v,fuelType:I,equipmentRating:j,creditScore:C,financeTerm:S,downPayment:w,recentPriceDrop:N,makeModelTrim:k,hideDealerDiscount:T,buyOnline:F,prequal:A,...D}=e,{makeSlugs:M,modelSlugs:P,trimSlugs:L}=(0,d.G)(k||void 0),$=M.length>1||P.length>1,E=i&&1===i.length;return{path:`/${a}/${n}-${l}/listings/${(0,u.tW)({makeSlug:$?void 0:M[0],modelSlug:$?void 0:P[0],bodyStyleSlug:E?i?.[0]:void 0,year:{min:c?.min??null,max:c?.max??null},price:{min:y?.min??null,max:y?.max??null},fuelType:I})}`,query:{newness:t?(0,r.g)(t):void 0,page:1===h?void 0:h,sort:g&&"best_match"!==g?[g]:null,certifiedPreOwned:_?["true"]:null,accidentHistory:"any"===f?null:f,ownerHistory:"any"===b?null:b,fleetHistory:!1!==x&&null,creditScore:"good"===C?null:C,financeTerm:72===S?null:S,downPayment:3e3===w?null:w,recentPriceDrop:!!N||null,rentalHistory:!1!==v&&null,dealType:"cash"===p?null:p,monthlyPaymentLow:s?.min??null,monthlyPaymentHigh:s?.max??null,mileageLow:o?.min??null,mileageHigh:o?.max??null,fuelType:I&&I.length>1?(0,u.N2)(I):void 0,trim:$?void 0:1===L.length?L[0]:void 0,trimSlug:$?void 0:L.length>=2?L:void 0,equipmentRating:j?.map(e=>u.cD[e]),mmt:$?k?.map(e=>
795m()([e.makeSlug,e.modelSlug,...e.trimSlugs??[]]).join("_")):void 0,hideDealerDiscount:T,bodyStyles:E?void 0:i,buyOnline:!!F||void 0,prequal:!!A||void 0,...D}}});y.routeName="dealershipSearchRoute"}},e=>{e.O(0,[3337,2374,9968,4120,8481,1950,1613,9673,2278,2156,3974,1334,339,3064,8265,6795,5153,2241,9489,4947,6248,719,4723,1139,8613,6159,2247,3730,3647,3678,6593,636,8792],()=>e(e.s=96956)),_N_E=e.O()}]);
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.