PageSourceSearch

https://www.foxtons.co.uk/_next/static/chunks/pages/apartments-for-auction/poly-e127b0e39e31542b.js

js foxtons.co.uk collected 2026-09-24 18:16:33 UTC 6,376 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[63767,79678],{96466:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/apartments-for-auction/poly",function(){return n(8852)}])},3525:function(t,e,n){"use strict";n.d(e,{Z:function(){return F}});var o=n(17487),r=n(45045),l=n(90349),i=n(44194),a=n(41243),s=n(21311),c=n(48993),d=n(34800),u=n(84450),p=n(40756);let{palette:g,spacing:h}=p.default,m={dialogBox:{backgroundColor:g.grey["50"],borderRadius:"0px",width:{xs:"90%",sm:"60%",md:"40%",lg:"25%"},paddingX:h(1),paddingTop:h(1),paddingBottom:h(1),position:"absolute",bottom:"50%",left:"50%",transform:{xs:"translate(-50%, -8%)",md:"translate(-50%, -5%)",lg:"translate(-50%, 55%)"},height:"auto",shadow:"0px 4px 16px 0px #97979729"},dialogTitleContent:{display:"flex",justifyContent:"space-between",alignItems:"center",m:0},dialogTitle:{color:g.primary.main},dialogSubTitle:{color:g.grey.main,marginTop:h(.5)},dialogCloseIcon:{color:g.grey.main},startButton:{marginTop:h(1),width:"100%"}};var f=function(t){let{onDrawStart:e}=t,[n,l]=(0,i.useState)(!0),p=()=>{l(!1),e()};return n?(0,o.tZ)(c.d,{onClickAway:p,children:(0,o.tZ)(r.Z,{children:(0,o.BX)(r.Z,{sx:m.dialogBox,children:[(0,o.BX)(r.Z,{sx:m.dialogTitleContent,children:[(0,o.tZ)(d.Z,{variant:"h2",component:"h1",sx:m.dialogTitle,children:"Draw a search"}),(0,o.tZ)(u.Z,{"aria-label":"close",sx:m.dialogCloseIcon,onClick:p,children:(0,o.tZ)(s.Z,{src:"/webImages/closeModal.svg",alt:"close",width:0,height:0,style:{height:"100%",width:"100%",objectFit:"cover"}})})]}),(0,o.tZ)(d.Z,{variant:"subtitle2",sx:m.dialogSubTitle,children:"Click points on the map to draw a shape"}),(0,o.tZ)(a.default,{sx:m.startButton,color:"primary",variant:"primary-dark",onClick:p,children:"Start"})]})})}):null},v=n(94265),y=n(63174),Z=n(81286),w=n(20820),C=n(33270),b=n(91378),x=n(21318),S=n(86270);let{palette:_}=S.lightTheme,P={polygonFillColor:_.primary[200],polygonFillOpacity:.6,polygonOutlineColor:_.primary.main,polygonOutlineWidth:3,lineStringColor:_.primary.main,lineStringWidth:3,closingPointColor:_.primary.main},T=()=>({feature:{draggable:!0,rotateable:!0,coordinates:{midpoints:!0,draggable:!0,deletable:!0}}}),B=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[new b.jF({flags:{polygon:T()}}),new b.n_({styles:{...P,...t.polyLineOptions}})]},k=t=>{let{polyLineOptions:e,onPolygonComplete:n}=t,o=(0,C.useMap)(),r=(0,i.useRef)(null),[l,a]=(0,i.useState)(null),[s,c]=(0,i.useState)("static");return(0,i.useEffect)(()=>{if(!o||r.current)return()=>{};let t=!1,n=null,l=()=>{if(r.current||t)return;let n=new b.DB({adapter:new x.H({map:o,lib:google.maps,coordinatePrecision:9}),modes:B({polyLineOptions:e})});n.start(),r.current=n,a(n)};return o.getProjection()?l():n=o.addListener("projection_changed",()=>{var t;o.getProjection()&&(null===(t=n)||void 0===t||t.remove(),l())}),()=>{var e;t=!0,null===(e=n)||void 0===e||e.remove(),r.current&&(r.current.stop(),r.current=null),a(null)}},[o,e]),(0,i.useEffect)(()=>{if(!l||!n)return()=>{};let t=(t,e)=>{if("draw"===e.action){var o;let t=l.getSnapshot(),e=t.find(t=>"Polygon"===t.geometry.type),r=null==e?void 0:null===(o=e.geometry)||void 0===o?void 0:o.coordinates[0];r&&n(r)}};return l.on("finish",t),()=>{l.off("finish",t)}},[l,n]),{draw:l,isDrawing:"polyline"===s,setIsDrawing:t=>{if(!l)return;let e=t?"polyline":"static";l.setMode(e),c(e)},clear:()=>{l&&(l.clear(),l.setMode("static"),c("static"))}}};var D=n(14763),I=n(34765),L=n(39264),O=n(61223),N=n(99699);n(64181);var X=n(85706),j=n.n(X);let E=j()(n.e(90706).then(n.bind(n,57382)),{loadableGenerated:{webpack:()=>[57382]},ssr:!1}),M={fullscreenControl:!1,streetViewControl:!1,zoomControl:!1},A=t=>"properties-to-rent"===t||"flats-to-rent"===t||"apartments-to-rent"===t||"houses-to-rent"===t?"LL":"short-let-properties"===t||"short-let-flats"===t||"short-let-apartments"===t||"short-let-houses"===t?"SL":"SS";var F=i.memo((0,w.y)(t=>{var e,n;let i=(0,l.useRouter)(),{pathname:a}=i,s=a.substring(a.indexOf("/")+1,a.lastIndexOf("/")),[c]=(0,L.D)(),d=(0,I.WD)(),{setIsDrawing:u}=k({onPolygonComplete:t=>{u(!1);let e=window.google.maps.geometry.encoding.encodePath(t.map(t=>{let[e,n]=t;return{lat:n,lng:e}}));sessionStorage.setItem("isDrawSearch","true");let n=A(s),o=(null==d?void 0:d.split("?"))||[""];i.push("/".concat(s,"/poly").concat(o[0],"?polyline=").concat(e,"&search_type=").concat(n).concat(o[1]?"&".concat(o[1]):""))}});return(0,o.BX)(r.Z,{sx:{...O.Z.mainContainer,marginTop:"5.43rem"},children:[(0,o.tZ)(v.default,{title:(null==t?void 0:null===(e=t.seo)||void 0===e?void 0:e.metaTitle)||"",description:(null==t?void 0:null===(n=t.seo)||void 0===n?void 0:n.metaDescription)||""}),(0,o.BX)(I.Z7,{children:[(0,o.tZ)(y.Z,{typeProperty:s,initalValueSearchAutocomplete:"",loggedIn:!!(null==c?void 0:c.isLoggedIn),onClickLogIn:t=>{t.stopPropagation(),t.preventDefault(),(0,N.DB)({actionName:"",hasLoggedIn:!1,redirectUrl:i.asPath}),i.push("/auth/action")},searchName:"".concat(s,"-in-"),justMapView:!0,isDrawAreaPage:!0}),(0,o.BX)(E,{center:D.PW,zoom:12,wrapperSx:{...O.Z.mapStyles,height:"38.375rem"},mapOptions:M,children:[(0,o.tZ)(Z.Z,{}),(0,o.tZ)(f,{onDrawStart:()=>u(!0)})]})]})]})}))},8852:function(t,e,n){"use strict";n.r(e),n.d(e,{__N_SSP:function(){return i}});var o=n(17487),r=n(3525),l=n(43151),i=!0;e.default=t=>(null==t?void 0:t.hasQueryParams)?(0,o.tZ)(l.Z,{...t}):(0,o.tZ)(r.Z,{...t})},79678:function(t,e,n){"use strict";n.r(e);var o=n(17487);n(44194);var r=n(20077);e.default=t=>(0,o.tZ)(r.Z,{...t,title:"Transit",children:(0,o.tZ)("svg",{viewBox:"0 0 12 13",fill:"#000",xmlns:"http://www.w3.org/2000/svg",...t,children:(0,o.tZ)("path",{d:"M6 .333C3.333.333.667.667.667 3v6.333A2.336 2.336 0 0 0 3 11.667l-.807.54a.432.432 0 0 0 .24.793h7.133a.432.432 0 0 0 .24-.793L9 11.667a2.336 2.336 0 0 0 2.333-2.334V3C11.333.667 8.947.333 6 .333ZM3.667 9.667c-.554 0-1-.447-1-1 0-.554.446-1 1-1 .553 0 1 .446 1 1 0 .553-.447 1-1 1Zm1.666-4H2v-2h3.333v2Zm3 4c-.553 0-1-.447-1-1 0-.554.447-1 1-1 .553 0 1 .446 1 1 0 .553-.447 1-1 1Zm1.667-4H6.667v-2H10v2Z",fill:t.fill})})})}},function(t){t.O(0,[81906,34370,22276,68788,80785,82121,70127,1687,10607,33270,84849,48304,48403,29256,26997,99699,64181,44775,39155,47733,81286,9167,48141,92984,27879,43151,61337,92888,40179],function(){return t(t.s=96466)}),_N_E=t.O()}]);
2//# sourceMappingURL=poly-e127b0e39e31542b.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.