PageSourceSearch

https://www.carsmart.com/_next/static/chunks/8195.6f3e547e6c5f32cb.js

js carsmart.com collected 2026-10-04 10:48:24 UTC 40,100 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8195],{8195:function(n,e,t){t.r(e),t.d(e,{default:function(){return gt}});var i=t(7568),r=t(9815),o=t(414),u=t(7997),c=t(1720),a=t(4924),d=t(6042),l=t(9396),s=t(7297),f=t(9537),h=t(1026),m=t(1686);function p(){var n=(0,s.Z)(["\n    "," {\n        left: -6px;\n        "," {\n            left: -12px;            \n        }\n    }\n"]);return p=function(){return n},n}var g=(0,m.vJ)(p(),f.T,(0,h.Z)("md")),v=t(9455),Z=t(9164);function b(){var n=(0,s.Z)(["\n      background: ",";\n    "]);return b=function(){return n},n}function w(){var n=(0,s.Z)(["\n      background: ",";\n      border-radius: 7px;\n      "," {\n        margin-bottom: 16px;\n      }\n    "]);return w=function(){return n},n}function y(){var n=(0,s.Z)(["\n  ","\n  ","\n"]);return y=function(){return n},n}function x(){var n=(0,s.Z)(["\n      background: #fff;\n      background: ",";\n      svg {\n        fill: ",";\n      }\n    "]);return x=function(){return n},n}function C(){var n=(0,s.Z)(["\n      border: 1px solid #aeaeae;\n      background: ",";\n    "]);return C=function(){return n},n}function I(){var n=(0,s.Z)(["\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  height: ",";\n  -webkit-box-flex: 0;\n  flex: 0 0 20px;\n  min-width: ",";\n  margin: 2px 12px 0 0;\n  border-radius: 5px;\n  transition: all ease 0.2s;\n  ","\n  ","\n"]);return I=function(){return n},n}function k(){var n=(0,s.Z)(["\n  position: absolute;\n  top: 0;\n  left: 0;\n  margin: 0;\n  opacity: 0;\n  visibility: hidden;\n  &:checked {\n    ~ label {\n      svg {\n        opacity: 1;\n        transform: scale(1);\n      }\n    }\n  }\n"]);return k=function(){return n},n}function P(){var n=(0,s.Z)(["\n      width: ",";\n      height: ",";\n    "]);return P=function(){return n},n}function S(){var n=(0,s.Z)(["\n  fill: ",";\n  width: ",";\n  height: ",";\n  opacity: 0;\n  transform: scale(0.5);\n  transition: all ease 0.2s;\n  ","\n  svg {\n    fill: ",";\n  }\n"]);return S=function(){return n},n}function z(){var n=(0,s.Z)(["\n      padding: 8px;\n    "]);return z=function(){return n},n}function E(){var n=(0,s.Z)(["\n      padding: 8px 20px;\n    "]);return E=function(){return n},n}function T(){var n=(0,s.Z)(["\n      padding-top: 13px;\n      padding-bottom: 13px;\n      padding-left: 20px;\n    "]);return T=function(){return n},n}function _(){var n=(0,s.Z)(["\n      padding: 13px 20px;\n    "]);return _=function(){return n},n}function N(){var n=(0,s.Z)(["\n        padding: 10px;\n      "]);return N=function(){return n},n}function A(){var n=(0,s.Z)(["\n        padding: 10px 30px;\n      "]);return A=function(){return n},n}function O(){var n=(0,s.Z)(["\n        padding-top: 20px;\n        padding-bottom: 20px;\n        margin-bottom: 10px;\n        "," {\n          margin-bottom: 8;\n          margin-top: 10px;\n        }\n      "]);return O=function(){return n},n}function L(){var n=(0,s.Z)(["\n        align-items: ",";\n      "]);return L=function(){return n},n}function $(){var n=(0,s.Z)(["\n  cursor: ",";\n  display: flex;\n  flex-basis: 0;\n  flex-grow: 1;\n  max-width: 100%;\n\n  ","\n\n  ","\n  \n  ","\n  ","\n  @media screen and ( min-width: 768px ) {\n    ","\n    ","\n    \n    ","\n    ","\n  }\n"]);return $=function(){return n},n}function D(){var n=(0,s.Z)(["\n  flex-basis: 0;\n  flex-grow: 1;\n  max-width: 100%;\n"]);return D=function(){return n},n}function R(){var n=(0,s.Z)(["\n    font-weight: normal;\n  "]);return R=function(){return n},n}function B(){var n=(0,s.Z)(["\n      font-weight: bold;\n    "]);return B=function(){return n},n}function X(){var n=(0,s.Z)(["\n      font-size: ",";\n      line-height: ",";\n    "]);return X=function(){return n},n}function F(){var n=(0,s.Z)(["\n      color: #0068e6;\n      font-weight: 900 !important;\n    "]);return F=function(){return n},n}function q(){var n=(0,s.Z)(["\n      font-weight: normal;\n    "]);return q=function(){return n},n}function j(){var n=(0,s.Z)(["\n        font-weight: bold;\n      "]);return j=function(){return n},n}function H(){var n=(0,s.Z)(["\n  display: block;\n  color: #4d4d4d;\n  font-size: ",";\n  line-height: ",";\n  font-weight: ",";\n  ","\n  ","\n  ","\n  ","\n  @media screen and ( min-width: 768px ) {\n    font-weight: bold;\n    font-size: ",";\n    line-height: ",";\n    ","\n    ","\n  }\n"]);return H=function(){return n},n}function Y(){var n=(0,s.Z)(["\n      display: none;\n    "]);return Y=function(){return n},n}function M(){var n=(0,s.Z)(["\n  margin-top: 5px;\n  display: block;\n  color: #6b6b6b;\n  font-size: ",";\n  line-height: ",";\n\n  @media screen and (min-width: 768px) {\n    font-size: ",";\n    line-height: ",";\n    ","\n  }\n"]);return M=function(){return n},n}function U(){var n=(0,s.Z)(["\n        display: none;\n      "]);return U=function(){return n},n}function W(){var n=(0,s.Z)(["\n  margin-top: ",";\n  display: block;\n  color: ",";\n  font-size: ",";\n  line-height: ",";\n\n  @media screen and (min-width: 768px) {\n    font-size: ",";\n    line-height: ",";\n    ","\n  }\n"]);return W=function(){return n},n}var Q=m.ZP.div.withConfig({componentId:"sc-5ee086f-0"})(y(),(function(n){return n.all&&(0,m.iv)(b(),(function(n){return n.theme.background.dealers.all}))}),(function(n){return n.$one&&(0,m.iv)(w(),(function(n){return n.theme.background.dealers.one}),(0,h.Z)("md"))})),V=m.ZP.span.withConfig({componentId:"sc-5ee086f-1"})(I(),(function(n){return n.theme.stepTwo.checkIcon.height}),(function(n){return n.theme.stepTwo.checkIcon.height}),(function(n){return n.$one&&(0,m.iv)(x(),(function(n){return n.theme.stepTwo.dealers.bg}),(function(n){return n.theme.background.dealers.check.default}))}),(function(n){return!n.$one&&(0,m.iv)(C(),(function(n){return n.theme.background.dealers.checkbox.default}))})),J=m.ZP.input.withConfig({componentId:"sc-5ee086f-2"})(k()),G=m.ZP.svg.withConfig({componentId:"sc-5ee086f-3"})(S(),(function(n){return n.$one&&n.theme.newLookAndFeel?"".concat(n.theme.stepTwo.dealers.one.fill," !important"):n.theme.background.dealers.check.default}),(function(n){return n.theme.stepTwo.dealerIcon.width}),(function(n){return n.theme.stepTwo.dealerIcon.height}),(function(n){return n.$one&&(0,m.iv)(P(),(function(n){return n.theme.stepTwo.dealers.one.dealerIcon.width}),(function(n){return n.theme.stepTwo.dealers.one.dealerIcon.height}))}),(function(n){return n.$one&&n.theme.newLookAndFeel?"".concat(n.theme.stepTwo.dealers.one.fill," !important"):n.theme.background.dealers.check.default})),K=m.ZP.label.withConfig({componentId:"sc-5ee086f-4"})($(),(function(n){return n.$one?"default":"pointer"}),(function(n){return n.$one&&(0,m.iv)(z())}),(function(n){return!n.$one&&(0,m.iv)(E())}),(function(n){return n.all&&(0,m.iv)(T())}),(function(n){return n.all&&(0,m.iv)(_())}),(function(n){return n.$one&&(0,m.iv)(N())}),(function(n){return!n.$one&&(0,m.iv)(A())}),(function(n){return n.all&&(0,m.iv)(O(),(0,h.Z)("md"))}),(function(n){return n.$one&&(0,m.iv)(L(),n.theme.newLookAndFeel?"flex-start":"center")})),nn=m.ZP.span.withConfig({componentId:"sc-5ee086f-5"})(D()),en=m.ZP.span.withConfig({componentId:"sc-5ee086f-6"})(H(),(function(n){return n.$one?n.theme.font.size.dealers.one.title.xs:n.theme.font.size.dealers.default.title.xs}),(function(n){return n.$one?n.theme.font.lineHeight.dealers.one.title.xs:n.theme.font.lineHeight.dealers.default.title.xs}),(function(n){return n.$one?"normal":"bold"}),(function(n){return(0,m.iv)(R())}),(function(n){return n.all&&(0,m.iv)(B())}),(function(n){return n.all&&(0,m.iv)(X(),(function(n){return n.theme.font.size.dealers.main.title.xs}),(function(n){return n.theme.font.lineHeight.dealers.main.title.xs}))}),(function(n){return n.theme.newLookAndFeel&&n.all&&(0,m.iv)(F())}),(function(n){return n.all?n.theme.font.size.dealers.main.title.md:n.theme.font.size.dealers.default.title.md}),(function(n){return n.all?n.theme.font.lineHeight.dealers.main.title.md:n.theme.font.lineHeight.dealers.default.title.md}),(function(n){return(0,m.iv)(q())}),(function(n){return n.all&&(0,m.iv)(j())})),tn=(m.ZP.span.withConfig({componentId:"sc-5ee086f-7"})(M(),(function(n){return n.$one?n.theme.font.size.dealers.one.subtitle.xs:n.theme.font.size.dealers.default.subtitle.xs}),(function(n){return n.$one?n.theme.font.lineHeight.dealers.one.subtitle.xs:n.theme.font.lineHeight.dealers.default.subtitle.xs}),(function(n){return n.theme.font.size.dealers.default.subtitle.md}),(function(n){return n.theme.font.lineHeight.dealers.default.subtitle.md}),(function(n){return(0,m.iv)(Y())})),m.ZP.span.withConfig({componentId:"sc-5ee086f-8"})(W(),(function(n){return n.theme.stepTwo.dealerAddress.marginTop}),(function(n){return n.theme.colors.dealers.text}),(function(n){return n.$one?n.theme.font.size.dealers.one.subtitle.xs:n.theme.font.size.dealers.default.subtitle.xs}),(function(n){return n.$one?n.theme.font.lineHeight.dealers.one.subtitle.xs:n.theme.font.lineHeight.dealers.default.subtitle.xs}),(function(n){return n.theme.font.size.dealers.default.subtitle.md}),(function(n){return n.theme.font.lineHeight.dealers.default.subtitle.md}),(function(n){return n.all&&(0,m.iv)(U())}))),rn=t(3967),on=function(n){return(0,u.BX)(Q,{$one:n.one,id:"dealer-".concat(n.id),currentSite:(0,v.od)(),all:n.all,children:[(0,u.tZ)(J,{id:n.id,type:"checkbox",checked:n.isChecked,onChange:n.handlerChange,currentSite:(0,v.od)(),"data-tf-element-role":"consent-opted-advertiser-input-".concat(n.index),"data-gtm-form-interact-field-id":n.index}),(0,u.BX)(K,{$one:n.one,htmlFor:n.id,all:n.all,currentSite:(0,v.od)(),children:[(0,u.tZ)(V,{currentSite:(0,v.od)(),children:(0,u.tZ)(G,{children:(0,u.tZ)(Z.Z,{})})}),(0,u.BX)(nn,{children:[(0,u.tZ)(en,{currentSite:(0,v.od)(),all:n.all,"data-tf-element-role":"consent-opted-advertiser-name-".concat(n.index),children:n.name}),void 0!==n.address&&(0,u.BX)(tn,{currentSite:(0,v.od)(),all:n.all,"data-tf-element-role":"consent-opted-advertiser-address-".concat(n.index),children:[n.address,n.city&&", "+n.city,n.state&&", "+n.state]})]})]}),n.cue&&(0,u.tZ)(rn.Z,{dealers:!0})]})};function un(){var n=(0,s.Z)(["\n      margin: 0 -15px;\n    "]);return un=function(){return n},n}function cn(){var n=(0,s.Z)(["\n      "," {\n        margin: 0 -15px;\n        border-radius: 0;\n        border-top: 1px solid rgba(0, 0, 0, 0.1);\n        border-bottom: 1px solid rgba(0, 0, 0, 0.1);\n      }\n      "," {\n        font-weight: bold;\n      }\n    "]);return cn=function(){return n},n}function an(){var n=(0,s.Z)(["\n        margin: 0 -25px;\n      "]);return an=function(){return n},n}function dn(){var n=(0,s.Z)(["\n        "," {\n          margin: 16px -25
1px;\n        }\n      "]);return dn=function(){return n},n}function ln(){var n=(0,s.Z)(["\n  user-select: none;\n  ","\n  margin-bottom: ",";\n  margin-top: ",";\n\n  ","\n\n  @media screen and (min-width: 768px) {\n    ","\n    margin-bottom: ",";\n    ","\n  }\n"]);return ln=function(){return n},n}function sn(){var n=(0,s.Z)(["\n      display: none;\n    "]);return sn=function(){return n},n}function fn(){var n=(0,s.Z)(["\n  color: #e31818;\n  border-bottom: 2px solid #e31818;\n  margin: 0;\n  padding: 0 15px 4px;\n  ","\n  @media screen and (min-width: 768px) {\n    padding: 0 30px 4px;\n  }\n"]);return fn=function(){return n},n}var hn=m.ZP.div.withConfig({componentId:"sc-5130154d-0"})(ln(),(function(n){return!n.$one&&(0,m.iv)(un())}),(function(n){return n.$one?"16px":"8px"}),(function(n){return n.$one?"16px":"8px"}),(function(n){return n.$one&&n.theme.newLookAndFeel&&(0,m.iv)(cn(),Q,en)}),(function(n){return!n.$one&&(0,m.iv)(an())}),(function(n){return n.$one?"0":"15px"}),(function(n){return n.$one&&n.theme.newLookAndFeel&&(0,m.iv)(dn(),Q)})),mn=(m.ZP.p.withConfig({componentId:"sc-5130154d-1"})(fn(),(function(n){return!n.error&&(0,m.iv)(sn())})),function(n){var e,t;return(0,u.BX)(hn,{$one:1===(null===(e=n.items)||void 0===e?void 0:e.length),children:[(null===(t=n.items)||void 0===t?void 0:t.length)>1&&!n.allPreselected&&(0,u.tZ)(on,{all:!0,id:"all-dealers",isChecked:n.allChecked,handlerChange:n.handlerChange,cue:n.cue,name:"Select All Dealers"}),n.items.map((function(e,t){var i,r="".concat(e.id,"-").concat(e.dealerCode);return(0,u.tZ)(on,{index:t+1,one:1===(null===(i=n.items)||void 0===i?void 0:i.length),id:r,isChecked:e.isChecked,handlerChange:n.handlerChange,name:e.name,address:e.address,city:e.city,state:e.state},t)}))]})}),pn=t(8193),gn=t(8099);function vn(){var n=(0,s.Z)(["\n  height: auto;\n  width: 100%;\n  padding: 0 ",";\n"]);return vn=function(){return n},n}function Zn(){var n=(0,s.Z)(["\n  margin: 0;\n  padding: 0;\n  color: #112436;\n  font-size: ",";\n  font-weight: bold;\n  letter-spacing: 0;\n  line-height: ",";\n"]);return Zn=function(){return n},n}function bn(){var n=(0,s.Z)(["\n  display: flex;\n  flex-direction: row;\n  gap: ",";\n"]);return bn=function(){return n},n}function wn(){var n=(0,s.Z)(["\n  height: auto;\n  width: ",";\n  opacity: 0.8;\n  border-radius: ",";\n  background-color: #79828c;\n  display: flex;\n  align-items: center;\n  padding: "," ",";\n  gap: ",";\n  span {\n    color: #ffffff;\n    font-size: ",";\n    font-weight: bold;\n    letter-spacing: ",";\n    line-height: ",";\n  }\n"]);return wn=function(){return n},n}function yn(){var n=(0,s.Z)(["\n  margin: 0;\n  padding: 0;\n  color: #79828c;\n  font-size: ",";\n  font-weight: bold;\n  letter-spacing: ",";\n  line-height: ",";\n"]);return yn=function(){return n},n}function xn(){var n=(0,s.Z)([""]);return xn=function(){return n},n}function Cn(){var n=(0,s.Z)(["\n          opacity: 0.6;\n          pointer-events: none;\n        "]);return Cn=function(){return n},n}function In(){var n=(0,s.Z)(["\n  bottom: 0;\n  height: ",";\n  width: 100%;\n  border-radius: ",";\n  span {\n    color: ",";\n    font-size: ",";\n    font-weight: bold;\n    letter-spacing: 0;\n    line-height: ",";\n    text-align: center;\n  }\n  ",";\n"]);return In=function(){return n},n}function kn(){var n=(0,s.Z)(["\n  font-family: 'Roboto';\n  font-size: ",";\n  font-weight: 400;\n  line-height: ",";\n  letter-spacing: ",";\n  text-align: left;\n  color: #4c4c4c;\n  a {\n    color: #4c4c4c;\n    :active,\n    :hover {\n      color: #05266f;\n    }\n  }\n"]);return kn=function(){return n},n}function Pn(){var n=(0,s.Z)(["\n  width: 100%;\n  height: fit-content;\n  padding: "," 0;\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n  align-items: center;\n  &.tcpa-conquest {\n    "," {\n      br {\n        display: none;\n      }\n      "," {\n        br {\n          display: block;\n        }\n      }\n    }\n  }\n"]);return Pn=function(){return n},n}var Sn=m.ZP.div.withConfig({componentId:"sc-54178431-0"})(vn(),(0,gn.Z)(25)),zn=m.ZP.h1.withConfig({componentId:"sc-54178431-1"})(Zn(),(0,gn.Z)(22),(0,gn.Z)(32)),En=m.ZP.div.withConfig({componentId:"sc-54178431-2"})(bn(),(0,gn.Z)(8)),Tn=m.ZP.div.withConfig({componentId:"sc-54178431-3"})(wn(),(0,gn.Z)(104),(0,gn.Z)(6),(0,gn.Z)(4),(0,gn.Z)(6.85),(0,gn.Z)(4),(0,gn.Z)(12),(0,gn.Z)(.4),(0,gn.Z)(16)),_n=m.ZP.h5.withConfig({componentId:"sc-54178431-4"})(yn(),(0,gn.Z)(14),(0,gn.Z)(.2),(0,gn.Z)(22)),Nn=m.ZP.span.withConfig({componentId:"sc-54178431-5"})(xn()),An=(0,m.ZP)(pn.W).withConfig({componentId:"sc-54178431-6"})(In(),(0,gn.Z)(50),(0,gn.Z)(6),(function(n){return n.theme.colors.button}),(0,gn.Z)(18),(0,gn.Z)(32),(function(n){return n.disabled?(0,m.iv)(Cn()):""})),On=m.ZP.span.withConfig({componentId:"sc-54178431-7"})(kn(),(0,gn.Z)(10),(0,gn.Z)(14),(0,gn.Z)(.08)),Ln=m.ZP.div.withConfig({componentId:"sc-54178431-8"})(Pn(),(0,gn.Z)(20),On,(0,h.Z)("md")),$n=t(966),Dn=t(7698);function Rn(){var n=(0,s.Z)(["\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  background-color: #fff;\n  width: 100%;\n  gap: ",";\n  margin-top: ",";\n"]);return Rn=function(){return n},n}function Bn(){var n=(0,s.Z)(["\n          border: "," solid #dbc263;\n          background-color: #fff9e0;\n        "]);return Bn=function(){return n},n}function Xn(){var n=(0,s.Z)(["\n          border: "," solid #2e83eb;\n          background-color: #e7f2ff;\n        "]);return Xn=function(){return n},n}function Fn(){var n=(0,s.Z)(["\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  box-sizing: border-box;\n  ","\n  border-radius: ",";\n  box-shadow: 0 "," "," "," rgba(0, 0, 0, 0.05);\n"]);return Fn=function(){return n},n}function qn(){var n=(0,s.Z)(["\n  color: #333333;\n  font-size: ",";\n  letter-spacing: ",";\n  line-height: ",";\n  text-align: center;\n  margin: "," ",";\n  padding: 0;\n"]);return qn=function(){return n},n}var jn=m.ZP.div.withConfig({componentId:"sc-88e9d47c-0"})(Rn(),(0,gn.Z)(16),(0,gn.Z)(24)),Hn=m.ZP.div.withConfig({componentId:"sc-88e9d47c-1"})(Fn(),(function(n){return n.error?(0,m.iv)(Bn(),(0,gn.Z)(1)):(0,m.iv)(Xn(),(0,gn.Z)(1))}),(0,gn.Z)(12),(0,gn.Z)(13),(0,gn.Z)(17),(0,gn.Z)(-4)),Yn=m.ZP.p.withConfig({componentId:"sc-88e9d47c-2"})(qn(),(0,gn.Z)(13),(0,gn.Z)(.59),(0,gn.Z)(19),(0,gn.Z)(18),(0,gn.Z)(15)),Mn=function(n){var e=n.loader,t=n.isCompleted,i=n.error,r=n.msgError;return e?(0,u.BX)(jn,{children:[!t||i?(0,u.tZ)(Hn,{error:i,children:(0,u.tZ)(Yn,{children:i?r:"We're reaching out to the dealer to check availability and they can also provide you with additional details about the vehicle."})}):null,(0,u.tZ)($n.Z,{size:Dn.g.LG,isCompleted:t,isError:i,type:i?Dn.E.ERROR:t?Dn.E.COMPLETED:Dn.E.LOAD})]}):null},Un=t(3674),Wn=t(7931),Qn=t(2730),Vn=t(7191),Jn=t(8749),Gn=t(353),Kn=t(782),ne=t(9594),ee=t(5778),te=t(8745),ie=t(1163),re=t(2005),oe=t(7847),ue=function(n){var e,t,r=n.dealers,s=n.vehicle,f=n.usParams,h=n.gclid,m=n.device,p=n.sourceId,v=n.transactionId,Z=n.handlerPostMLD,b=n.setOpen,w=n.preSelectOptions,y=n.model,x=n.from,C=n.sendEvents,I=n.zipCodeInfo,k=(0,Wn.b)(),P=k.state,S=P.newCarLeadAllowed,z=P.selectedStyle,E=P.uSession,T=k.setNewCarLead,_=(k.setSelectedDealers,(0,oe.s)()),N=((0,ie.useRouter)(),null===r||void 0===r?void 0:r.map((function(n){var e,t=n.isPreselectable||(null===w||void 0===w?void 0:w.isAllPreselected);return(0,l.Z)((0,d.Z)({},n),{isChecked:t,id:null!==(e=null===n||void 0===n?void 0:n.dealerID)&&void 0!==e?e:null===n||void 0===n?void 0:n.dealerId})}))),A=(null===(e=N.filter((function(n){return n.isChecked})))||void 0===e?void 0:e.length)||0,O=(0,c.useState)(!A),L=O[0],$=O[1],D=(0,c.useState)(N),R=D[0],B=D[1],X=(0,c.useState)(A===(null===N||void 0===N?void 0:N.length)),F=X[0],q=X[1],j=(0,c.useState)(!1),H=j[0],Y=j[1],M=(0,c.useState)(""),U=M[0],W=M[1],Q=(0,c.useState)(!1),V=Q[0],J=Q[1],G=(0,c.useState)(!0),K=G[0],nn=G[1],en=(0,re.il)(),tn=function(){var n=(0,i.Z)((function(n){var e,t,i,r,u,c,a,d,l;return(0,o.__generator)(this,(function(o){switch(o.label){case 0:return n.preventDefault(),J(!0),nn(!1),[4,(0,Gn.ix)({clientRequest:!0})];case 1:return t=o.sent(),[4,(0,te.p)()];case 2:return i=o.sent(),r=t.find((function(n){var e,t;return(null===(e=n.name)||void 0===e?void 0:e.toUpperCase())===(null===(t=s.make)||void 0===t?void 0:t.toUpperCase())})),u=R.filter((function(n){return n.isChecked})),c={customer:{firstName:en.firstName,lastName:en.lastName,zip:en.zipcode,phone:en.p
1honeNumber,email:en.email,address:(null===w||void 0===w?void 0:w.isAddressRequired)?en.address:"",city:en.city,state:en.state},dealers:u,vehicle:{make:null===r||void 0===r?void 0:r.name,makeId:null===r||void 0===r?void 0:r.id,model:null===y||void 0===y?void 0:y.name,modelId:null===y||void 0===y?void 0:y.id,year:"top-ten"!==x?s.pingYear:s.year,comments:(null===y||void 0===y?void 0:y.displayStyle)?null===z||void 0===z?void 0:z.name:""},device:m,zipCode:null===I||void 0===I?void 0:I.zip,sourceId:p,gclid:h,usParams:f,transactionId:v,TFcertIDMain:i,uSession:E,siteuri:window.location.href},[4,(0,Jn.b)(c)];case 3:return a=o.sent(),!(null===(e=a.errors)||void 0===e?void 0:e.length)&&a.accepted?(nn(!0),T({makeId:null===r||void 0===r?void 0:r.id,makeName:(null===r||void 0===r?void 0:r.name)||"",name:(null===y||void 0===y?void 0:y.name)||"",seoName:null===y||void 0===y?void 0:y.seoName,year:"top-ten"!==x?s.pingYear:s.year,msrp:s.msrp,mediumPng:null!==(d=s.imageurlPng)&&void 0!==d?d:""})):(W(null===(l=a.errors[0])||void 0===l?void 0:l.message),Y(!0)),"conquest"===x?(_(Kn.w.CONQUEST_LEAD_CONVERSION),(0,ne.LQ)({event:ee.D.TYP_CONQUEST_LEAD_SENT,make:null===r||void 0===r?void 0:r.name,makeId:null===r||void 0===r?void 0:r.id,model:null===y||void 0===y?void 0:y.name,modelId:null===y||void 0===y?void 0:y.id,year:s.pingYear,source_id:p})):"top-ten"===x&&(_(Kn.w.TOP10_LEAD_CONVERSION),(0,ne.LQ)({event:ee.D.TYP_TOP_10_LEAD_SENT,make:null===r||void 0===r?void 0:r.name,makeId:null===r||void 0===r?void 0:r.id,model:null===y||void 0===y?void 0:y.name,modelId:null===y||void 0===y?void 0:y.id,year:s.year,source_id:p})),Z&&Z(s),setTimeout((function(){J(!1),nn(!1),Y(!1),b()}),2e3),[2]}}))}));return function(e){return n.apply(this,arguments)}}();return(0,c.useEffect)((function(){C()}),[]),(0,u.BX)(Sn,{children:[(0,u.tZ)(g,{currentSite:""}),(0,u.BX)(Qn.Z,{formId:"form-dealers-select-".concat(x),offer:!0,children:[(0,u.tZ)(zn,{children:R.length>1?"Choose from these dealers":"We Found A Matching Dealer!"}),(0,u.BX)(En,{children:[1===R.length&&(0,u.BX)(Tn,{children:[(0,u.tZ)(Un.Z,{}),(0,u.tZ)(Nn,{children:"100% Match!"})]}),(0,u.tZ)(_n,{children:R.length>1?"Compare prices from multiple dealers":"Don't miss out on a chance to save."})]}),V?null:(0,u.tZ)(mn,{items:R,cue:L,allChecked:F,handlerChange:function(n){var e=n.target.id,t=n.target.checked,i=[];"all-dealers"===e?(q(t),i=R.map((function(n){return(0,l.Z)((0,d.Z)({},n),{isChecked:t})}))):(i=R.map((function(n){return"".concat(n.id,"-").concat(n.dealerCode)===e?(0,l.Z)((0,d.Z)({},n),{isChecked:t}):n})),q(i.every((function(n){return n.isChecked}))));var r=i.filter((function(n){return n.isChecked}));B(i),Y(!1),$(0===(null===r||void 0===r?void 0:r.length))},allPreselected:(null===w||void 0===w?void 0:w.isAllPreselected)||A===(null===N||void 0===N?void 0:N.length)}),V?null:(0,u.tZ)(An,(t={id:"submit-form-btn",disabled:L||!S,onClick:tn},(0,a.Z)(t,"data-tf-element-role","submit"),(0,a.Z)(t,"type","submit"),(0,a.Z)(t,"children",(0,u.tZ)(Nn,{children:"Get Pricing"})),t)),(0,u.tZ)(Mn,{loader:V,isCompleted:K,error:H,msgError:U}),(0,u.tZ)(Ln,{className:"tcpa-conquest",children:(0,u.tZ)(On,{children:(0,u.tZ)(Vn.Z,{idText:"conquest"===x?"conquest-modal":"top10-modal"})})})]})]})},ce=t(8679),ae=t(969);function de(){var n=(0,s.Z)([""]);return de=function(){return n},n}function le(){var n=(0,s.Z)(["\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n  align-items: center;\n  width: 100%;\n  margin-bottom: ",";\n  background-color: #f4f4f4;\n  border-radius: "," "," 0 0;\n  "," {\n    margin-bottom: ",";\n    background-color: #ffffff;\n  }\n"]);return le=function(){return n},n}function se(){var n=(0,s.Z)(["\n          background-color: #ffffff;\n          "," {\n            background-color: #f4f4f4;\n          }\n        "]);return se=function(){return n},n}function fe(){var n=(0,s.Z)(["\n          background: url(/typ/1.1/conquest/background-1.jpg) no-repeat;\n          background-size: cover;\n        "]);return fe=function(){return n},n}function he(){var n=(0,s.Z)(["\n  width: 100%;\n  height: ",";\n  border-radius: "," "," 0 0;\n  ","\n"]);return he=function(){return n},n}function me(){var n=(0,s.Z)(["\n  width: 100%;\n  margin-top: ",";\n  min-height: ",";\n  display: flex;\n  flex-direction: row;\n  align-items: center;\n  justify-content: center;\n  gap: ",";\n"]);return me=function(){return n},n}function pe(){var n=(0,s.Z)(["\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  position: absolute;\n  top: ",";\n  left: ",";\n  height: ",";\n  width: ",";\n  border-radius: ",";\n  background-color: #e6f2ff;\n  box-shadow: 0 "," "," 0 rgba(0, 0, 0, 0.1);\n  span {\n    color: #0068e6;\n    font-size: ",";\n    font-weight: bold;\n    letter-spacing: 0;\n    line-height: ",";\n    text-align: center;\n  }\n"]);return pe=function(){return n},n}function ge(){var n=(0,s.Z)(["\n  cursor: pointer;\n  position: absolute;\n  top: ",";\n  right: ",";\n  display: flex;\n  align-items: center;
1\n  color: #9ba0a8;\n  font-size: ",";\n  letter-spacing: ",";\n  line-height: ",";\n  text-align: right;\n  svg {\n    width: ",";\n    height: ",";\n    margin-left: ",";\n  }\n  svg > path {\n    fill: #9ba0a8;\n  }\n"]);return ge=function(){return n},n}function ve(){var n=(0,s.Z)(["\n  margin: 0;\n  padding: 0;\n  color: #112436;\n  font-size: ",";\n  font-weight: bold;\n  letter-spacing: 0;\n  line-height: ",";\n  "," {\n    width: 100%;\n  }\n"]);return ve=function(){return n},n}function Ze(){var n=(0,s.Z)(["\n  margin: 0;\n  padding: 0;\n  color: #79828c;\n  font-size: ",";\n  letter-spacing: ",";\n  "," {\n    width: 100%;\n  }\n"]);return Ze=function(){return n},n}function be(){var n=(0,s.Z)(["\n  position: absolute;\n  right: ",";\n  display: flex;\n  flex-direction: column;\n  align-items: end;\n  span {\n    color: #9ba1a9;\n    font-size: ",";\n    letter-spacing: 0;\n    line-height: ",";\n  }\n"]);return be=function(){return n},n}function we(){var n=(0,s.Z)(["\n  position: absolute;\n  left: ",";\n  display: flex;\n  flex-direction: column;\n  align-items: flex-start;\n  width: calc(100% - ",");\n"]);return we=function(){return n},n}function ye(){var n=(0,s.Z)(["\n  margin: 0;\n  padding: 0;\n  color: #08aa6f;\n  font-size: ",";\n  font-weight: bold;\n  letter-spacing: 0;\n  line-height: ",";\n  text-align: right;\n"]);return ye=function(){return n},n}function xe(){var n=(0,s.Z)(["\n  display: none;\n  position: absolute;\n  box-sizing: border-box;\n  height: ",";\n  width: calc(100% - ",");\n  border: "," solid rgba(0, 0, 0, 0.06);\n  "," {\n    bottom: 0;\n    margin: "," 0;\n    display: block;\n  }\n"]);return xe=function(){return n},n}function Ce(){var n=(0,s.Z)(["\n          background: url(",") no-repeat;\n          background-size: contain;\n        "]);return Ce=function(){return n},n}function Ie(){var n=(0,s.Z)(["\n          background-color: #f4f4f4;\n        "]);return Ie=function(){return n},n}function ke(){var n=(0,s.Z)(["\n  position: absolute;\n  top: ",";\n  height: ",";\n  width: ",";\n  ","\n"]);return ke=function(){return n},n}var Pe=m.ZP.span.withConfig({componentId:"sc-999b1cf7-0"})(de()),Se=m.ZP.div.withConfig({componentId:"sc-999b1cf7-1"})(le(),(0,gn.Z)(16),(0,gn.Z)(12),(0,gn.Z)(12),(0,h.Z)("sm"),(0,gn.Z)(8)),ze=m.ZP.div.withConfig({componentId:"sc-999b1cf7-2"})(he(),(0,gn.Z)(116),(0,gn.Z)(12),(0,gn.Z)(12),(function(n){return n.noTopImage?(0,m.iv)(se(),(0,h.Z)("sm")):(0,m.iv)(fe())})),Ee=m.ZP.div.withConfig({componentId:"sc-999b1cf7-3"})(me(),(0,gn.Z)(44),(0,gn.Z)(76),(0,gn.Z)(8)),Te=m.ZP.div.withConfig({componentId:"sc-999b1cf7-4"})(pe(),(0,gn.Z)(13),(0,gn.Z)(19),(0,gn.Z)(24.08),(0,gn.Z)(44.92),(0,gn.Z)(4),(0,gn.Z)(2),(0,gn.Z)(4),(0,gn.Z)(12),(0,gn.Z)(22)),_e=m.ZP.span.withConfig({componentId:"sc-999b1cf7-5"})(ge(),(0,gn.Z)(13),(0,gn.Z)(13.1),(0,gn.Z)(10),(0,gn.Z)(.5),(0,gn.Z)(22),(0,gn.Z)(10),(0,gn.Z)(10),(0,gn.Z)(5)),Ne=m.ZP.span.withConfig({componentId:"sc-999b1cf7-6"})(ve(),(0,gn.Z)(16),(0,gn.Z)(21),(0,h.Z)("md")),Ae=m.ZP.span.withConfig({componentId:"sc-999b1cf7-7"})(Ze(),(0,gn.Z)(12),(0,gn.Z)(.15),(0,h.Z)("md")),Oe=m.ZP.div.withConfig({componentId:"sc-999b1cf7-8"})(be(),(0,gn.Z)(25),(0,gn.Z)(12),(0,gn.Z)(20)),Le=m.ZP.div.withConfig({componentId:"sc-999b1cf7-9"})(we(),(0,gn.Z)(25),(0,gn.Z)(124)),$e=m.ZP.h6.withConfig({componentId:"sc-999b1cf7-10"})(ye(),(0,gn.Z)(18),(0,gn.Z)(24)),De=m.ZP.hr.withConfig({componentId:"sc-999b1cf7-11"})(xe(),(0,gn.Z)(1),(0,gn.Z)(50),(0,gn.Z)(1),(0,h.Z)("sm"),(0,gn.Z)(4)),Re=m.ZP.div.withConfig({componentId:"sc-999b1cf7-12"})(ke(),(0,gn.Z)(57),(0,gn.Z)(126.5),(0,gn.Z)(168.66),(function(n){var e=n.imageurlPng;return e?(0,m.iv)(Ce(),e):(0,m.iv)(Ie())})),Be=function(n){var e=n.close,t=n.vehicle,i=n.noTopImage,r=n.device,o=n.from,c=(0,Wn.b)().state.selectedStyle,a="".concat(r.toLocaleLowerCase()!==ae._.deviceType.desktop?t.year:"New"," ").concat(null===t||void 0===t?void 0:t.make," ").concat(null===t||void 0===t?void 0:t.model),d="".concat(null===t||void 0===t?void 0:t.make," ").concat(null===t||void 0===t?void 0:t.model),l=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",maximumFractionDigits:0,minimumFractionDigits:0}).format(null===t||void 0===t?void 0:t.msrp);return(0,u.BX)(Se,{children:[(0,u.BX)(ze,{noTopImage:i,children:[(0,u.tZ)(Te,{children:(0,u.tZ)(Pe,{children:"NEW"})}),(0,u.BX)(_e,{onClick:e,children:["Close ",(0,u.tZ)(ce.Z,{})]})]}),(0,u.tZ)(Re,{imageurlPng:null===t||void 0===t?void 0:t.imageurlPng}),(0,u.BX)(Ee,{children:[(0,u.BX)(Le,{children:[(0,u.tZ)(Ne,{children:"top-ten"!==o?a:d}),(null===c||void 0===c?void 0:c.name)?(0,u.tZ)(Ae,{children:c.name}):null]}),(0,u.BX)(Oe,{children:[(0,u.tZ)(Pe,{children:"Starting at"}),(0,u.tZ)($e,{children:l})]}),(0,u.tZ)(De,{})]})]})};function Xe(){var n=(0,s.Z)(["\n  top: 0;\n  right: 0;\n  bottom: 0;\n  left: 0;\n  z-index: 100;\n  width: 100%;\n  height: 100%;\n  position: fixed;\n  background-color: rgba(255, 255, 255, 0.71);\n  visibility: ",";\n  overflow: hidden;\n  display: flex;\n  align-items: end;\n  "," {\n    justify-content: center;
1\n    align-items: center;\n  }\n"]);return Xe=function(){return n},n}function Fe(){var n=(0,s.Z)(["\n  width: 100%;\n  max-height: 100%;\n  overflow-y: auto;\n  overflow-x: hidden;\n  border-radius: "," "," 0 0;\n  "," {\n    height: fit-content;\n    width: fit-content;\n    overflow: hidden;\n    border-radius: ",";\n    padding: 48px;\n  }\n"]);return Fe=function(){return n},n}function qe(){var n=(0,s.Z)(["\n  bottom: 0;\n  border-radius: "," "," 0 0;\n  width: 100%;\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n  align-items: center;\n  z-index: 101;\n  box-sizing: border-box;\n  border: "," solid rgba(0, 0, 0, 0.11);\n  background-color: #ffffff;\n  box-shadow: 0 "," "," "," rgba(0, 0, 0, 0.3);\n  padding-bottom: ",";\n  "," {\n    position: absolute;\n    position: relative;\n    border-radius: ",";\n    width: ",";\n    padding-bottom: 0;\n  }\n"]);return qe=function(){return n},n}function je(){var n=(0,s.Z)(["\n  width: 100%;\n  padding: "," "," "," ",";\n"]);return je=function(){return n},n}var He=m.ZP.div.withConfig({componentId:"sc-93ffbabf-0"})(Xe(),(function(n){return n.open?"visible":"hidden"}),(0,h.Z)("sm")),Ye=m.ZP.div.withConfig({componentId:"sc-93ffbabf-1"})(Fe(),(0,gn.Z)(12),(0,gn.Z)(12),(0,h.Z)("sm"),(0,gn.Z)(12)),Me=m.ZP.div.withConfig({componentId:"sc-93ffbabf-2"})(qe(),(0,gn.Z)(12),(0,gn.Z)(12),(0,gn.Z)(1),(0,gn.Z)(17),(0,gn.Z)(36),(0,gn.Z)(-4),(0,gn.Z)(24),(0,h.Z)("sm"),(0,gn.Z)(12),(0,gn.Z)(479)),Ue=m.ZP.div.withConfig({componentId:"sc-93ffbabf-3"})(je(),(0,gn.Z)(16),(0,gn.Z)(25),(0,gn.Z)(24),(0,gn.Z)(25)),We=t(8166),Qe=t(9877);function Ve(){var n=(0,s.Z)(["\n  height: auto;\n  width: 100%;\n  padding: 0 ",";\n  "," {\n    height: ",";\n    "," {\n      height: ",";\n    }\n  }\n"]);return Ve=function(){return n},n}function Je(){var n=(0,s.Z)([""]);return Je=function(){return n},n}function Ge(){var n=(0,s.Z)(["\n  margin: 0;\n  padding: 0;\n  color: #112436;\n  font-size: ",";\n  font-weight: bold;\n  letter-spacing: 0;\n  line-height: ",";\n"]);return Ge=function(){return n},n}function Ke(){var n=(0,s.Z)(["\n  margin: 0;\n  padding: 0;\n  color: #79828c;\n  font-size: 14px;\n  font-weight: bold;\n  letter-spacing: 0.2px;\n  line-height: 22px;\n"]);return Ke=function(){return n},n}function nt(){var n=(0,s.Z)(["\n          opacity: 0.6;\n          pointer-events: none;\n        "]);return nt=function(){return n},n}function et(){var n=(0,s.Z)(["\n  bottom: 0;\n  height: ",";\n  width: 100%;\n  border-radius: ",";\n  margin-bottom: ",";\n  span {\n    color: ",";\n    font-size: ",";\n    font-weight: bold;\n    letter-spacing: 0;\n    line-height: ",";\n    text-align: center;\n  }\n  ",";\n"]);return et=function(){return n},n}var tt=m.ZP.div.withConfig({componentId:"sc-a9bfca08-0"})(Ve(),(0,gn.Z)(25),Qe.xN,(0,gn.Z)(68),(0,h.Z)("md"),(0,gn.Z)(108)),it=m.ZP.span.withConfig({componentId:"sc-a9bfca08-1"})(Je()),rt=m.ZP.p.withConfig({componentId:"sc-a9bfca08-2"})(Ge(),(0,gn.Z)(22),(0,gn.Z)(32)),ot=m.ZP.p.withConfig({componentId:"sc-a9bfca08-3"})(Ke()),ut=(0,m.ZP)(pn.W).withConfig({componentId:"sc-a9bfca08-4"})(et(),(0,gn.Z)(50),(0,gn.Z)(6),(0,gn.Z)(24),(function(n){return n.theme.colors.button}),(0,gn.Z)(18),(0,gn.Z)(32),(function(n){return n.disabled?(0,m.iv)(nt()):""})),ct=t(985),at=t(9824),dt=function(n){var e=n.styles,t=n.cue,r=n.handleCue,c=(0,Wn.b)().setSelectedStyle,a=function(){var n=(0,i.Z)((function(n){var t,i;return(0,o.__generator)(this,(function(o){return t=n.target.value,(i=e.find((function(n){return n.seoName===t})))?(r(""),(0,at.Z)("selected-style",i),c(i)):(r("style"),(0,at.Z)("selected-style",{}),c({})),[2]}))}));return function(e){return n.apply(this,arguments)}}();return(0,u.tZ)(ct.Z,{id:"style",initialValue:"",name:"style",label:"Style",cue:"style"===t,error:!1,message:"Select a",options:e,handlerChange:a})},lt=t(1749),st=t(6877),ft=function(n){var e=n.zipCodeInfo,t=n.address,r=n.onChange,a=n.cue,s=(0,c.useState)(""),f=s[0],h=s[1],m=(0,c.useState)([]),p=m[0],g=m[1],v=(0,c.useState)({show:!1,lastValue:""}),Z=v[0],b=v[1],w=[];w.address={field:"address",value:"",status:"empty"};var y=(0,c.useReducer)((function(n,e){var t=n[e.payload.field];switch(e.type){case"setEmpty":return Object.assign(t,{status:"empty",value:""}),(0,d.Z)({},n);case"setSuccess":return Object.assign(t,{status:"success",value:e.payload.value}),(0,d.Z)({},n);case"setError":return Object.assign(t,{status:"error",value:e.payload.value}),(0,d.Z)({},n);default:return n}}),w),x=y[0],C=y[1],I=function(){var n=(0,i.Z)((function(n){var t,i,u,c,a;return(0,o.__generator)(this,(function(o){switch(o.label){case 0:return t=n.target.value,i=n.target.id,u=e.zip,c=t,r(t),0===(null===t||void 0===t?void 0:t.length)||t.startsWith(" ")?[3,2]:(C({type:"setSuccess",payload:{field:i,value:t}}),[4,(0,Gn.u9)(u,c)]);case 1:return a=o.sent(),g(null!==a.suggestions?a.suggestions:[]),b((0,l.Z)((0,d.Z)({},Z),{show:!0})),[3,3];case 2:b((0,l.Z)((0,d.Z)({},Z),{show:!1})),g([]),C({type:"setEmpty",payload:{field:i,value:t}}),o.label=3;case 3:return[2]}}
1))}));return function(e){return n.apply(this,arguments)}}();return(0,c.useEffect)((function(){t&&(r(t||""),C({type:"setSuccess",payload:{field:"address",value:t}}))}),[]),(0,u.BX)(u.HY,{children:[(0,u.tZ)(lt.Z,{id:"address",type:"text",name:"address",label:"Address",cue:"address"===a,error:"address"===f,success:"success"===x.address.status,dynamicValue:t,message:"Enter a",autocomplete:"off",city:(null===e||void 0===e?void 0:e.zip)&&"".concat(e.city,", ").concat(e.state," ").concat(e.zip),handlerBlur:function(n){return function(n,e,i){var r=n.target.value.trim();h(""),i(r),(null===r||void 0===r?void 0:r.length)>0&&!r.startsWith(" ")?(setTimeout((function(){b((0,l.Z)((0,d.Z)({},Z),{show:!1}))}),200),C({type:"setSuccess",payload:{field:e,value:t}})):C({type:"setEmpty",payload:{field:e,value:""}})}(n,"address",r)},handlerChange:I,handlerFocus:function(){return h("")},placeholder:"e.g. Street Address 1256",dataTfElementRole:"consent-grantor-address"}),(0,u.tZ)(st.Z,{items:p,value:t,handlerClick:function(n,e){b({show:!1,lastValue:e}),r(e)},show:Z.show&&Z.lastValue!==t&&(null===p||void 0===p?void 0:p.length)>0})]})},ht=function(n){var e=n.styles,t=n.handleSelectedStyle,i=n.make,r=n.isAddressRequired,o=n.handleAddress,a=n.zipCodeInfo,s=(0,Wn.b)().state.selectedStyle,f=(0,re.il)(),h=r&&(null===e||void 0===e?void 0:e.length),m=(0,c.useState)(r?"address":"style"),p=m[0],g=m[1],v=(0,c.useState)(f.address),Z=v[0],b=v[1],w=h?"Let\u2019s find deals near you!":r?"Confirm your location":"";return(0,u.BX)(tt,{selected:"style"!==p,children:[w?(0,u.tZ)(rt,{children:w}):(0,u.BX)(rt,{children:["Choose your favorite trim style ",(0,u.tZ)("br",{})," ","for your ".concat(i)]}),r?(0,u.BX)(Qn.Z,{formId:"form-confirm-location",children:[h?(0,u.tZ)(ot,{children:"Confirm your location"}):null,(0,u.tZ)(ft,{zipCodeInfo:a,address:Z,onChange:function(n){b(n),""!==n?h&&!s.name?g("style"):g(""):g("address")},cue:p})]}):null,(null===e||void 0===e?void 0:e.length)?(0,u.BX)(u.HY,{children:[h?(0,u.tZ)(ot,{children:"Choose a trim style"}):null,(0,u.tZ)(dt,{styles:e,cue:p,handleCue:function(n){return g(n)}})]}):null,(0,u.tZ)(ut,{disabled:"style"===p||"address"===p,onClick:function(){o(Z),(0,re.Yb)((0,l.Z)((0,d.Z)({},f),{address:Z})),t(s)},children:(0,u.tZ)(it,{children:"Continue"})})]})},mt=t(8838),pt=t(1069),gt=function(n){var e=n.open,t=n.setOpen,a=n.dealers,d=n.vehicle,l=n.usParams,s=n.gclid,f=n.device,h=n.sourceId,m=n.transactionId,p=n.handlerPostMLD,g=n.noTopImage,v=n.preSelectOptions,Z=n.from,b=n.zipCodeInfo,w=n.phone,y=(0,c.useState)([]),x=y[0],C=y[1],I=(0,c.useState)(!0),k=I[0],P=I[1],S=(0,c.useState)(),z=S[0],E=S[1],T=(0,c.useState)(""),_=T[0],N=T[1],A=(0,c.useState)(""),O=A[0],L=A[1],$=(0,c.useState)(),D=$[0],R=$[1],B=(0,c.useState)([]),X=B[0],F=B[1],q=(0,Wn.b)().setSelectedStyle,j=(0,pt.Z)(),H=j.enabled,Y=j.disabled,M=(0,oe.s)(),U=function(n){return n.trim().toLowerCase().replaceAll(" ","-")},W=function(){H(),t()},Q=function(){var n=(0,i.Z)((function(){var n,e,t;return(0,o.__generator)(this,(function(i){switch(i.label){case 0:return E(d),C([]),[4,(0,Gn.tA)(U(d.make),U(d.model),"".concat(d.year))];case 1:return(n=i.sent())&&R(n),n?[3,3]:[4,(0,Gn.yt)({make:U(d.make),clientRequest:!0})];case 2:e=i.sent(),t=e.find((function(n){return n.name===d.model})),t&&R(t),i.label=3;case 3:return[2]}}
1))}));return function(){return n.apply(this,arguments)}}(),V=function(){var n=(0,i.Z)((function(){var n;return(0,o.__generator)(this,(function(e){switch(e.label){case 0:return[4,(0,We.W)(U(d.make),U(d.model),"top-ten"!==Z?d.pingYear:d.year,!0)];case 1:return n=e.sent(),C(n),P(!1),[2]}}))}));return function(){return n.apply(this,arguments)}}(),J=function(){q({}),(0,at.Z)("selected-style",{}),N(""),L("")};return(0,c.useEffect)((function(){D&&(null===D||void 0===D?void 0:D.displayStyle)?V():(J(),P(!1))}),[D]),(0,c.useEffect)((function(){var n=JSON.stringify(d)===JSON.stringify(z);n&&P(!1),e&&!n&&(Q(),"conquest"===Z?M(Kn.w.CONQUEST_CLICK):"top-ten"===Z&&M(Kn.w.TOP10_CLICK)),e||(J(),P(!0))}),[d,e]),(0,c.useEffect)((function(){e?Y():H()}),[e]),e?(0,u.tZ)(He,{open:e,children:(0,u.tZ)(Ye,{children:(0,u.BX)(Me,{children:[(0,u.tZ)(Be,{close:W,vehicle:d,noTopImage:g,device:f,from:Z}),k?(0,u.tZ)(Ue,{children:(0,u.tZ)(mt.Z,{offset:0,height:53,bg:"#FFF",delay:1.34})}):D&&(null===D||void 0===D?void 0:D.displayStyle)&&(null===x||void 0===x?void 0:x.length)&&!_||(null===v||void 0===v?void 0:v.isAddressRequired)&&!O?(0,u.tZ)(ht,{styles:x,handleSelectedStyle:function(n){N(n.name)},make:d.make,isAddressRequired:null===v||void 0===v?void 0:v.isAddressRequired,handleAddress:function(n){return L(n)},zipCodeInfo:b}):(0,u.tZ)(ue,{dealers:a,vehicle:d,usParams:l,gclid:s,device:f,sourceId:h,transactionId:m,handlerPostMLD:p,setOpen:W,preSelectOptions:v,model:D,from:Z,sendEvents:function(){var n="".concat(Z,"-").concat(null===d||void 0===d?void 0:d.make,"-").concat(null===d||void 0===d?void 0:d.model);X.includes(n)||(F((0,r.Z)(X).concat([n])),"conquest"===Z?((0,ne.hR)(ee.D.TYP_CONQUEST_DEALER_IMPRESSION),M(Kn.w.CONQUEST_DEALER_IMPRESSION)):"top-ten"===Z&&((0,ne.hR)(ee.D.TYP_TOP_10_DEALER_IMPRESSION),M(Kn.w.TOP10_DEALER_IMPRESSION)))},zipCodeInfo:b,phone:w})]})})}):null}},1069:function(n,e,t){var i=t(1720);e.Z=function(){var n=(0,i.useState)(0),e=n[0],t=n[1];return{yPosition:e,disabled:function(){if(window&&document){var n=null===window||void 0===window?void 0:window.scrollY;t(n),document.body.style.position="fixed",document.body.style.top="-".concat(n,"px"),document.body.style.width="100%"}},enabled:function(){window&&document&&(document.body.style.position="",document.body.style.top="",window.scrollTo(0,e))},toTop:function(){t(0),window&&document&&(document.body.style.position="",document.body.style.top="",window.scrollTo(0,0))}}}}}]);

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.