1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[473],{80473:function(e,t,s){s.r(t),s.d(t,{default:function(){return m}});var r=s(57437),i=s(84278),u=s(8826),l=s(69806),a=s(42644),n=s(56264),c=s(56259),b=s(4243),d=s(61081),o=s(85264),f=s(68692),h=s(61856);function m(e){let{recentData:t}=e,{data:s}=t,m=(0,o.Z)(s.suburbs)>0?(0,c.of)(s.suburbs).idStr():{},p=s.loaded?{url:null}:{url:"property-activity-cover",params:Object.assign({streetId:s.streetId},m)},{data:L,isLoading:g}=(0,a.Z)({fetcher:p,recentData:t});if(g||!L)return(0,r.jsx)(u.H9,{});let x=L.streetLabel||(0,d.tr)((0,f.Z)(L.suburbs,"pureLabel"),", ")||l.i4.label,y=(0,n.Z)();y.setSuburbs(L.suburbs),y.pushNewZealand();let v=y.toSlug();return(0,r.jsxs)(h.default,{href:(0,b.tT)(v),className:"flex flex-col justify-between rounded-sm overflow-hidden group shadow-carousel",children:[(0,r.jsx)(i.default,{src:L.cover,alt:x,hoverScale:!0,className:"aspect-[267/176]",width:267,height:176,defaultIcon:"icon-house-cover"}),(0,r.jsxs)("div",{className:"px-10 py-12 space-y-8 bg-white",children:[(0,r.jsx)("div",{className:"text-sm text-black line-clamp-1",children:x}),(0,r.jsx)("div",{className:"flex items-center gap-x-4 whitespace-nowrap",children:(0,r.jsx)("span",{className:"h-20 flex items-center px-10 rounded-[100px] bg-greenrgb bg-opacity-10 text-green text-xs",children:"Estimate"})}),(0,r.jsx)("div",{className:"min-h-[21px]"})]})]})}},42644:function(e,t,s){s.d(t,{Z:function(){return L}});var r=s(81816),i=s(85292),u=s(99095),l=s(1341),a=s(48587),n=s(82950),c=s(75785),b=s(551),d=s(57333),o=s(94318),f=s(87463),h=s(65437),m=s(2265),p=s(5403);function L(e){let{fetcher:t,recentData:s}=e,{data:L}=s,[g,x]=(0,m.useState)(L.loaded?L:null),{data:y,isLoading:v}=(0,p.Z)(t),w=(0,m.useMemo)(()=>{if(s.isEstimateByListing())return c.e;if(s.isEstimateByArea())return n.r;if(s.isBuyByListing())return u.i;if(s.isRentByListing())return d.c;if(s.isBuyBySuburb())return l.T;if(s.isRentBySuburb())return o.P;if(s.isSoldBySuburb())return h.g;else if(s.isNewHomesBySuburb())return b.X;else if(s.isCommercialForSale()||s.isCommercialForLease())return a.w;
1else if(s.isRuralBySuburb())return f.J;else if(s.isBusinessesBySuburb())return i.e},[s]);return(0,m.useEffect)(()=>{if(y&&!g&&w){let e=new w;e.fromDetail(L),e.fromDetail(y),x(e),s.data=e,r.eN.cache(s)}},[g,L,y,s,w,x]),{isLoading:v,data:g}}},82950:function(e,t,s){s.d(t,{r:function(){return r}});class r{static fromStreet(e){let t=new r;return e.id&&(t.streetId=e.id),e.pureLabel&&(t.streetLabel=e.pureLabel),e.lat&&(t.streetLat=e.lat),e.lng&&(t.streetLng=e.lng),t}static fromSuburb(e){let t=new r;return t.suburbs=e,t}fromDetail(e){e&&(e._id&&(this._id=e._id),e.cover&&(this.cover=e.cover),e.suburbs&&(this.suburbs=e.suburbs),e.streetId&&(this.streetId=e.streetId),e.streetLabel&&(this.streetLabel=e.streetLabel),e.streetLat&&(this.streetLat=e.streetLat),e.streetLng&&(this.streetLng=e.streetLng),this.loaded=!0)}constructor(){this._id=Date.now(),this.loaded=!1,this.cover=null,this.suburbs=null,this.streetId=null,this.streetLabel=null,this.streetLat=null,this.streetLng=null}}}}]);
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.