PageSourceSearch

https://www.carfax.com/uclassets/ucl.513ff4592f3b9ed1556d.js

js carfax.com collected 2026-09-24 08:33:45 UTC 4,751 bytes, 1 lines download raw bytes

1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[780],{"./client/components/Common/SearchForm/Forms/SearchRadiusOptions.tsx"(e,s,a){var i=a("./client/stores/stores.ts"),l=a("./node_modules/mobx-react/dist/mobxreact.esm.js"),r=a("./node_modules/@carfax-stencils/input-select/lib/index.js"),t=a("./config.js"),n=a("./node_modules/react/jsx-runtime.js");const o=(0,l.PA)(({handleRadiusChange:e,value:s,isSmall:a=!1,id:l})=>{const o=t.A.radius.filter(e=>"Unlimited"!==e.label||i.Ay.SearchParams.selectedMake||3e3===s).map(e=>(0,n.jsx)("option",{value:e.value,children:e.label},e.label));return(0,n.jsx)(r.A,{"aria-label":"Search Radius",isSmall:a,name:"radius",onChange:e,value:s,id:l,disabled:!i.Ay.App.allowInteractions,children:o})});a.d(s,["A",0,o])},"./client/components/SearchResults/FilterWithZipTable/FilterWithZipModal.tsx"(e,s,a){a.r(s),a.d(s,{default:()=>S});var i=a("./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js"),l=a("./node_modules/@carfax-stencils/modal/lib/parts/Modal.js"),r=a("./node_modules/@carfax-stencils/modal/lib/parts/Header.js"),t=a("./node_modules/@carfax-stencils/modal/lib/parts/Body.js"),n=a("./node_modules/@carfax-stencils/modal/lib/parts/Footer.js"),o=a("./node_modules/@carfax-stencils/icon/lib/parts/location.js"),d=a("./client/stores/stores.ts"),c=a("./node_modules/react/index.js"),u=a("./node_modules/mobx-react/dist/mobxreact.esm.js"),m=a("./client/hooks/useZip.ts"),p=a("./client/components/Common/SearchForm/Forms/SearchRadiusOptions.tsx"),h=a("./node_modules/@carfax-stencils/input-text/lib/index.js"),A=a("./client/constants/ErrorMessages.ts"),x=a("./client/utils/utils.ts"),v=a("./node_modules/@carfax-stencils/button/lib/index.js"),y=a("./client/utils/utilities.ts"),j=a("./node_modules/@carfax-stencils/form-element/lib/index.js"),b=a("./node_modules/@carfax-stencils/form-element/lib/label/Label.js"),f=a("./node_modules/react/jsx-runtime.js");const S=(0,u.PA)(()=>{var e,s,a,u,S,_;const g="NEW"===d.Ay.SearchParams.selectedVehicleCondition,F=d.Ay.Filters.filterTableSelected,{params:M,searchInfo:P}=d.Ay.SearchRequest,C=`${M.make} ${M.model}`,Z="ymm"===y.A.getProvidedSrpPageType(M.urlInfo),E=null!==(e=M.urlInfo)&&void 0!==e&&e.startsWith("Used-")?null===(s=M.urlInfo)||void 0===s?void 0:s.substring(5,9):null===(a=M.urlInfo)||void 0===a?void 0:a.substring(0,4),R=null!==(u=null==P||null===(S=P.pageTypeParams)||void 0===S?void 0:S.year)&&void 0!==u?u:E,O=g?`New ${C} ${F}`:`Used ${Z?`${R} ${C}`:C} under ${Number(F).toLocaleString()}`,{zip:z,handleZipChange:I,zipValid:L}=(0,m.Ay)(d.Ay.SearchParams.zip),T=function(){var e=(0,i.A)(function*({newZip:e,radius:s}){(0,x.O9)(s)&&d.Ay.SearchParams.setRadius(s)});return function(s){return e.apply(this,arguments)}}();return(0,c.useEffect)(()=>{var e;L&&z!==d.Ay.SearchParams.zip&&(d.Ay.SearchParams.setZip(z),d.Ay.Analytics.setIpDetectInfo(),T({newZip:z,radius:null===(e=d.Ay.SearchParams)||void 0===e?void 0:e.radius}))},[L,z]),(0,f.jsxs)(l.Ay,{className:"filterWithZipModal",id:"filterWithZipModal",isVisible:!0,onClose:()=>d.Ay.Modals.setModal(""),children:[(0,f.jsxs)(r.A,{children:[(0,f.jsx)(o.A,{"aria-hidden":!0,size:22})," Enter Your Location"]}),(0,f.jsxs)(t.A,{children:[(0,f.jsxs)("div",{children:["Enter your location to find a ",(0,f.jsx)("b",{children:O})," near you."]}),(0,f.jsxs)("div",{className:"radius-zip-container",children:[(0,f.jsxs)(j.Ay,{children:[(0,f.jsx)(b.A,{for:"zipModalRadius",children:"Distance"}),(0,f.jsx)(p.A,{id:"zipModalRadius",value:null===(_=d.Ay.SearchParams)||void 0===_?void 0:_.radius,handleRadiusChange:e=>{null!=e&&e.target&&T({newZip:z,radius:+e.target.value})}})]}),(0,f.jsxs)(j.Ay,{children:[(0,f.jsx)(b.A,{for:"zipModalZip",children:"Zip Code"}),(0,f.jsx)(h.Ay,{"aria-label":"ZIP Code",inputMode:"decimal",isSmall:!0,maxLength:5,onChange:e=>{var s;null!=e&&e.target&&((null===(s=d.Ay.App)||void 0===s?void 0:s.errorMessage)===A.A.inValidZip&&d.Ay.App.acknowledgeError(),I(e.target.value))},pattern:"[0-9]*",placeholder:"ZIP Code",type:"text",value:z,id:"zipModalZip","aria-invalid":!L||void 0})]})]})]}),(0,f.jsxs)(n.A,{children:[(0,f.jsx)(v.Ay,{theme:"blue",onClick:e=>{null!=e&&e.target&&L&&(g?(d.Ay.Filters.handleFilter(e,F,"trims",!0,"checkbox",{shouldUpdateSeoUrl:!1,requestReviewsFaq:!1,cancelPreviousOnOverride:!0,isFilterSearch:!0}),d.Ay.Filters.setExpandTrim(!0)):(d.Ay.Filters.handleFilter(e,"price","price",[0,F],"range",{shouldUpdateSeoUrl:!1,requestReviewsFaq:!1,cancelPreviousOnOverride:!0,isFilterSearch:!0}),d.Ay.Filters.setExpandPrice(!0)),d.Ay.Modals.setModal(""),setTimeout(()=>{y.A.scrollToTop()}))},disabled:!L,children:"Search"}),(0,f.jsx)(v.Ay,{theme:"black",onClick:()=>d.Ay.Modals.setModal(""),children:"Cancel"})]})]})})}}]);

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.