1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[79],{19183:function(e,n,r){"use strict";r.r(n),r.d(n,{default:function(){return P}});var t=r(8014),o=r(56168),u=r(85987),c=r.n(u),a=r(50141),l=r.n(a);function i(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function f(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{},t=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),t.forEach((function(n){i(e,n,r[n])}))}return e}var s=9e-4,d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map((function(e){var n=l()(e.id);return f({},e,{coord:[e.coord[0]+n()*s-45e-5,e.coord[1]+n()*s-45e-5]})}))},m=null,p=r(26794),b=r(6638),v=r(77013),y=r(81047);function O(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function g(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{},t=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),t.forEach((function(n){O(e,n,r[n])}))}return e}var h=40,k=1,w=20,C,P=function(e){var n=e.mapId,r=e.homecardMouseEnterId,u=e.defaultZoom,a=e.centerCoordinates,l=e.pointOfInterest,i=e.markerList,f=e.showPrice,s=e.currencyIsoCode,m=e.showClusters,O=e.onZoomChange,k=e.onIdle,C=e.onMarkerClicked,P=e.onMapDrag,j=e.onMapDidMount,I=e.onMapWillUnmount,M=(0,o.useRef)(null),E=(0,o.useRef)(i),Z=function(e){return g({},e,{label:f&&e?"".concat((0,p.T4)(e.minimumPrice,s)):null})},D=function(){var e=null,n,r,t;null===M||void 0===M||null===(t=M.current)||void 0===t||t.setCenter({lat:parseFloat(a.lat),lng:parseFloat(a.lng)})},S=function(e){M.current.setCenter({lat:e.lat,lng:e.lng}),M.current.increaseZoom()},_=function(){var e=null,r=!0;M.current=new v.Z(n,{zoom:u,minZoom:1,maxZoom:w,padding:h,showClusters:m,style:y.Xp,onZoomChange:O,onIdle:k},{onMarkerClick:C,onClusterClick:S},P,r),D(),j&&j(M.current),M.current.addMarkers(i.map(Z)),l?M.current.addPointOfInterest(l):M.current.removePointOfInterest()};return(0,b.y)(_),(0,o.useEffect)((function(){return function(){M.current&&M.current.destroy(),I()}}),[]),(0,o.useEffect)((function(){r&&M.current&&M.current.activeMarker(r)}),[r]),(0,o.useEffect)((function(){!c()(E.current,i)&&M.current&&(M.current.updateMarkers(E.current,d(i.map(Z)),l),E.current=i)}),[i]),(0,o.useEffect)((function(){M.current&&(l?M.current.addPointOfInterest(l):M.current.removePointOfInterest())}),[l]),(0,t.jsx)("div",{className:"h-full w-full",id:n,"data-cy":"themap"})}},75042:function(){}}]);
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.