PageSourceSearch

https://johnsonrv.com/_next/static/chunks/13hi1c8xl6xsj.js

js johnsonrv.com collected 2026-10-07 03:52:05 UTC 23,811 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,874933,e=>{e.v({body:"Locations-module-scss-module__MGHs3q__body",cardWrapper:"Locations-module-scss-module__MGHs3q__cardWrapper",cardsLabel:"Locations-module-scss-module__MGHs3q__cardsLabel",dealershipCards:"Locations-module-scss-module__MGHs3q__dealershipCards",filterAndSearch:"Locations-module-scss-module__MGHs3q__filterAndSearch",filterButton:"Locations-module-scss-module__MGHs3q__filterButton",filters:"Locations-module-scss-module__MGHs3q__filters",filtersCtn:"Locations-module-scss-module__MGHs3q__filtersCtn",hidden:"Locations-module-scss-module__MGHs3q__hidden",leftBackground:"Locations-module-scss-module__MGHs3q__leftBackground",leftCtn:"Locations-module-scss-module__MGHs3q__leftCtn",mapContainer:"Locations-module-scss-module__MGHs3q__mapContainer",marker:"Locations-module-scss-module__MGHs3q__marker","marker--active":"Locations-module-scss-module__MGHs3q__marker--active","marker--custom":"Locations-module-scss-module__MGHs3q__marker--custom",noResultsHeader:"Locations-module-scss-module__MGHs3q__noResultsHeader",small:"Locations-module-scss-module__MGHs3q__small",xlarge:"Locations-module-scss-module__MGHs3q__xlarge"})},756863,e=>{"use strict";var t=e.i(843476),a=e.i(343794),s=e.i(385965),o=e.i(618566),l=e.i(271645),r=e.i(624977),n=e.i(712495),i=e.i(500932),c=e.i(275624),d=e.i(888164),u=e.i(712034),m=e.i(292238);function _(){let e,a,s=(0,i.c)(7),{dealer:o}=(0,d.useAppStateContext)(),{filters:l,appliedFilters:n,setAppliedFilters:_}=(0,u.useLocationContext)();return s[0]!==n||s[1]!==o?.show_map_filters||s[2]!==l||s[3]!==_?(e=o?.show_map_filters&&l.length>0&&(0,t.jsx)(c.default,{className:m.default.filters,children:l.map(e=>(0,t.jsx)(r.default,{onClick:()=>{n.includes(e||"")?_(n.filter(t=>t!==e)):_([...n,e||""])},disableHoverEffect:!0,bg:n.includes(e||"")?"themePrimary":"secondary",className:m.default.filterButton,label:e,size:"small",width:"fit"},e))}),s[0]=n,s[1]=o?.show_map_filters,s[2]=l,s[3]=_,s[4]=e):e=s[4],s[5]!==e?(a=(0,t.jsx)("div",{className:m.default.filtersCtn,children:e}),s[5]=e,s[6]=a):a=s[6],a}var f=e.i(341216),h=e.i(16213);function p(e){let s,o,l,r,c,d=(0,i.c)(11),{dealerCards:m}=e,{listViewOpen:p}=(0,u.useLocationContext)(),{t:g}=(0,f.useTranslation)();return d[0]!==p?(s=(0,a.default)(h.default.listView,{[h.default["listView--open"]]:p}),d[0]=p,d[1]=s):s=d[1],d[2]===Symbol.for("react.memo_cache_sentinel")?(o=(0,t.jsx)(_,{}),d[2]=o):o=d[2],d[3]!==m||d[4]!==g?(l=m?.length>0?m:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.default,{variant:"bodyLarge",children:g("locations.no_results")}),(0,t.jsx)(n.default,{variant:"bodySmall",color:"textSecondary",children:g("locations.no_results_mobile_subtitle")})]}),d[3]=m,d[4]=g,d[5]=l):l=d[5],d[6]!==l?(r=(0,t.jsx)("div",{className:h.default.dealerCards,children:l}),d[6]=l,d[7]=r):r=d[7],d[8]!==s||d[9]!==r?(c=(0,t.jsxs)("div",{className:s,children:[o,r]}),d[8]=s,d[9]=r,d[10]=c):c=d[10],c}var g=e.i(416574);e.i(49707);var L=e.i(582894),S=e.i(914777),x=e.i(51556),C=e.i(329670),v=e.i(870489),b=e.i(956750),y=e.i(503598);function w(e){let s,o,c,m,h,p,w,G,M,T,W,B,E,D,q,R,H,I,U,A,P,F,$,z,V,K,O,Z,Y,X,J,Q,ee,et=(0,i.c)(95),{handleDealerSelect:ea,addCustomPin:es}=e,{t:eo}=(0,f.useTranslation)(),{env:el}=(0,d.useAppStateContext)(),er=(0,b.useUserStore)(N),en=(0,v.useUserPrefsStore)(k),{listViewOpen:ei,setListViewOpen:ec,search:ed,setSearch:eu,filteredLocations:em,searchedLocations:e_,setSearchedLocations:ef}=(0,u.useLocationContext)(),[eh,ep]=(0,l.useState)(!1),[eg,eL]=(0,l.useState)(0),[eS,ex]=(0,l.useState)(0),[eC,ev]=(0,l.useState)(!1),[eb,ey]=(0,l.useState)(),ew=(0,l.useRef)(null),ej=el?.GOOGLE_MAPS_KEY;et[0]===Symbol.for("react.memo_cache_sentinel")?(s=["(regions)"],o={country:["us","ca"]},et[0]=s,et[1]=o):(s=et[0],o=et[1]),et[2]!==eb?(c=eb?{lat:Number(eb?.[1]),lng:Number(eb?.[0])}:void 0,et[2]=eb,et[3]=c):c=et[3],et[4]!==ed||et[5]!==c?(m={input:ed,types:s,componentRestrictions:o,origin:c},et[4]=ed,et[5]=c,et[6]=m):m=et[6],et[7]!==ej||et[8]!==m?(h={apiKey:ej,debounce:500,options:m},et[7]=ej,et[8]=m,et[9]=h):h=et[9];let{placePredictions:ek,getPlacePredictions:eN}=(0,g.default)(h),{get:eG,response:eM,cache:eT}=(0,L.default)(`${el?.API_URL}/map_images/geocode`);et[10]!==en||et[11]!==eo?(p=en?.toLowerCase()==="ca"?[eo("locations.search_hint_city"),eo("locations.search_hint_province"),eo("locations.search_hint_postal_code"),eo("locations.search_hint_dealer")]:[eo("locations.search_hint_city"),eo("locations.search_hint_state"),eo("locations.search_hint_postal_code"),eo("locations.search_hint_dealer")],et[10]=en,et[11]=eo,et[12]=p):p=et[12];let eW=p;et[13]!==eg||et[14]!==eW?(w=()=>{let e=setInterval(()=>{ex(eg),eL(e=>(e+1)%eW.length)},3e3);return()=>clearInterval(e)},et[13]=eg,et[14]=eW,et[15]=w):w=et[15],et[16]!==eg?(G=[eg],et[16]=eg,et[17]=G):G=et[17],(0,l.useEffect)(w,G),et[18]!==er?.geolocated_coords?(M=()=>{er?.geolocated_coords&&ey(er?.geolocated_coords)},et[18]=er?.geolocated_coords,et[19]=M):M=et[19],et[20]!==er?(T=[er],et[20]=er,et[21]=T):T=et[21],(0,l.useEffect)(M,T),et[22]!==em||et[23]!==eN||et[24]!==ei||et[25]!==ed||et[26]!==ef?(W=()=>{""===ed?ef(em||[]):1===ed.length?(ei||eN({input:ed}),ef(em?.filter(e=>e?.name.toLowerCase().includes(ed.toLowerCase()))||[])):(ei||eN({input:ed}),ef(em?.filter(e=>e?.name.toLowerCase().includes(ed.toLowerCase())||e?.zipcode?.includes(ed)||e?.city?.toLowerCase().includes(ed.toLowerCase())||e?.state?.toLowerCase().includes(ed.toLowerCase())||e?.address_1?.toLowerCase().includes(ed.toLowerCase()))||[]))},et[22]=em,et[23]=eN,et[24]=ei,et[25]=ed,et[26]=ef,et[27]=W):W=et[27],et[28]!==em||et[29]!==ei||et[30]!==ed?(B=[ed,em,ei],et[28]=em,et[29]=ei,et[30]=ed,et[31]=B):B=et[31],(0,l.useEffect)(W,B),et[32]===Symbol.for("react.memo_cache_sentinel")?(E=e=>{let t=e.relatedTarget;e.currentTarget.contains(t)||ev(!1)},et[32]=E):E=et[32];let eB=E;
1et[33]!==en?(D=(e,a,s,o)=>(0,t.jsxs)("button",{className:y.default.result,onClick:s,children:[(0,t.jsxs)("div",{className:y.default.resultsLeft,children:[(0,t.jsx)(S.default,{icon:a,className:y.default.predictionIcon}),(0,t.jsx)(n.default,{variant:"bodySmall",color:"textSecondary",children:e})]}),(0,t.jsx)("div",{className:y.default.resultsRight,children:o&&"0"!==o&&(0,t.jsxs)(n.default,{variant:"bodySmall",color:"textSecondary",children:[o," ",en?.toLowerCase()==="ca"?"km":"mi"]})})]},e),et[33]=en,et[34]=D):D=et[34];let eE=D;et[35]!==es||et[36]!==eT||et[37]!==eG||et[38]!==ea||et[39]!==ek||et[40]!==eE||et[41]!==eM||et[42]!==e_||et[43]!==en||et[44]!==eu||et[45]!==eo||et[46]!==er?.distance_from_dealers?(q=()=>[...e_.map(e=>({...e,result_type:"location",distance:er?.distance_from_dealers?.find(t=>t.dealer_id===e.id)?.distance})),...ek.map(j)].map(e=>"location"===e.result_type?eE(e.name,"location_on",()=>{ea(e)},en?.toLowerCase()==="ca"?(0,C.formatDistance)(Math.round(er?.distance_from_dealers?.find(t=>t.dealer_id===e.id)?.distance||0)):(0,C.formatDistance)(Math.round(er?.distance_from_dealers?.find(t=>t.dealer_id===e.id)?.distance||0))):eE(e.description,"search",async()=>{if(await eG(`?place_id=${e.place_id}`),eM.ok&&eM.data){let t=eM.data.coords;es([t[0],t[1]],e.types.includes("administrative_area_level_1")?8:11),eT.clear(),eu(e.description),ev(!1)}else(0,x.showToastError)(eo("locations.geocode_error"))},en?.toLowerCase()==="ca"?(0,C.formatDistance)(Math.round((e?.distance_meters||0)/1e3)):(0,C.formatDistance)(Math.round((e?.distance_meters||0)/1609.34)))),et[35]=es,et[36]=eT,et[37]=eG,et[38]=ea,et[39]=ek,et[40]=eE,et[41]=eM,et[42]=e_,et[43]=en,et[44]=eu,et[45]=eo,et[46]=er?.distance_from_dealers,et[47]=q):q=et[47];let eD=q;et[48]===Symbol.for("react.memo_cache_sentinel")?(R=()=>ev(!0),et[48]=R):R=et[48],et[49]!==eC?(H=e=>{if("Enter"===e.key&&eC){e.preventDefault();let t=ew.current?.querySelector("button");t?.click()}},et[49]=eC,et[50]=H):H=et[50],et[51]===Symbol.for("react.memo_cache_sentinel")?(I=(0,t.jsx)(S.default,{icon:"search",className:y.default.searchIcon,color:"textSecondary"}),et[51]=I):I=et[51],et[52]!==eo?(U=eo("locations.search_placeholder"),et[52]=eo,et[53]=U):U=et[53],et[54]!==eu?(A=e=>{eu(e.currentTarget.value)},et[54]=eu,et[55]=A):A=et[55],et[56]===Symbol.for("react.memo_cache_sentinel")?(P=()=>ep(!0),F=()=>ep(!1),et[56]=P,et[57]=F):(P=et[56],F=et[57]),et[58]!==ed||et[59]!==U||et[60]!==A?($=(0,t.jsx)("input",{type:"text",placeholder:U,value:ed,onInput:A,onFocus:P,onBlur:F}),et[58]=ed,et[59]=U,et[60]=A,et[61]=$):$=et[61],et[62]!==eg||et[63]!==eh||et[64]!==eS||et[65]!==ed||et[66]!==eW||et[67]!==eo?(z=!ed&&(0,t.jsxs)("div",{className:(0,a.default)(y.default.placeholderCtn,{[y.default["placeholderCtn--focused"]]:eh||ed}),children:[(0,t.jsx)("p",{className:(0,a.default)(y.default.searchText,y.default.searchLabel),children:eo("locations.search")}),(0,t.jsx)("div",{className:y.default.hintCtn,children:eW.map((e,s)=>(0,t.jsx)("p",{className:(0,a.default)(y.default.searchText,y.default.hint,{[y.default["hint--active"]]:s===eg,[y.default["hint--inactive"]]:s===eS&&s!==eg}),children:e},s))})]}),et[62]=eg,et[63]=eh,et[64]=eS,et[65]=ed,et[66]=eW,et[67]=eo,et[68]=z):z=et[68],et[69]!==$||et[70]!==z?(V=(0,t.jsxs)("div",{className:y.default.searchInput,children:[I,$,z]}),et[69]=$,et[70]=z,et[71]=V):V=et[71],et[72]!==ei||et[73]!==ec||et[74]!==eu?(K=()=>{ec(!ei),eu("")},et[72]=ei,et[73]=ec,et[74]=eu,et[75]=K):K=et[75];let eq=ei?"map":"list";et[76]!==K||et[77]!==eq?(O=(0,t.jsx)(r.default,{size:"large",bg:"secondary",onClick:K,className:y.default.mobileButton,iconLeft:eq,iconClassName:y.default.mobileButtonIcon}),et[76]=K,et[77]=eq,et[78]=O):O=et[78],et[79]!==V||et[80]!==O?(Z=(0,t.jsxs)("div",{className:y.default.controls,children:[V,O]}),et[79]=V,et[80]=O,et[81]=Z):Z=et[81],et[82]===Symbol.for("react.memo_cache_sentinel")?(Y=(0,t.jsx)("div",{className:y.default.categoryFilterCtn,children:(0,t.jsx)(_,{})}),et[82]=Y):Y=et[82];let eR=ei||!ed||!eC;return et[83]!==eR?(X=(0,a.default)(y.default.resultsCtn,{[y.default["resultsCtn--hidden"]]:eR}),et[83]=eR,et[84]=X):X=et[84],et[85]!==eD||et[86]!==eo?(J=eD()?.length>0?eD():(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.default,{variant:"bodyLarge",children:eo("locations.no_results")}),(0,t.jsx)(n.default,{variant:"bodySmall",color:"textSecondary",children:eo("locations.no_results_mobile_subtitle")})]}),et[85]=eD,et[86]=eo,et[87]=J):J=et[87],et[88]!==X||et[89]!==J?(Q=(0,t.jsx)("div",{className:X,ref:ew,children:J}),et[88]=X,et[89]=J,et[90]=Q):Q=et[90],et[91]!==H||et[92]!==Z||et[93]!==Q?(ee=(0,t.jsxs)("div",{className:y.default.searchWra
1pper,onClick:R,onBlur:eB,onKeyDown:H,children:[Z,Y,Q]}),et[91]=H,et[92]=Z,et[93]=Q,et[94]=ee):ee=et[94],ee}function j(e){return{...e,result_type:"prediction"}}function k(e){return e.selectedViewingCountry}function N(e){return e.user}var G=e.i(76072),M=e.i(136252),T=e.i(134093);function W(e){let s,o,l,r,c,d,u,m,_=(0,i.c)(23),{className:f,location:h,onClick:p,FloatingButton:g}=e,L=h?.processed_dealership_outside_image?.[0];_[0]!==f?(s=(0,a.default)(T.default.card,f),_[0]=f,_[1]=s):s=_[1];let S=h?.name||"",x=L?"location":"logo";_[2]!==h||_[3]!==S||_[4]!==x?(o=(0,t.jsx)(G.default,{location:h,alt:S,image:x,aspectRatio:"1.8",placeholderClassName:T.default.placeholder,className:T.default.image}),_[2]=h,_[3]=S,_[4]=x,_[5]=o):o=_[5];let C=h?.name;return _[6]!==C?(l=(0,t.jsx)(n.default,{variant:"h5",weight:"medium",children:C}),_[6]=C,_[7]=l):l=_[7],_[8]!==h?(r=(0,M.addressFormatter)(h),_[8]=h,_[9]=r):r=_[9],_[10]!==r?(c=(0,t.jsx)(n.default,{variant:"bodySmall",color:"textSecondary",weight:"regular",children:r}),_[10]=r,_[11]=c):c=_[11],_[12]!==l||_[13]!==c?(d=(0,t.jsxs)("div",{className:T.default.details,children:[l,c]}),_[12]=l,_[13]=c,_[14]=d):d=_[14],_[15]!==g||_[16]!==d?(u=(0,t.jsxs)("div",{className:T.default.bottom,children:[d,g]}),_[15]=g,_[16]=d,_[17]=u):u=_[17],_[18]!==p||_[19]!==s||_[20]!==u||_[21]!==o?(m=(0,t.jsxs)("div",{className:s,onClick:p,children:[o,u]}),_[18]=p,_[19]=s,_[20]=u,_[21]=o,_[22]=m):m=_[22],m}var B=e.i(934510),E=e.i(477964),D=e.i(528443),q=e.i(427678),R=e.i(611082),H=e.i(403641),I=e.i(544197),U=e.i(214010),A=e.i(928646),P=e.i(890130),F=e.i(874933);e.s(["default",0,function(){(0,q.default)({showNavFooter:!1}),(0,R.default)("Hours & Directions",void 0,void 0,"directions");let{t:e}=(0,f.useTranslation)(),i=(0,o.useRouter)(),c=(0,o.useSearchParams)(),m=(0,o.usePathname)(),[_]=(0,D.default)(),{dealer:h,mapImages:g,locationDealers:L,env:S,checkEnterprise:x}=(0,d.useAppStateContext)(),C=(0,P.useIntegrationsStore)(e=>e.sdSessionId),v=(0,b.useUserStore)(e=>e.user),y=(0,A.useAnalyticsStore)(e=>e.analyticsEvent),[j,k]=(0,l.useState)(()=>decodeURIComponent(c?.get("search")||"")),[N,G]=(0,l.useState)([]),[T,$]=(0,l.useState)(L||[]),[z,V]=(0,l.useState)(T||[]),[K,O]=(0,l.useState)(z||[]),[Z,Y]=(0,l.useState)([]),[X,J]=(0,l.useState)(!1),[Q,ee]=(0,l.useState)(),[et,ea]=(0,l.useState)(null),[es,eo]=(0,l.useState)(!1),[el,er]=(0,l.useState)(null),{totalHeight:en}=(0,E.default)(),ei=(0,l.useCallback)(e=>{ea(e),e&&ee(new I.default(eC,eu,em,T,e_,h,F.default,eb,eo,()=>null,S?.IMAGE_BASE_URL,S?.ASSET_BASE_URL))},[]),ec=e=>e*(2-e);function ed(e,t){if(!e)return null;let a=(0,M.nameToSlug)(e);return t?.find(e=>(0,M.nameToSlug)(e?.name)===a)??null}let[eu,em]=(0,l.useState)(new Map),[e_]=(0,l.useState)(g?.filter(e=>e.dealer_id!==h?.id)),[ef,eh]=(0,l.useState)(null),[ep,eg]=(0,l.useState)(()=>ed(c?.get("dealer"),L||[])),[eL,eS]=(0,l.useState)(()=>!!ed(c?.get("dealer"),L||[])),ex=(0,H.default)(!1,1),eC=(0,l.useRef)(null),[ev]=(0,l.useState)(4.5);(0,l.useEffect)(()=>{let e=[...new Set(T?.flatMap(e=>e.filterable_attributes||""))];e.length>0&&(T?.some(e=>"ca"===e.country)&&T?.some(e=>"us"===e.country)&&(e.unshift("Canada"),e.unshift("US")),G(e))},[]),(0,l.useEffect)(()=>{let e=[];v?.distance_from_dealers?.sort((e,t)=>(e?.distance||0)-(t?.distance||0))?.forEach(t=>{let a=L?.find(e=>e.id===t.dealer_id);a&&e.push(a)}),e.length?$(e):$(L)},[v?.distance_from_dealers]);let eb=e=>{e&&(eg(e),eS(!0),(0,U.isStellantisShiftDigitalDealer)(h)&&y("map_location_selected",{location:"map_location_card",sd_session_id:C,params:{selected_location:e.name},allowedParams:{componentType:"dealer-information",componentPosition:1,sectionTitle:(0,U.slugifyStellantisLinkToken)(e.name),description:"map"}}));let t=new URLSearchParams(c?.toString());t.delete("dealer"),t.append("dealer",(0,M.nameToSlug)(e?.name)),t.sort(),i.replace(`${m}?${t.toString()}`,{scroll:!1})},ey=()=>v?.distance_from_dealers?.sort((e,t)=>(e?.distance||0)-(t?.distance||0)).map(e=>T?.find(t=>t.id===e.dealer_id)).slice(0,6)||T||[];(0,l.useEffect)(()=>{if(eC.current||1===ex)return;let e=Q?.getFirstCoords();
1eC.current=new s.Map({accessToken:S?.MAPBOX_KEY,container:et,style:h?.dark_mode?"mapbox://styles/johnhabeck/clbvgn8oo000514pihrh9qpjj":"mapbox://styles/johnhabeck/clbvgoans000414nxvz8g8c2n",center:e,zoom:ev}),eC.current.on("error",e=>{e.error.message.includes("hillshade")?console.log("Mapbox hillshade error"):console.log("Mapbox error",e.error)})},[ex]),(0,l.useEffect)(()=>{Q?.addMarkersToMap()},[e_,ex]),(0,l.useEffect)(()=>{Z?.length>0?V(T?.filter(e=>{let t=[...e.filterable_attributes||[],"us"===e.country?"US":"Canada"],a=Z.filter(e=>"US"===e||"Canada"===e),s=Z.filter(e=>"US"!==e&&"Canada"!==e),o=0===s.length||s.every(e=>t.includes(e)),l=0===a.length||a.some(e=>t.includes(e));return o&&l})||[]):V(T||[])},[Z,T]);let ew=(e=!1)=>{if(el&&!e){let e=el.getLngLat();eC.current.easeTo({center:e,zoom:12,duration:1e3,easing:ec});return}let t=new s.LngLatBounds,a=z.length>0?z:ey();Array.from(eu.keys()).forEach(e=>{let s=eu.get(e);a.map(e=>e?.id).includes(e.dealer_id)&&t.extend(s.getLngLat())}),t._ne&&t._sw&&eC.current.fitBounds(t,{padding:_?{top:window?.innerWidth*.1||50,bottom:window?.innerWidth*.2||50,left:window?.innerWidth*.1||50,right:window?.innerWidth*.2||50}:{top:150,bottom:150,left:window?.innerWidth*.32||450,right:150},maxZoom:12,duration:1e3,easing:ec})},ej=(e,t=!1)=>{eu.get(e)._element.className=(0,a.default)(F.default.marker,{[F.default["marker--active"]]:t},{[F.default["marker--dark"]]:h?.dark_mode&&!t},"mapboxgl-marker","mapboxgl-marker-anchor-bottom-left",{[F.default.xlarge]:h?.map_marker_size==="xlarge",[F.default.large]:h?.map_marker_size==="large",[F.default.small]:h?.map_marker_size==="small"})},ek=e=>{ej(e,!1),(e=>{if(!e.coords||e.coords.length<2)return!1;let t=eC.current.project(e.coords);return eC.current.queryRenderedFeatures(t,{layer:"unclustered-point"}).some(t=>t.properties.dealerId===e.dealer_id)})(e)&&eu.get(e).addTo(eC.current)};function eN(){return`calc(${ex-en}px - var(--site-banner-offset, 0px))`}function eG(a){return(0,t.jsx)(W,{location:a,onClick:()=>{eb(a)},FloatingButton:x(["premier_truck_group","allegiance_truck_centers","ascendance_truck_centers"])?(0,t.jsx)(r.default,{className:F.default.floatingButton,iconLeft:"location_on",label:e("locations.view_location"),href:h?.child_links_enabled&&a?.domain?`https://${a?.domain}`:`locations/${(0,M.nameToSlug)(a.name)}`,disableHoverEffect:!0,onClick:e=>e.stopPropagation()}):void 0},a.id)}function eM(e,t){if(!eC.current||!et)return;let o=document.createElement("div");o.className=(0,a.default)(F.default.marker,F.default["marker--custom"],"mapboxgl-marker","mapboxgl-marker-anchor-bottom-left");let l=new s.Marker(o,{anchor:"bottom-left"}).setLngLat(e);l.addTo(eC.current),eT(),er(l);let r=new URLSearchParams(c?.toString());r.delete("marker"),r.append("marker",e.join(",")),r.sort(),i.replace(`${m}?${r.toString()}`,{scroll:!1}),eC.current.easeTo({center:e,zoom:Math.min(Math.max(eC.current.getZoom(),12),t),duration:1200,easing:ec})}function eT(){if(el){el.remove(),er(null);let e=new URLSearchParams(c?.toString());e.delete("marker"),e.sort(),i.replace(`${m}?${e.toString()}`,{scroll:!1})}}return(0,l.useEffect)(()=>{ef&&clearTimeout(ef),eh(setTimeout(()=>{if(j){let e=new URLSearchParams(c?.toString());e.delete("search"),e.append("search",encodeURIComponent(j)),e.sort(),i.replace(`${m}?${e.toString()}`,{scroll:!1})}else{eT(),c?.get("dealer")||c?.get("marker")||ew(!0);let e=new URLSearchParams(c?.toString());e.delete("search"),e.sort(),i.replace(`${m}?${e.toString()}`,{scroll:!1})}},500))},[j]),(0,l.useEffect)(()=>{eu.size&&((e,t)=>{let a=z.length>0?z:ey();if(0===a.length)return;let o=new s.LngLatBounds;if(!t){ew(),Array.from(eu.keys()).forEach(e=>{eu.get(e).remove(),a.map(e=>e?.id).includes(e.dealer_id)&&ek(e)});return}Array.from(eu.keys()).forEach(s=>{let l=eu.get(s);l.remove(),a.map(e=>e?.id).includes(s.dealer_id)?(s.dealer_id===t?.id?(e=>{if(!e.coords||e.coords.length<2)return;let t=eC.current.project(e.coords),a=eC.current.queryRenderedFeatures(t,{layers:["clusters"]}),s=!1;if(a[0]){let t;s=!0,t=a[0].properties.cluster_id,eC.current.getSource("dealers").getClusterExpansionZoom(t,(t,s)=>{if(t)return;let o=Math.min(Math.max(s,12),16);eC.current.easeTo({center:e.coords||a[0].geometry.coordinates,zoom:o,duration:1500,easing:ec})})}else{let t;
1t=Math.min(Math.max(eC.current.getZoom(),10),14),eC.current.easeTo({center:e.coords,zoom:t,duration:1200,easing:ec})}return ej(e,!0),s||eu.get(e).addTo(eC.current)})(s):ek(s),e&&o.extend(l.getLngLat())):l.remove()}),e&&(e=>{if(e&&e._ne&&e._sw)try{eC.current.fitBounds(e,{padding:_?{top:window?.innerWidth*.1||50,bottom:window?.innerWidth*.2||50,left:window?.innerWidth*.1||50,right:window?.innerWidth*.2||50}:{top:150,bottom:150,left:window?.innerWidth*.32||450,right:150},maxZoom:13})}catch{eC.current.fitBounds(e,{padding:_?{top:20,bottom:20,left:10,right:10}:{top:50,bottom:50,left:250,right:50},maxZoom:13})}})(o)})(!1,ep)},[ep,eu]),(0,l.useEffect)(()=>{let e=ed(c?.get("dealer"),T);k(decodeURIComponent(c?.get("search")||"")),e?(eg(e),eS(!0)):c?.get("dealer")||eg(null)},[c,T]),(0,l.useEffect)(()=>{es&&eC.current&&!c?.get("marker")&&!c?.get("dealer")&&ew()},[es,c]),(0,l.useEffect)(()=>{let e=c?.get("marker");if(!e||!eC.current||!es||el)return;let t=e.split(",");eM([t[0],t[1]],12)},[c,es,el]),(0,t.jsx)(u.LocationProvider,{value:{filters:N,appliedFilters:Z,setAppliedFilters:Y,listViewOpen:X,setListViewOpen:J,search:j,setSearch:k,filteredLocations:z,setFilteredLocations:V,searchedLocations:K,setSearchedLocations:O},children:(0,t.jsxs)("div",{className:F.default.body,style:{height:eN()},children:[(0,t.jsx)("div",{className:F.default.leftBackground}),(0,t.jsx)(B.default,{selectedLocation:ep,setSelectedLocation:eg,style:{height:_?eN():""},search:j,open:eL,setOpen:eS}),(0,t.jsxs)("div",{className:(0,a.default)({[F.default.hidden]:ep&&!_},F.default.leftCtn),style:{height:eN()},children:[(0,t.jsxs)("div",{className:F.default.filterAndSearch,children:[(0,t.jsx)(w,{handleDealerSelect:eb,addCustomPin:eM}),0===z.length&&(0,t.jsxs)("div",{className:F.default.noResultsHeader,children:[(0,t.jsx)(n.default,{variant:"bodyLarge",children:e("locations.no_results")}),(0,t.jsx)(n.default,{variant:"bodySmall",color:"textSecondary",children:v?.distance_from_dealers?e("locations.suggested_locations"):e("locations.no_results_subtitle")})]})]}),(0,t.jsxs)("div",{className:F.default.cardWrapper,children:[!(h?.show_map_filters&&N.length>0)&&(0,t.jsx)("div",{className:F.default.cardsLabel,children:(0,t.jsx)(n.default,{variant:"h4",weight:"medium",children:e("locations.stores_in_map")})}),(0,t.jsx)("div",{className:(0,a.default)(F.default.dealershipCards,{[F.default.hidden]:ep&&_}),children:z?.length>0?z?.map(e=>eG(e)):ey()?.map(e=>eG(e))})]})]}),(0,t.jsx)("div",{ref:ei,className:F.default.mapContainer}),(0,t.jsx)(p,{dealerCards:K?.map(e=>eG(e))})]})})}],756863)},16213,e=>{e.v({dealerCards:"ListView-module-scss-module__xV8n-a__dealerCards",listView:"ListView-module-scss-module__xV8n-a__listView","listView--open":"ListView-module-scss-module__xV8n-a__listView--open"})},292238,e=>{e.v({filterButton:"LocationsCategoryFilter-module-scss-module__WmYBaW__filterButton",filters:"LocationsCategoryFilter-module-scss-module__WmYBaW__filters",filtersCtn:"LocationsCategoryFilter-module-scss-module__WmYBaW__filtersCtn"})},503598,e=>{e.v({categoryFilterCtn:"LocationsSearch-module-scss-module__l-LD3G__categoryFilterCtn",controls:"LocationsSearch-module-scss-module__l-LD3G__controls",hint:"LocationsSearch-module-scss-module__l-LD3G__hint","hint--active":"LocationsSearch-module-scss-module__l-LD3G__hint--active","hint--inactive":"LocationsSearch-module-scss-module__l-LD3G__hint--inactive",hintCtn:"LocationsSearch-module-scss-module__l-LD3G__hintCtn",mobileButton:"LocationsSearch-module-scss-module__l-LD3G__mobileButton",mobileButtonIcon:"LocationsSearch-module-scss-module__l-LD3G__mobileButtonIcon",placeholderCtn:"LocationsSearch-module-scss-module__l-LD3G__placeholderCtn","placeholderCtn--focused":"LocationsSearch-module-scss-module__l-LD3G__placeholderCtn--focused",predictionIcon:"LocationsSearch-module-scss-module__l-LD3G__predictionIcon",result:"LocationsSearch-module-scss-module__l-LD3G__result",resultsCtn:"LocationsSearch-module-scss-module__l-LD3G__resultsCtn","resultsCtn--hidden":"LocationsSearch-module-scss-module__l-LD3G__resultsCtn--hidden",resultsLeft:"LocationsSearch-module-scss-module__l-LD3G__resultsLeft",resultsRight:"LocationsSearch-module-scss-module__l-LD3G__resultsRight",searchIcon:"LocationsSearch-module-scss-module__l-LD3G__searchIcon",searchInput:"LocationsSearch-module-scss-module__l-LD3G__searchInput",searchText:"LocationsSearch-module-scss-module__l-LD3G__searchText",searchWra
1pper:"LocationsSearch-module-scss-module__l-LD3G__searchWrapper"})},134093,e=>{e.v({bottom:"LocationCardSmall-module-scss-module__0WWNrq__bottom",card:"LocationCardSmall-module-scss-module__0WWNrq__card",details:"LocationCardSmall-module-scss-module__0WWNrq__details",image:"LocationCardSmall-module-scss-module__0WWNrq__image",placeholder:"LocationCardSmall-module-scss-module__0WWNrq__placeholder"})}]);

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.