PageSourceSearch

https://karambasecurity.com/_next/static/chunks/6369.9374f555976065c4a67c.js

js karambasecurity.com collected 2026-10-02 03:20:36 UTC 5,161 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6369],{76369:function(n,t,e){e.r(t),e.d(t,{default:function(){return L}});var r={};e.r(r);var o=e(68216),u=e(25997),c=e(14695),i=e(13444),a=e(30268),l=e(92953),s=e(92809),f=e(65988),p=e(67294),d=e(73935);const y=(0,p.createContext)(null),v=y.Provider;function h(){const n=(0,p.useContext)(y);if(null==n)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return n}function x(n,t){return null==t?function(t,e){return(0,p.useRef)(n(t,e))}:function(e,r){const o=(0,p.useRef)(n(e,r)),u=(0,p.useRef)(e),{instance:c}=o.current;return(0,p.useEffect)((function(){u.current!==e&&(t(c,e,u.current),u.current=e)}),[c,e,r]),o}}function m(n,t){const e=(0,p.useRef)(t);(0,p.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 g(n,t){const e=(0,p.useRef)();(0,p.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 b(n,t){const e=n.pane??t.pane;return e?{...n,pane:e}:n}function C(n){return function(t){const e=h(),r=n(b(t,e),e);return m(e.map,t.attribution),g(r.current,t.eventHandlers),function(n,t){(0,p.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])}(r.current,e),r}}var w=e(45243);const R=function(n){function t(t,e){const{instance:r}=n(t).current;return(0,p.useImperativeHandle)(e,(()=>r)),null}return(0,p.forwardRef)(t)}(C(x((function(n,t){let{url:e,...r}=n;return{instance:new w.TileLayer(e,b(r,t)),context:t}}),(function(n,t,e){const{opacity:r,zIndex:o}=t;null!=r&&r!==e.opacity&&n.setOpacity(r),null!=o&&o!==e.zIndex&&n.setZIndex(o)}))));const I=function(n,t){return function(n){function t(t,e){const{instance:r,context:o}=n(t).current;return(0,p.useImperativeHandle)(e,(()=>r)),null==t.children?null:p.createElement(v,{value:o},t.children)}return(0,p.forwardRef)(t)}(C(x(n,t)))}((function(n,t){let{position:e,...r}=n;const o=new w.Marker(e,r);return{instance:o,context:{...t,overlayContainer:o}}}),(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())})),z=function(n,t){return function(n){function t(t,e){const[r,o]=(0,p.useState)(!1),{instance:u}=n(t,o).current;(0,p.useImperativeHandle)(e,(()=>u)),(0,p.useEffect)((function(){r&&u.update()}),[u,r,t.children]);const c=u._contentNode;return c?(0,d.createPortal)(t.children,c):null}return(0,p.forwardRef)(t)}(function(n,t){return function(e,r){const o=h(),u=n(b(e,o),o);return m(o.map,e.attribution),g(u.current,e.eventHandlers),t(u.current,o,e,r),u}}(x(n),t))}((function(n,t){return{instance:new w.Popup(n,t.overlayContainer),context:t}}),(function(n,t,e,r){const{onClose:o,onOpen:u,position:c}=e;(0,p.useEffect)((function(){const{instance:e}=n;function i(n){n.popup===e&&(e.update(),r(!0),null==u||u())}function a(n){n.popup===e&&(r(!1),null==o||o())}return t.map.on({popupopen:i,popupclose:a}),null==t.overlayContainer?(null!=c&&e.setLatLng(c),e.openOn(t.map)):t.overlayContainer.bindPopup(e),function(){var n;t.map.off({popupopen:i,popupclose:a}),null==(n=t.overlayContainer)||n.unbindPopup(),t.map.removeLayer(e)}}),[n,t,r,o,u,c])}));var E=e(85893);function O(n){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(n){return!1}}();return function(){var e,r=(0,l.Z)(n);if(t){var o=(0,l.Z)(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return(0,a.Z)(this,e)}}
1var L=function(n){(0,i.Z)(e,n);var t=O(e);function e(){var n;(0,o.Z)(this,e);for(var r=arguments.length,u=new Array(r),i=0;i<r;i++)u[i]=arguments[i];return n=t.call.apply(t,[this].concat(u)),(0,s.Z)((0,c.Z)(n),"state",{lat:36.136269,lng:-115.151387,zoom:15}),n}return(0,u.Z)(e,[{key:"render",value:function(){var n=this.state,t=n.lat,e=n.lng,o=n.zoom,u=[t,e];return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsxs)(r.Map,{center:u,zoom:o,children:[(0,E.jsx)(R,{attribution:'&copy <a href="http://osm.org/copyright">OpenStreetMap</a> contributors',url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}),(0,E.jsx)(I,{position:u,children:(0,E.jsxs)(z,{children:["A pretty CSS3 popup. ",(0,E.jsx)("br",{className:"jsx-4104267922"})," Easily customizable."]})})]}),(0,E.jsx)(f.default,{id:"4104267922",children:[".leaflet-container{position:relative;height:300px;max-width:100%;}","@media (min-width:768px){.leaflet-container{height:360px;}}"]})]})}}]),e}(p.Component)}}]);

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.