PageSourceSearch

https://muzeumcyfrowe.pl/_next/static/chunks/716.7b554c15725f8fc985f2.js

js muzeumcyfrowe.pl collected 2026-10-08 08:17:21 UTC 7,603 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[716,932],{27932:function(n,t,e){"use strict";e.r(t),e.d(t,{default:function(){return j}});var o=e(67294);const r=(0,o.createContext)(null),c=r.Provider;function u(){const n=(0,o.useContext)(r);if(null==n)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return n}var a=e(45243),i=e.n(a);function l(){return(l=Object.assign||function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o])}return n}).apply(this,arguments)}function s(n){let{children:t,className:e,id:r,placeholder:u,style:i,whenCreated:s,...f}=n;const p=(0,o.useRef)(null),d=function(n,t){const[e,r]=(0,o.useState)(null);return(0,o.useEffect)((()=>{if(null!==n.current&&null===e){const e=new a.Map(n.current,t);null!=t.center&&null!=t.zoom?e.setView(t.center,t.zoom):null!=t.bounds&&e.fitBounds(t.bounds,t.boundsOptions),null!=t.whenReady&&e.whenReady(t.whenReady),r(e)}}),[n,e,t]),e}(p,f),m=(0,o.useRef)(!1);(0,o.useEffect)((()=>(null!=d&&!1===m.current&&null!=s&&(m.current=!0,s(d)),()=>{null==d||d.remove()})),[d,s]);const[h]=(0,o.useState)({className:e,id:r,style:i}),v=(0,o.useMemo)((()=>d?{__version:1,map:d}:null),[d]),y=v?o.createElement(c,{value:v},t):u??null;return o.createElement("div",l({},h,{ref:p}),y)}var f=e(73935);function p(n){function t(t,e){const{instance:r,context:u}=n(t).current;return(0,o.useImperativeHandle)(e,(()=>r)),null==t.children?null:o.createElement(c,{value:u},t.children)}return(0,o.forwardRef)(t)}function d(n,t){return null==t?function(t,e){return(0,o.useRef)(n(t,e))}:function(e,r){const c=(0,o.useRef)(n(e,r)),u=(0,o.useRef)(e),{instance:a}=c.current;return(0,o.useEffect)((function(){u.current!==e&&(t(a,e,u.current),u.current=e)}),[a,e,r]),c}}function m(n,t){const e=(0,o.useRef)(t);(0,o.useEffect)((function(){t!==e.current&&null!=n.attributionControl&&(null!=e.current&&n.attributionControl.removeAttribution(e.current),null!=t&&n.attributionControl.addAttribution(t)),e.current=t}),[n,t])}function h(n,t){const e=(0,o.useRef)();(0,o.useEffect)((function(){return null!=t&&n.instance.on(t),e.current=t,function(){null!=e.current&&n.instance.off(e.current),e.current=null}}),[n,t])}function v(n,t){const e=n.pane??t.pane;return e?{...n,pane:e}:n}function y(n,t){(0,o.useEffect)((function(){return(t.layerContainer??t.map).addLayer(n.instance),function(){var e;null==(e=t.layerContainer)||e.removeLayer(n.instance),t.map.removeLayer(n.instance)}}),[t,n])}function g(n){return function(t){const e=u(),o=n(v(t,e),e);return m(e.map,t.attribution),h(o.current,t.eventHandlers),y(o.current,e),o}}function x(n){return function(t){const e=u(),r=n(v(t,e),e);return h(r.current,t.eventHandlers),y(r.current,e),function(n,t){const e=(0,o.useRef)();(0,o.useEffect)((function(){if(t.pathOptions!==e.current){const o=t.pathOptions??{};n.instance.setStyle(o),e.current=o}}),[n,t])}(r.current,t),r}}const b=function(n){function t(t,e){const{instance:r}=n(t).current;return(0,o.useImperativeHandle)(e,(()=>r)),null}return(0,o.forwardRef)(t)}(g(d((function(n,t){let{url:e,...o}=n;return{instance:new a.TileLayer(e,v(o,t)),context:t}}),(function(n,t,e){const{opacity:o,zIndex:r}=t;null!=o&&o!==e.opacity&&n.setOpacity(o),null!=r&&r!==e.zIndex&&n.setZIndex(r)}))));const C=function(n,t){return p(g(d(n,t)))}((function(n,t){let{position:e,...o}=n;const r=new a.Marker(e,o);return{instance:r,context:{...t,overlayContainer:r}}}),(function(n,t,e){t.position!==e.position&&n.setLatLng(t.position),null!=t.icon&&t.icon!==e.icon&&n.setIcon(t.icon),null!=t.zIndexOffset&&t.zIndexOffset!==e.zIndexOffset&&n.setZIndexOffset(t.zIndexOffset),null!=t.opacity&&t.opacity!==e.opacity&&n.setOpacity(t.opacity),null!=n.dragging&&t.draggable!==e.draggable&&(!0===t.draggable?n.dragging.enable():n.dragging.disable())})),_=function(n,t){return function(n){function t(t,e){const[r,c]=(0,o.useState)(!1),{instance:u}=n(t,c).current;(0,o.useImperativeHandle)(e,(()=>u)),(0,o.useEffect)((function(){r&&u.update()}),[u,r,t.children]);const a=u._contentNode;return a?(0,f.createPortal)(t.children,a):null}return(0,o.forwardRef)(t)}(function(n,t){return function(e,o){const r=u(),c=n(v(e,r),r);return m(r.map,e.attribution),h(c.current,e.eventHandlers),t(c.current,r,e,o),c}}(d(n),t))}((function(n,t){return{instance:new a.Popup(n,t.overlayContainer),context:t}}),(function(n,t,e,r){const{onClose:c,onOpen:u,position:a}=e;(0,o.useEffect)((function(){const{instance:e}=n;
1function o(n){n.popup===e&&(e.update(),r(!0),null==u||u())}function i(n){n.popup===e&&(r(!1),null==c||c())}return t.map.on({popupopen:o,popupclose:i}),null==t.overlayContainer?(null!=a&&e.setLatLng(a),e.openOn(t.map)):t.overlayContainer.bindPopup(e),function(){var n;t.map.off({popupopen:o,popupclose:i}),null==(n=t.overlayContainer)||n.unbindPopup(),t.map.removeLayer(e)}}),[n,t,r,c,u,a])})),w=function(n,t){return p(x(d(n,t)))}((function(n,t){let{positions:e,...o}=n;const r=new a.Polygon(e,o);return{instance:r,context:{...t,overlayContainer:r}}}),(function(n,t,e){t.positions!==e.positions&&n.setLatLngs(t.positions)}));var O=e(34880),E=e.n(O),I=(e(26538),e(85893)),L=i().icon({iconUrl:"".concat("").concat("/_next/static/image/node_modules/leaflet/dist/images/marker-icon.2b3e1faf89f94a4835397e7a43b4f77d.png"),shadowUrl:"".concat("").concat("/_next/static/image/node_modules/leaflet/dist/images/marker-shadow.a0c6cc1401c107b501efee6477816891.png"),iconAnchor:[12,41],popupAnchor:[0,-30]}),j=function(n){var t=n.zoomValue,e=void 0===t?15:t,o=n.mapCoords,r=n.isSimpleTypeOfCoords,c=void 0===r||r,u=n.markerInfo;return(0,I.jsx)("div",{className:E()["leaflet-map"],children:(0,I.jsxs)(s,{center:function(){if(c)return o;var n=1/0,t=-1/0,e=1/0,r=-1/0;return o.forEach((function(o){n=Math.min(n,o[0]),t=Math.max(t,o[0]),e=Math.min(e,o[1]),r=Math.max(r,o[1])})),[n+(t-n)/2,e+(r-e)/2]}(),zoom:e,whenCreated:function(n){n._loaded&&c&&function(){var n=function(n){return document.querySelector(n).setAttribute("tabindex","-1")},t=function(n){return document.querySelector(n).removeAttribute("title")};n("img.leaflet-marker-icon"),n("div.leaflet-container"),t("a.leaflet-control-zoom-in"),t("a.leaflet-control-zoom-out"),t("div.leaflet-control-attribution.leaflet-control a"),document.querySelector("div.leaflet-control-attribution.leaflet-control").innerHTML='\n\t\t\t<a href="https://leafletjs.com">Leaflet</a>\n\t\t\t<span> \xa9 </span>\n\t\t\t<a href="http://osm.org/copyright">OpenStreetMap</a>\n\t\t\tcontributors\n\t\t',document.querySelectorAll('img[role="presentation"]').forEach((function(n){return n.setAttribute("role","img")}))}()},children:[(0,I.jsx)(b,{attribution:'\xa9 <a href="http://osm.org/copyright">OpenStreetMap</a> contributors',url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}),c?(0,I.jsx)(C,{position:o,icon:L,children:(0,I.jsx)(_,{children:u})}):(0,I.jsx)(w,{pathOptions:{color:"#3388ff"},positions:o,children:(0,I.jsx)(_,{children:u})})]})})}},51716:function(n,t,e){"use strict";e.r(t);e(67294);var o=e(76267),r=e(12950),c=e(27932),u=e(63824),a=e.n(u),i=e(85893);t.default=function(){var n=(0,o.h)().customT,t=(0,r.k)().settings;return t.mapCoords?(0,i.jsxs)("div",{className:a().contact__map,children:[(0,i.jsx)("h2",{className:a()["contact__map--title"],children:n("contact.map.findUs","contact")}),(0,i.jsx)("div",{className:a().contact__map__section,children:(0,i.jsx)(c.default,{mapCoords:t.mapCoords,markerInfo:n("portal.name")})})]}):null}},34880:function(n){n.exports={"leaflet-map":"LeafletMap_leaflet-map__2J-6I"}},26538: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.