PageSourceSearch

https://www.autotrader.co.za/Bundles/client/DealerProfile-BplINyuA.js

js autotrader.co.za collected 2026-10-02 21:24:55 UTC 16,889 bytes, 1 lines download raw bytes

vendor: 4,227 bytes, line 1
1var ee=Object.defineProperty,te=Object.defineProperties;var ae=Object.getOwnPropertyDescriptors;var H=Object.getOwnPropertySymbols;var se=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable;var P=(t,a,s)=>a in t?ee(t,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[a]=s,n=(t,a)=>{for(var s in a||(a={}))se.call(a,s)&&P(t,s,a[s]);if(H)for(var s of H(a))re.call(a,s)&&P(t,s,a[s]);return t},c=(t,a)=>te(t,ae(a));var y=(t,a,s)=>new Promise((m,o)=>{var x=r=>{try{h(s.next(r))}catch(l){o(l)}},g=r=>{try{h(s.throw(r))}catch(l){o(l)}},h=r=>r.done?m(r.value):Promise.resolve(r.value).then(x,g);h((s=s.apply(t,a)).next())});import{j as e,r as d}from"./vendor-CdyVhcFp.js";import{Breadcrumbs as ie}from"./Breadcrumbs-VvBRRzJx.js";import{F as ne}from"./ApplyResetFooter-CvbcYj-Z.js";import{D as le,u as _,V as oe,a as ce,C as de,S as W,b as me,A as he,e as ue,c as ge,d as pe,O as xe,f as je}from"./DealerSearch-Cw5PjS26.js";import{U as Se,M as fe,i as A,o as Q,b9 as b,H as Ce,I as ve,B as U,aA as we,v as L,w as T,O as V}from"./main-g-ZnRNk3.js";import{ags as ye,ar as be,at as Ne,av as Ae,agt as G,agu as We,agv as Me,agw as Re,agx as Be,agy as Ie,agz as De,agA as Fe,agB as Oe,agC as ke,agD as He,agE as Pe,agF as Ue,agG as Le,agH as Te,agI as Ve,agJ as Ge,agK as qe,agL as $e,agM as Ee,agN as q,agO as ze,agP as _e,agQ as Qe,agR as Je,agS as Ke,agT as Xe,agU as Ye,agV as Ze,agW as et,agX as tt,agY as at,agZ as st,ag_ as rt,ag$ as it}from"./cssModules-BUIZcazZ.js";import{S as nt}from"./SearchButton-BJLpUJ0J.js";import{A as lt,a as ot,b as ct}from"./AlertModalVehicleDetails-C6bbKq49.js";import{A as dt}from"./AlertModal-DKjDOIJa.js";import{F as mt}from"./FilterModal-DTniSdZ8.js";import{R as $}from"./RatingInput-BeL3qeLJ.js";import{R as ht}from"./LocationFromYou-0KgWSPkE.js";import{M}from"./MobileHorizontalButton-WkroUVMw.js";import{M as E,F as ut,m as gt}from"./map-pinned-CjdwdHYA.js";import{C as pt}from"./WideCircleImage-B24HcfP6.js";import{H as xt}from"./HighlightMessageHorizontal-uzak8UXB.js";import{W as R,D as jt,O as St,a as ft}from"./ViewLocationLayout-BtsWIwu8.js";import{G as Ct,F as vt,I as wt}from"./ImageCarousel-C9FRP-jS.js";import{g as yt,C as bt}from"./CardButton-Bc38h6c2.js";import{P as Nt,a as At}from"./PartialScrollableContent-5D9SM1yF.js";import{l as Wt}from"./location-dot-BpWMEY97.js";import"./HorizontalComponentContainer-UexfF2-E.js";import"./TextField-DxYWdCoX.js";import"./MobileNumberField-BLR7VL81.js";import"./InputPrefixIcon-b2L4_JUj.js";import"./TextAreaField-C-NVY0Fo.js";import"./ImageWithTextHeader-CFaWTepv.js";import"./CircleOrWideImage-CILEpQ8M.js";import"./SkeletonLoader-tVLQ1xlB.js";import"./NetPromoterScoreSubmissionLocation-KeetqNfK.js";import"./FormGroup-DjFcA4MW.js";import"./ValidationMessage-ChAGHmwq.js";import"./message-sent-Cggwi1s3.js";import"./useReCaptcha-CJMgmKdW.js";import"./RatingProgressBar-D2dd-S9V.js";import"./RatingInputWithScore-B7UFY2oK.js";import"./ResultCountHeaderBar-w_ooDpX9.js";import"./SortDropdown-CAjUPIjL.js";import"./SortDropdownHeaderBar-B_Nz2IH0.js";import"./filter-CjA7V6ED.js";import"./NoResults-BBoQLpqL.js";import"./FeaturedDealerTile-CkJ8W04v.js";import"./FeaturedResultTile-BOlcqg-Q.js";import"./useRecentlyViewed-BwZv0d35.js";import"./useTrackingUrl-Bu58WBDG.js";import"./SearchClient-DEqV1EL6.js";import"./PriceOption-BG-6RfjE.js";import"./tour-MT0dG_Kx.js";import"./ResultTileBottomBadges-SDTgJF4i.js";import"./GalleryAction-DwoXwS2l.js";import"./ListingIndicators-DrHCGNAD.js";import"./PriceRating-CivhFTXD.js";import"./PriceRatingContent-BOVQNXAS.js";import"./PriceRatingDetail-CuyLBB_p.js";import"./OverlayContentHeader-BmcMeCmr.js";import"./OverlayContentHeaderTitle-XP-hHEMv.js";import"./Favourite-By-rcAkB.js";import"./ProfileClient-B7kfsLFM.js";import"./Toast-hz-Trfeo.js";import"./Rating-D2yHzmN3.js";import"./CompactRating-BrnADI2U.js";import"./star-dark-grey-DYwljKJn.js";import"./ResultType-BMRqHxiG.js";import"./arrow-right-blue-4n3sTAdq.js";import"./ListingSearchResultTile-DC38-pax.js";import"./VehicleSpecTag-BzeBo2P4.js";import"./HighlightMessageStacked-DG1b1_5b.js";import"./ViewVehicleInsightsButton-D0Rldiu3.js";import"./ImageContainerWithSourceSet-BCFnm6hh.js";import"./Row-DEYrYj4e.js";
1import"./Grid-BOi4P4bE.js";import"./InlineMessageHorizontal-C5_P-t5n.js";import"./InlineMessageStacked-DZ-KM3SK.js";import"./PaginationBar-mwKU1HuX.js";import"./chevron-left-white-BbwZkVdn.js";import"./chevron-left-grey-disabled-BSVknFUP.js";import"./PillToggleSwitch-BYWZhEdw.js";import"./check-DjEBwTiF.js";import"./LocationSelector-CHb6KPO2.js";import"./check-BqdmFD3k.js";import"./new-search-D83ZllDy.js";import"./FacetSingleSelectList-C9a3iLBH.js";import"./MultiSelectList-DFSGuiyP.js";import"./FiltersAffectingResults-DzG3TRvO.js";import"./InlineContent-GWhk-E5P.js";import"./autotrader-ai-icon-4-lieod5.js";import"./BadgesCredit-Bc0zXuco.js";import"./CurrencyInput-9xZVwgfv.js";import"./NumberInput-D0_fWrYw.js";import"./info-CkW6OEjW.js";import"./FacetMultiSelectList-T3Nb7a1F.js";import"./AccordionHeader-DiHCfnxO.js";import"./ToggleSwitch-DRZEgMNl.js";import"./mileage-DLa87Osw.js";import"./VehicleSubCategoryDropdown-CMzWqtUa.js";import"./VehicleCategoryDropDown-B8t9jeFa.js";import"./ChannelSelector-tnxdo0mI.js";import"./star-solid-MBpjbKNG.js";import"./location-blue-DML3Imyf.js";import"./Label-C21UvAzZ.js";import"./Map-BqPA-dWb.js";import"./Spinner-iGCsqlB0.js";import"./Gallery-qMSBprk-.js";import"./ImageSlider-CcUt1mRt.js";import"./GalleryActions-Bmf2I0JE.js";import"./OldButton-DO5LM07G.js";import"./ListingGallery-B66AXzNa.js";import"./Spin360Control-o00_Sw5S.js";import"./useGalleryView-BYY4y7Vc.js";import"./grid-grey-CPthR9B-.js";import"./grid-solid-small-BoaFTdVH.js";import"./GallerySingleLineHeader-C3Torgoq.js";const Mt="/Bundles/client/assets/search-white-Bwjs81CN.svg",Rt=t=>e.jsx("button",{className:[Ne,t.loading?Ae:""].filter(Boolean).join(" "),onClick:t.filter,children:e.jsxs("span",{className:ye,children:[e.jsx("span",{children:e.jsx("img",{src:Mt,alt:"Search & Filter",height:"20",width:"20"})}),e.jsx("span",{children:"Search & Filter"}),t.loading&&e.jsx("span",{className:be,children:e.jsx(Se,{color:"white",dimensions:{width:24,height:24}})})]})}),J=t=>t.size==="large"?e.jsx("h1",{className:`${G} ${We} ${t.paddingBottom?Me:""}`,children:t.children}):e.jsx("h3",{className:`${G} ${Re}`,children:t.children}),Bt=new fe;function It(t){return e.jsx(le,c(n({},t),{children:({state:a,loading:s,filtering:m,createAlert:o,reset:x,selectCategory:g,updateQueryModelForSearchBar:h,excludeBlackFridaySpecial:r,setFiltering:l,setCreateAlert:p,onLocationsAutocomplete:f})=>e.jsxs(e.Fragment,{children:[e.jsx("div",{className:Be,children:e.jsxs(J,{size:"large",paddingBottom:!0,children:["New & used ",Bt.getVehicleCategoryDescription(a.vehicleCategory,!0)," for sale from this dealer"]})}),e.jsx("div",{className:Ie,children:e.jsx(Rt,{loading:s,filter:()=>l(!0)})}),m&&e.jsx(mt,{onClose:()=>l(!1),searchButton:e.jsx(nt,{loading:s,totalCount:a.controls.totalCount,category:a.query.vehicleCategory,search:()=>l(!1)}),vehicleCategory:a.query.vehicleCategory,controls:c(n({},a.controls),{categories:a.controls.categoriesFilteredForDealer}),query:a.query,buyingPower:t.buyingPower,updateQuery:j=>h(j),selectCategory:j=>g(j,a.query.dealerId),reset:()=>x(a.query.vehicleCategory,a.query.dealerId),onLocationsAutocomplete:f,hideDealerRating:!0}),o&&e.jsx(dt,{showAlertDialog:o,onClose:()=>p(!1),children:e.jsx(lt,c(n({},t),{query:r(a.query),totalResults:a.query.searchFilterCount,onSuccess:()=>p(!1),onRefineFilters:()=>l(!0),onCancel:()=>p(!1),children:e.jsx(ot,c(n({query:r(a.query)},t),{controls:a.controls,totalResults:a.query.searchFilterCount,stickyTopRightElement:e.jsx("img",{src:ct,width:"32",height:"32",alt:"Alerts Icon"})}))}))})]})}))}const Dt=t=>{const[a,s]=d.useState(null),m=!Q(a),[o,x]=d.useState(null),{fetch:g,fetching:h}=_({dealerId:t.representative.dealerId,salesRepresentativeId:t.representative.salesRepresentativeId}),r=()=>y(null,null,function*(){if(m)return;const{success:l,phoneNumber:p,errorMessage:f}=yield g();if(l){s(p);const j=`tel:${p}`;window.location.href=j}else s(null),x(f)});return e.jsxs("div",{className:De,children:[e.jsxs("div",{className:Fe,children:[e.jsx(pt,{imageUrl:t.representative.logoUrl,circleSize:"small",alt:`Representative ${t.representative.name}`}),e.jsxs("div",{className:Oe,children:[!m&&A(o)&&e.jsx("span",{className:ke,children:t.representative.name}),m&&A(o)&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:t.representative.name}),e.jsx("a",{href:`tel:${a}`,className:He,children:a})]}),!m&&!A(o)&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:t.representative.name}),e.jsx(xt,{showIcon:!0,type:"error",text:o})]})]})]}),e.jsxs("div",{className:Pe,children:[t.representative.hasWhatsAppNumber&&e.jsx(E,{type:"whatsapp",onClick:t.onWhatsAppClick}),t.representative.displayPhoneNumber&&e.jsx(E,{type:"call",onClick:r,loading:h})]})]})};class Ft extends oe{render(){return e.jsxs(e.Fragment,{children:[!this.state.showAnchor&&e.jsx(e.Fragment,{children:e.jsx(M,{onClick:()=>y(this,null,function*(){return yield this.onSubmit()}),icon:e.jsx("img",{src:yt,alt:"View address",width:"20",height:"20"}),children:"Visit website"})}),this.state.showAnchor&&e.jsx("a",{href:this.state.anchorHref,className:"b-btn m-btn-white",target:"_blank",rel:"noreferrer",children:e.jsx("span",{className:"e-button-text",children:this.getHostname()})}),this.renderCaptcha()]})}}const z=({title:t})=>e.jsx("div",{className:Ue,children:e.jsx("h2",{className:Le,children:t})}),Ot=t=>
1{const[a,s]=d.useState(),[m,o]=d.useState(t.sendContactMessage.userSubmittedNetPromoterScore),[x,g]=d.useState(null),[h,r]=d.useState(null),l=!Q(h),{fetch:p}=_({dealerId:t.dealerId}),f=()=>y(null,null,function*(){if(l){const u=`tel:${h}`;window.location.href=u}else{const{success:u,phoneNumber:S}=yield p();if(u){r(S);const C=`tel:${S}`;window.location.href=C}}}),j=u=>{g(u)},N=(u,S,C)=>{switch(u){case"sendMessage":return e.jsx(me,c(n({dealerId:t.dealerId,hideContactOptions:!0},t.sendContactMessage),{onWhatsAppClick:()=>S("whatsAppDealer"),onSuccess:v=>{j(v),S("messageSuccess")},canShowWhatsAppButton:t.contactSeller.showDealerWhatsAppButton||t.showContactSalesRepresentativeWhatsAppButton}));case"whatsAppDealer":return e.jsx(W,c(n({},t.contactSeller.dealerSendWhatsAppContactMessage),{allContactedWhatsApps:t.allContactedWhatsApps,leadType:R.Enquiry,location:b.Toolbar}));case"whatsAppSalesRepresentative":return e.jsx(W,c(n({},a),{allContactedWhatsApps:t.allContactedWhatsApps,leadType:R.Enquiry,location:b.Toolbar}));case"viewSalesRepresentatives":return e.jsx(de,{representatives:t.contactSeller.salesRepresentativeSendWhatsAppContactMessage,onWhatsAppClick:v=>{s(v),S("whatsAppSalesRepresentative")},location:b.Toolbar});case"messageSuccess":return e.jsx(ce,c(n({dealerId:t.dealerId},t.sendContactMessage),{userSubmittedNetPromoterScore:m,onUserSubmittedNetPromoterScore:()=>o(!0),result:x,onClose:()=>S("sendMessage"),onCreateAccount:t.onCreateAccount}));default:throw new Error(`Unknown view type: ${u}`)}};return e.jsx(ut,{canShowSendMessage:t.contactSeller.canShowSendMessage,showDealerWhatsAppButton:t.contactSeller.showDealerWhatsAppButton,showContactSalesRepresentativeWhatsAppButton:t.contactSeller.showContactSalesRepresentativeWhatsAppButton,footerElements:e.jsx(bt,{color:"primary",type:l?"text-only":"call-primary",text:l?h:"Call Seller",onClick:f}),children:N})};function Ts(t){var D,F,O,k;const a=d.useRef(null),s=d.useRef(null),m=d.useRef(null),o=t.logoBackgroundColour||null,[x,g]=d.useState(!1),[h,r]=d.useState(!1),l=()=>{r(!0)},p=()=>{g(!0)},[f,j]=d.useState(),[N,u]=d.useState(!1),[S,C]=d.useState(!1),[v,B]=d.useState(!1),K=n({vehicleCategory:t.vehicleCategory},t.searchViewModel),X=(D=t.galleryModel)==null?void 0:D.galleryImages.map(i=>({id:i.imageId,url:i.gridImageUrl,altTag:i.altTag,fullscreenUrl:i.originalImageUrl})),I=i=>e.jsx(je,{isSticky:i,sections:[{label:"Overview",ref:a},{label:"Ratings & Reviews",ref:s},{label:e.jsxs("span",{children:["Listings ",e.jsx(ne,{count:t.searchViewModel.results.resultCount})]}),ref:m}]}),Y=(i,w)=>e.jsx(wt,{images:X,setIds:i,viewImage:w,aspectRatio:"4/3"});return e.jsxs("div",{className:Te,children:[e.jsx(ie,{breadcrumbs:t.breadcrumb.breadcrumbs}),e.jsx("div",{className:Ve,children:e.jsx(J,{size:"large",children:t.h1})}),e.jsx(Ce,{nonStickyChildren:I(!1),children:I(!0)}),e.jsxs("div",{ref:a,children:[e.jsx("div",{className:Ge,children:e.jsxs("div",{className:qe,children:[e.jsx("div",{className:$e,style:o?{backgroundColor:o}:{},children:e.jsx(ve,{src:t.logoUrl,size:{width:"100%",height:"auto",maxHeight:"162px",maxWidth:"361px"},imageLoadType:"eager",alt:t.name,objectFit:"contain"})}),e.jsxs("div",{className:Ee,children:[t.rating.ratingCount>0&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:q,children:[e.jsx($,{value:t.rating.score,readOnly:!0,useHalfStars:!0,size:{width:"30px",height:"30px"},numberOfStars:5,usePortalColours:!0}),e.jsxs("span",{children:[t.rating.score," stars"]}),e.jsx(ht,{landingPageUrl:t.rating.landingPageUrl})]}),e.jsx("div",{className:ze,children:e.jsxs(U,{style:"link",onClick:()=>{var i;(i=s.current)==null||i.scrollIntoView({behavior:"smooth"})},children:[t.rating.ratingCount," reviews"]})})]}),!(t.rating.ratingCount>0)&&e.jsxs("div",{className:q,children:[e.jsx($,{value:0,readOnly:!0,useHalfStars:!0,size:{width:"16px",height:"16px"},numberOfStars:1,usePortalColours:!0}),e.jsx("span",{children:"No ratings or reviews"})]})]}),e.jsxs("div",{className:_e,children:[e.jsx("span",{className:Qe,children:t.suburbName}),e.jsx(jt,{userHasGeolocation:t.distanceFromUserModel.userHasGeolocation,distanceFromUser:t.distanceFromUserModel.distanceFromUser,listingGeolocation:t.distanceFromUserModel.geolocation})]}),e.jsx("div",{className:Je,children:e.jsxs("div",{className:Ke,children:[t.officeHours.length>0&&e.jsx(M,{onClick:()=>{l()},icon:e.jsx("img",{src:gt,alt:"Office hours",width:"20",height:"20"}),children:e.jsxs("span",{className:Xe,children:[e.jsx(St,{currentOpenState:t.openState}),e.jsx(ft,{openState:t.openState,opensAt:t.opensAt,closesAt:t.closesAt,nextOpenDay:t.nextOpenDay,insideButton:!0})]})}),t.enableProfileLeads&&e.jsx(M,{onClick:()=>{p()}
1,icon:e.jsx("img",{src:Wt,alt:"View address",width:"20",height:"20"}),children:"View address"}),t.hasWebsiteHref&&e.jsx(Ft,{dealerId:t.id,category:t.vehicleCategory})]})})]})}),t.contactSeller.salesRepresentativeSendWhatsAppContactMessage.length>0&&e.jsxs("div",{className:Ye,children:[e.jsx(z,{title:"Sales"}),e.jsx(we,{showDots:!0,noInlinePadding:!0,children:t.contactSeller.salesRepresentativeSendWhatsAppContactMessage.map((i,w)=>e.jsx(Dt,{representative:t.enableProfileLeads?i:c(n({},i),{displayPhoneNumber:!1,hasWhatsAppNumber:!1}),index:w,onWhatsAppClick:()=>{j(i),u(!0)}},`${i.name}`))})]}),e.jsx("div",{className:Ze,children:e.jsx(he,{aboutUs:t.aboutUs,displayGroupName:t.displayGroupName,showGroupUrl:t.showGroupUrl,groupUrl:t.groupUrl,groupName:t.groupName})}),t.galleryModel&&e.jsxs("div",{className:et,children:[e.jsxs("div",{className:tt,children:[e.jsx(z,{title:"Gallery"}),e.jsx(Ct,c(n({},t.galleryModel),{refreshGallery:!0,fullscreenHeader:e.jsx(vt,n({},t.galleryModel)),onClose:()=>C(!1),viewGrid:S,imageGrid:(i,w,Z)=>Y(w,Z)}))]}),e.jsx("div",{className:at,children:e.jsx(U,{style:"link",onClick:()=>C(!0),children:"View All"})})]})]}),e.jsx("div",{className:st,ref:s,id:"Reviews",children:e.jsx(ue,c(n({},t.ratingsAndReviewsModel),{dealerName:t.name,findOutMoreLink:"/ratings-and-reviews-on-autotrader"}))}),e.jsx("div",{className:rt,ref:m,id:"Listings",children:e.jsx(It,c(n({buyingPower:t.buyingPower},K),{alertModel:t.alertModel}))}),t.enableProfileLeads&&e.jsx(Ot,{allContactedWhatsApps:[],canShowSendMessage:(F=t.contactSeller)==null?void 0:F.canShowSendMessage,contactSeller:t.contactSeller,sendContactMessage:t.sendContactMessage,showContactSalesRepresentativeWhatsAppButton:!1,dealerId:t.id,size:"medium"}),x&&e.jsx(L,{header:e.jsx(V,{onClose:()=>g(!1)}),footer:null,children:e.jsx(T,{children:e.jsx("div",{children:e.jsx(ge,{dealerId:t.id,dealerName:t.name,category:t.vehicleCategory,canShowVisitButton:(k=(O=t.contactSeller)==null?void 0:O.canShowVisitButton)!=null?k:!1,onWhatsAppClick:()=>{B(!0)},showOpenState:t.officeHours.length>0,openState:t.openState,opensAt:t.opensAt,closesAt:t.closesAt,nextOpenDay:t.nextOpenDay})})})}),v&&e.jsx(pe,c(n({allContactedWhatsApps:[]},t.contactSeller),{onClose:()=>{B(!1)}})),N&&e.jsx(L,{header:e.jsx(V,{onClose:()=>u(!1)}),footer:null,children:e.jsx(T,{children:e.jsx("div",{children:e.jsx(W,c(n({},f),{allContactedWhatsApps:[],leadType:R.Enquiry,location:b.SalesRepSection}))})})}),h&&e.jsx(Nt,{title:"Opening Times",close:()=>r(!1),children:e.jsx(At,{children:e.jsx("div",{className:it,children:e.jsx(xe,{officeHours:t.officeHours})})})})]})}export{Ts as default};

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.