PageSourceSearch

https://www.eastcoastcars.net/static/ws/site-text-search/bundle.d42987b741a7015f2d94ce4234fad7d0.js

js eastcoastcars.net collected 2026-09-24 12:19:42 UTC 91,092 bytes, 2 lines download raw bytes

1(()=>{var e,t,s={973(e,t,s){e.exports={...s(174)}},331(e,t,s){e.exports={...s(335)}},288(e,t,s){e.exports={...s(742)}},158(e,t,s){"use strict";s.d(t,{A:()=>n});const n={widgetData:(e={},{type:t,payload:s})=>"SET_WIDGET_DATA"===t?s:e}},606(e){var t,s,n=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function l(e){if(t===setTimeout)return setTimeout(e,0);if((t===a||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(s){try{return t.call(null,e,0)}catch(s){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:a}catch(e){t=a}try{s="function"==typeof clearTimeout?clearTimeout:r}catch(e){s=r}}();var o,i=[],c=!1,d=-1;function u(){c&&o&&(c=!1,o.length?i=o.concat(i):d=-1,i.length&&m())}function m(){if(!c){var e=l(u);c=!0;for(var t=i.length;t;){for(o=i,i=[];++d<t;)o&&o[d].run();d=-1,t=i.length}o=null,c=!1,function(e){if(s===clearTimeout)return clearTimeout(e);if((s===r||!s)&&clearTimeout)return s=clearTimeout,clearTimeout(e);try{return s(e)}catch(t){try{return s.call(null,e)}catch(t){return s.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function p(){}n.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var s=1;s<arguments.length;s++)t[s-1]=arguments[s];i.push(new h(e,t)),1!==i.length||c||l(m)},h.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=p,n.addListener=p,n.once=p,n.off=p,n.removeListener=p,n.removeAllListeners=p,n.emit=p,n.prependListener=p,n.prependOnceListener=p,n.listeners=function(e){return[]},n.binding=function(e){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},743(e){e.exports={isNode:!1,isBrowser:!0,enforceServerSide:()=>{throw new Error("You are attempting to use code in the browser that has been designated server-side only. Such activity is known by the state of California to lead to usage of the dark side of the Force.")}}},335(e,t,s){e.exports=s(743)},742(e,t,s){const{log:n}=s(437);e.exports={fatal:(e,t=null)=>{n("FATAL",e,t)},error:(e,t=null)=>{n("ERROR",e,t)},warn:(e,t=null)=>{n("WARN",e,t)},info:(e,t=null)=>{n("INFO",e,t)},debug:(e,t=null)=>{n("DEBUG",e,t)},trace:(e,t=null)=>{n("TRACE",e,t)}}},437(e,t,s){const{levels:n,colors:a,logLevel:r,stderrLevels:l}=s(812);n[r];e.exports={log:(e,t,s)=>{false}}},812(e,t,s){const n=s(606).env.LOG_LEVEL||"INFO",a={FATAL:0,ERROR:1,WARN:2,INFO:3,DEBUG:4,TRACE:5},r=new Set;Object.keys(a).forEach(e=>{a[e]<a.INFO&&r.add(e)});e.exports={levels:a,logLevel:n,stderrLevels:r,colors:{FATAL:"red bold",ERROR:"red",WARN:"yellow",INFO:"green",DEBUG:"cyan",TRACE:"blue"}}},706(e,t,s){!function(e,t,s){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=n(t),r=n(s);class l extends a.default.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){const{newRelicPageAction:s,errorHandler:n}=this.props;s&&function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;"undefined"!=typeof window&&window.newrelic&&"object"==typeof window.newrelic&&window.newrelic.addPageAction(e,t)}(s,{error:e,componentStack:t.componentStack}),n&&n(e,t)}render(){const{hasError:e}=this.state,{errorMarkup:t,children:s}=this.props;return e?t:s}}l.propTypes={children:r.default.oneOfType([r.default.node,r.default.arrayOf(r.default.node)]).isRequired,newRelicPageAction:r.default.string,errorHandler:r.default.func,errorMarkup:r.default.node},l.defaultProps={newRelicPageAction:"",errorHandler:null,errorMarkup:null},l.displayName="ErrorBoundary",function(e){if(!e||"undefined"==typeof window)return;const t=document.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e,document.head.appendChild(t)}("@keyframes twinkle {\n  0%, 100% {\n    opacity: 1;\n  }\n  50% {\n    opacity: 0.3;\n  }\n}\n@keyframes twinkle-main {\n  0%, 100% {\n    opacity: 1;\n  }\n  75% {\n    opacity: 0.5;\n  }\n}\n.wsm-ai-loader #linearSparkleAnimationSparkle,\n.wsm-ai-loader #linearSparkleAnimationSparkleTwo {\n  --gradient-primary: var(--input-decoration-color);\n  --gradient-secondary: color-mix(in srgb, var(--input-decoration-color) 90%, black 10%);\n}\n.wsm-ai-loader .gradient-stop-1 {\n  stop-color: var(--input-decoration-color, #007bff);\n}\n.wsm-ai-loader .gradient-stop-2 {\n  stop-color: color-mix(in srgb, var(--input-decoration-color, #007bff) 90%, black 10%);\n}\n.wsm-ai-loader .gradient-fill-sparkle {\n  fill: url(#linearSparkleAnimationSparkle);\n}\n.wsm-ai-loader .gradient-fill-sparkle-two {\n  fill: url(#linearSparkleAnimationSparkleTwo);\n}\n.wsm-ai-loader .gradient-fill {\n  fill: url(#linearSparkleAnimation);\n}\n.wsm-ai-loader .solid-fill {\n  fill: var(--input-decoration-color);\n}\n.wsm-ai-loader .aiSvg {\n  max-width: 100px;\n}\n.wsm-ai-loader .star {\n  animation: twinkle 1.5s ease-in-out infinite;\n}\n.wsm-ai-loader .star-main {\n  animation: twinkle-main 2s ease-in-out infinite;\n}\n.wsm-ai-loader .star-1 {\n  animation-delay: 0s;\n}\n.wsm-ai-loader .star-2 {\n  animation-delay: 0.6s;\n}\n.wsm-ai-loader .star-3 {\n  animation-delay: 1.2s;\n}");const o=({isGradient:e})=>a.default.createElement("svg",{className:"sparkle aiSvg",xmlns:"http://www.w3.org/2000/svg",height:"100",width:"100",viewBox:"0 0 100 100"},e&&a.default.createElement("defs",null,a.default.createElement("linearGradient",{id:"linearSparkleAnimationSparkle",x1:"50%",y1:"0%",x2:"50%",y2:"100%"},a.default.createElement("stop",{className:"gradient-stop-1",offset:"0"},a.default.createElement("animate",{attributeName:"offset",values:"0;0.3;
10",dur:"2s",repeatCount:"indefinite"})),a.default.createElement("stop",{className:"gradient-stop-2",offset:"1"},a.default.createElement("animate",{attributeName:"offset",values:"1;0.7;1",dur:"2s",repeatCount:"indefinite"})))),a.default.createElement("g",null,a.default.createElement("path",{className:"star star-3 "+(e?"gradient-fill-sparkle":"solid-fill"),d:"M 86.873 32.407 C 86.873 33.203 86.557 33.966 85.994 34.529 C 85.432 35.091 84.669 35.407 83.873 35.407 L 80.873 35.407 L 80.873 38.407 C 80.873 39.203 80.557 39.966 79.994 40.529 C 79.432 41.091 78.669 41.407 77.873 41.407 C 77.077 41.407 76.314 41.091 75.752 40.529 C 75.189 39.966 74.873 39.203 74.873 38.407 L 74.873 35.407 L 71.873 35.407 C 71.077 35.407 70.314 35.091 69.752 34.529 C 69.189 33.966 68.873 33.203 68.873 32.407 C 68.873 31.612 69.189 30.849 69.752 30.286 C 70.314 29.723 71.077 29.407 71.873 29.407 L 74.873 29.407 L 74.873 26.407 C 74.873 25.612 75.189 24.849 75.752 24.286 C 76.314 23.723 77.077 23.407 77.873 23.407 C 78.669 23.407 79.432 23.723 79.994 24.286 C 80.557 24.849 80.873 25.612 80.873 26.407 L 80.873 29.407 L 83.873 29.407 C 84.669 29.407 85.432 29.723 85.994 30.286 C 86.557 30.849 86.873 31.612 86.873 32.407 Z"}),a.default.createElement("path",{className:"star star-2 "+(e?"gradient-fill-sparkle":"solid-fill"),d:"M 47.873 14.407 C 47.873 13.612 48.189 12.849 48.752 12.286 C 49.314 11.723 50.077 11.407 50.873 11.407 L 56.873 11.407 L 56.873 5.407 C 56.873 4.612 57.189 3.849 57.752 3.286 C 58.314 2.723 59.077 2.407 59.873 2.407 C 60.669 2.407 61.432 2.723 61.994 3.286 C 62.557 3.849 62.873 4.612 62.873 5.407 L 62.873 11.407 L 68.873 11.407 C 69.669 11.407 70.432 11.723 70.994 12.286 C 71.557 12.849 71.873 13.612 71.873 14.407 C 71.873 15.203 71.557 15.966 70.994 16.529 C 70.432 17.091 69.669 17.407 68.873 17.407 L 62.873 17.407 L 62.873 23.407 C 62.873 24.203 62.557 24.966 61.994 25.529 C 61.432 26.091 60.669 26.407 59.873 26.407 C 59.077 26.407 58.314 26.091 57.752 25.529 C 57.189 24.966 56.873 24.203 56.873 23.407 L 56.873 17.407 L 50.873 17.407 C 50.077 17.407 49.314 17.091 48.752 16.529 C 48.189 15.966 47.873 15.203 47.873 14.407 Z"}),a.default.createElement("path",{className:"star-main star-1 "+(e?"gradient-fill-sparkle":"solid-fill"),d:"M 68.108 45.398 L 48.765 38.25 L 41.64 18.893 C 41.218 17.746 40.455 16.757 39.453 16.058 C 38.451 15.359 37.259 14.985 36.038 14.985 C 34.816 14.985 33.624 15.359 32.622 16.058 C 31.621 16.757 30.857 17.746 30.435 18.893 L 23.265 38.25 L 3.908 45.375 C 2.761 45.797 1.772 46.56 1.073 47.562 C 0.375 48.564 0 49.756 0 50.978 C 0 52.199 0.375 53.391 1.073 54.393 C 1.772 55.395 2.761 56.158 3.908 56.58 L 23.265 63.75 L 30.39 83.108 C 30.812 84.254 31.576 85.243 32.577 85.942 C 33.579 86.641 34.771 87.015 35.993 87.015 C 37.214 87.015 38.406 86.641 39.408 85.942 C 40.41 85.243 41.173 84.254 41.595 83.108 L 48.765 63.75 L 68.123 56.625 C 69.269 56.203 70.258 55.44 70.957 54.438 C 71.656 53.436 72.031 52.244 72.031 51.023 C 72.031 49.801 71.656 48.609 70.957 47.607 C 70.258 46.605 69.269 45.842 68.123 45.42 L 68.108 45.398 Z M 45.39 58.583 C 44.983 58.733 44.613 58.969 44.306 59.276 C 44 59.583 43.763 59.953 43.613 60.36 L 36.015 80.944 L 28.433 60.375 C 28.283 59.964 28.045 59.59 27.735 59.28 C 27.426 58.971 27.052 58.732 26.64 58.583 L 6.072 51 L 26.64 43.418 C 27.052 43.268 27.426 43.03 27.735 42.72 C 28.045 42.41 28.283 42.037 28.433 41.625 L 36.015 21.056 L 43.598 41.625 C 43.748 42.032 43.985 42.402 44.291 42.709 C 44.598 43.016 44.968 43.252 45.375 43.403 L 65.959 51 L 45.39 58.583 Z"})));o.defaultProps={isGradient:!1},o.propTypes={isGradient:r.default.bool};const i=({isGradient:e})=>a.default.createElement("svg",{className:"sparkleTwo aiSvg",version:"1.1",height:"100",width:"100",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50"},e&&a.default.createElement("defs",null,a.default.createElement("linearGradient",{id:"linearSparkleAnimationSparkleTwo",x1:"50%",y1:"0%",x2:"50%",y2:"100%"},a.default.createElement("stop",{className:"gradient-stop-1",offset:"0"},a.default.createElement("animate",{attributeName:"offset",values:"0;0.3;
10",dur:"2s",repeatCount:"indefinite"})),a.default.createElement("stop",{className:"gradient-stop-2",offset:"1"},a.default.createElement("animate",{attributeName:"offset",values:"1;0.7;1",dur:"2s",repeatCount:"indefinite"})))),a.default.createElement("g",null,a.default.createElement("path",{className:"star-main star-1 "+(e?"gradient-fill-sparkle-two":"solid-fill"),d:"M19.5 29.5c-0.2-0.26-0.42-0.51-0.66-0.74-1.083-1.083-2.408-1.909-3.866-2.791l-4.783-1.553c-0.37-0.132-0.689-0.372-0.914-0.69s-0.349-0.7-0.349-1.09 0.122-0.771 0.349-1.09c0.226-0.318 0.545-0.56 0.914-0.69l4.783-1.553c1.438-0.497 2.74-1.315 3.808-2.398 1.038-1.054 1.825-2.325 2.302-3.718l0.038-0.118 1.553-4.782c0.132-0.37 0.372-0.689 0.69-0.914s0.7-0.349 1.092-0.349c0.39 0 0.774 0.122 1.092 0.349s0.56 0.545 0.69 0.914l1.553 4.782c0.482 1.454 1.302 2.775 2.385 3.86s2.406 1.898 3.862 2.38l4.783 1.553 0.095 0.023c0.37 0.132 0.689 0.372 0.914 0.69s0.349 0.7 0.349 1.09-0.122 0.771-0.349 1.09c-0.226 0.318-0.545 0.56-0.914 0.69l-4.783 1.553c-1.455 0.482-2.778 1.297-3.862 2.38s-1.902 2.406-2.385 3.86l-1.553 4.782c-0.015 0.038-0.03 0.077-0.045 0.115-0.137 0.318-0.36 0.595-0.645 0.795-0.318 0.226-0.7 0.349-1.092 0.349s-0.771-0.122-1.092-0.349c-0.318-0.226-0.56-0.545-0.69-0.914l-1.553-4.782c-0.28-0.85-0.7-1.65-1.25-2.35z"}),a.default.createElement("path",{className:"star star-2 "+(e?"gradient-fill-sparkle-two":"solid-fill"),d:"M34.5 10.5c-0.105-0.137-0.22-0.266-0.341-0.388-0.455-0.456-1.01-0.802-1.622-1.006l-2.008-0.652c-0.155-0.055-0.289-0.156-0.383-0.29s-0.146-0.293-0.146-0.458 0.051-0.323 0.146-0.458c0.095-0.133 0.229-0.235 0.383-0.29l2.008-0.652c0.604-0.208 1.151-0.553 1.599-1.007 0.437-0.443 0.767-0.977 0.966-1.562l0.017-0.05 0.652-2.008c0.055-0.155 0.156-0.289 0.29-0.383s0.293-0.146 0.459-0.146c0.164 0 0.325 0.051 0.459 0.146s0.235 0.229 0.29 0.383l0.652 2.008c0.203 0.611 0.546 1.165 1.001 1.62s1.01 0.797 1.622 1.001l2.008 0.652 0.04 0.01c0.155 0.055 0.289 0.156 0.383 0.29s0.146 0.293 0.146 0.458-0.051 0.323-0.146 0.458c-0.095 0.133-0.229 0.235-0.383 0.29l-2.008 0.652c-0.611 0.203-1.166 0.545-1.622 1.001s-0.797 1.01-1.001 1.62l-0.652 2.008c-0.006 0.017-0.013 0.032-0.019 0.049-0.058 0.133-0.152 0.251-0.272 0.334-0.133 0.095-0.293 0.146-0.459 0.146s-0.323-0.051-0.459-0.146c-0.133-0.095-0.235-0.229-0.29-0.383l-0.652-2.008c-0.148-0.448-0.37-0.866-0.658-1.236z"}),a.default.createElement("path",{className:"star star-3 "+(e?"gradient-fill-sparkle-two":"solid-fill"),d:"M42.2 16.5c-0.06-0.077-0.125-0.152-0.195-0.223-0.26-0.261-0.578-0.458-0.928-0.575l-1.148-0.373c-0.089-0.031-0.165-0.089-0.218-0.165s-0.083-0.167-0.083-0.261 0.029-0.185 0.083-0.261c0.053-0.077 0.131-0.133 0.218-0.165l1.148-0.373c0.345-0.119 0.658-0.317 0.914-0.576 0.248-0.253 0.437-0.557 0.553-0.893l0.011-0.029 0.373-1.148c0.031-0.089 0.089-0.165 0.165-0.218s0.167-0.083 0.263-0.083c0.094 0 0.185 0.029 0.263 0.083s0.133 0.131 0.165 0.218l0.373 1.148c0.116 0.349 0.312 0.666 0.572 0.926s0.578 0.456 0.926 0.572l1.148 0.373 0.023 0.006c0.089 0.031 0.165 0.089 0.218 0.165s0.083 0.167 0.083 0.261-0.029 0.185-0.083 0.261c-0.053 0.077-0.131 0.133-0.218 0.165l-1.148 0.373c-0.349 0.116-0.666 0.311-0.926 0.572s-0.456 0.576-0.572 0.926l-0.373 1.148c-0.004 0.011-0.008 0.019-0.011 0.029-0.032 0.077-0.086 0.143-0.155 0.191-0.077 0.053-0.169 0.083-0.263 0.083s-0.185-0.029-0.263-0.083c-0.077-0.053-0.135-0.131-0.167-0.218l-0.373-1.148c-0.083-0.257-0.212-0.495-0.375-0.707z"})));i.defaultProps={isGradient:!1},i.propTypes={isGradient:r.default.bool};const c=({vectorName:e,isGradient:t})=>{const s=JSON.parse(t),n="sparkle"===e?a.default.createElement(o,{isGradient:s}):a.default.createElement(i,{isGradient:s});return a.default.createElement(l,null,a.default.createElement("div",{className:"d-flex align-items-center justify-content-center mt-5 w-100 h-100 wsm-ai-loader"},n))};c.defaultProps={vectorName:"sparkleTwo",isGradient:!1},c.propTypes={vectorName:r.default.string,isGradient:r.default.bool},e.LoadingBox=c,Object.defineProperty(e,"__esModule",{value:!0})}(t,s(594),s(935))},174(e){"use strict";e.exports=DDC.WsmCommonData},935(e){"use strict";e.exports=PropTypes},594(e){"use strict";e.exports=React}},n={};function a(e){var t=n[e];if(void 0!==t)return t.exports;var r=n[e]={exports:{}};
1return s[e].call(r.exports,r,r.exports,a),r.exports}a.m=s,a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var s in t)a.o(t,s)&&!a.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce((t,s)=>(a.f[s](e,t),t),[])),a.u=e=>"bundle."+e+".d06f502d93b960c1532509c4723b0c44.js",a.miniCssF=e=>"bundle.2ee179b923d4908dba0d23d012c21e7f.css",a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="ws-site-text-search:",a.l=(s,n,r,l)=>{if(e[s])e[s].push(n);else{var o,i;if(void 0!==r)for(var c=document.getElementsByTagName("script"),d=0;d<c.length;d++){var u=c[d];if(u.getAttribute("src")==s||u.getAttribute("data-webpack")==t+r){o=u;break}}o||(i=!0,(o=document.createElement("script")).charset="utf-8",a.nc&&o.setAttribute("nonce",a.nc),o.setAttribute("data-webpack",t+r),o.src=s),e[s]=[n];var m=(t,n)=>{o.onerror=o.onload=null,clearTimeout(h);var a=e[s];if(delete e[s],o.parentNode&&o.parentNode.removeChild(o),a&&a.forEach(e=>e(n)),t)return t(n)},h=setTimeout(m.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=m.bind(null,o.onerror),o.onload=m.bind(null,o.onload),i&&document.head.appendChild(o)}},a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.p="/static/ws/site-text-search/",(()=>{var e={792:0};a.f.j=(t,s)=>{var n=a.o(e,t)?e[t]:void 0;if(0!==n)if(n)s.push(n[2]);else{var r=new Promise((s,a)=>n=e[t]=[s,a]);s.push(n[2]=r);var l=a.p+a.u(t),o=new Error;a.l(l,s=>{if(a.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var r=s&&("load"===s.type?"missing":s.type),l=s&&s.target&&s.target.src;o.message="Loading chunk "+t+" failed.\n("+r+": "+l+")",o.name="ChunkLoadError",o.type=r,o.request=l,n[1](o)}},"chunk-"+t,t)}};var t=(t,s)=>{var n,r,[l,o,i]=s,c=0;if(l.some(t=>0!==e[t])){for(n in o)a.o(o,n)&&(a.m[n]=o[n]);if(i)i(a)}for(t&&t(s);c<l.length;c++)r=l[c],a.o(e,r)&&e[r]&&e[r][0](),e[r]=0},s=globalThis.webpackChunkws_site_text_search=globalThis.webpackChunkws_site_text_search||[];s.forEach(t.bind(null,0)),s.push=t.bind(null,s.push.bind(s))})(),(()=>{"use strict";const e=ReactDOM;var t=a.n(e),s=a(594),n=a.n(s);const r=ReactRedux;var l=a(973);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var n in s)({}).hasOwnProperty.call(s,n)&&(e[n]=s[n])}return e},o.apply(null,arguments)}class i extends n().Component{constructor(e){super(e),this.renderDelegate=this.renderDelegate.bind(this)}renderDelegate({labels:e}){const{HeadingTag:t,headingText:s,widgetId:a,toggleCollapse:r,showIcon:l,headingClasses:i,iconClasses:c}=this.props,d=[...c];let u={};if(r){const e="ddc-icon-expand";d.push(e),d.push("icon-style-collapse"),u={role:"button","data-toggle":"collapse","data-target":`#${a}-collapse`,"data-expand-icon-class":`${e}`,"data-collapse-icon-class":"ddc-icon-collapse","aria-expanded":"false","aria-controls":`${a}-collapse`}}return n().createElement(t,o({className:i.join(" ")},u),l&&n().createElement(n().Fragment,null,n().createElement("i",{className:d.join(" ")})," "),e.getHTML(s))}render(){return this.props.headingText&&"FALSE"!==this.props.headingText.toUpperCase()?n().createElement(l.Common,{render:this.renderDelegate}):null}}i.defaultProps={HeadingTag:"h3",headingText:""};const c=i,d=e=>{const{id:t,children:s,toggleCollapse:a}=e;return a?n().createElement("div",{id:`${t}-collapse`,className:"collapse collapse-content"},s):s};d.defaultProps={toggleCollapse:!1};const u=d;var m=a(174),h=a(935),p=a.n(h);class g extends n().Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){const{newRelicPageAction:s,errorHandler:n}=this.props;s&&function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;"undefined"!=typeof window&&window.newrelic&&"object"==typeof window.newrelic&&window.newrelic.addPageAction(e,t)}(s,{error:e,componentStack:t.componentStack}),n&&n(e,t)}render(){const{hasError:e}=this.state,{errorMarkup:t,children:s}=this.props;return e?t:s}}g.propTypes={children:p().oneOfType([p().node,p().arrayOf(p().node)]).isRequired,newRelicPageAction:p().string,errorHandler:p().func,errorMarkup:p().node},g.defaultProps={newRelicPageAction:"",errorHandler:null,errorMarkup:null},g.displayName="ErrorBoundary";var f=a(288),y=a.n(f),b=a(331);const w=()=>"undefined"!=typeof window&&window.newrelic&&"object"==typeof window.newrelic,E=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;w()&&window.newrelic.addPageAction(e,t)},C=(e,t)=>{w()&&window.newrelic.setCustomAttribute(e,t)},v=(e,t)=>
1{if("string"!=typeof e||0===e.length)throw new Error(`${t} must be a non-zero length string. Got: ${e}.`)},S=(e,t,s)=>{v(e,"Widget name"),v(t,"Widget id");const n="undefined"!=typeof window;if(n){const{DDC:n={}}=window,a={action:"clicked",element:void 0,elementCTA:void 0,event:"widgetUserEvent",fieldValue:void 0,formEventId:void 0,formId:void 0,nonInteractive:!1,sourceData:void 0,value:void 0,widgetId:t,widgetName:e,widgetState:"default"};return n.fireTrackingEvent&&n.fireTrackingEvent({result:s?.result?s?.result:void 0,...a,...s}),!!n.fireTrackingEvent}return n},T=(e,t)=>{let s,n=0;const a=(...a)=>{const r=(new Date).getTime();if(r-n<t)return s&&clearTimeout(s),void(s=setTimeout(()=>{n=r,e(...a)},t-(r-n)));n=r,e(...a)};return a.cancel=()=>{s&&clearTimeout(s)},a},k=(e,t,s,n,a,r,l)=>{window.DDC?.WidgetData?.[e]&&(window.DDC.WidgetData[e]={...window.DDC.WidgetData[e],modalIsOpen:!1}),s(!1),n(""),a&&r(!1),l||(document.body.style.overflow="auto"),S(e,t,{action:"clicked",element:"close button",result:"search modal closed"})},R="embedded",N="input",L="navigation",I="navigation-drawer",x="MOBILE",D="close button",A="ws-site-text-search-recent-search-items",O=e=>[...new Set(e)].filter(e=>e).join(" ")||null;var _=a(706);const P=(e,t,n,a,r,l,o)=>{const[i,c]=(0,s.useState)(0);return(0,s.useEffect)(()=>{if(!l)return;const s=s=>{const l=e.flatMap(e=>Array.from(e.current?.querySelectorAll('a[href], button:not([disabled]), input:not([type="hidden"]):not([disabled]), [tabindex]:not([tabindex="-1"])')||[])).filter(e=>null!==e.offsetParent);if(0!==l.length)if("Tab"===s.key){s.preventDefault();let e=i;if(e=s.shiftKey?(i-1+l.length)%l.length:(i+1)%l.length,t){(i===l.length-1&&!s.shiftKey||0===e&&s.shiftKey)&&(t.current||!t.current&&!n)&&(e=-1)}-1===e?(a&&a.current&&(a.current.focus(),a.current.setSelectionRange(a.current.value.length,a.current.value.length)),o()):(l[e].focus(),c(e))}else"Escape"===s.key&&(o(),a&&a.current?(a.current.focus(),a.current.setSelectionRange(a.current.value.length,a.current.value.length)):r&&r.current&&r.current.focus())},d=e.map(e=>e.current).filter(e=>null!==e);return d.forEach(e=>{e.addEventListener("keydown",s)}),()=>{d.forEach(e=>{e.removeEventListener("keydown",s)})}},[e,l,i]),null},$=ReactBootstrap;const M=e=>null==e||""===e,U=(0,s.createContext)(),H=(0,s.createContext)(),F=(0,s.createContext)(),B=({href:e,imageUrl:t,title:a,price:r,odometer:l,condition:o,city:i,state:c})=>{const{handleLinkClick:d}=(0,s.useContext)(F),{showCityAndStateBoolean:u}=(0,s.useContext)(H),h=(0,m.useLabels)(),{locale:p}=(0,m.useRequestData)(),{showPrice:g,display:f}=(0,m.usePrefs)(),y=O(["d-flex","border-bottom","vehicle-card-horizontal","list-group-item",f===I&&"sts-panel-list-item"]);if(!a||!e||!t)return null;const b=a.length>50?`${a.substring(0,50)}...`:a;let w=o;"NEW"===o?w=h.get("NEW").toUpperCase():"USED"===o?w=h.get("PRE_OWNED").toUpperCase():"CERTIFIED"===o&&(w=h.get("CERTIFIED").toUpperCase());const E=function(e,t="en_US"){return"undefined"!=typeof Intl&&Intl.NumberFormat?"number"!=typeof e?"":new Intl.NumberFormat(t.replace("_","-")).format(e):e.toString()}(Number(l),p)||"0",C=h.get("MILEAGE"),v=function(e,t="en_US",s=!1){if("undefined"==typeof Intl||!Intl.NumberFormat)return e.toString();const n={style:"currency",currency:t.length&&t.indexOf("CA")>-1?"CAD":"USD"};let a;return"number"!=typeof e?(console.warn("formatCurrency: unexpected currency value: ".concat(e," of type ").concat(typeof e)),""):(s?a=e:(a=Math.round(e),n.minimumFractionDigits=0),new Intl.NumberFormat(t.replace("_","-"),n).format(a))}(Number(r.replace(/[$,]/g,"")),p,!1),S=!M(r)&&"true"===g;return n().createElement("a",{href:e,className:y,"aria-label":`${h.get("VIEW_DETAILS_ABOUT")} ${a}`,onClick:()=>{d("vehicleLink",b,"")}},n().createElement("div",{"data-testid":"sts-vehicle-card",className:O(["d-flex","justify-content-end","site-search-vehicle-card-media-container","flex-grow-0","order-2"])},n().createElement("img",{className:O(["img-responsive"]),src:`${t}?impolicy=downsize&w=130`,alt:a})),n().createElement("div",{className:O(["site-search-vehicle-card-detail
1s-container","order-1","ddc-font-size-small","p-1","line-height-condensed"])},n().createElement("p",{className:O(["mt-0","mb-0","ddc-font-size-xsmall","text-muted"])},w),n().createElement("p",{className:O(["font-weight-normal","mt-0","mb-0"])},b),S&&n().createElement("p",{className:O(["font-weight-bold","mt-0","mb-0"])},v),"NEW"!==o.toUpperCase()&&n().createElement("p",{className:O(["mt-0","mb-0","text-muted"])},`${C}: ${E}`),u&&n().createElement("p",{className:O(["mt-2","mb-0","text-muted"])},`${i}, ${c}`)))};B.defaultProps={price:"",odometer:"",condition:""};const V=B,W=({vehicles:e})=>{const{inputWidth:t}=(0,s.useContext)(H),{display:a}=(0,m.usePrefs)(),r=(0,m.useLabels)(),l=a!==I&&t>600;if(e?.length>0){let t=0;return n().createElement("div",{"data-testid":"sts-vehicle-cards",role:"region","aria-labelledby":"vehicle-cards-heading",className:""+(l?"":"pb-5")},n().createElement("h3",{id:"vehicle-cards-heading",className:O(["sr-only"])},r.get("VEHICLE_SEARCH_RESULTS")),e.slice(0,5).map(e=>{const{path:s,images:[a],title:r,price:l,odometer:o,condition:i,city:c,state:d}=e,u=Array.isArray(r)?r.join(" "):r,m=a,h=i.toUpperCase();return t+=1,n().createElement(V,{href:s||null,imageUrl:m?.url,key:t,title:u,price:l||"",odometer:o||"",condition:h,city:c||"",state:d||""})}))}return null},j=({type:e,data:t,isEmbedded:a})=>{const r=(0,m.useLabels)(),{handleLinkClick:l}=(0,s.useContext)(F),{display:o}=(0,m.usePrefs)(),i=o===I,c=[i?"ddc-font-size-small":"ddc-font-size-base","font-weight-bold","mt-0"],d=["px-4"],u=O(["d-flex","align-items-center","list-group-item","ddc-font-size-base",i&&"sts-panel-list-item"]);if("no-results"===e&&c.push("sr-only"),"inventory"===e){if(t.every(e=>1===e.count))return null}const h="inventory"===e?r.get("INVENTORY_SEARCH_RESULTS"):r.get("PAGE_SEARCH_RESULTS"),p="inventory"===e?"ddc-icon-single-vehicle":"ddc-icon-arrow-circle-right";if(t?.length>0){let s=0;const o=a&&"inventory"!==e?25:5,i="inventory"===e?`${r.get("VIEW_SIMILAR_VEHICLES")}`:`${r.get("WEBSITE_RESOURCES")}`;return n().createElement("div",{"data-testid":`sts-${e}-search-links`,role:"region","aria-labelledby":`${e}-search-links-heading`,className:O(d)},n().createElement("span",{id:`${e}-search-links-heading`,className:O(c)},i),n().createElement("ul",{className:O(["list-group","mb-3","mt-3"])},t.slice(0,o).map(t=>{if(!(t.title&&t.path||"no-results"!==e))return null;s+=1;return n().createElement("li",{key:s,className:O(["line-height-reset"])},n().createElement("a",{className:u,href:t.path,"aria-label":`${r.get("VISIT")} ${t.title} ${h}`,onClick:()=>{const s=t.title||"";let n="",a=!0;"inventory"===e?n="inventoryLink":"page"===e?n="pageLink":"no-results"===e&&(n="noResultsLink",a=!1),l(n,s,"",a)}},n().createElement("i",{className:`ddc-icon ${p||t?.icon} ddc-icon-size-large mr-3`,"aria-hidden":"true"}),n().createElement("span",null,t.title)))})))}return null},z=({label:e,ariaLabelledById:t})=>{const{display:s}=(0,m.usePrefs)(),a={id:t,className:O([...s===I?["h4","sts-panel-heading"]:["ddc-font-size-xlarge","px-4"],s===R&&"widget-heading"])};return n().createElement("h3",a,e)},q=({department:e,number:t,accountRef:a="",phoneRef:r=""})=>{const l=(0,s.useRef)(),o=(0,m.useLabels)(),{handleLinkClick:i}=(0,s.useContext)(F);(0,s.useEffect)(()=>{void 0!==window.phoneSwapping&&void 0!==window.phoneSwapping.domTraverse&&window.phoneSwapping.domTraverse(l.current,window.phoneSwapping.swapNumbers)},[]);const c=o.get(e.toUpperCase()),d=` ${o.get("DEPARTMENT")} ${o.get("NUMBER")}`;return n().createElement("li",null,n().createElement("a",{href:`tel:${t.replace(new RegExp("-()","g"),"")}`,className:O(["btn","btn-default","btn-block"]),title:`${o.get("CLICK_TO_CALL_OUR")} ${o.get(c)} ${o.get("DEPARTMENT")}.`,"data-account-ref":a,"data-phone-ref":r,onClick:()=>{i("richContentLink",`${e}: ${t}`,"")},ref:l},n().createElement("i",{className:O(["ddc-icon","ddc-icon-call","mr-3"]),"aria-hidden":"true"}),n().createElement("span",null,o.get(c),n().createElement("span",{className:O(["sr-only"])},d),": ",t)))},G=({email:e,children:t})=>{const a=(0,m.useLabels)(),{handleLinkClick:r}=(0,s.useContext)(F),l=t||a.get("SEND_US_AN_EMAIL"),o=a.get("SEND_AN_EMAIL_TO")?`${a.get("SEND_AN_EMAIL_TO")} ${e}`:l;return n().createElement("li",null,n().createElement("a",{href:`mailto:${e}`,target:"_blank",rel:"noopener noreferrer",className:O(["btn","btn-default","btn-block"]),onClick:()=>{r("richContentLink",l,"")},"aria-label":o},n().createElement("i",{className:O(["ddc-icon","ddc-icon-email","mr-3"]),"aria-hidden":"true"}),l))};G.defaultProps={children:""};const Y=G,K=({phoneNumbers:e=[],email:t="",ariaLabelledById:a=""})=>{const{contactUsHeadingLabel:r,display:l}=(0,m.usePrefs)(),o=l===I,i=(0,m.useLabels)(),c=O(["list-unstyled","list-spaced",!o&&"mx-4","mb-4"]),{handleLinkClick:d,richContentToDisplay:u,accountId:h}=(0,s.useContext)(F),p=u.reduce((s,a)=>{const[r,l]=a.split("-");if("phone"===r&&l){const t=e.find(e=>e.dept===l.charAt(0).toUpperCase()+l.slice(1));if(t?.number){const{number:e,dept:a,type:r}=t;s.push(n().createElement(q,{department:a,number:e,key:`phone-${a}`,accountRef:h,phoneRef:r.toUpperCase()}))}}else"email"===r&&t&&s.push(n().createElement(Y,{email:t,key:t,handleLinkClick:d},i.get("SEND_US_AN_EMAIL")));return s},[]),g=i.get(r),f={...g&&{"aria-labelledby":a}};return p.length?n().createElement("div",f,g&&n().createElement(z,{label:g,ariaLabelledById:a}),n().createElement("ul",{className:c},p)):null};function J(){return J=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var n in s)({}).hasOwnProperty.call(s,n)&&(e[n]=s[n])}return e},J.apply(null,arguments)}const Z=e=>[...new Set(e)].filter(e=>e).join(" ")||null,X=["monday","tuesday","wednesday","thursday","friday","saturday","
1sunday"],Q=" - ",ee=p().shape({day:p().string,open:p().string,close:p().string,timings:p().string}),te={defaults:{allHoursDepts:"DEALERSHIP,PARTS,SERVICE",allHoursLabelIds:"DEALERSHIP_HOURS,PARTS_DEPT_HOURS,SERVICE_DEPT_HOURS",heading:"",hours:{default:[],parts:[],service:[]},hoursListLineHeight:"condensed",hoursTextAlignment:"left",isModal:!1,showCurrentDayOnly:!1,dayColClasses:"col-xs-6 col-sm-5",hourColClasses:"col-xs-6 col-sm-7"},settings:{allHoursDepts:p().string,allHoursLabelIds:p().string,department:p().string,heading:p().string,hours:p().objectOf(p().arrayOf(ee)),hoursArray:p().array,hoursListLineHeight:p().string,hoursTextAlignment:p().string,isModal:p().bool,showCurrentDayOnly:p().bool,dayColClasses:p().string,hourColClasses:p().string},hoursEntry:ee},se=e=>e.includes(Q);class ne extends n().Component{constructor(e){super(e),this.renderDelegate=this.renderDelegate.bind(this),this.state={isClient:!1}}componentDidMount(){this.setState((e,t)=>({isClient:!0}))}renderDelegate({labels:e}){const{hours:t,hoursTextAlignment:s,isModal:a,showCurrentDayOnly:r,dayColClasses:l,hourColClasses:o}=this.props,{isClient:i}=this.state,c=(e=>{const t=(()=>{const e=((new Date).getDay()+X.length-1)%X.length;return X[e]})();if(se(e)){const[s,n]=e.split(Q).map(e=>X.indexOf(e.toLowerCase()));if(-1===s||-1===n)return!1;const a=X.indexOf(t);return a>=s&&a<=n}return t===e})(t.day);let d=((e,t)=>se(e)?e.split(Q).map(e=>t.get(e.toUpperCase())).join(Q):t.get(e.toUpperCase()))(t.day,e);const u=t.timings.trim().toUpperCase(),m=e.has(u)?e.get(u):t.timings,h=["key"],p=["value"],g=[];return!r||c||a?(r&&!a?(d=`${e.get("TODAYS_HOURS")}: `,g.push("col-md-5","col-lg-4","col-xs-12")):("right"===s?(g.push("d-flex","justify-content-between","mx-n3"),h.push("pl-3"),p.push("pr-3","pl-6","text-right")):(g.push("row"),h.push(...l.split(" ")),p.push(`text-${s}`,...o.split(" "))),g.push("py-2",i&&c&&"today")),n().createElement("li",{className:Z(g),"data-testid":"hours-list-item"},n().createElement("span",{className:Z(h)},d),n().createElement("span",{className:Z(p)},m))):null}render(){return n().createElement(m.Common,{render:this.renderDelegate})}}ne.defaultProps={hours:te.defaults.hours,hoursTextAlignment:te.defaults.hoursTextAlignment,isModal:te.defaults.isModal,showCurrentDayOnly:te.defaults.showCurrentDayOnly,dayColClasses:te.defaults.dayColClasses,hourColClasses:te.defaults.hourColClasses},ne.propTypes={hours:te.hoursEntry,hoursTextAlignment:te.settings.hoursTextAlignment,isModal:te.settings.isModal,showCurrentDayOnly:te.settings.showCurrentDayOnly,dayColClasses:te.settings.dayColClasses,hourColClasses:te.settings.hourColClasses},ne.displayName="HoursListItem";class ae extends n().Component{constructor(e){super(e),this.renderDelegate=this.renderDelegate.bind(this)}renderDelegate({labels:e}){const{hours:t,heading:s,hoursListLineHeight:a,...r}=this.props;if(!t||t.length<1)return null;const l=t.map(e=>n().createElement(ne,J({key:e.day,hours:e},r))),o=s?n().createElement("h3",null,e.get(s)):null,i=["list-unstyled",`line-height-${a}`];return n().createElement("div",{"data-testid":"hours-list"},o,n().createElement("ul",{className:Z(i)},l))}render(){return n().createElement(m.Common,{render:this.renderDelegate})}}ae.defaultProps={heading:te.defaults.heading,hours:te.defaults.hours,hoursListLineHeight:te.defaults.hoursListLineHeight,hoursTextAlignment:te.defaults.hoursTextAlignment,isModal:te.defaults.isModal,showCurrentDayOnly:te.defaults.showCurrentDayOnly,dayColClasses:te.defaults.dayColClasses,hourColClasses:te.defaults.hourColClasses},ae.propTypes={heading:te.settings.heading,hours:te.settings.hoursArray,hoursListLineHeight:te.settings.hoursListLineHeight,hoursTextAlignment:te.settings.hoursTextAlignment,isModal:te.settings.isModal,showCurrentDayOnly:te.settings.showCurrentDayOnly,dayColClasses:te.settings.dayColClasses,hourColClasses:te.settings.hourColClasses},ae.displayName="HoursList";const re=e=>{const{allHoursDepts:t,allHoursLabelIds:s,department:a,hours:r,...l}=e;if(!r)return null;const o=[];if(a)o.push({deptId:a,deptLabel:void 0,deptHours:r[a]});else{const e=((e,t)=>{const s=e.split(",").map(e=>e.trim()),n=t.split(",").map(e=>e.trim()),a=[];
1return s.forEach((e,t)=>{a.push({deptId:e,deptLabel:n[t]||"DEPARTMENT_HOURS"})}),a})(t,s);e.forEach(e=>{r[e.deptId]&&o.push({...e,deptHours:r[e.deptId]})})}const i=o.map(e=>n().createElement(ae,J({key:e.deptId,heading:e.deptLabel,hours:e.deptHours},l)));return n().createElement("div",null,i)};function le(){return le=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var n in s)({}).hasOwnProperty.call(s,n)&&(e[n]=s[n])}return e},le.apply(null,arguments)}re.defaultProps={allHoursDepts:te.defaults.allHoursDepts,allHoursLabelIds:te.defaults.allHoursLabelIds,hours:te.defaults.hours,department:void 0,hoursListLineHeight:te.defaults.hoursListLineHeight,hoursTextAlignment:te.defaults.hoursTextAlignment,isModal:te.defaults.isModal,showCurrentDayOnly:te.defaults.showCurrentDayOnly,dayColClasses:te.defaults.dayColClasses,hourColClasses:te.defaults.hourColClasses},re.propTypes={allHoursDepts:te.settings.allHoursDepts,allHoursLabelIds:te.settings.allHoursLabelIds,hours:te.settings.hours,department:te.settings.department,hoursListLineHeight:te.settings.hoursListLineHeight,hoursTextAlignment:te.settings.hoursTextAlignment,isModal:te.settings.isModal,showCurrentDayOnly:te.settings.showCurrentDayOnly,dayColClasses:te.settings.dayColClasses,hourColClasses:te.settings.hourColClasses},re.displayName="Hours";const oe=({departments:e,departmentHours:t,label:a,labels:r,ariaLabelledById:l,tabId:o})=>{const{handleLinkClick:i}=(0,s.useContext)(F),{display:c}=(0,m.usePrefs)(),d=c===I,u=O([!d&&"mx-4",d?"ddc-font-size-base":"ddc-font-size-large"]),h=t||{};h.DEALERSHIP&&!h.SALES&&(h.SALES=h.DEALERSHIP);const p=e.filter(e=>!!h[e.toUpperCase()]),g={...a&&{"aria-labelledby":l}};return p&&p.length?n().createElement("div",le({className:O(["department-hours-tabs","mb-4","tabs","tabs-fill","ws-hours"]),key:"department-tabs"},g),a&&n().createElement(z,{label:a,ariaLabelledById:l}),n().createElement($.Tabs,{onSelect:e=>{i("richContentLink",`${e[0]}${e.substr(1).toLowerCase()}`,"navigated department hours tabs")},className:u,id:`${o}-tabs`},p.map(e=>{const s=e.toUpperCase();return n().createElement($.Tab,{className:O(["py-4","ddc-font-size-base"]),title:r.get(s),eventKey:s,key:s},n().createElement(re,{hours:{[s]:t[s]},isModal:!1,showCurrentDayOnly:!1,department:s,dayColClasses:"col-xs-6 col-md-5",hourColClasses:"col-xs-6 col-md-7"}))}))):null};oe.defaultProps={label:"",ariaLabelledById:"department-hours-0",tabId:"department-hours-1"};const ie=oe,ce=e=>[...new Set(e)].filter(e=>e).join(" ")||null,de=({name:e,address1:t,city:s,state:a,postalCode:r,url:l,addressClasses:o,onGetDirectionsClick:i,showDealershipName:c,showAddressIcon:d,isAddressInline:u,clickableAddress:m,clickableAddressClasses:h})=>{const p=[{key:"address",content:t,className:ce(["street-address",!u&&"d-block"])},...u?[{key:"separator-inline",content:", ",className:"separator",testId:"contact-address-inline-separator"}]:[],{key:"city",content:s,className:"locality"},{key:"separator",content:", ",className:"separator"},{key:"state",content:`${a} `,className:"region"},{key:"zipCode",content:r,className:"postal-code"}],g=()=>n().createElement("p",{className:ce(["adr","mb-0",d&&"d-inline-block"]),"data-testid":"contact-address-content"},p.map(({key:e,content:t,className:s,testId:a})=>n().createElement("span",{key:e,className:s,"data-testid":a},t)));return n().createElement("address",{className:`${o}`,"data-testid":"contact-address"},c&&n().createElement("p",{className:"fn n mb-0"},n().createElement("strong",{className:"org"},e)),d&&n().createElement(n().Fragment,null,n().createElement("i",{className:"ddc-icon ddc-icon-map","aria-hidden":"true","data-testid":"contact-address-icon"})," "),m&&"string"==typeof m.link&&m.link.trim()?n().createElement("a",{target:"_blank",rel:"noopener noreferrer",href:m.link,className:`${h}`,onClick:i,"data-testid":"address-click"},g()):n().createElement(n().Fragment,null,g(),l&&n().createElement("a",{target:"_blank",rel:"noopener noreferrer",href:l.link,onClick:i},l.text)))};function ue(){return ue=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var n in s)({}).hasOwnProperty.call(s,n)&&(e[n]=s[n])}return e},ue.apply(null,arguments)}
1de.propTypes={name:p().string.isRequired,address1:p().string.isRequired,city:p().string.isRequired,state:p().string.isRequired,postalCode:p().string.isRequired,addressClasses:p().string,url:p().shape({link:p().string,text:p().string}),onGetDirectionsClick:p().func,showDealershipName:p().bool,showAddressIcon:p().bool,isAddressInline:p().bool,clickableAddress:p().shape({link:p().string}),clickableAddressClasses:p().string},de.defaultProps={addressClasses:"",url:null,onGetDirectionsClick:()=>{},showDealershipName:!0,showAddressIcon:!1,isAddressInline:!1,clickableAddress:null,clickableAddressClasses:""},de.displayName="Address";const me=({name:e,address1:t,city:a,state:r,postalCode:l,getDirectionsLabel:o,getDirectionsUrl:i,addressClasses:c,label:d,ariaLabelledById:u})=>{const h={...d&&{"aria-labelledby":u}},{handleLinkClick:p}=(0,s.useContext)(F),{display:g}=(0,m.usePrefs)(),f=g===I,y=O([...c.split(" "),!f&&"text-black","ddc-font-size-base","my-3"])||"",b=O(["bg-location",f?"sts-panel-card":"bg-neutral-0","d-flex","border","p-4",!f&&"mx-4","mb-4"]),w=O(["ddc-icon","ddc-icon-map","ddc-font-size-xlarge",!f&&"text-black"]);return n().createElement(n().Fragment,null,d&&n().createElement(z,{label:d,ariaLabelledById:u}),n().createElement("div",ue({},h,{"data-testid":"sts-address-card",className:b}),n().createElement("div",{"data-testid":"sts-address-card-icon-wrapper",className:O(["d-sm-inline",!f&&"mx-4"])},n().createElement("i",{"data-testid":"sts-address-card-icon",className:w,"aria-hidden":"true"})),n().createElement(de,{name:e,address1:t,city:a,state:r,postalCode:l,url:{text:o,link:i},addressClasses:y,onGetDirectionsClick:()=>{p("richContentLink",o,"")}})))};me.defaultProps={label:"",ariaLabelledById:"address-card-0",addressClasses:""};const he=me,pe=()=>{const{addInfo:e,richContentToDisplay:t,noResultsRichContent:a}=(0,s.useContext)(F),{pageAlias:r}=(0,s.useContext)(H),l=(0,m.useLabels)(),{windowId:o}=(0,m.useRequestData)(),{addressHeadingLabel:i,addressClasses:c,addressGetDirectionsLabel:d,hoursTabsHeaderLabel:u}=(0,m.usePrefs)(),h=t&&0!==t.length?t:a,[p,g]=(0,s.useState)(""),[f,y]=(0,s.useState)(""),[b,w]=(0,s.useState)(""),[E,C]=(0,s.useState)("");(0,s.useEffect)(()=>{g(`${r}_${o}_ContactLinkAria`),y(`${r}_${o}_AddressAria`),w(`${r}_${o}_HoursTabsAria`),C(`${r}_${o}_HourTabsId`)},[]);const v=()=>{const{phoneNumbers:t=[],email:s=""}=e||{};return n().createElement(K,{phoneNumbers:t,email:s,richContentToDisplay:h,ariaLabelledById:p})},S=()=>{const{hours:t={}}=e||{},s=h.filter(e=>e.startsWith("hours")).map(e=>e.split("-")[1]);return n().createElement(ie,{departments:s,departmentHours:t,label:l.get(u),labels:l,ariaLabelledById:b,tabId:E})},T={"phone-sales":v,"phone-service":v,"phone-parts":v,"phone-commercial":v,email:v,address:()=>{const t=h.some(e=>["email","phone-sales","phone-service","phone-parts","phone-commercial"].indexOf(e)>-1),{dealerInfo:{name:s="",address1:a="",city:r="",state:o="",postalCode:u=""}={},mapLink:m=""}=e||{};return n().createElement(he,{name:s,address1:a,city:r,state:o,postalCode:u,getDirectionsLabel:l.get(d),getDirectionsUrl:m,label:t?"":l.get(i),ariaLabelledById:f,addressClasses:c})},"hours-sales":S,"hours-service":S,"hours-parts":S,"hours-commercial":S};if(!h||0===h.length)return null;const k=new Set;return n().createElement("div",{className:O(["sts-search-richcontent"]),"data-testid":"sts-search-richcontent"},h.map(e=>{const t=T[e];return t&&!k.has(t)?(k.add(t),n().createElement(n().Fragment,{key:e},t())):null}))},ge=({children:e,vehicles:t})=>{const{inputWidth:a}=(0,s.useContext)(H),{display:r}=(0,m.usePrefs)(),l=e.filter(e=>e),o=r!==I&&a>600,i=o?"col-sm-6":"col-sm-12";return n().createElement("div",{className:O(["row"])},function(){const e=[],s=[];return l.forEach((n,a)=>{t&&n?.props?.vehicles&&o||!t&&a%2==0&&o?e.push(n):s.push(n)}),n().createElement(n().Fragment,null,n().createElement("div",{className:i,"data-testid":"sts-input-column-one"},e),n().createElement("div",{className:i,"data-testid":"sts-input-column-two"},s))}())},fe=()=>{const{didRequestTimeout:e,requestTimeoutType:t}=(0,s.useContext)(F),a=(0,m.useLabels)(),{display:r}=(0,m.usePrefs)(),l=O(["p-4",r===I?"sts-panel-no-results":"text-body"]);let o=a.get("SORRY_NO_RESULTS");if(e){const e=a.get("SORRY_TIMEOUT_GENERIC");switch(t){case"add":o=a.get("SORRY_TIMEOUT_ADD");break;case"inventory":o=a.get("SORRY_TIMEOUT_INVENTORY");break;case"pages":o=a.get("SORRY_TIMEOUT_PAGES");break;default:o=a.get("SORRY_TIMEOUT_GENERIC")}o=o||e}return n().createElement("div",{"data-testid":"sts-no-results","aria-live":"polite","aria-atomic":"true",role:"alert"},n().createElement("div",{"data-testid":"sts-no-results-message",className:l},n().createElement("strong",null,o,"...")))},ye=({hasRichContentToDisplay:e,shouldRenderNoResults:t})=>{const{activeInventoryTab:a,setActiveInventoryTab:r,disabledTabs:l,inventoryResults:o,handleLinkClick:i,noResultsLinks:c,pageSearchResults:d,hasSingleVehicle:u}
1=(0,s.useContext)(F),{inputWidth:h}=(0,s.useContext)(H),p=(0,m.useLabels)(),{widgetName:g,windowId:f}=(0,m.useRequestData)(),{display:y}=(0,m.usePrefs)(),b=O(y===I?["font-weight-bold","py-3","px-2","ddc-font-size-small"]:["font-weight-bold","py-3","px-2"]),w=[{key:"new",label:"TAB_NEW"},{key:"used",label:"TAB_PRE_OWNED"},{key:"certified",label:"TAB_CERTIFIED"}],E=o[a]?.allVehiclesPath||"",C=p.get("VIEW_ALL_VEHICLES_SITE_SEARCH");return n().createElement("div",{className:O(["mb-4","tabs","tabs-fill"])},3!==l?.length&&n().createElement($.Tabs,{onSelect:e=>{var t;r(e),t=w.find(t=>t.key===e),S(g,f,{action:"clicked",element:`${t.key} tab`,elementCTA:p.get(t.label),result:`${t.key} > navigated to ${t.key} results`,nonInteractive:!1})},className:O(["inventory-tabs","mx-4","ddc-font-size-large"]),activeKey:a,id:"inventory-tabs"},w.map(e=>n().createElement($.Tab,{className:O(["py-4","ddc-font-size-base"]),title:p.get(e.label),eventKey:e.key,key:e.key,disabled:l?.some(t=>t===e.key)}))),E&&!u&&n().createElement("a",{onClick:()=>{i("allInventoryLink",C,"")},href:E,className:b},n().createElement("span",null,C,n().createElement("i",{className:O(["ddc-icon","ddc-icon-arrow-details","ml-3"]),"aria-hidden":"true"}))),n().createElement("div",{className:O(["row"])},n().createElement(ge,{inputWidth:h,vehicles:o[a]?.vehicles?.length>0},t&&n().createElement(n().Fragment,null,n().createElement(fe,null),n().createElement(j,{type:"no-results",data:c})),o[a]?.vehicles?.length>0&&n().createElement(W,{vehicles:o[a].vehicles}),o[a]?.suggestions?.length>0&&n().createElement(j,{type:"inventory",data:o[a].suggestions}),d?.length>0&&n().createElement(j,{type:"page",data:d}),(e||t)&&n().createElement(pe,null))))},be=n().memo(ye),we=({recentSearch:e})=>{const t=(0,m.useLabels)(),{widgetName:a,windowId:r}=(0,m.useRequestData)(),{removeRecentSearch:l,reorderRecentSearches:o}=(0,s.useContext)(F),{handleChipClick:i}=(0,s.useContext)(U),c=t.get("SEARCH"),d=t.get("REMOVE"),u=t=>{t.stopPropagation(),l(e.value),S(a,r,{element:"search box x",elementCTA:e.value,result:"chip removed",action:"clicked"})},h=e=>{e.stopPropagation()};return n().createElement("button",{className:O(["chip","chip-default","mr-3","mt-3","ddc-font-size-small"]),type:"button","aria-label":`${c}: ${e.value}`,tabIndex:0,onClick:()=>{i(e.value),o(e),S(a,r,{element:"search chip",elementCTA:e.value,result:"text search form re-submitted",action:"clicked"})},onMouseDown:h,onTouchStart:h},((e,t=20)=>e?.length>t?`${e.substring(0,t)}...`:e)(e.value),n().createElement("span",{role:"button",tabIndex:0,className:O(["ddc-icon","ddc-icon-remove2","icon-size-2","ml-2"]),onClick:u,onMouseDown:h,onTouchStart:h,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||u(e)},"aria-label":`${d}: ${e.value}`,"data-testid":"remove-icon"}))},Ee=({preventModalClose:e})=>{const{recentSearches:t,handleClearHistory:a,handleClearHistoryNoClose:r}=(0,s.useContext)(F),l=(0,m.useLabels)(),{display:o}=(0,m.usePrefs)(),i=O(o===I?["mt-0","h4","text-capitalize","sts-panel-heading"]:["mt-0","h4","text-capitalize"]),c=e?r:a;return n().createElement("div",{role:"group"},n().createElement("div",{className:O(["d-flex","justify-content-between","align-items-center"])},n().createElement("div",{id:"recent-searches-heading",className:i},l.get("RECENT_SEARCHES")),n().createElement("button",{className:O(["btn","btn-link","p-0","text-danger","font-weight-light","btn-sm"]),onClick:c,type:"button","aria-label":l.get("CLEAR_SEARCH_HISTORY")},l.get("CLEAR_HISTORY"))),t?.slice(0,5).map(e=>n().createElement(we,{key:e.value,recentSearch:e})))},Ce=n().memo(Ee),ve=(e,t,s,n)=>(!e||!t&&!s)&&n?.length>0&&0===e?.length,Se=(e,t,s)=>Array.isArray(e)&&0===e?.length&&Array.isArray(t)&&0===t?.length&&Array.isArray(s)&&0===s?.length,Te=(e,t,s)=>e?.length>0||t?.length>0||s?.length>0,ke=(e,t,n)=>{const[a,r]=(0,s.useState)(""),l=(0,m.useLabels)(),o=(0,s.useMemo)(()=>l.get("NO_SEARCH_RESULTS_FOUND"),[l]),i=(0,s.useMemo)(()=>l.get("SEARCH_RESULTS_READY"),[l]);return(0,s.useEffect)(()=>{const s=setTimeout(()=>{r(e&&t?i:e&&n?o:"")},30);return()=>clearTimeout(s)},[e,t,n,o,i]),a},Re=(e,t)=>{if(!t||0===e?.length)return!1;const s=e=>Array.isArray(e)?e.length>0:!!e&&Object.keys(e).length>0,n={HOURS:["hours-sales","hours-service","hours-parts","hours-commercial"],LOCATION:["address"],CONTACT:["phone-sales","phone-service","phone-parts","phone-commercial","email"]},{hours:a={},mapLink:r,dealerInfo:l={},phoneNumbers:o=[]}=t,i=e.filter(e=>n.HOURS.includes(e));if(i.length>0){if(i.some(e=>{const t=e.replace("hours-","").toUpperCase();return s(a[t])}))return!0}if(c=e,d=n.LOCATION,c.some(e=>d.includes(e))&&(s(r)||s(l)))return!0;var c,d;const u=e.filter(e=>n.CONTACT.includes(e));if(u.length>0){if(u.some(e=>{const t=e.replace("phone-","").toUpperCase();return s(o[t])}))return!0}return!1},Ne=({vehicles:e,suggestions:t,shouldRenderNoResults:a,hasRichContentToDisplay:r})=>{const{noResultsLinks:l,pageSearchResults:o}=(0,s.useContext)(F);return n().createElement(ge,{vehicles:e?.length>0},e?.length>0&&n().createElement(W,{vehicles:e}),t?.length>0&&n().createElement(j,{type:"inventory",data:t}),o?.length>0&&n().createElement(j,{type:"page",data:o}),a&&n().createElement(n().Fragment,null,n().createElement(fe,null),n().createElement(j,{type:"no-results",data:l})),(r||a)&&n().createElement(pe,null))},Le=n().memo(Ne),Ie=()=>{const{searchTerm:e,numberOfCharactersForFirstSearchNumber:a,fetchingResults:r,isNLSFetchingResults:l}=(0,s.useContext)(U),{dropDownRef:o,dropDownPosition:i,inputRef:c,inputElementRef:d,inputWi
1dth:u,modalIsOpen:h,closeModal:p,doNotRenderResults:g}=(0,s.useContext)(H),f=(0,m.useLabels)(),{preparedInventoryResults:y,pageSearchResults:b,richContentToDisplay:w,recentSearches:E,handleLinkClick:C,addInfo:v,showTabs:S,hasSingleVehicle:T}=(0,s.useContext)(F),{suggestions:k,vehicles:R,allVehiclesPath:N}=y||{},L=(0,s.useMemo)(()=>e?.length>=a,[e,a]),I=(0,s.useMemo)(()=>Te(b,k,R),[b,k,R]),x=(0,s.useMemo)(()=>Se(b,k,R),[b,k,R]),D=ke(L,I,x),A=(0,s.useMemo)(()=>Re(w,v),[w,v]),$=(0,s.useMemo)(()=>!I&&x&&!A&&!r,[I,x,A,r]),M=f.get("VIEW_ALL_VEHICLES_SITE_SEARCH"),B=(0,s.useCallback)(()=>{C("allInventoryLink",M,"")},[C,M]),V=(0,s.useMemo)(()=>!r&&l,[r,l]),W=(0,s.useMemo)(()=>({position:"absolute",top:i.top,left:i.left,width:u,minHeight:"117px"}),[i.top,i.left,u]),j=(0,s.useMemo)(()=>ve(e,I,x,E),[e,I,x,E]);P([c,o],o,null,d,null,h,p);const z=(0,s.useMemo)(()=>["sts-search-dropdown","ddc-box-1","bg-contrast-low","p-4",!h&&"hidden","shadow"],[h]);if(!E?.length&&(!e||!L||void 0===b&&void 0===k&&void 0===R))return null;const q=L&&!g,G=n().createElement("div",{ref:o,className:O(z),"data-testid":"sts-input-dropdown","data-widget-name":"ws-site-text-search",role:"dialog","aria-labelledby":e?"results-heading":"recent-searches-heading","aria-modal":"true",style:W},n().createElement("div",{"aria-live":"assertive",className:O(["sr-only"])},D),j&&n().createElement(Ce,null),V&&n().createElement(_.LoadingBox,{vectorName:"sparkleTwo",isGradient:!0}),q&&n().createElement("div",null,n().createElement("h2",{id:"results-heading",className:O(["sr-only"])},f.get("SEARCH_RESULTS")),S?n().createElement(be,{hasRichContentToDisplay:A,shouldRenderNoResults:$}):n().createElement(n().Fragment,null,N&&!$&&!T&&n().createElement("a",{onClick:B,href:N,className:O(["font-weight-bold","py-3","px-3"])},n().createElement("span",null,M,n().createElement("i",{className:O(["ddc-icon","ddc-icon-arrow-details","ml-3"]),"aria-hidden":"true"}))),n().createElement("div",{className:O(["row"])},n().createElement(Le,{vehicles:R,suggestions:k,shouldRenderNoResults:$,hasRichContentToDisplay:A})))));return t().createPortal(G,document.body)},xe=n().memo(Ie),De=({source:e})=>{const{searchTerm:t,searchTermEmbedded:a,handleOnChangeInput:r,handleSubmission:l,onClear:o,setSearchTerm:i}=(0,s.useContext)(U),{displayType:c,inputElementRef:d,inputRef:u,isEmbeddedOverrideActive:h,isMobile:p,modalIsOpen:g,openModal:f,pageAlias:y,setIsEmbeddedOverrideActive:b}=(0,s.useContext)(H),w=(0,m.useLabels)(),{widgetName:E,windowId:C}=(0,m.useRequestData)(),v=()=>{b(!0),h||i("")},T=(0,s.useCallback)(()=>{S(E,C,"input"===e&&p?{element:"search box",result:"search modal initiated",action:"clicked"}:{element:"search box",result:"search box focused",action:"clicked"})},[E,C,p,c]),{searchPlaceholderLabel:k}=(0,m.usePrefs)(),N=`${y}_${C}`,L=["btn-unstyled text-link-muted","py-3","px-4","btn-sm","border-neutral-0-alpha-3",!g&&"hidden"],x=["input-container text-left",(t||a)&&"has-content"];return n().createElement(n().Fragment,null,n().createElement("div",{ref:u,"data-type":c,"data-testid":"sts-input-display",className:O(["site-text-search-wrapper"])},n().createElement("form",{className:O(["form-control","spacing-reset","d-flex","h-auto"]),autoComplete:"off","data-form-tracking-id":"SITEWIDE_SEARCH","data-form-tracking-type":"typedSearch",role:"search",onSubmit:e=>l(e)},n().createElement("div",{className:O(["ddc-icon","ddc-icon-search-sparkle","input-decoration-color","icon-size-3","p-3"])}),n().createElement("div",{className:O(x)},n().createElement("label",{id:"site-search-label",htmlFor:N,className:O(["floating-placeholder"])},w.get(k)),n().createElement("input",{id:N,className:O(["form-control","site-text-search-input","font-size-ios-zoom-override","form-control-transparent","pl-0"]),"aria-label":w.get(k),onClick:()=>{c!==I&&(f?.(),v?.())},value:"embedded"!==c||h?t:a,onFocus:()=>{T(),c===I||p||g||(f?.(),v?.())},onChange:e=>r(e.target.value),maxLength:100,"data-testid":"sts-input",ref:d})),!(c===R&&!h)&&n().createElement("button",{type:"button",tabIndex:"0","aria-label":w.get("CLEAR"),className:O(L),onClick:()=>{S(E,C,{action:"clicked",element:"clear button",result:"search f
1ield cleared"}),o(),d.current?.focus(),d.current?.setSelectionRange(d.current.value.length,d.current.value.length)},"data-testid":"clear-button"},w.get("CLEAR")))))},Ae=n().memo(De),Oe=DDC.Hysterics;let _e=!0;const Pe=(0,Oe.hysteriFetch)("pagesClientService",{timeout:{timeout:1900},[Oe.wrappers.retry.contextKey]:{retries:1}});const $e=(e,t)=>{let s=[];return(e.length>1||1===e.length&&e[0].count)&&(s=e.filter(e=>e.count>0).map(({suggestion:e,count:s,facetInfo:n})=>({title:e,count:s,facets:Object.keys(n).join(","),path:n?`${t}?${Object.keys(n).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(n[e])}`).join("&")}`:t}))),s},Me=(e,t,s,n)=>{const a=e.filter(({count:e})=>e>0),r=n&&Object.keys(n).length>0?n:null;if(r){return`${t}?${Object.keys(r).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(r[e])}`).join("&")}`}return((e,t,s)=>{if(e.length>0&&void 0!==e[0].facetInfo?.model){const s={};return e.forEach(e=>{Object.entries(e.facetInfo).forEach(([e,t])=>{s[e]||(s[e]=new Set),s[e].add(t)})}),`${t}?${Object.entries(s).map(([e,t])=>`${encodeURIComponent(e)}=${[...t].map(encodeURIComponent).join(",")}`).join("&")}`}return e.length>0&&e?.[0]?.count>1?s?.[0]?.path:""})(a,t,s)},Ue={"phone-sales":["contacts","phones","calls","sales","demos","managers","leases"],"phone-service":["contacts","phones","calls","services","oil changes","battery","batteries","tires","snow tires","managers","car problems"],"phone-parts":["contacts","phones","calls","parts","oil changes","battery","batteries","plows","boxes","tires","snow tires","managers"],"phone-commercial":["contacts","phones","calls","commercials","managers"],email:["contacts","addresses","sales","services","parts","commercials","messages","chats","emails","managers"],address:["contacts","addresses","directions","maps","locations"],"hours-sales":["contacts","hours","sales","times","opens","closes","demos","leasees"],"hours-service":["contacts","hours","services","times","opens","closes","oil changes","battery","batteries","tires","snow tires","car problems"],"hours-parts":["contacts","hours","parts","times","opens","closes","oil changes","battery","batteries","plows","boxes","tires","snow tires"],"hours-commercial":["contacts","hours","commercials","times","opens","closes"]},He={"phone-sales":["contactos","telefonos","teléfonos","llamadas","ventas","manifestaciones","gerentes","arrendamientos"],"phone-service":["contactos","telefonos","teléfonos","llamadas","servicios","cambios de aceite","bateria","batería","baterias","baterías","neumaticos","neumáticos","neumaticos para nieve","neumáticos para nieve","gerentes","problemas con el auto"],"phone-parts":["contactos","telefonos","teléfonos","llamadas","piezas","cambios de aceite","bateria","batería","baterias","baterías","quitanieves","cajas","neumaticos","neumáticos","neumaticos para nieve","neumáticos para nieve","gerentes"],"phone-commercial":["contactos","telefonos","teléfonos","llamadas","comerciales","gerentes"],email:["contactos","direcciones","ventas","servicios","piezas","comerciales","mensajes","charlas","correos electronicos","correos electrónicos","gerentes"],address:["contactos","direcciones","mapas","ubicaciones"],"hours-sales":["contactos","horas","ventas","abre","cierra","manifestaciones","arrendatarios"],"hours-service":["contactos","horas","servicios","abre","cierra","cambios de aceite","bateria","batería","baterias","baterías","neumaticos","neumáticos","neumaticos para nieve","neumáticos para nieve","problemas con el auto"],"hours-parts":["contactos","horas","piezas","veces","abre","cierra","cambios de aceite","bateria","batería","baterias","baterías","quitanieves","cajas","neumaticos","neumáticos","neumaticos para nieve","neumáticos para nieve"],"hours-commercial":["contactos","horas","comerciales","veces","abre","cierra"]},Fe={"phone-sales":["contacts","telephones","téléphones","appels","ventes","demos","démos","dirigeants","baux"],"phone-service":["contacts","telephones","téléphones","appels","services","vidanges d'huile","batterie","batteries","pneus","pneus d'hiver","pneus neige","dirigeants","problemes de voiture","problèmes de voiture"],"phone-parts":["contacts","telephones","téléphones","appels","pieces","pièces","vidanges d'huile","batterie","batteries","charrues","boites","boîtes","pneus","pneus d'hiver","pneus neige","dirigeants"],"phone-commercial":["contacts","telephones","téléphones","appels","publicites","publicités","dirigeants"],email:["contacts","adresses","ventes","services","pieces","pièces","publicites","publicités","messages","discu
1ssions","e-mails","dirigeants"],address:["contacts","adresses","instructions","cartes","emplacements"],"hours-sales":["contacts","heures","ventes","fois","ouvre","ferme","demos","démos","locataires"],"hours-service":["contacts","heures","services","fois","ouvre","ferme","vidanges d'huile","batterie","batteries","pneus","pneus d'hiver","pneus neige","problemes de voiture","problèmes de voiture"],"hours-parts":["contacts","heures","pieces","pièces","fois","ouvre","ferme","vidanges d'huile","batterie","batteries","charrues","boites","boîtes","pneus","pneus d'hiver","pneus neige"],"hours-commercial":["contacts","heures","publicites","publicités","fois","ouvre","ferme"]};let Be=null;async function Ve(e,t,s=[],n="en_US"){if(e.length<t)return[];let r;switch(n.slice(0,2)){case"es":r=He;break;case"fr":r=Fe;break;default:r=Ue}if(Be){const e=Object.entries(r).map(([e,t])=>({name:e,keywords:t}));Be.setCollection(e)}else{const e=(await a.e(929).then(a.bind(a,929))).default,t=Object.entries(r).map(([e,t])=>({name:e,keywords:t}));Be=new e(t,{shouldSort:!0,includeScore:!0,keys:["keywords"],threshold:.2})}const l=e.split(" ");return Array.from(l.reduce((e,t)=>{const n=Be.search(t);return n.length&&t.length>2&&n.forEach(({item:{name:t}})=>{s.includes(t)||e.add(t)}),e},new Set([])))}const We=()=>{const{displayType:e,openButtonRef:a,openModal:r,pageAlias:l}=(0,s.useContext)(H),o=(0,m.useLabels)(),{searchButtonLabel:i,searchButtonIcon:c,searchButtonIconSize:d,searchButtonStyle:u}=(0,m.usePrefs)(),h="navigation"===e;let p=h?null:o.get(i);const g=o.get("SEARCH_THE_WHOLE_SITE"),{deviceType:f,widgetName:y,windowId:w}=(0,m.useRequestData)(),E=h?"a":"button",C=["ddc-icon",h&&"ddc-nav-icon",c?`ddc-icon-${c}`:"ddc-icon-search",d&&`ddc-icon-size-${d}`,p&&"mr-3"],v=[...h?["ddc-nav-icon-link"]:["btn",`btn-${u}`,"text-decoration-none","btn-no-decoration"]],T=`${l}_${w}_navigation`,k=(0,s.useCallback)(()=>{S(y,w,{element:"magnifying glass",result:"search modal initiated",action:"clicked"})},[y,w]);let R;if(h&&b.isBrowser&&(R=document.querySelector(".ws-site-text-search-navigation-target"),R&&f===x)){const e=R.getAttribute("data-sts-button-id");if(e&&e!==T)R=null;else{R.setAttribute("data-sts-button-id",T);const e=R.querySelector(".btn-placeholder");e&&R.removeChild(e),p=R.getAttribute("data-search-label")||null}if(R){const e=["btn","ddc-btn-nav","btn-no-decoration","border-left","btn-search","btn-default","text-center"];v.push(...e)}}const N=n().createElement(E,{type:"button",onClick:()=>{k(),r()},"aria-label":p||g,className:O(v),"data-testid":"sts-buttondisplay",ref:a},n().createElement("i",{className:O(C),"aria-hidden":"true"}),f===x&&p?n().createElement("span",{className:O(["ddc-btn-text"])},p):p);return h?R?t().createPortal(N,R):null:N},je=({isPanelMode:e,children:t})=>e?n().createElement("div",{"data-testid":"sts-panel-content",className:O(["sts-panel-content"])},t):n().createElement(n().Fragment,null,t),ze=({closeButton:e})=>{const{searchTerm:t,numberOfCharactersForFirstSearchNumber:a,fetchingResults:r,isNLSFetchingResults:l}=(0,s.useContext)(U),{doNotRenderResults:o}=(0,s.useContext)(H),i=(0,m.useLabels)(),{recentSearches:c,pageSearchResults:d,preparedInventoryResults:u,handleLinkClick:h,addInfo:p,richContentToDisplay:g,showTabs:f,hasSingleVehicle:y}=(0,s.useContext)(F),{searchPlaceholderLabel:b,display:w}=(0,m.usePrefs)(),E=w===I,C=O(E?["h4","sts-panel-heading"]:["ddc-heading-3","font-weight-bold","text-capitalize","float-left","mt-3","ddc-font-size-xlarge"]),v=O(E?["font-weight-bold","py-3","px-2","ddc-font-size-small"]:["font-weight-bold","py-3","px-2"]),{suggestions:S,vehicles:T,allVehiclesPath:k}=u||{},R=(0,s.useMemo)(()=>t?.length>=a,[t,a]),N=(0,s.useMemo)(()=>Te(d,S,T),[d,S,T]),L=(0,s.useMemo)(()=>Se(d,S,T),[d,S,T]),x=ke(R,N,L),D=(0,s.useMemo)(()=>Re(g,p),[g,p]),A=(0,s.useMemo)(()=>!N&&L&&!D&&!r,[N,L,D,r]),P=(0,s.useMemo)(()=>i.get("VIEW_ALL_VEHICLES_SITE_SEARCH"),[i]),$=(0,s.useCallback)(()=>{h("allInventoryLink",P,"")},[h,P]),M=(0,s.useMemo)(()=>!r&&l,[r,l]),B=R&&!o;return n().createElement(n().Fragment,null,n().createElement("div",{id:"default-flyout-label",className:O(["sr-only"]),"aria-live":"polite","aria-atomic":"true"},i.get(b)),n().createElement("div",{"aria-live":"assertive",className:O(["sr-only"])},x),n().createElement(je,{isPanelMode:E},n().createElement("div",{className:O(["pl-0","py-3","pr-0","clearfix"])},n().createElement("h2",{className:C,id:"search-modal-headline"},i.get("SEARCH")),e),n().createElement(Ae,{source:"flyout"}),n().createElement("div",{className:O(["mt-5","clearfix"])},ve(t,N,L,c)&&n().createElement(Ce,{preventModalClose:!0}),M&&n().createElement(_.LoadingBox,{vectorName:"sparkleTwo",isGradient:!0}),B&&n().createElement("div",null,n().createElement("h2",{id:"results-heading",className:O(["sr-only"])},i.get("SEARCH_RESULTS")),f?n().createElement(be,{hasRichContentToDisplay:D,shouldRenderNoResults:A}):n().createElement(n().Fragment,null,k&&!A&&!y&&n().createElement("a",{onClick:$,href:k,className:v},n().createElement("span",null,P,n().createElement("i",{className:O(["ddc-icon","ddc-icon-arrow-detail
1s","ml-3"]),"aria-hidden":"true"}))),n().createElement("div",{className:O(["row"])},n().createElement(Le,{vehicles:T,suggestions:S,shouldRenderNoResults:A,hasRichContentToDisplay:D})))))))};ze.defaultProps={closeButton:null};const qe=n().memo(ze),Ge=["btn-unstyled text-link-muted","py-0","px-0","my-3","border-neutral-0-alpha-3","float-right"],Ye=()=>{const t=(0,s.useRef)(null),{searchTerm:a}=(0,s.useContext)(U),{openButtonRef:r,closeModal:l,inputElementRef:o,modalIsOpen:i,isMobile:c,screenWidth:d,setIsEmbeddedOverrideActive:u}=(0,s.useContext)(H),h=(0,m.useLabels)(),{recentSearches:p}=(0,s.useContext)(F),[g,f]=(0,s.useState)(!1);P([r,t],null,t,null,r,i,l);const y=d>768,b=(0,s.useMemo)(()=>["sts-search-flyout","box","pt-4 pb-4 pl-5 pr-5",g&&"slide-left",c||y?c&&"mobile":"one-column",y&&"two-columns"],[g,c,y]),w=(0,s.useCallback)(()=>{u(!1),l()},[u,l]),E=(0,s.useCallback)(e=>{e.stopPropagation()},[]),C=(0,s.useMemo)(()=>a?"search-modal-headline":p?.length>0?"recent-searches-heading":"default-flyout-label",[a,p]);(0,s.useEffect)(()=>{const e=setTimeout(()=>{f(!0)},50);return i&&(document.body.style.overflow="hidden",o.current?.focus()),()=>{clearTimeout(e)}},[i,o]);const v=n().createElement("button",{type:"button",tabIndex:"0","aria-label":h.get("CLOSE_MODAL"),className:O(Ge),"data-testid":"flyout-close-button",onClick:e=>{E(e),w(D)},onMouseDown:E,onTouchStart:E,onKeyDown:e=>{"Enter"===e.key&&(E(e),w(D),setTimeout(()=>{r.current?.focus()},10))}},n().createElement("i",{className:O(["ddc-icon","ddc-icon-remove2","icon-size-2"]),"aria-hidden":"true"})),S=n().createElement(n().Fragment,null,n().createElement("div",{className:O(["sts-search-modal","clearfix"]),role:"none","data-testid":"sts-flyout-background",onClick:()=>w(D),"data-widget-name":"ws-site-text-search"}),n().createElement("div",{className:O(b),role:"dialog","aria-labelledby":C,ref:t,tabIndex:"-1","data-testid":"sts-flyout","data-widget-name":"ws-site-text-search"},n().createElement(qe,{closeButton:v})));return(0,e.createPortal)(S,document.body)},Ke=n().memo(Ye),Je=({pageCallback:e,currentPage:t,pageIndex:s})=>{const a=s===t,r=a?"active":null,l=a?"page":null,o=s+1;return n().createElement("li",{className:r,"data-testid":`site-text-search-pagination-page-${o}-li`},n().createElement("a",{"aria-current":l,key:s,href:"#page-body",onClick:()=>e(s),"aria-label":`Goto Page ${o}`,"data-testid":`site-text-search-pagination-page-${o}-a`,title:a?`Currently viewing page ${o} of matching results`:`Go to page ${o} of matching results`},o))},Ze=({pageCallback:e,currentPage:t})=>n().createElement("nav",{role:"navigation","aria-label":"Pagination navigation",className:O(["site-text-search-pagination"]),"data-testid":"site-text-search-pagination"},n().createElement("ul",{className:O(["pagination"])},n().createElement(Je,{pageCallback:e,currentPage:t,pageIndex:0}),n().createElement(Je,{pageCallback:e,currentPage:t,pageIndex:1}),n().createElement("li",null,n().createElement("a",{href:"#","aria-label":"Go to next page",onClick:()=>e(1)},n().createElement("i",{className:O(["ddc-icon","ddc-icon-arrow1-right"]),"aria-hidden":"true"}))))),Xe=()=>{const{searchTermEmbedded:e,numberOfCharactersForFirstSearchNumber:t,fetchingResults:a}=(0,s.useContext)(U),{embeddedDropDownRef:r,inputRef:l,inputElementRef:o,modalIsOpen:i,closeModal:c}=(0,s.useContext)(H),d=(0,m.useLabels)(),{recentSearches:u,pageSearchResultsEmbedded:h,addInfo:p,richContentToDisplayEmbedded:g,noResultsLinks:f}=(0,s.useContext)(F),y=void 0,b=void 0,[w,C]=(0,s.useState)(0),v=e?.length>=t,S=[[],[]],T=Te(h,y,b),k=Se(h,y,b),R=Re(g,p),N=!T&&k&&!R&&!a;P([l,r],r,null,o,null,i,c);const L=e=>{C(e),E("wsSiteTextSearchDebug",{eventName:"ws-site-text-search pagination event",page:e})};if(!(u?.length||e&&v&&void 0!==h))return null;h?.length>15&&h.forEach((e,t)=>{t<15?S[0].push(e):S[1].push(e)});return n().createElement("div",{ref:r,className:O(["sts-search-dropdown","p-4"]),"data-testid":"sts-input-dropdown",role:"dialog","aria-labelledby":e?"results-heading":"recent-searches-heading","aria-modal":"true"},v&&n().createElement("div",null,n().createElement("h2",{id:"results-heading",className:O(["sr-only"])},d.get("SEARCH_RESULTS")),n().createElement(ge,{vehicles:!1},h?.length>0?(()=>{let e;return e=h?.length>15?n().createElement("div",{className:"search-link-wrapper"},n().createElement(j,{type:"page",data:S[w],isEmbedded:!0}),n().createElement("div",{className:O(["row"])},n().createElement("div",{className:O(["col-xs-12"])},n().createElement(Ze,{pageCallback:L,currentPage:w})))):n().createElement(j,{type:"page",data:h,isEmbedded:!0}),e})():null,N&&n().createElement(n().Fragment,null,n().createElement(fe,null),n().createElement(j,{type:"no-results",showResults:"true",data:f})),(R||N)&&n().createElement(pe,null))))};async function Qe(e,t,s,n,a,r,l,o,i,c,d,u){const m=(0,Oe.hysteriFetch)("nlsClientService",{[Oe.wrappers.circuitBreaker.contextKey]:{timeout:1e4},[Oe.wrappers.timeout.contextKey]:{timeout:1e4},[Oe.wrappers.retry.contextKey]:{retries:0}});let h=!0;"Oldest First"===i&&(h=!1);const p={siteId:t,locale:s,device:n,pageAlias:a,windowId:r,widgetName:l,listingConfigId:"auto-new,auto-used",facetInstanceId:"listing",shouldReturnCardsAlso:!0,sortByNewest:h,query:o,conditionFilter:u};return c&&(p.userPostalCode=d),m(`${e}/nlInventorySearch`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(p)})}async function et({query:e,widgetSearchServiceUri:t,siteId:s,locale:n,device:a,pageAlias:r,windowId:l,widgetName:o,getPathByCondition:i,processSuggestions:c,pageSearchResults:d,setDidRequestTimeout:u,setRequestTimeoutType:m,accountId:h,searchTerm:p,displayType:g,vehicleOrder:f,prioritizeClosestVehicles:y,userPostalCode:w}){const[C,v,S]=await Promise.all(["NEW","USED","CERTIFIED"].map(async d=>{const C=i(d);try{const i=await Qe(t,s,n,a,r,l,o,e,f,y,w,d),{sortedSuggestions:u,transformedSuggestions:m}=c(i,C);return{...i,allVehiclesPath:Me(u,C,m,i?.nlsFacets)}}catch(e){return"TimeoutError"===e.name&&(u(!0),m("nls")),b.isBrowser&&window?.newrelic&&E("ws-site-text-search-fetch-error",{errorType:"fetchNLSResults",accountId:h,siteId:s,locale:n,widgetName:o,searchTerm:p,type:g.toString(),endpoint:`${t}/nlInventorySearch`,conditionFilter:d||"all",error:e}),console.error(`NLS fetch failed for ${d}, using empty results:`,e),{pageResults:[],suggestions:[],vehicles:[]}}}));return{inventorySearchResponse:{new:{...C,suggestions:$e(C?.suggestions,i("NEW"))},used:{...v,suggestions:$e(v?.suggestions,i("USED"))},certified:{...S,suggestions:$e(S?.suggestions,i("CERTIFIED"))}},pageSearchResponse:d}}async function tt({query:e,widgetSearchServiceUri:t,siteId:s,locale:n,device:a,pageAlias:r,windowId:l,widgetName:o,getPathByCondition:i,processSuggestions:c,pageSearchResults:d,vehicleOrder:u,prioritizeClosestVehicles:m,userPostalCode:h}){const p=i("DEFAULT"),g=await Qe(t,s,n,a,r,l,o,e,u,m,h,void 0),{sortedSuggestions:f,transformedSuggestions:y}=c(g,p);return{inventorySearchResponse:{...g,suggestions:y,allVehiclesPath:Me(f,p,y,g?.nlsFacets)},pageSearchResponse:d}}async function st({query:e,getPageResults:t,getInventoryResults:s}){const[n,a,r,l]=await Promise.all([t(e),s(e,"NEW"),s(e,"USED"),s(e,"CERTIFIED")]);return{inventorySearchResponse:{new:a,used:r,certified:l},pageSearchResponse:n}}async function nt({query:e,getPageResults:t,getInventoryResults:s}){const[n,a]=await Promise.all([t(e),s(e)]);return{inventorySearchResponse:a,pageSearchResponse:n}}const at=["phone-sales","hours-sales","email"],rt=({displayType:e,isMobile:t})=>{const{accountId:a,siteId:l,widgetSearchServiceUri:o,configTypes:i,pageAlias:c,geoZip:d,showLoader:u}=(0,r.useSelector)(e=>e.widgetData);let h;"undefined"!=typeof window&&(window.DDC=window.DDC||{},window.DDC.WidgetData=window.DDC.WidgetData||{},h=d||window.DDC.dataLayer.user.userPostalCode);const p=e===R,g=(0,m.useLabels)(),f=(0,m.useFlags)(),y=(0,m.useSitemap)(),{numberOfCharactersForFirstSearch:w,overrideAllInventoryAlias:v,noResultsLinks:N,vehicleOrder:x,enableConditionTabs:D,showCityAndState:O,prioritizeClosestVehiclesToShopper:_}=(0,m.usePrefs)(),P=parseInt(w,10),$="true"===D,M="true"===O,B="true"===_&&h,{windowId:V,locale:W,widgetName:j,deviceType:z}=(0,m.useRequestData)(),q=(0,s.useRef)(null),G=(0,s.useRef)(null),Y=(0,s.useRef)(null),K=(0,s.useRef)(null),J=(0,s.useRef)(null),[Z,X]=(0,s.use
1State)({top:0,left:0}),[Q,ee]=(0,s.useState)(0),[te,se]=(0,s.useState)(!1),[ne,ae]=(0,s.useState)(""),[re,le]=(0,s.useState)(""),[oe,ie]=(0,s.useState)(),[ce,de]=(0,s.useState)(),[ue,me]=(0,s.useState)(),[he,pe]=(0,s.useState)(),[ge,fe]=(0,s.useState)([]),[ye,be]=(0,s.useState)([]),[we,Ee]=(0,s.useState)(!1),[Ce,ve]=(0,s.useState)(!1),[Se,Te]=(0,s.useState)(!1),[ke,Re]=(0,s.useState)(!0),[Ne,Le]=(0,s.useState)(0),[Ie,De]=(0,s.useState)(!1),[Ue,He]=(0,s.useState)(!1),[Fe,Be]=(0,s.useState)("new"),[je,ze]=(0,s.useState)([]),[Ge,Ye]=(0,s.useState)(!1),[Je,Ze]=(0,s.useState)(),Qe=(0,s.useRef)(null),rt=(0,s.useRef)(0),lt=f["ws-site-text-search-nls-timeout"]||1e3,ot=f["ws-site-text-search-ffss-debounce"],it=(0,s.useMemo)(()=>$?{new:{vehicles:oe?.new?.vehicles||[],suggestions:oe?.new?.suggestions||[],allVehiclesPath:oe?.new?.allVehiclesPath||""},used:{vehicles:oe?.used?.vehicles||[],suggestions:oe?.used?.suggestions||[],allVehiclesPath:oe?.used?.allVehiclesPath||""},certified:{vehicles:oe?.certified?.vehicles||[],suggestions:oe?.certified?.suggestions||[],allVehiclesPath:oe?.certified?.allVehiclesPath||""}}:oe,[$,oe]),[ct,dt]=(0,s.useState)(!1);(0,s.useEffect)(()=>{$&&!0===((...e)=>!!e.some(e=>e?.vehicles?.length>0)||!e.map(e=>e?.suggestions||[]).filter(e=>e.length>0).flat().every(e=>1===e.count))(it?.new,it?.used,it?.certified)?dt(!0):dt(!1);const e=[...it?.new?.vehicles||[],...it?.used?.vehicles||[],...it?.certified?.vehicles||[],...oe?.vehicles||[]];He(1===e.length)},[it,oe,f]);const ut=ce?.length>0||oe?.suggestions?.length>0||oe?.vehicles?.length>0||ct,mt=(0,s.useMemo)(()=>N.split(",").map(e=>{const t=e.trim();return{alias:t,title:g.get(`${t}_SEARCH_LINK`),path:y.get(t),icon:t.startsWith("INVENTORY_LISTING")?"ddc-icon-single-vehicle":"ddc-icon-arrow-circle-right"}}),[N]),ht=e=>/\b\w+\b\s*\b\w+\b/.test(e.trim()),pt=(0,s.useCallback)(async()=>{if("undefined"!=typeof window&&!he){const e=window.navigator.userAgent.includes("iPhone")?"iPhone":"not-apple-mobile-device",t={timeout:f["wsm-account-data-distributor-timeout"]};try{const s=await fetch(`${o}/addData/${a}/${e}/${l}/${W}/${j}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),n=await s.json();pe(n)}catch(e){return"TimeoutError"===e.name&&(Ye(!0),Ze("add")),b.isBrowser&&window?.newrelic&&E("ws-site-text-search-fetch-error",{errorType:"fetchAddInfo",accountId:a,siteId:l,locale:W,widgetName:j,endpoint:`${o}/addData`,error:e}),console.error(`addData fetch failed, using empty results:', ${e}`),{}}}},[a,he,W,l,j,o]),gt=(0,s.useCallback)(()=>{if(q.current){const e=q.current.getBoundingClientRect(),t=e.bottom+window.scrollY,s=e.left+window.scrollX,n=e.bottom+window.scrollY,a=Math.max(t,n);X(e=>e.top!==a||e.left!==s?{top:a,left:s}:e),ee(e.width)}},[q]);(0,s.useEffect)(()=>{"embedded"===e&&q.current&&ee(q.current.offsetWidth)},[e]);
1const ft=(0,s.useCallback)(()=>{if("undefined"==typeof localStorage)return[];try{const e=localStorage.getItem(A);return e?JSON.parse(e):[]}catch(e){return[]}},[]),[yt,bt]=(0,s.useState)(ft),wt=y.get("404"),Et=y.get("SITE_TEXT_SEARCH_RESULTS")||wt,Ct=(0,s.useRef)(!1),vt=(0,s.useCallback)(()=>{Ct.current||(pt(),Ct.current=!0),(!te&&!window?.DDC?.WidgetData?.[j]?.modalIsOpen&&(yt?.length>0||ut||ne?.length>P)||"input"!==e||ge.length>0||t)&&(window.DDC.WidgetData[j]={modalIsOpen:!0},bt(ft),C("wsSiteTextSearch-modalOpened","true"),se(!0))},[te,j,ne]),St=(0,s.useCallback)(()=>{k(j,V,se,ae,Ie,De,e===I)},[Ie,j,V,e]),Tt=(0,s.useCallback)(()=>{const e=ne?.trim()?.substring(0,100);if(e)try{const t=(JSON.parse(localStorage.getItem(A))||[]).filter(t=>t.value!==e);t.length>=10&&t.pop();const s=[{value:e},...t];localStorage.setItem(A,JSON.stringify(s)),bt(s)}catch(e){}},[ne]),kt=(0,s.useCallback)(e=>{bt(t=>{const s=t.filter(t=>t.value!==e);try{localStorage.setItem(A,JSON.stringify(s))}catch(e){}return 0===s.length&&J.current?.focus(),s})},[]),Rt=(0,s.useCallback)(e=>{const t=yt.filter(t=>t.value!==e.value),s=[e,...t];bt(s);try{localStorage.setItem(A,JSON.stringify(s))}catch(e){}},[yt]),Nt=(0,s.useCallback)(async t=>{const s="embedded"===e?25:5;try{const e=await async function({searchTerm:e,siteId:t,locale:s="en_US",widgetSearchServiceUri:n="",limit:a}){return Pe(`${n}/pageSearch/${t}/${s}?q=${encodeURIComponent(e)}&limit=${a}`)}({searchTerm:t,siteId:l,locale:W,widgetSearchServiceUri:o,limit:s});return e?.sort((e,t)=>t.score-e.score)}catch(e){return"TimeoutError"===e.name&&(Ye(!0),Ze("pages")),b.isBrowser&&window?.newrelic&&E("ws-site-text-search-fetch-error",{errorType:"getPageResults",accountId:a,siteId:l,locale:W,widgetName:j,endpoint:`${o}/pageSearch`,error:e}),console.error(`pageSearch fetch failed, using empty results: ${e}`),[]}},[e,l,W,o,a,j]),Lt=(0,s.useRef)(!0),It=(0,s.useCallback)(e=>({NEW:y.get("INVENTORY_LISTING_DEFAULT_AUTO_NEW")||wt,USED:y.get("INVENTORY_LISTING_DEFAULT_AUTO_USED")||wt,CERTIFIED:y.get("INVENTORY_LISTING_DEFAULT_AUTO_CERTIFIED_USED")||wt,DEFAULT:(v?y.get(v):y.get("INVENTORY_LISTING_DEFAULT_AUTO_ALL"))||wt}[e]),[y,wt,v]);function xt(e,t){let s=[],n=[];return e?.suggestions&&e?.suggestions.length&&(s=e.suggestions.sort((e,t)=>t.count-e.count),n=$e(s,t)),{sortedSuggestions:s,transformedSuggestions:n}}const Dt=(0,s.useCallback)(async(t,s)=>{if("embedded"===e&&Lt.current)return void(Lt.current=!1);const n=f["ws-site-text-search-inventory-client-timeout"],r=It(s||"DEFAULT"),c=await async function({searchTerm:e,siteId:t,locale:s="en_US",widgetSearchServiceUri:n="",configTypes:a,resultsPageAlias:r="",inventoryFetchTimeout:l,shouldReturnCardsAlso:o,vehicleOrder:i,conditionFilter:c,prioritizeClosestVehicles:d,userPostalCode:u}){const m=(0,Oe.hysteriFetch)("inventoryClientService",{[Oe.wrappers.timeout.contextKey]:{timeout:l},[Oe.wrappers.retry.contextKey]:{retries:1}});let h=!0;"Oldest First"===i&&(h=!1);let p=`${n}/inventorySearch/${t}/${s}?q=${encodeURIComponent(e)}&ct=${a}&shouldReturnCardsAlso=${o}&sortByNewest=${h}`;c&&(p+=`&conditionFilter=${c}`),d&&(p+=`&userPostalCode=${u}`);const g=await m(p);if(window.location.href.includes(r)&&_e&&document.referrer.startsWith(window.location.origin)){const e=g&&g.suggestions||[],{count:t}=e[0]||0;t>0&&C("wsSiteTextSearch-navigatedToSearchPageByError","true"),_e=!1}return g}({searchTerm:t,siteId:l,locale:W,widgetSearchServiceUri:o,configTypes:i,resultsPageAlias:Et,inventoryFetchTimeout:n,shouldReturnCardsAlso:!0,vehicleOrder:x,conditionFilter:s,prioritizeClosestVehicles:B,userPostalCode:h}).catch(e=>("TimeoutError"===e.name&&(Ye(!0),Ze("inventory")),b.isBrowser&&window?.newrelic&&E("ws-site-text-search-fetch-error",{errorType:"getInventoryResults",accountId:a,siteId:l,locale:W,widgetName:j,endpoint:`${o}/inventorySearch`,conditionFilter:s||"all",error:e}),console.error(`inventorySearch fetch failed, using empty results: ${e}`),{suggestions:[],vehicles:[],allVehiclesPath:r}));if(c){const{vehicles:e,searchTerm:s}=c;if(s===t.replace("+"," ")){const{sortedSuggestions:t,transformedSuggestions:s}=xt(c,r);return{suggestions:s,allVehiclesPath:Me(t,r,s),vehicles:e}}}return[]},[e,Lt,f,l,W,o,i,Et,x,wt,v,y]),At=e=>{const t=["new","used","certified"],s=t.filter(t=>!e[t]?.vehicles?.length&&!e[t]?.suggestions?.length);ze(s);const n=t.find(e=>!s.includes(e));Be(n||"new")},Ot=()=>$?["new","used","certified"].every(e=>!it?.[e]?.vehicles?.length):!oe?.vehicles?.length,_t=!(!ne||0!==ce?.length||!Ot()||0!==ge?.length),Pt=(0,s.useCallback)(async(t,s=!1)=>{rt.current+=1;const n=rt.current;let r,i;Re(!0),Te(s);try{const d=await async function({isNLS:e,isConditionTabsEnabled:t,query:s,context:n}){let a;return a=e&&t?et:e&&!t?tt:!e&&t?st:nt,a({query:s,...n})}({isNLS:s,isConditionTabsEnabled:$,query:t,context:{widgetSearchServiceUri:o,siteId:l,locale:W,device:z,pageAlias:c,windowId:V,widgetName:j,getPathByCondition:It,processSuggestions:xt,pageSearchResults:ce,setDidRequestTimeout:Ye,setRequestTimeoutType:Ze,accountId:a,searchTerm:ne,displayType:e,getPageResults:Nt,getInventoryResults:Dt,vehicleOrder:x,prioritizeClosestVehicles:B,userPostalCode:h}});if(i=d.inventorySearchResponse,r=d.pageSearchResponse,n!==rt.current)return;ie(i),r&&de(r)}catch(e){if(!s)throw e;if("TimeoutError"===e.name&&(Ye(!0),Ze("nls")),b.isBrowser&&window?.newrelic&&E("ws-site-text-search-fetch-error",{errorType:"fetchNLSResults",accountId:a,siteId:l,locale:W,widgetName:j,endpoint:`${o}/nlInventorySearch`,searchTerm:ne,error:e}),console.error("NLS search failed, using empty results:",e.message),i={pageResults:[],suggestions:[],vehicles:[]},n!==rt.current)return;ie(i)}if($&&At(i),!s){const e=[],s=await Ve(t,P,e,W);if(n!==rt.current)return;fe(s)}if(n!==rt.current)return;Re(!s&&(($?["new","used","certified"].every(e=>!i?.[e]?.vehicles?.length):!i?.vehicles?.length)&&ht(t))),Ee(!1),t.length>=P&&se(!0);const d=performance.now()-Qe.current;b.isBrowser&&window?.newrelic&&E("wsSiteTextSearchDebug",{eventName:"ws-site-text-search render duration",renderDuration:d,type:e.toString()})},[Nt,Dt,$,At,o,l,W,z,c,V,j,i,It]);(0,s.useEffect)(()=>
1{if(!ke){const e=[],t=[],s=Se?" (NLS)":"";oe?.new?.vehicles?.length&&t.push("New"),oe?.used?.vehicles?.length&&t.push("Used"),oe?.certified?.vehicles?.length&&t.push("Certified"),t.length?e.push(`${t.join(" and ")} > Inventory Results${s}`):$||!oe?.suggestions?.length&&!oe?.vehicles?.length||e.push(`Inventory Results${s}`),ce?.length&&e.push("Non-Inventory Results");let n=e.length?`${e.join(" and ")} Populated`:"No Results Populated";"No Results Populated"===n&&(ge?.length>0||ye?.length>0)&&(n="Rich Content Results Populated"),S(j,V,{element:"search query typed in",result:n,action:"impression",fieldValue:ne,nonInteractive:!1,pageSearchResultsCount:ce?.length||0})}},[ke]),(0,s.useEffect)(()=>{const t=setTimeout(async()=>{void 0!==oe&&Ot()&&ht(ne)&&!we&&(ve(!0),Re(!0),await Pt(ne,!0),b.isBrowser&&window?.newrelic&&E("wsSiteTextSearchDebug",{eventName:"ws-site-text-search NLS query",searchTerm:ne,searchTermLength:ne.length,searchTermWords:ne.split(" ").length,type:e.toString()})),!0!==u&&"true"!==u&&ve(!1)},lt);return()=>clearTimeout(t)},[we,ne]);const $t=(0,s.useCallback)(async e=>{const[t]=await Promise.all([Nt(e),Dt(e)]);me(t);const s=await Ve(e,P,[],W);be(s)},[]),Mt=(0,s.useCallback)((e,t,s,n=!0)=>{n&&Tt();const a=ct?`${Fe} > `:"";switch(e){case"vehicleLink":S(j,V,{action:"clicked",element:"vehicle card",elementCTA:t||"",result:`${a}navigated to VDP`,fieldValue:ne});break;case"richContentLink":S(j,V,{action:"clicked",element:"rich content autocomplete result",elementCTA:t||"",result:`${a}${s||"navigated to rich content destination"}`,fieldValue:ne});break;case"inventoryLink":S(j,V,{action:"clicked",element:"autocomplete inventory result",elementCTA:t||"",result:`${a}text search form submitted`,fieldValue:ne});break;case"pageLink":S(j,V,{action:"clicked",element:"autocomplete quick link result",elementCTA:t||"",result:`${a}text search form submitted`,fieldValue:ne});break;case"allInventoryLink":S(j,V,{action:"clicked",element:"All inventory link",elementCTA:t||"",result:`${a}text search form submitted`,fieldValue:ne});break;case"noResultsLink":S(j,V,{action:"clicked",element:"No results link",elementCTA:t||"",result:"Navigated to CTA destination",fieldValue:ne})}},[Tt,j,V,ne,ct,Fe]),Ut=(0,s.useCallback)(e=>{if(e?.preventDefault(),we||ke)return;C("wsSiteTextSearch-onSubmit","true");const t=[...it?.new?.vehicles||[],...it?.used?.vehicles||[],...it?.certified?.vehicles||[],...oe?.vehicles||[]],s=[...it?.new?.suggestions||[],...it?.used?.suggestions||[],...it?.certified?.suggestions||[],...oe?.suggestions||[]];if(t.length>0&&!s?.length||Ue){const e=t[0]?.path;C("wsSiteTextSearch-onSubmitSingleVehicleCard","true");const s=t[0],n=Array.isArray(s.title)?s.title.join(" "):s.title,a=n.length>50?`${n.substring(0,50)}...`:n;Mt("vehicleLink",a,""),window.location.href=e}else if(_t)C("wsSiteTextSearch-onSubmitNoResultsNotRedirected","true"),e.preventDefault();else if(s?.length)if(C("wsSiteTextSearch-onSubmitRedirectedToAllInventory","true"),$)switch(Fe){case"new":window.location.href=`${oe?.new?.allVehiclesPath}`;break;case"used":window.location.href=`${oe?.used?.allVehiclesPath}`;break;case"certified":window.location.href=`${oe?.certified?.allVehiclesPath}`;break;default:window.location.href=`${oe?.allVehiclesPath}`}else window.location.href=`${oe?.allVehiclesPath}`;else C("wsSiteTextSearch-onSubmitRedirectedToSearchResults","true"),window.location.href=`${Et}?search=${encodeURIComponent(ne)}`},[we,oe,_t,Mt,ne,Et,it,Fe,ct]),Ht=(0,s.useCallback)(e=>{Ee(!0),e?.preventDefault(),!ne?.trim()||ne.length<P||(C("wsSiteTextSearch-enterKey",ne),_t||Tt(ne),Ut(e),te||se(!0),Ee(!1))},[ne,P,_t,Tt,Ut,te]),Ft=(0,s.useCallback)(()=>{try{localStorage.removeItem(A)}catch(e){}J.current?.focus(),bt([]),se(!1),S(j,V,{element:"clear history link",elementCTA:g.get("CLEAR_HISTORY"),result:"all chips removed",action:"clicked"})},[j,V]),Bt=(0,s.useCallback)(()=>{try{localStorage.removeItem(A)}catch(e){}J.current?.focus(),bt([]),S(j,V,{element:"clear history link",elementCTA:g.get("CLEAR_HISTORY"),result:"all chips removed",action:"clicked"})},[j,V]),Vt=(0,s.useCallback)((e,t)=>e?.current&&!e.current.contains(t),[]),Wt=(0,s.useCallback)((e,t)=>e?.current&&e.current.contains(t),[]),jt=(0,s.useCallback)(e=>{const{target:t}=e,s=Vt(q,t),n=Vt(G,t),a=Wt(Y,t),r=Vt(Y,t);(s&&n||p&&s&&a||s&&r&&!G.current?.contains(e.target))&&St()},[Vt,Wt,q,G,Y,p,St]),zt=(0,s.useCallback)(t=>{Ye(!1),Ze(null),"embedded"!==e||Ie?ae(t):le(t),t.length>=P?se(!0):0!==t.length||0!==yt.length||te||se(!1)},[P,yt.length,e,Ie,te]),qt=(0,s.useCallback)(e=>{ae(e),J.current?.focus()},[]);(0,s.useEffect)(()=>{const e=()=>Le(window.innerWidth);e();const t=T(gt,150),s=T(e,150);return te&&(gt(),window.addEventListener("resize",t),window.addEventListener("resize",s),window.addEventListener("scroll",t),document.addEventListener("mousedown",jt)),()=>{window.removeEventListener("resize",t),window.removeEventListener("scroll",t),window.removeEventListener("resize",s),t.cancel(),document.removeEventListener("mousedown",jt)}},[te]);const Gt=(0,s.useRef)(null),Yt=(0,s.useMemo)(()=>t?ot.mobile:ot.desktop,[t]);(0,s.useEffect)(()=>{const e=ne.trim();return e.length>=P?(Qe.current=performance.now(),Gt.current&&clearTimeout(Gt.current),Gt.current=setTimeout(()=>{Ee(!0),Re(!0),Pt(e,!1)},Yt)):e.length<P&&(fe([]),ie(void 0),de(void 0),Ee(!1)),()=>{Gt.current&&clearTimeout(Gt.current)}},[ne]);const Kt=e===L;(0,s.useEffect)(()=>Kt?(document.addEventListener("ws-site-text-search-open-modal",vt),
1()=>{document.removeEventListener("ws-site-text-search-open-modal",vt)}):()=>{},[Kt,vt]),(0,s.useEffect)(()=>{const e=re.trim();e?.length>=P?$t(e):e?.length<P&&(fe([]),ie(void 0),de(void 0))},[re]),(0,s.useEffect)(()=>{if(Ct.current||"embedded"!==e&&e!==I||(pt(),Ct.current=!0),p&&b.isBrowser&&window){const e=new URLSearchParams(window.location.search);e.has("search")&&le(e?.get("search"))}b.isBrowser&&window?.newrelic&&E("wsSiteTextSearchDebug",{eventName:"ws-site-text-search on page",type:e.toString()})},[]);const Jt=(0,s.useMemo)(()=>{let e=[],t=[],s="";return it&&(it.new||it.used||it.certified)?Fe&&it[Fe]&&(e=it[Fe].suggestions||[],t=it[Fe].vehicles||[],s=it[Fe].allVehiclesPath||""):(e=it?.suggestions||[],t=it?.vehicles||[],s=it?.allVehiclesPath||""),{suggestions:e,vehicles:t,allVehiclesPath:s}},[it,Fe]);let Zt=null;const Xt=(0,s.useCallback)(()=>{ae(""),le("")},[]),Qt=(0,s.useMemo)(()=>({fetchingResults:we,handleChipClick:qt,handleOnChangeInput:zt,handleSubmission:Ht,numberOfCharactersForFirstSearchNumber:P,onClear:Xt,searchTerm:ne,searchTermEmbedded:re,setSearchTerm:ae,setSearchTermEmbedded:le,isNLSFetchingResults:Ce}),[we,qt,zt,Ht,P,Xt,ne,re,Ce]),es=(0,s.useMemo)(()=>({closeModal:St,displayType:e,dropDownPosition:Z,dropDownRef:G,embeddedDropDownRef:Y,inputElementRef:J,inputRef:q,inputWidth:Q,isEmbeddedOverrideActive:Ie,isMobile:t,modalIsOpen:te,openModal:vt,openButtonRef:K,pageAlias:c,screenWidth:Ne,setIsEmbeddedOverrideActive:De,setModalIsOpen:se,updateDropDownPosition:gt,showCityAndStateBoolean:M,doNotRenderResults:ke}),[St,e,Z,Q,Ie,t,te,vt,c,Ne,gt,M,ke]),ts=(0,s.useMemo)(()=>({activeInventoryTab:Fe,addInfo:he,accountId:a,disabledTabs:je,handleClearHistory:Ft,handleClearHistoryNoClose:Bt,handleLinkClick:Mt,hasSingleVehicle:Ue,inventoryResults:it,noResultsLinks:mt,noResultsRichContent:at,didRequestTimeout:Ge,requestTimeoutType:Je,pageSearchResults:ce,pageSearchResultsEmbedded:ue,preparedInventoryResults:Jt,richContentToDisplay:ge,recentSearches:yt,removeRecentSearch:kt,reorderRecentSearches:Rt,richContentToDisplayEmbedded:ye,setActiveInventoryTab:Be,showTabs:ct}),[Fe,he,a,je,Ft,Bt,Mt,Ue,it,mt,Ge,Je,ce,ue,Jt,ge,yt,kt,Rt,ye,ct]);switch(e){case"embedded":Zt=n().createElement(n().Fragment,null,(!Ie||!t)&&n().createElement(Ae,{source:"embedded"}),n().createElement(Xe,null),te&&!t&&Ie&&n().createElement(xe,null),te&&t&&Ie&&n().createElement(Ke,null));break;case"input":Zt=n().createElement(n().Fragment,null,n().createElement(Ae,{source:"input"}),te&&!t&&n().createElement(xe,null),te&&t&&n().createElement(Ke,null));break;case"navigation-drawer":Zt=n().createElement(qe,null);break;default:Zt=n().createElement(n().Fragment,null,n().createElement(We,{"data-testid":"sts-input"}),te&&n().createElement(Ke,null))}return n().createElement(H.Provider,{value:es},n().createElement(U.Provider,{value:Qt},n().createElement(F.Provider,{value:ts},Zt)))},lt=()=>{"undefined"!=typeof window&&(window.DDC=window.DDC||{},window.DDC.WidgetData=window.DDC.WidgetData||{},window.DDC.dataLayer=window.DDC.dataLayer||{});const{deviceType:e}=(0,m.useRequestData)(),{display:t,hideWidgetOnPages:a}=(0,m.usePrefs)(),{widgetData:{pageAlias:l}}=(0,r.useSelector)(e=>e),o=e===x,i=!0===(0,m.useFlags)()["enable-ws-navigation-replacement"],c=t===L;if((0,s.useEffect)(()=>{b.isBrowser&&i&&c&&(window.DDC.EventFired=window.DDC.EventFired||{},window.DDC.EventFired["ws-sts-navigation-registered"]=!0)},[]),a.split(",").some(e=>e.trim()===l))return null;let d=null;return d=n().createElement(rt,{displayType:t,isMobile:o}),n().createElement(g,{errorHandler:(e,t)=>{const s=new Error(`Encountered an error in ws-site-text-search.\n${e}`);s.originalError=e,s.originalStackTrace=t.componentStack,y().error(`${s}\n${s.originalStackTrace}`)}},d,t===N&&n().createElement("div",{"data-location":"site-text-search",className:"ddc-content web-api-added-placeholder text-center"}))},ot=(e,t,s)=>{const n=["ddc-content",t];return e&&n.push(e),s&&n.push("collapse-container"),n},it=(e,t,s)=>{const n=[],{widgetHeading:a,headingIconClasses:r,headingIconSize:l,headingIconStyle:o}=e;return a&&t&&(n.push("ddc-icon"),s||n.push(`ddc-icon-${o}`),l&&n.push(`ddc-icon-size-${l}`),r&&n.push(r)),n},ct=(e,t,s)=>{const n=[],{headingSize:a,headingStyles:r,headingClasses:l}=e;return n.push("widget-heading"),"MOBILE"===t&&n.push("ddc-heading"),l&&n.push(l),a&&n.push(a),r&&n.push(`ddc-heading-${r}`),s&&n.push("collapse-heading"),n},dt=({outputWrapperDiv:e,store:t,widgetId:s,widgetName:a})=>{const l=t.getState(),o=l.prefs||{},i=o.widgetHeading&&"true"===o.toggleCollapse||!1,d=!!o.headingIconStyle||i;const m=n().createElement(r.Provider,{store:t},n().createElement(c,{HeadingTag:o.headingTag,headingText:o.widgetHeading,widgetId:s,toggleCollapse:i,showIcon:d,headingClasses:ct(o,l.requestData.deviceType,i),iconClasses:it(o,d,i)}),n().createElement(u,{id:s,toggleCollapse:i},n().createElement(lt,null)));if(e){if(!a)throw new Error("widgetName is required if outputWrapperDiv is true.");return n().createElement("div",{id:`${s}-app-root`,className:ot(o.widgetClasses,a,i).join(" "),"data-widget-name":a,"data-widget-id":s},m)}return m},ut=RTK;const mt=[],ht={requestData:function(e={},t=null){return!t.error&&t.payload&&"WS_SCRIPTS_SET_REQUEST_DATA"===t.type?t.payload:e},prefs:function(e={},t=null){return t.error||void 0===t.payload||"WS_SCRIPTS_SET_PREFS"!==t.type?e:t.payload},labels:function(e={},t=null){return t.error||void 0===t.payload||"WS_SCRIPTS_ADD_LABELS"!==t.type?e:{...e,...t.payload}},sitemap:function(e={}
1,t=null){return t.error||void 0===t.payload||"WS_SCRIPTS_ADD_SITEMAP"!==t.type?e:{...e,...t.payload}},flags:function(e={},t=null){return t.error||void 0===t.payload||"WS_SCRIPTS_SET_FEATURE_FLAGS"!==t.type?e:t.payload}};function pt(e){const[t,s]=(()=>{let e={},t={};const s=[];try{e=a(158).A,s.push("../reducers")}catch(e){}try{t=Object(function(){var e=new Error("Cannot find module '../features'");throw e.code="MODULE_NOT_FOUND",e}()),s.push("../features")}catch(e){}return[{...e,...t},s]})();return(0,ut.configureStore)({reducer:{...t,...ht},middleware:e=>e().concat(mt),preloadedState:e})}const gt={};(()=>{const t=(s="ws-site-text-search",window.DDC&&window.DDC.WS&&window.DDC.WS.state&&window.DDC.WS.state[s]?window.DDC.WS.state[s]:{});var s;Object.keys(t).forEach(s=>{const n=pt(((e,t)=>{let s=e[t];return"string"==typeof s&&(s=JSON.parse(s)),s})(t,s));gt[s]=n,(0,e.hydrate)(React.createElement(dt,{outputWrapperDiv:!1,store:n,widgetId:s}),document.getElementById(`${s}-app-root`)),delete t[s]})})()})()})();
2//# sourceMappingURL=bundle.d42987b741a7015f2d94ce4234fad7d0.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.