1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7255],{16793:(e,t,n)=>{n.d(t,{A:()=>o});var i=function(e){return{latitude:e.lat,longitude:e.lng}};let o=function(e){var t=e.getBounds();return{southWest:i(t.getSouthWest()),southEast:i(t.getSouthEast()),northWest:i(t.getNorthWest()),northEast:i(t.getNorthEast())}}},64580:(e,t,n)=>{n.d(t,{A:()=>r});var i=n(82732),o=n(95155),a=(0,n(67909).default)(function(){return Promise.all([n.e(4804),n.e(8779),n.e(1761),n.e(5169),n.e(1929)]).then(n.bind(n,1929))},{loadableGenerated:{webpack:function(){return[1929]}},ssr:!1});let r=function(e){return(0,o.jsx)(a,(0,i._)({},e))}},87255:(e,t,n)=>{n.r(t),n.d(t,{default:()=>_});var i=n(95155),o=n(49478),a=n(86156),r=n(91487),s=n(97179),l=n(75970),u=function(e){var t=e.children;return(0,i.jsx)(s.default,{container:!0,height:"100%",children:(0,i.jsx)(s.default,{size:12,children:(0,i.jsx)(l.A,{sx:{width:"100%",height:"100%",position:"relative"},variant:"outlined",children:t})})})},d=n(64580),c=n(82732),h=n(45849),f=n(22043),m=n(12115),g=n(55027),v=n(86578),p=n(73241),x=n(16793),b=n(95669),k=n(46966),I=function(){var e=(0,a.A)().items,t=(0,v.A)(),n=t.filter,i=t.setFilter,s=(0,p.A)().hoveredItemId,l=(0,f._)((0,m.useState)(null),2),u=l[0],d=l[1],I=(0,r.A)(),z=I.selectedItemId,j=I.setSelectedItemId,w=(0,o.Ay)(),A=w.isMobile,E=w.data,M=w.setData,_=w.shouldReset,N=w.defaultData,S=w.isDefaultData,C=w.setShouldReset,D=w.defaultDataMobile;(0,m.useEffect)(function(){u&&u.invalidateSize()},[u,e]),(0,m.useEffect)(function(){if(u&&u.closePopup(),_){if(!u||S)return void C(!1);M(N),C(!1),u.setView(new g.LatLng(N.latitude,N.longitude),N.zoom)}},[S,u,N,_,M,C]);var P=(0,m.useMemo)(function(){var t=function(e){var t=[];return e.isTeasing?t.push("zIndexTeasing"):e.isTop?t.push("zIndexTop"):e.isPremium?t.push("zIndexPremium"):t.push("zIndexBase"),t.join(" ")},n=function(e){var n,i=(n=e.id)===s||n===z,o=t(e.services),a=e.services.isTeasing,r={width:a?20:56,height:a?24:68},l={width:2*r.width,height:2*r.height};return a?{url:"".concat(k.R.getNehnutelnostiUrl()).concat((0,b.fQ)(a,i,l)),className:o,size:r}:{url:"".concat(k.R.getNehnutelnostiUrl()).concat((0,b.fQ)(a,i,l,e.previewPhoto)),className:o,size:r}};return e.map(function(e){return{icon:n(e),location:e.location.gps,onClick:function(){return j(e.id)}}})},[s,e,z,j]);return{handleOnLoad:function(e){d(e),i((0,h._)((0,c._)({},n),{viewport:(0,x.A)(e)}))},handleOnMoveEnd:function(e){j(""),i((0,h._)((0,c._)({},n),{viewport:e})),u&&M({zoom:u.getZoom(),latitude:u.getCenter().lat,longitude:u.getCenter().lng})},zoom:E.zoom,markers:P,location:{latitude:A&&S?D.latitude:E.latitude,longitude:A&&S?D.longitude:E.longitude},resetSelectedItem:function(){return j("")}}},z=function(){var e=I(),t=e.zoom,n=e.handleOnLoad,o=e.location,a=e.markers,r=e.handleOnMoveEnd,s=e.resetSelectedItem;return(0,i.jsx)(d.A,{zoom:t,center:o,markers:a,onLoad:n,onMoveEnd:r,onClick:s,pois:[]})},j=n(58269),w=n(25789),A=n(80357),E=function(e){var t=e.children,n=e.isMobile,o=(0,w.A)(),a=o.palette,r=o.spacing,s={zIndex:o.zIndex.tooltip,position:"absolute",width:300,backgroundColor:a.backgroundPrimary.main};return n?(s.bottom="calc(".concat(r(10)," + (100vh - 100% - 65px))"),s.left="calc((100vw - ".concat(300,"px) / 2)")):(s.top=r(2),s.left=r(2)),(0,i.jsx)(A.default,{sx:s,borderRadius:2,children:t})},M=function(e){var t=e.isMobile,n=e.advertisement;return(0,i.jsx)(E,{isMobile:t,children:(0,i.jsx)(j.i,{isMapItem:!0,item:n,gtmEventData:{event:"track-event",category:"mapa_projekty",action:"detail-projektu-mapa",label:"klik"}})})};let _=function(){var e=(0,a.A)().items,t=(0,o.Ay)().isMobile,n=(0,r.A)().selectedItemId,s=e.find(function(e){return e.id===n});return(0,i.jsx)(u,{children:(0,i.jsxs)(i.Fragment,{children:[s&&(0,i.jsx)(M,{isMobile:t,advertisement:s}),(0,i.jsx)(z,{})]})})}}}]);
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.